/* ==========================================================================
   Фрагменти — Контакт-лист
   pages.css: Hero, film strip, steps, contact sheets, panels, price, FAQ, booking form, viewer
   ========================================================================== */

/* ---------- Home: hero ---------- */
.hero {
  padding-block: 40px 26px;
}

.herorow {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.hero h1 {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  font: 700 clamp(2.45rem, 9.2vw, 7.4rem) / 0.86 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.pricetag {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-left: auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
  text-decoration: none;
  padding: 22px 28px;
  transform: rotate(-4deg);
  margin-bottom: 10px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--card-sh);
  border: 2px solid var(--ink);
  transition: transform 0.15s ease;
}

.pricetag::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 20px;
  margin-left: -35px;
  background: var(--tape);
  transform: rotate(3deg);
}

.pricetag .hand {
  font-size: 1.6rem;
  line-height: 1;
}

.pricetag b {
  font: 700 clamp(2.4rem, 5.8vw, 4rem) / 1 var(--f-display);
  color: var(--red);
  white-space: nowrap;
}

.pricetag small {
  font: 400 0.74rem/1.25 var(--f-mono);
  color: var(--mute);
}

[data-input="pointer"] .pricetag:hover {
  transform: rotate(-2deg) scale(1.03);
  z-index: 3;
}

.hero .note {
  display: inline-block;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  transform: rotate(-2.5deg);
  margin: 12px 0 0 2px;
}

/* Responsive sticker scaling by screen width (works for both pointer & touch/tablet) */
[data-input="touch"] .hero {
  padding-block: 24px 16px;
}

@media (max-width: 860px) {
  .herorow {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .hero h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(2.35rem, 8.8vw, 4.6rem);
  }
  .pricetag {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 16px 22px;
    margin-bottom: 0;
    transform: rotate(-3.5deg);
  }
  .pricetag .hand {
    font-size: 1.45rem;
  }
  .pricetag b {
    font-size: clamp(2.1rem, 5.4vw, 3.1rem);
  }
  .pricetag small {
    font-size: 0.72rem;
  }
}

@media (max-width: 580px) {
  /* Headline and sticker sit side by side and never overlap:
     app.js shrinks the headline to whatever room the sticker leaves */
  .herorow {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(2.3rem, 9.4vw, 3.4rem);
  }
  .pricetag {
    padding: 10px 12px 8px;
    margin: 0 4px 0 0;
    transform: rotate(-4deg);
  }
  .pricetag::before {
    width: 46px;
    height: 13px;
    top: -7px;
    margin-left: -23px;
  }
  .pricetag .hand {
    font-size: 1.25rem;
  }
  .pricetag b {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .pricetag small {
    display: none;
  }
  .hero .note {
    position: relative;
    z-index: 4;
    margin-top: 6px;
    font-size: 1.35rem;
    line-height: 1.15;
  }
  /* tighter hero so the film strip sits closer */
  .hero,
  [data-input="touch"] .hero {
    padding-block: 18px 12px;
  }
}

/* ---------- Film strip (continuous auto-scroll) ---------- */
.strip {
  background: var(--film);
  border-block: 1px solid var(--film-line);
  padding: 16px 0;
  position: relative;
  overflow: hidden;
}

.strip::before,
.strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: radial-gradient(circle, var(--bg) 3px, transparent 3.5px) 0 0 / 22px 10px repeat-x;
  z-index: 1;
  pointer-events: none;
}

.strip::before {
  top: 8px;
}

.strip::after {
  bottom: 8px;
}

.frames {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 6px 0;
  will-change: transform;
}

.strip-scroll {
  position: relative;
  z-index: 2;
  padding-block: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.strip-scroll::-webkit-scrollbar {
  display: none;
}

.strip-scroll.dragging {
  cursor: grabbing;
}

.strip-scroll.dragging .frame {
  pointer-events: none;
}

/* Keep scrolling smooth: freeze scene animations while the strip is being moved
   and on frames that are off-screen */
.strip-scroll.moving .scene,
.strip-scroll.moving .scene *,
.frame.off .scene,
.frame.off .scene * {
  animation-play-state: paused !important;
}

.frame .vid {
  contain: layout paint;
}

@keyframes roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.frame {
  position: relative;
  flex: none;
  width: min(300px, 72vw);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.frame .vid {
  aspect-ratio: 4 / 3;
}

.frame .no {
  position: absolute;
  left: 4px;
  top: -20px;
  font: 400 0.7rem var(--f-mono);
  color: var(--edge);
}

[data-input="pointer"] .frame:hover {
  transform: scale(1.08);
  z-index: 3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.frame.pick::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 4px solid var(--red);
  border-radius: 46% 54% 50% 48% / 52% 46% 54% 48%;
  transform: rotate(-3deg);
  pointer-events: none;
  z-index: 3;
}

/* ---------- Icon blocks & Steps ---------- */
.get {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.get div {
  border-top: 3px solid var(--ink);
  padding-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
}

.get .ic {
  width: 34px;
  height: 34px;
  grid-row: span 2;
  margin-top: 2px;
}

.get b {
  font: 700 2.2rem/1 var(--f-display);
  text-transform: uppercase;
}

.get p {
  color: var(--mute);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: s;
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.step {
  position: relative;
  background: var(--film);
  border: 1px solid var(--film-line);
  color: #eeeae2;
  padding: 16px 16px 22px;
  display: grid;
  gap: 8px;
  align-content: start;
  counter-increment: s;
}

.step .no {
  font: 400 0.72rem var(--f-mono);
  color: var(--edge);
}

.step .no::before {
  content: counter(s, decimal-leading-zero) " ▸ ";
}

.step .ic {
  width: 30px;
  height: 30px;
  color: #fff;
}

.step h3 {
  font: 700 1.45rem/1 var(--f-display);
  text-transform: uppercase;
}

.step p {
  color: #bdb8ae;
  font-size: 0.93rem;
}

.step .hand {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 1.5rem;
}

[data-input="touch"] .steps {
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--film-line);
}

[data-input="touch"] .step {
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #2a2a2a;
}

[data-input="touch"] .step:last-child {
  border-bottom: 0;
}

[data-input="touch"] .step .ic {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1.5px solid #555;
  border-radius: 50%;
}

[data-input="touch"] .step .no {
  grid-column: 2;
}

[data-input="touch"] .step h3 {
  grid-column: 2;
  font-size: 1.25rem;
}

[data-input="touch"] .step p {
  grid-column: 2;
}

/* Detailed steps on #how page */
.steps-detail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: sd;
}

.step-d {
  position: relative;
  background: var(--film);
  border: 1px solid var(--film-line);
  color: #eeeae2;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px 20px;
  align-items: start;
  counter-increment: sd;
}

.step-d-ic {
  width: 56px;
  height: 56px;
  border: 1.5px solid #4a4a52;
  background: #1d1d22;
  display: grid;
  place-items: center;
  color: #fff;
}

.step-d-ic .ic {
  width: 28px;
  height: 28px;
}

.step-d-body {
  display: grid;
  gap: 8px;
}

.step-d-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.step-d-no {
  font: 400 0.76rem var(--f-mono);
  color: var(--edge);
  text-transform: uppercase;
}

.step-d-no::before {
  content: "Крок " counter(sd, decimal-leading-zero) " ▸ ";
}

.step-d-when {
  font: 400 0.76rem var(--f-mono);
  color: #ff8a7f;
  background: rgba(212, 41, 29, 0.18);
  border: 1px solid rgba(255, 107, 94, 0.4);
  padding: 2px 8px;
}

.step-d h3 {
  font: 700 1.55rem/1.05 var(--f-display);
  text-transform: uppercase;
  color: #fff;
}

.step-d p {
  color: #d5d0c5;
  max-width: 68ch;
  font-size: 0.98rem;
}

.step-d ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font: 400 0.8rem var(--f-mono);
  color: #a9a49a;
}

.step-d ul li::before {
  content: "✓ ";
  color: #ff6b5e;
  font-weight: 700;
}

.step-d .hand {
  position: absolute;
  right: 20px;
  bottom: 14px;
  font-size: 1.55rem;
  transform: rotate(-4deg);
}

@media (max-width: 640px) {
  .step-d {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
    gap: 10px 14px;
  }
  .step-d-ic {
    width: 44px;
    height: 44px;
  }
  .step-d-ic .ic {
    width: 22px;
    height: 22px;
  }
  .step-d .hand {
    display: none;
  }
}

.kit-week {
  margin: 0 0 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--card-sh);
  padding: 18px 22px;
  display: grid;
  gap: 12px;
}

.kit-week-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.kit-week-head b {
  font: 700 1.2rem/1 var(--f-display);
  text-transform: uppercase;
}

.kit-week-head span {
  font: 400 0.8rem var(--f-mono);
  color: var(--mute);
}

.kit-bar {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1.1fr;
  gap: 8px;
}

@media (max-width: 720px) {
  .kit-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 440px) {
  .kit-bar {
    grid-template-columns: 1fr;
  }
}

.kit-seg {
  border: 1.5px solid var(--ink);
  padding: 10px 12px;
  background: var(--bg);
  display: grid;
  gap: 2px;
}

.kit-seg.main {
  background: var(--red-soft);
  border-color: var(--red);
}

.kit-seg small {
  font: 400 0.72rem var(--f-mono);
  color: var(--mute);
  text-transform: uppercase;
}

.kit-seg strong {
  font: 600 0.95rem/1.25 var(--f-body);
}

/* ---------- Reviews & CTA bands ---------- */
.reviews {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.review {
  margin: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--card-sh);
  padding: 14px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.review:nth-child(2) {
  transform: rotate(0.6deg);
}

.review .vid {
  aspect-ratio: 3 / 4;
}

.review blockquote {
  margin: 0;
  font: 600 1.6rem/1.15 var(--f-hand);
}

.review footer {
  font: 400 0.76rem var(--f-mono);
  color: var(--mute);
  margin-top: 10px;
}

@media (max-width: 480px) {
  .review {
    grid-template-columns: 110px 1fr;
  }
  .review blockquote {
    font-size: 1.35rem;
  }
}

.ctaband {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding-block: 20px 72px;
}

[data-input="touch"] .ctaband [data-jump-book] {
  display: none;
}

[data-input="touch"] .ctaband {
  padding-block: 8px 32px;
}

/* ---------- Contact sheets (films / weekend) ---------- */
.sheet {
  background: var(--film);
  border: 1px solid var(--film-line);
  padding: 26px;
  display: grid;
  gap: 34px 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.cell {
  position: relative;
  color: #d9d6cf;
  margin: 0;
  cursor: pointer;
}

.cell .vid {
  aspect-ratio: 4 / 3;
}

.cell .play-badge,
.review .play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.78);
  border: 2px solid #fff;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.cell .play-badge svg,
.review .play-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

[data-input="pointer"] .cell:hover .play-badge,
.cell:focus-visible .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cell .no {
  font: 400 0.7rem var(--f-mono);
  color: var(--edge);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cell h3 {
  margin-top: 10px;
  font: 500 1.08rem var(--f-body);
  color: #f1efe9;
}

.cell p {
  margin-top: 2px;
  font: 400 0.78rem var(--f-mono);
  color: #a9a59c;
}

.daylbl {
  grid-column: 1 / -1;
  font: 700 2rem/1 var(--f-hand);
  color: #ff6b5e;
  margin-top: 6px;
}

.daylbl small {
  font: 400 0.78rem var(--f-mono);
  color: #a9a59c;
  margin-left: 10px;
}

[data-input="pointer"] .cell {
  transition: transform 0.2s ease;
}

[data-input="pointer"] .cell:hover {
  transform: scale(1.03);
}

/* ---------- How it works page: panels & challenges ---------- */
.two {
  display: grid;
  gap: 48px 24px;
  align-items: stretch;
}

@media (min-width: 860px) {
  .two {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.panel {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--card-sh);
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
}

.panel h3 {
  font: 700 1.5rem/1 var(--f-display);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel h3 .ic {
  width: 26px;
  height: 26px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
}

.list li:first-child {
  border-top: 0;
}

.ib {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--bg);
}

.chk {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  width: 100%;
  min-height: var(--tap);
}

.chk input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cb {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  position: relative;
  background: var(--field-bg);
}

.chk input:checked + .cb::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid var(--red);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.chk input:checked ~ .chk-t {
  color: var(--mute);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2.5px;
}

.chk input:focus-visible + .cb {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

.panel-ch-wrap {
  position: relative;
  display: grid;
}

/* ---------- Price page ---------- */
.bigprice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: 16px;
}

.bigprice b {
  font: 700 clamp(4rem, 12vw, 7rem) / 0.9 var(--f-display);
  color: var(--red);
}

.bigprice span {
  font: 400 0.92rem var(--f-mono);
  color: var(--mute);
  max-width: 36ch;
}

.pricegrid {
  display: grid;
  gap: 24px;
  margin-top: 30px;
  align-items: start;
}

@media (min-width: 880px) {
  .pricegrid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.pkg ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pkg li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--card-sh);
  font-family: var(--f-mono);
}

.order header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}

.order label,
.order .row {
  display: grid;
  grid-template-columns: 30px 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
  min-height: var(--tap);
}

.order .row {
  cursor: default;
}

.order .ic {
  width: 22px;
  height: 22px;
}

.order input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
  margin: 0;
}

.order select {
  font-family: var(--f-mono);
  border: 2px solid var(--ink);
  background: var(--field-bg);
  color: var(--ink);
  padding: 6px 8px;
  min-height: 40px;
}

.order .sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 18px;
  font-size: 1.15rem;
  font-weight: 700;
}

.order .sum b {
  font: 700 2rem var(--f-display);
  color: var(--red);
}

.order .go {
  padding: 0 18px 18px;
}

.order .go .btn {
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 520px) {
  #o-go-sum {
    display: none;
  }
}

.price-left {
  display: grid;
  gap: 20px;
  align-content: start;
}

.ref {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border: 2px dashed var(--ink);
  background: var(--paper);
}

.ref b {
  color: var(--red);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq details {
  background: var(--paper);
  border: 2px solid var(--ink);
}

.faq details[open] {
  box-shadow: 5px 5px 0 var(--card-sh);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: calc(var(--tap) + 12px);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font: 700 1.6rem/1 var(--f-display);
  color: var(--red);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 18px 18px;
  color: var(--mute);
  max-width: 66ch;
}

/* ---------- Booking page ---------- */
.bookgrid {
  display: grid;
  gap: 40px;
  align-items: start;
  padding-bottom: 72px;
}

@media (min-width: 980px) {
  [data-input="pointer"] .bookgrid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  }
}

.media {
  position: sticky;
  top: calc(var(--hdr) + 24px);
  display: grid;
  gap: 12px;
}

[data-input="touch"] .media {
  display: none;
}

@media (max-width: 979px) {
  .media {
    display: none;
  }
}

.loop {
  background: var(--film);
  border: 1px solid var(--film-line);
  padding: 16px 16px 14px;
  position: relative;
}

.loop::before,
.loop::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  background: radial-gradient(circle, var(--bg) 3px, transparent 3.5px) 0 0 / 10px 22px repeat-y;
}

.loop::before {
  left: 3px;
}

.loop::after {
  right: 3px;
}

.loop .stack {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-inline: 10px;
  overflow: hidden;
}

.loop .stack .vid {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.loop .stack .vid.on {
  opacity: 1;
}

.loop .cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 10px 0;
  font: 400 0.78rem var(--f-mono);
  color: #bdb8ae;
}

.loop .cap b {
  color: #f1efe9;
  font: 500 1rem var(--f-body);
}

.loopbars {
  display: flex;
  gap: 4px;
  margin: 0 10px 10px;
}

.loopbars i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #3a3a3a;
  overflow: hidden;
  position: relative;
}

.loopbars i.done {
  background: #e9e6df;
}

.loopbars i.on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #e9e6df;
  transform-origin: left;
  animation: fill var(--dur, 3.6s) linear forwards;
}

@keyframes fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.media .note {
  font: 700 1.5rem/1.15 var(--f-hand);
  color: var(--red);
  transform: rotate(-2deg);
}

form.book {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--card-sh);
  display: grid;
  gap: 26px;
  padding: 0 clamp(18px, 3.4vw, 32px) clamp(18px, 3.4vw, 30px);
  min-width: 0;
  --fpad: clamp(18px, 3.4vw, 32px);
}

.formhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 calc(-1 * var(--fpad));
  padding: 14px var(--fpad);
  border-bottom: 2px solid var(--ink);
  font: 700 0.9rem var(--f-mono);
  text-transform: uppercase;
}

.formhead .hand {
  font-size: 1.4rem;
  text-transform: none;
}

.field {
  display: grid;
  gap: 8px;
  position: relative;
}

.field > label,
.legend {
  font: 400 0.8rem var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.legend .mono,
.field > label .mono {
  text-transform: none;
  color: var(--mute);
  font-size: 0.74rem;
}

.inp {
  width: 100%;
  min-height: var(--tap);
  background: var(--field-bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0 14px;
  font: 500 1.05rem var(--f-body);
  outline: none;
}

.inp::placeholder {
  color: var(--mute);
  opacity: 0.72;
}

.inp:focus {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
}

.inp[aria-invalid="true"] {
  border-color: var(--red);
}

textarea.inp {
  padding: 12px 14px;
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.hint {
  font-size: 0.86rem;
  color: var(--mute);
  min-height: 1.3em;
}

.hint.ok {
  color: var(--ink);
  font-weight: 500;
}

.err {
  font-size: 0.86rem;
  color: var(--red);
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: center;
}

.err:empty {
  display: none;
}

.err::before {
  content: "!";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 0.72rem var(--f-mono);
}

.date-row {
  display: flex;
  gap: 8px;
}

.date-inp-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.date-row .inp {
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}

.date-ghost {
  position: absolute;
  inset: 2px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font: 500 1.05rem var(--f-mono);
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
  white-space: pre;
  overflow: hidden;
}

.date-ghost .g-hide {
  visibility: hidden;
}

.date-ghost .g-ph {
  color: var(--mute);
  opacity: 0.72;
}

[data-input="touch"] .date-ghost {
  display: none;
}

.inp.pick-only {
  cursor: pointer;
  caret-color: transparent;
  font-family: var(--f-body);
  letter-spacing: 0;
}

.icon-btn {
  flex: none;
  width: var(--tap);
  min-height: var(--tap);
  border: 2px solid var(--ink);
  background: var(--field-bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

[data-input="pointer"] .icon-btn:hover {
  background: var(--soft);
}

/* ---------- Calendar popover ---------- */
.cal {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  width: min(350px, 100%);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--card-sh);
  padding: 14px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cal-head strong {
  font: 600 1.15rem var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cal-head button {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  background: var(--field-bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.cal table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  touch-action: pan-y;
}

.cal th {
  font: 400 0.68rem var(--f-mono);
  color: var(--mute);
  padding: 4px 0;
  text-transform: uppercase;
}

.cal td {
  padding: 2px;
  text-align: center;
}

.day {
  width: 100%;
  aspect-ratio: 1;
  max-height: 42px;
  border: 1.5px solid transparent;
  background: transparent;
  font: 500 0.92rem var(--f-body);
  cursor: pointer;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.day.out {
  color: var(--mute);
  opacity: 0.45;
}

.day[aria-disabled="true"] {
  cursor: not-allowed;
}

.day.busy {
  background: repeating-linear-gradient(-45deg, var(--red-soft) 0 3px, rgba(212, 41, 29, 0.06) 3px 7px);
  color: var(--red);
}

.day.win {
  background: var(--red-soft);
}

.day.today {
  border-color: var(--ink);
}

.day.last::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--red);
}

[data-input="pointer"] .day:not([aria-disabled="true"]):hover {
  background: var(--soft);
}

.day[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

.day[aria-selected="true"].last::after {
  background: var(--paper);
}

.cal-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--mute);
  flex-wrap: wrap;
}

.cal-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-legend .sw {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
}

.cal-legend .sw.busy {
  background: repeating-linear-gradient(-45deg, var(--red-soft) 0 2px, rgba(212, 41, 29, 0.06) 2px 5px);
}

.cal-legend .sw.win {
  background: var(--red-soft);
}

.cal-legend .sw.last {
  border: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.cal-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

.cal-foot .hint {
  text-align: center;
}

[data-input="touch"] .cal {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  border-width: 2px 0 0;
  box-shadow: none;
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  max-height: 85vh;
  overflow: auto;
}

[data-input="touch"] .day {
  max-height: 52px;
  font-size: 1rem;
}

[data-input="touch"] .cal-head button {
  width: 48px;
  height: 48px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.65);
  z-index: 34;
}

/* ---------- Contact methods, country picker & add-ons ---------- */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.methods {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

.toggle {
  position: relative;
  display: block;
}

.toggle input,
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.toggle .t-in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: calc(var(--tap) + 8px);
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: var(--field-bg);
  cursor: pointer;
  font-weight: 600;
}

.toggle svg,
.chip svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toggle .sw {
  margin-left: auto;
  width: 38px;
  height: 22px;
  border: 2px solid var(--ink);
  position: relative;
  flex: none;
  background: var(--field-bg);
}

.toggle .sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--ink);
  transition: transform 0.15s;
}

.toggle input:checked + .t-in {
  background: var(--ink);
  color: var(--paper);
}

.toggle input:checked + .t-in .sw {
  border-color: var(--paper);
  background: var(--red);
}

.toggle input:checked + .t-in .sw::after {
  transform: translateX(16px);
  background: var(--paper);
}

.toggle input:focus-visible + .t-in,
.chip input:focus-visible + .c-in {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

.sub {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px dashed var(--ink);
  margin-top: 10px;
  background: var(--bg);
}

.phone-row {
  display: flex;
  gap: 8px;
  position: relative;
}

.phone-row .inp[type="tel"] {
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  min-width: 0;
}

.cc-btn {
  flex: none;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 14px;
  font-family: var(--f-mono);
  cursor: pointer;
}

.cc-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-pop {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  width: min(340px, 100%);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--card-sh);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.cc-pop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 264px;
  overflow: auto;
  overscroll-behavior: contain;
}

.cc-pop li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
}

.cc-pop li .code {
  font-family: var(--f-mono);
  color: var(--mute);
}

.cc-pop li.active {
  background: var(--soft);
}

.cc-pop li[aria-selected="true"] {
  font-weight: 700;
}

.cc-pop li.custom {
  font-weight: 700;
  color: var(--red);
}

.cc-pop .empty {
  padding: 10px 12px;
  color: var(--mute);
  font-size: 0.9rem;
}

[data-input="touch"] .cc-pop {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  border-width: 2px 0 0;
  box-shadow: none;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  max-height: 75vh;
  grid-template-rows: auto 1fr;
}

[data-input="touch"] .cc-pop ul {
  max-height: none;
}

[data-input="touch"] .cc-pop li {
  min-height: 54px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip .c-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: var(--field-bg);
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}

[data-input="pointer"] .chip .c-in:hover {
  background: var(--soft);
}

.chip input:checked + .c-in {
  background: var(--ink);
  color: var(--paper);
}

.chip .c-in b {
  font-weight: 600;
  color: var(--red);
}

.chip input:checked + .c-in b {
  color: var(--btn-sub);
}

#phone-panel .chips {
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

#phone-panel .chips::-webkit-scrollbar {
  display: none;
}

#phone-panel .chip {
  flex: 1 0 auto;
}

#phone-panel .chip .c-in {
  width: 100%;
  justify-content: center;
  padding: 0 10px;
  gap: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.add-comment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 2px;
  border: 0;
  background: none;
  font: 600 0.98rem var(--f-body);
  cursor: pointer;
}

.add-comment span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  font: 700 1rem/1 var(--f-display);
}

[data-input="pointer"] .add-comment:hover span {
  background: var(--ink);
  color: var(--paper);
}

.addon-pick .chips {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.addon-pick .chip .c-in {
  width: 100%;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding-block: 8px;
}

@media (max-width: 520px) {
  .addon-pick .chips {
    grid-template-columns: 1fr;
  }
  .methods {
    grid-template-columns: 1fr;
  }
}

.months {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  background: var(--field-bg);
}

.step-btn {
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: transparent;
  font: 700 1.2rem var(--f-display);
  cursor: pointer;
}

[data-input="pointer"] .step-btn:hover {
  background: var(--soft);
}

.step-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.stepper output {
  min-width: 70px;
  text-align: center;
  font-weight: 600;
  font-family: var(--f-mono);
}

.form-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 400 0.86rem var(--f-mono);
  text-transform: uppercase;
  color: var(--mute);
}

.total b {
  font: 700 2.2rem/1 var(--f-display);
  color: var(--red);
  text-transform: none;
}

.consent {
  font-size: 0.82rem;
  color: var(--mute);
}

[data-input="pointer"] .form-foot {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--paper);
  margin: 0 calc(-1 * var(--fpad)) calc(-1 * var(--fpad));
  padding: 16px var(--fpad) var(--fpad);
}

[data-input="touch"] .foot-row .btn {
  flex: 1 1 100%;
}

.sent {
  display: grid;
  gap: 18px;
  justify-items: start;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--card-sh);
  padding: clamp(20px, 4vw, 34px);
  position: relative;
}

.sent .stamp {
  position: absolute;
  right: 20px;
  top: 20px;
  border: 3px solid var(--red);
  color: var(--red);
  font: 700 1.2rem var(--f-display);
  text-transform: uppercase;
  padding: 4px 12px;
  transform: rotate(8deg);
}

.sent h3 {
  font: 700 2rem/1 var(--f-display);
  text-transform: uppercase;
}

.sent dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 0;
  font-size: 0.98rem;
}

.sent dt {
  font: 400 0.8rem var(--f-mono);
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 2px;
}

.sent dd {
  margin: 0;
  font-weight: 500;
}

.sent .note {
  font-size: 0.82rem;
  color: var(--mute);
}

/* ---------- Film / Moment Lightbox Viewer Modal ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 10, 12, 0.82);
  display: grid;
  place-items: center;
  padding: 16px;
}

.viewer-box {
  width: min(440px, 100%);
  background: var(--film);
  border: 2px solid var(--edge);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  color: #f1efe9;
  padding: 14px;
  display: grid;
  gap: 10px;
  position: relative;
}

.viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font: 400 0.78rem var(--f-mono);
  color: var(--edge);
}

.viewer-close {
  border: 1.5px solid #555;
  background: #222;
  color: #fff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font: 700 1.1rem/1 var(--f-mono);
  display: grid;
  place-items: center;
}

[data-input="pointer"] .viewer-close:hover {
  border-color: #fff;
  background: #333;
}

.viewer-bars {
  display: flex;
  gap: 4px;
}

.viewer-bars i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #3a3a3a;
  overflow: hidden;
  position: relative;
}

.viewer-bars i.done {
  background: #fff;
}

.viewer-bars i.on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  animation: fill 3.2s linear forwards;
}

.viewer-stage {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: min(62vh, 480px);
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  background: #111;
}

.viewer-stage .vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewer-nav {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.viewer-nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.viewer-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 2px;
}

.viewer-meta h3 {
  font: 600 1.15rem/1.2 var(--f-body);
  color: #fff;
}

.viewer-meta p {
  font: 400 0.78rem var(--f-mono);
  color: #bdb8ae;
  margin-top: 2px;
}


/* ==========================================================================
   Phone comfort pass: readable sizes and roomier layouts on small screens
   ========================================================================== */
@media (max-width: 580px) {
  /* Weekend page contact sheet */
  .daylbl {
    font-size: 2.3rem;
    margin-top: 14px;
  }
  .daylbl small {
    font-size: 0.84rem;
  }
  .cell h3 {
    font-size: 1.15rem;
  }
  .cell p {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  /* Process page: lighter headings, readable checklists */
  .step-d h3 {
    font-size: 1.32rem;
    line-height: 1.1;
  }
  .step-d p {
    font-size: 1rem;
  }
  .step-d-no,
  .step-d-when {
    font-size: 0.8rem;
  }
  .step-d ul {
    flex-direction: column;
    gap: 8px;
    font: 400 0.92rem/1.4 var(--f-body);
    color: #c9c4b9;
  }
  .kit-seg small {
    font-size: 0.78rem;
  }
  .kit-seg strong {
    font-size: 1rem;
  }
  .kit-week-head span {
    font-size: 0.84rem;
  }

  .bigprice span {
    font-size: 0.86rem;
    line-height: 1.45;
  }
}


/* ---------- Films page on phones: a tappable list instead of stories ---------- */
@media (max-width: 580px) {
  .sheet.film-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 4px 0;
  }
  .film-list .cell {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--film-line);
  }
  .film-list .cell:last-child {
    border-bottom: 0;
  }
  .film-list .cell .no,
  .film-list .cell .osd {
    display: none;
  }
  .film-list .cell .vid {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 3;
  }
  .film-list .cell .play-badge {
    transform: translate(-50%, -50%) scale(0.62);
  }
  .film-list .cell-cap {
    grid-column: 2;
    grid-row: 1;
  }
  .film-list .cell h3 {
    margin-top: 0;
    font-size: 1.12rem;
    line-height: 1.2;
  }
  .film-list .cell p {
    margin-top: 4px;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .film-list .cell::after {
    content: "›";
    grid-column: 3;
    grid-row: 1;
    font: 400 2rem/1 var(--f-body);
    color: #8f8a80;
  }
  [data-input="pointer"] .film-list .cell:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
  }
  .film-list .cell:active {
    background: rgba(255, 255, 255, 0.08);
  }
}


/* ---------- Process page: box contents with fold-out challenge list, guests panel ---------- */
.panel-box > .list,
.panel-guests > .list {
  grid-auto-rows: 1fr; /* rows spread evenly so both panels line up */
}

.panel h3 {
  justify-content: flex-start;
}

.ch-item {
  display: block !important;
  padding: 0 !important;
}

.ch-more summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
  min-height: 60px;
}

.ch-more summary::-webkit-details-marker {
  display: none;
}

.ch-label {
  flex: 1;
}

.ch-open {
  flex: none;
  font: 400 0.8rem var(--f-mono);
  color: var(--red);
  white-space: nowrap;
}

.ch-open::after {
  content: "приклад ▾";
}

.ch-more[open] .ch-open::after {
  content: "сховати ▴";
}

[data-input="pointer"] .ch-more summary:hover .ch-label {
  color: var(--red);
}

.ch-more summary:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 2px;
}

/* The example opens as a sheet over the whole "Що всередині" panel */
.ch-box {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--paper);
  animation: chIn 0.18s ease-out;
}

@keyframes chIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.ch-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ch-box-head h3 {
  font: 700 1.5rem/1 var(--f-display);
  text-transform: uppercase;
}

.ch-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.ch-box .ch-list li {
  border-top: 1px dashed var(--line);
}

.ch-box .ch-list li:first-child {
  border-top: 0;
}

.ch-note {
  margin: 0 0 4px;
  font: 400 0.82rem/1.4 var(--f-mono);
  color: var(--mute);
}

.ch-list {
  margin: 0;
  padding: 0;
}

.ch-list li {
  padding: 4px 0;
}

.panel-lead {
  margin: -4px 0 2px;
  color: var(--mute);
}

.guest-list li {
  align-items: flex-start;
}

.guest-list li > span:last-child {
  display: grid;
  gap: 2px;
  line-height: 1.4;
}

.guest-list b {
  font: 600 1.02rem/1.3 var(--f-body);
}

@media (max-width: 580px) {
  .ch-box {
    padding: 18px;
  }
  .panel {
    padding: 20px 18px;
  }
}

.panel-box {
  grid-template-rows: auto 1fr;
}

.panel-guests {
  grid-template-rows: auto auto 1fr;
}

/* no positioned ancestors between the sheet and its panel */
.ch-item,
.ch-more {
  position: static;
}


/* ---------- Home steps that link to a page ---------- */
.step-go {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.step-go:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: -3px;
}

.step.linked {
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.15s ease, box-shadow 0.2s ease;
}

/* Grow a little on hover / press, like the film frames and cards elsewhere */
[data-input="pointer"] .step.linked:hover,
.step.linked:active {
  transform: scale(1.03);
  z-index: 3;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.step.linked::after {
  content: "→";
  position: absolute;
  right: 14px;
  bottom: 10px;
  font: 400 1.25rem/1 var(--f-body);
  color: #ff6b5e;
}

[data-input="pointer"] .step.linked:hover {
  background: #1d1d22;
}

.step.linked:active {
  background: #222228;
}

[data-input="touch"] .step.linked {
  padding-right: 40px;
}

[data-input="touch"] .step.linked::after {
  content: "›";
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.9rem;
  color: #8f8a80;
}

#box {
  scroll-margin-top: -24px;
}

@media (max-width: 940px) {
  #box {
    scroll-margin-top: 0;
  }
}


/* ---------- Reviews open the couple's film ---------- */
.review {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review .vid {
  position: relative;
}

.review .play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 3;
}

.review-go {
  display: inline-block;
  margin-top: 8px;
  font: 400 0.84rem var(--f-mono);
  color: var(--red);
}

[data-input="pointer"] .review:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--card-sh);
}

.review:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--card-sh);
}

.review:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Price sticker: lifts when pressed so it reads as a button ---------- */
.pricetag {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pricetag:active {
  transform: rotate(-2deg) translateY(-4px) scale(1.04) !important;
  box-shadow: 8px 10px 0 var(--card-sh);
}

.pricetag:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 4px;
}


/* Weekly schedule sits at the very top of the Process page */
.kit-top {
  padding-top: 28px;
}

.kit-top .kit-week {
  margin: 0;
}

.kit-top + .pagehead {
  padding-top: 30px;
}


/* Phones: the red note moves under the film strip */
.note-under-wrap {
  display: none;
}

@media (max-width: 580px) {
  .hero .note {
    display: none;
  }
  .note-under-wrap {
    display: block;
    padding-top: 3px;
  }
  .note-under {
    display: inline-block;
    font-size: 1.35rem;
    line-height: 1.15;
    transform: rotate(-1.5deg);
  }
  .hero,
  [data-input="touch"] .hero {
    padding-block: 18px 22px;
  }
}

/* Phones: "1 фільм / Усі кадри / 30 днів" tucked right under the red note */
@media (max-width: 580px) {
  .note-under-wrap {
    position: relative;
    z-index: 2;
  }
  .note-under-wrap + .sec,
  [data-input="touch"] .note-under-wrap + .sec {
    padding-top: 10px;
    margin-top: 0;
  }
  .note-under-wrap + .sec .get div:first-child {
    border-top: 0;
    padding-top: 6px;
  }
}

/* Equal-height rows only matter when the two panels stand side by side */
@media (max-width: 859px) {
  .panel-box > .list,
  .panel-guests > .list {
    grid-auto-rows: auto;
  }
}


/* Process page: the box step opens "Що всередині" */
.step-d.linked {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-input="pointer"] .step-d.linked:hover,
.step-d.linked:active {
  transform: scale(1.015);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.step-d-link {
  justify-self: start;
  margin-top: 2px;
  font: 400 0.92rem var(--f-mono);
  color: #ff6b5e;
  border-bottom: 1px solid currentColor;
}


/* Hero: make it obvious this is a rental */
.hero-kick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--paper);
  font: 400 0.9rem var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-kick .ic {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
}

@media (max-width: 580px) {
  .hero-kick {
    font-size: 0.78rem;
    padding: 6px 10px;
    margin-bottom: 12px;
  }
}


/* ---------- Weekend page: one horizontally scrolling row per day (all screen sizes) ---------- */
.sheet.week-sheet {
  display: block;
  padding: 8px 0 18px;
}

.wk-day {
  display: block;
}

.week-sheet .daylbl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 0 26px;
  margin-top: 22px;
}

.week-sheet .daylbl small {
  margin-left: 0;
}

.wk-swipe {
  margin-left: auto;
  font: 400 0.8rem var(--f-mono);
  color: #a9a59c;
}

.wk-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 26px;
  padding: 12px 26px 10px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}

.wk-row > .cell {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

[data-input="touch"] .wk-row {
  scrollbar-width: none;
}

[data-input="touch"] .wk-row::-webkit-scrollbar {
  display: none;
}

@media (max-width: 580px) {
  .week-sheet .daylbl {
    padding: 0 16px;
    margin-top: 18px;
  }
  .wk-row {
    gap: 12px;
    scroll-padding-inline: 16px;
    padding: 10px 16px 4px;
  }
  .wk-row > .cell {
    flex: 0 0 84%;
  }
  .wk-row > .cell:only-child {
    flex-basis: 100%;
  }
}

/* Booking page: wide + tall touch screens (tablets) also get the looping clips beside the form */
@media (min-width: 980px) and (min-height: 700px) {
  [data-input="touch"] .bookgrid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  }
  [data-input="touch"] .media {
    display: grid;
    top: calc(var(--hdr) + 24px);
  }
}

/* Phones: drop the rental badge to save room */
@media (max-width: 580px) {
  .hero-kick {
    display: none;
  }
}


/* ---------- "Як це працює" buttons leading to the Process page ---------- */
.how-btn {
  border: 2px solid var(--ink);
  gap: 8px;
}

[data-input="pointer"] .how-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.how-btn:active {
  transform: scale(1.03);
}

.how-btn-wide {
  margin-top: 16px;
}

.sechead-more {
  font: 400 0.9rem var(--f-mono);
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-block: 6px 2px;
}

@media (max-width: 580px) {
  .how-btn {
    width: 100%;
  }
}

/* Challenge sheet: compact rows so the whole example fits without scrolling */
.ch-box {
  gap: 4px;
}
.ch-box .chk {
  min-height: 44px;
}
.ch-box .ch-list li {
  padding: 2px 0;
}
.ch-box .ch-note {
  margin-bottom: 2px;
}

/* While swiping the sheet away, nothing else on the page may scroll sideways */
.panel-box {
  overflow: hidden;
}
.ch-box {
  touch-action: pan-y;
}

/* Challenge sheet: tasks spread evenly over the full height of the sheet */
.ch-box .ch-list {
  flex: 1;
  display: grid;
  grid-auto-rows: 1fr;
  align-content: stretch;
}
.ch-box .ch-list li {
  display: flex;
  align-items: center;
}

/* Films page: all five films in one row on wide screens */
@media (min-width: 1100px) {
  .sheet.film-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Film viewer: red "Хочу так само" button (stands out on the dark viewer) */
#v-book {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: none;
}
[data-input="pointer"] #v-book:hover {
  filter: brightness(1.08);
  box-shadow: none;
}
#v-book:active {
  transform: scale(1.03);
}
#v-book {
  white-space: nowrap;
  flex: none;
}

/* Booking page: the note under the looping clips sits on the right */
.media .note {
  text-align: right;
  justify-self: end;
}

/* Narrow phones: the phone block never grows wider than the form;
   the call/messenger chips scroll sideways inside it */
#phone-panel,
#phone-panel > *,
#phone-panel [role="group"],
.phone-row,
.phone-row > * {
  min-width: 0;
}

.phone-row #f-phone {
  width: 100%;
}

#phone-panel .chips {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

#phone-panel .chip {
  scroll-snap-align: start;
}

/* Home "Процес" on phones/tablets: separate cards with space between them */
[data-input="touch"] .steps {
  gap: 10px;
  border: 0;
}
[data-input="touch"] .step,
[data-input="touch"] .step:last-child {
  border: 1px solid var(--film-line);
}

/* Форма: недоступна додаткова камера, Turnstile */
.chip input:disabled + .c-in {
  opacity: 0.45;
  cursor: not-allowed;
}
#turnstile:not(:empty) {
  margin-top: 12px;
}
