/* ─── Cinematic homepage (cine2.js) — continuous VIDEO-scene film (Path 2) ─── */
/* base.css sets `html { scroll-behavior: smooth }` globally — but that CONFLICTS
   with GSAP ScrollTrigger (causes the "wheel lags then jumps" jank in Chrome).
   On cinematic/pain pages we force native instant scroll. */
html { scroll-behavior: auto; }
.cine2-page { margin: 0; background: #0d0a06; color: #fff; font-family: 'Outfit', sans-serif; overflow-x: hidden; }

/* tall scroll track; the stage sticks while video scenes cross-fade */
.cine { position: relative; height: 680vh; }
.cine-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #0d0a06; }

.scene { position: absolute; inset: 0; opacity: 0; display: flex; align-items: flex-end; will-change: opacity, transform; }
.scene--1 { opacity: 1; }
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.scene-video--dim { filter: brightness(.5) saturate(.9); }

/* film grade: warm vertical wash for legibility + soft vignette for "cinema" */
.scene-scrim { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(13,10,6,.90) 0%, rgba(13,10,6,.40) 42%, rgba(13,10,6,.06) 74%, rgba(13,10,6,.18) 100%),
    radial-gradient(120% 90% at 50% 42%, rgba(0,0,0,0) 58%, rgba(0,0,0,.34) 100%); }

.scene-content { position: relative; z-index: 2; max-width: 820px;
  padding: clamp(2rem, 7vw, 7rem) clamp(1.4rem, 7vw, 7rem) clamp(4.5rem, 13vh, 10rem); }
.scene-eyebrow { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold3, #F0C07A); margin-bottom: 1.1rem; }
.scene h2 { font-family: 'Cormorant', serif; font-weight: 300; font-size: clamp(2.7rem, 7.2vw, 6.4rem); line-height: 1.0; margin: 0 0 1.2rem; text-shadow: 0 2px 50px rgba(0,0,0,.55); }
.scene h2 em { font-style: italic; color: var(--gold3, #F0C07A); }
.scene p { font-size: clamp(1rem, 1.6vw, 1.28rem); line-height: 1.55; color: rgba(255,255,255,.88); font-weight: 300; max-width: 32em; }
.scene-cta { display: inline-flex; align-items: center; gap: .5rem; padding: 1.05rem 2rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  font-size: 1.05rem; font-weight: 500; color: #fff; background: linear-gradient(135deg, var(--gold, #B8762A), var(--gold2, #D4924A)); box-shadow: 0 12px 34px rgba(184,118,42,.45); transition: transform .2s; }
.scene-cta:hover { transform: translateY(-2px); }
.scene-cta--ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); box-shadow: none; }
.scene-cta--line { background: transparent; border: 1px solid rgba(240,192,122,.5); color: var(--gold3, #F0C07A); box-shadow: none; }
.scene-cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }

/* "Как это работает" — 4-step process band */
.scene-content--wide { max-width: 1180px; }
.proc-steps { list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); }
.proc-step { position: relative; padding-top: 1.1rem; border-top: 1px solid rgba(240,192,122,.32); }
.proc-n { display: block; font-family: 'Cormorant', serif; font-size: 1.6rem; color: var(--gold3, #F0C07A); letter-spacing: .06em; margin-bottom: .5rem; }
.proc-step h3 { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.06rem; margin: 0 0 .5rem; color: #fff; }
.proc-step p { font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.8); font-weight: 300; max-width: none; }
@media (max-width: 880px) {
  .proc-steps { grid-template-columns: repeat(2, 1fr); gap: 1.3rem 1.2rem; }
  .scene--proc { align-items: center; }
}
@media (max-width: 520px) { .proc-steps { grid-template-columns: 1fr; gap: 1rem; } }

/* fixed header — all capabilities accessible at a glance, no overlap */
.cine-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem clamp(.9rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(13,10,6,.78) 0%, rgba(13,10,6,0) 100%); }
.cine-brand { flex: 0 0 auto; font-family: 'Cormorant', serif; font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 400; letter-spacing: .04em; color: #fff; text-decoration: none; white-space: nowrap; }
.cine-brand:hover { color: var(--gold3, #F0C07A); }
.cine-right { display: flex; align-items: center; gap: clamp(.4rem, 1vw, .7rem); min-width: 0; }

/* labeled action (Примерить / Отследить): icon + text → icon-only on narrow */
.cine-item { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 400; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); transition: background .2s, transform .2s; }
.cine-item:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.cine-item svg { flex: 0 0 auto; }

/* channel CTA — soft gold tint so a first-time visitor notices "у них есть канал" */
.cine-item--ch { background: rgba(212,146,74,.20); border-color: rgba(212,146,74,.55); color: #fff; }
.cine-item--ch svg { color: var(--gold2, #D4924A); }
.cine-item--ch:hover { background: rgba(212,146,74,.34); }

/* icon-only action (messengers, Аня) */
.cine-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  color: #fff; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); text-decoration: none; transition: background .2s, transform .2s; }
.cine-ic:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }

.cine-cta-h { display: inline-flex; align-items: center; white-space: nowrap; padding: .6rem 1.15rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--gold, #B8762A), var(--gold2, #D4924A)); box-shadow: 0 8px 24px rgba(184,118,42,.4); transition: transform .2s; }
.cine-cta-h:hover { transform: translateY(-2px); }
.cine-cta-h .cta-short { display: none; }

/* labels collapse first, then optional items hide → never overflows into overlap */
@media (max-width: 980px) { .cine-item span { display: none; } .cine-item { padding: .5rem; width: 40px; justify-content: center; } }
@media (max-width: 600px) {
  .cine-header { padding: .65rem .8rem; gap: .5rem; }
  .cine-right { gap: .4rem; }
  .cine-item, .cine-ic { width: 36px; height: 36px; }
  .cine-item { padding: .45rem; }
  .cine-item--opt { display: none; }       /* Примерить + Аня: доступны в сценах / плавающем лаунчере */
  .cine-cta-h { padding: .5rem .9rem; font-size: .84rem; }
  .cine-cta-h .cta-long { display: none; }
  .cine-cta-h .cta-short { display: inline; }
}
.cine-hint { position: fixed; left: 50%; bottom: 1.5rem; z-index: 30; transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55);
  animation: cine2Hint 2.4s ease-in-out infinite; transition: opacity .5s; }
.cine-hint.is-gone { opacity: 0; pointer-events: none; }
@keyframes cine2Hint { 0%,100% { opacity: .4; } 50% { opacity: .85; } }

/* slim scroll-progress bar (film "scrubber") */
.cine-progress { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: 3px; background: rgba(255,255,255,.08); }
.cine-progress span { display: block; height: 100%; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold, #B8762A), var(--gold3, #F0C07A)); }

/* stacked scenes — mobile + no-GSAP/reduced-motion fallback. min-height so
   tall content (the process scene) is never clipped; each video plays in view. */
.cine--static { height: auto; }
.cine--static .cine-stage { position: static; height: auto; overflow: visible; }
.cine--static .scene { position: relative; inset: auto; opacity: 1 !important; transform: none !important;
  min-height: 100vh; min-height: 100dvh; height: auto; }
.cine--static .scene--proc { min-height: auto; padding: 1rem 0 3rem; }
.cine--static ~ .cine-hint, .cine--static ~ .cine-progress { display: none; }

/* conversion band between the film and the FAQ — dark, bridges from the film */
.cine-band { background: #0d0a06; color: #fff; text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 1.4rem; border-top: 1px solid rgba(255,255,255,.06); }
.cine-band-in { max-width: 860px; margin: 0 auto; }
.cine-band .s-eye { justify-content: center; color: var(--gold3, #F0C07A); }
.cine-band-h { font-family: 'Cormorant', serif; font-weight: 300; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.06; margin: .7rem 0 1.9rem; color: #fff; }
.cine-band-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 1.7rem; }
.cine-band-row .scene-cta { margin-top: 0; }
.cine-band .cf-trust { justify-content: center; color: rgba(255,255,255,.72); flex-wrap: wrap; }
.cine-band .cf-trust-item { color: rgba(255,255,255,.72); }

/* ── Mobile tuning ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .scene-content { padding: 4.8rem 1.25rem 5.2rem; }
  .scene h2 { font-size: clamp(2.1rem, 8.6vw, 3.3rem); line-height: 1.05; margin-bottom: .9rem; }
  .scene p { font-size: 1rem; max-width: 26em; }
  .scene-eyebrow { margin-bottom: .8rem; }
  .scene-cta { padding: .92rem 1.45rem; font-size: 1rem; }
  .scene-cta-row { gap: .6rem; margin-top: 1.3rem; }

  .scene--proc { align-items: flex-start; }
  .scene-content--wide { padding-top: 4.6rem; }
  .scene--proc h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .proc-steps { grid-template-columns: 1fr 1fr; gap: .85rem .9rem; margin-top: 1.1rem; }
  .proc-step { padding-top: .7rem; }
  .proc-n { font-size: 1.15rem; margin-bottom: .2rem; }
  .proc-step h3 { font-size: .9rem; margin-bottom: .25rem; }
  .proc-step p { font-size: .78rem; line-height: 1.4; }
  .scene--proc .scene-cta-row { margin-top: 1.2rem; }
  .scene--proc .scene-cta { padding: .8rem 1.2rem; font-size: .9rem; }
}

/* Mobile keeps the SAME full-bleed cinematic scenes as desktop (cover), but
   each scene serves a 9:16 vertical clip via <source media="(max-width:600px)">
   so the full composition fills the phone with no awkward crop. */

@media (prefers-reduced-motion: reduce) { .cine-hint { animation: none; } }
