/* V1 «Видоискатель» — страница как съёмка на телефон.
   Палитра интерфейса камеры: чёрный, белый, жёлтый фокус, красный REC. */

:root {
  --ink: #050505;
  --ink-2: #0d0d0d;
  --ink-3: #161616;
  --film: #110f0d;
  --line: rgba(244, 242, 238, 0.12);
  --paper: #f4f2ee;
  --muted: #8f8a83;
  --yellow: #ffd60a;
  --rec: #ff3b30;
  --amber: #d9932f;

  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(18px, 4.2vw, 60px);
  --section: clamp(96px, 12vw, 168px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Типографика ─────────────────────────────────────── */
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: inherit; }

h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 18px;
  color: var(--yellow);
  font: 600 12px/1 var(--f-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ln { padding-bottom: 0.04em; }
/* Маска строк SplitText не должна срезать «Ё», «Й» и выносные элементы. */
.ln-mask { margin-block: -0.16em -0.08em; padding-block: 0.16em 0.08em; }

/* ── Кнопки ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 700 0.9rem/1 var(--f-body);
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border: 1px solid rgba(244, 242, 238, 0.32); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #ffe047; }

/* ── Верхняя панель камеры ───────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 700;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 -36px;
  z-index: -1;
  background: linear-gradient(rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0));
  pointer-events: none;
}

.brand {
  justify-self: start;
  font: 800 1.35rem/1 var(--f-body);
  letter-spacing: -0.045em;
  text-decoration: none;
}
.brand span { color: var(--yellow); }

.rec {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(8px);
  font: 600 13px/1 var(--f-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.rec__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1.4s steps(2, jump-none) infinite;
}
.topbar.is-stopped .rec__dot { border-radius: 2px; animation: none; }
@keyframes blink { 50% { opacity: 0.15; } }

.topbar__meta {
  justify-self: end;
  display: flex;
  gap: 8px;
  color: rgba(244, 242, 238, 0.82);
  font: 600 11px/1 var(--f-ui);
  letter-spacing: 0.08em;
}
.topbar__meta span { padding: 5px 7px; border: 1px solid rgba(244, 242, 238, 0.35); border-radius: 5px; }

/* ── Нижняя панель: режимы камеры и кнопка записи ───── */
.modes {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 10px;
  border: 1px solid rgba(244, 242, 238, 0.1);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.66);
  backdrop-filter: blur(14px) saturate(1.2);
  transform: translateX(-50%);
}
.modes__window {
  position: relative;
  width: 330px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}
.modes__track { display: flex; gap: 22px; width: max-content; }
.modes__track a {
  flex: none;
  padding: 12px 0;
  color: rgba(244, 242, 238, 0.58);
  font: 600 12px/1 var(--f-ui);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.modes__track a:hover { color: var(--paper); }
.modes__track a.is-on { color: var(--yellow); }

.shutter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 6px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.85rem/1 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
}
.shutter__btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}
.shutter__btn i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rec);
  transition: border-radius 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.shutter:hover .shutter__btn i,
.shutter:focus-visible .shutter__btn i { border-radius: 5px; transform: scale(0.62); }

/* ── Курсор-подсказка и зерно ────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; z-index: 800; pointer-events: none; }
.cursor span {
  display: block;
  margin: 18px 0 0 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 12px/1 var(--f-ui);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: scale(0);
  transform-origin: 0 0;
}

.grain {
  position: fixed;
  inset: -100%;
  z-index: 650;
  opacity: 0.075;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ── 1. Герой ────────────────────────────────────────── */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

.screen {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  transform-origin: 50% 50%;
}
.screen__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.3) 48%, rgba(5, 5, 5, 0.42) 100%);
}
.screen__grid { position: absolute; inset: 0; pointer-events: none; }
.screen__grid i { position: absolute; background: rgba(255, 255, 255, 0.16); }
.screen__grid i:nth-child(1), .screen__grid i:nth-child(2) { top: 0; bottom: 0; width: 1px; transform-origin: 50% 0; }
.screen__grid i:nth-child(1) { left: 33.333%; }
.screen__grid i:nth-child(2) { left: 66.666%; }
.screen__grid i:nth-child(3), .screen__grid i:nth-child(4) { left: 0; right: 0; height: 1px; transform-origin: 0 50%; }
.screen__grid i:nth-child(3) { top: 33.333%; }
.screen__grid i:nth-child(4) { top: 66.666%; }

.screen__ui { position: absolute; inset: 0; pointer-events: none; }
.screen__mode {
  position: absolute;
  top: calc(78px + env(safe-area-inset-top));
  left: 50%;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 11px/1 var(--f-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.zoom {
  position: absolute;
  top: 50%;
  right: calc(var(--pad) + 2px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}
.zoom b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.5);
  font: 600 11px/1 var(--f-ui);
}
.zoom b.is-on { color: var(--yellow); font-size: 12px; }

.af {
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  border: 1.5px solid var(--yellow);
  opacity: 0;
  pointer-events: none;
}
.af,
.mentor__af {
  background:
    linear-gradient(var(--yellow), var(--yellow)) 50% 0 / 1.5px 7px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 50% 100% / 1.5px 7px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 0 50% / 7px 1.5px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 100% 50% / 7px 1.5px no-repeat;
}
.af__sun { position: absolute; top: 50%; left: calc(100% + 12px); width: 1.5px; height: 70px; background: var(--yellow); transform: translateY(-50%); }
.af__sun::after {
  content: "";
  position: absolute;
  top: 38%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.4);
  transform: translate(-50%, -50%);
}

.phone {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: var(--phone-w, 60vw);
  height: var(--phone-h, 28vw);
  margin: auto;
  border-radius: var(--phone-r, 40px);
  box-shadow:
    0 0 0 11px #121212,
    0 0 0 12.5px #3b3b3b,
    0 60px 140px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
}
.phone__island { position: absolute; border-radius: 99px; background: #000; }
.hero:not(.is-portrait) .phone__island { top: 50%; left: 12px; width: 22px; height: 24%; transform: translateY(-50%); }
.hero.is-portrait .phone__island { top: 12px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); }

.hero__copy {
  position: absolute;
  right: var(--pad);
  bottom: clamp(108px, 15vh, 150px);
  left: var(--pad);
  z-index: 3;
  max-width: 1040px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(244, 242, 238, 0.86);
  font: 600 13px/1 var(--f-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.22); }
.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4.4rem, 12.6vw, 14.5rem);
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-kerning: none;
}
.hero__lead {
  margin-top: 20px;
  color: rgba(244, 242, 238, 0.9);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 500;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero__cap {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 3;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3rem, 8.4vw, 9rem);
  line-height: 0.84;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}
.hero__cap--top { bottom: calc(50% + var(--phone-h, 28vw) / 2 + 26px); }
.hero__cap--bottom { top: calc(50% + var(--phone-h, 28vw) / 2 + 26px); color: var(--yellow); }

.hero__pause {
  position: absolute;
  right: var(--pad);
  bottom: clamp(108px, 15vh, 150px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(244, 242, 238, 0.3);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.4);
  cursor: pointer;
}
.hero__pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.hero__pause .i-play { display: none; fill: currentColor; stroke: none; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }

/* Пока GSAP не взял управление, вводные элементы героя скрыты.
   Если скрипты не загрузились, через 2,5 с они проявятся сами. */
.js:not(.is-ready) [data-intro] { opacity: 0; animation: intro-fallback 0.6s 2.5s forwards; }
@keyframes intro-fallback { to { opacity: 1; } }

/* ── 2. О курсе ──────────────────────────────────────── */
.about { padding-block: var(--section); }
.about__title { max-width: 13ch; }
.about__manifest {
  max-width: 25ch;
  margin-top: clamp(40px, 6vw, 84px);
  font-size: clamp(1.7rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(56px, 8vw, 110px);
}
.fact { position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.fact::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(var(--drawn, 0));
  transform-origin: 0 50%;
}
.fact dt { font-size: 1rem; font-weight: 600; }
.fact__big {
  display: block;
  margin-bottom: 10px;
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 0.85;
  text-transform: uppercase;
}
.fact dd { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

/* ── 3. Программа: киноплёнка ────────────────────────── */
.program { position: relative; }
.program__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(72px, 10vh, 120px) clamp(40px, 7vh, 80px);
}
.program__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.days {
  display: flex;
  flex: none;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  list-style: none;
}
.days a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font: 600 12px/1 var(--f-ui);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s, background-color 0.3s;
}
.days a:hover { color: var(--paper); }
.days a.is-on { background: var(--yellow); color: var(--ink); }

.strip { position: relative; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); }
.strip::-webkit-scrollbar { display: none; }
.strip.is-driven { overflow: hidden; scroll-snap-type: none; }

.strip__track {
  position: relative;
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 34px var(--pad);
  background: var(--film);
}
.strip__track::before,
.strip__track::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Crect x='6' y='3' width='14' height='8' rx='2' fill='%23050505'/%3E%3C/svg%3E") repeat-x;
}
.strip__track::before { top: 9px; }
.strip__track::after { bottom: 9px; }

.scene { display: flex; gap: 12px; }
.frame, .slate { flex: none; width: clamp(220px, min(22vw, 36vh), 330px); scroll-snap-align: start; }

.frame { display: flex; flex-direction: column; }
.frame__pic { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #1b1b1b; }
.frame__pic img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; }
.frame__copy { padding: 14px 2px 0; }
.frame__no { color: var(--amber); font: 600 11px/1 var(--f-ui); letter-spacing: 0.14em; }
.frame h3 { margin-top: 8px; font-size: 1.05rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.frame p { margin-top: 6px; color: var(--muted); font-size: 0.86rem; line-height: 1.42; }

.slate { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #0b0b0b; }
.slate__clap { position: relative; height: 56px; }
.slate__clap i {
  position: absolute;
  right: 0;
  left: 0;
  height: 25px;
  border: 2px solid #0b0b0b;
  background: repeating-linear-gradient(-55deg, var(--paper) 0 16px, #0b0b0b 16px 32px);
}
.slate__arm { top: 2px; transform-origin: 6px 100%; transform: rotate(-20deg); }
.slate__base { bottom: 0; }
.slate__body {
  display: grid;
  flex: 1;
  align-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 2px solid rgba(244, 242, 238, 0.85);
  border-top-width: 0;
  border-radius: 0 0 8px 8px;
}
.slate__rows { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(244, 242, 238, 0.45); }
.slate__rows div { padding: 9px 11px; }
.slate__rows div + div { border-left: 1px solid rgba(244, 242, 238, 0.45); }
.slate__rows dt { color: var(--muted); font: 600 10px/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; }
.slate__rows dd { margin-top: 6px; font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; line-height: 0.9; }
.slate__theme { font-family: var(--f-display); font-size: clamp(2.1rem, 2.9vw, 3rem); font-weight: 800; line-height: 0.9; text-transform: uppercase; }
.slate__meta { color: var(--muted); font: 600 11px/1 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; }

.program__note { margin-top: clamp(18px, 3vh, 32px); color: var(--muted); font-size: 0.92rem; }

/* ── 4. Монтаж ───────────────────────────────────────── */
.cut { padding-block: var(--section); }
.nle {
  --p: 0;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 30px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
  font-family: var(--f-ui);
}
.nle__ruler {
  display: flex;
  justify-content: space-between;
  margin-left: 44px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.nle__tracks { position: relative; }
.nle__track { display: grid; grid-template-columns: 44px 1fr; margin-top: 12px; }
.nle__label { display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.nle__clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.clip {
  min-height: 170px;
  padding: 18px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #171717;
  transition: background-color 0.45s, border-color 0.45s;
}
.clip b { display: block; font: 700 1.1rem/1.2 var(--f-body); letter-spacing: -0.02em; }
.clip span { display: block; margin-top: 10px; color: var(--muted); font: 500 0.9rem/1.45 var(--f-body); transition: color 0.45s; }
.clip.is-active { border-color: var(--yellow); background: #221d0a; }
.clip.is-active span { color: #d6d0c4; }
.nle__track--a { height: 64px; }
.nle__wave { width: 100%; height: 100%; }
.nle__wave .base { fill: rgba(244, 242, 238, 0.2); }
.nle__wave .lit { fill: var(--yellow); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.nle__playhead {
  position: absolute;
  top: -26px;
  bottom: -4px;
  left: calc(44px + (100% - 44px) * var(--p));
  width: 2px;
  background: var(--yellow);
}
.nle__playhead span {
  position: absolute;
  top: -22px;
  left: 50%;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* ── 5. Галерея ──────────────────────────────────────── */
.gallery { position: relative; }
.gallery__pin {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(64px, 9vh, 110px) clamp(40px, 7vh, 80px);
  overflow: hidden;
}
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.gallery__head p { max-width: 340px; color: var(--muted); }

.mosaic {
  --h: min(62vh, 700px);
  display: grid;
  grid-template-columns: 1fr 1fr calc(var(--h) * 9 / 16) 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 1500px;
  height: var(--h);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #151515;
  cursor: pointer;
}
.tile video, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-0 { grid-area: 1 / 3 / 3 / 4; }
.g-1 { grid-area: 1 / 1 / 3 / 2; }
.g-2 { grid-area: 1 / 2 / 2 / 3; }
.g-3 { grid-area: 1 / 4 / 2 / 5; }
.g-4 { grid-area: 2 / 4 / 3 / 5; }
.g-5 { grid-area: 2 / 2 / 3 / 3; }
.g-6 { grid-area: 1 / 5 / 3 / 6; }

/* ── 6. Наставник ────────────────────────────────────── */
.mentor { padding-block: var(--section); }
.mentor__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.mentor__shot { position: relative; max-width: 520px; aspect-ratio: 1; overflow: hidden; border-radius: 22px; background: #151515; }
.mentor__shot img { width: 100%; height: 100%; object-fit: cover; }
.mentor__af {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 34%;
  aspect-ratio: 1;
  margin: -17% 0 0 -17%;
  border: 1.5px solid var(--yellow);
  opacity: 0;
}
.mentor__hud {
  position: absolute;
  top: 14px;
  left: 50%;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 11px/1 var(--f-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
}
.mentor__text { max-width: 30ch; margin-top: 22px; color: #cfcac3; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.mentor__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ── 7. Работы Романа ────────────────────────────────── */
.works { padding-bottom: var(--section); }
.works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.works__head p { max-width: 340px; color: var(--muted); }
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.work {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #121212;
  text-align: left;
  cursor: pointer;
}
.work:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.work video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.work:hover video { transform: scale(1.035); }
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
  pointer-events: none;
}
.work__meta {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.work__meta b { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 3.2rem); font-weight: 800; line-height: 0.9; text-transform: uppercase; }
.work__meta span { flex: none; color: rgba(244, 242, 238, 0.78); font: 600 11px/1.2 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; }
.work:first-child .work__meta b { font-size: clamp(2.6rem, 5vw, 5.4rem); }

/* ── 8. Цена: билет ──────────────────────────────────── */
.price { padding-block: var(--section); }
.ticket-wrap { max-width: 1060px; margin-top: clamp(40px, 6vw, 72px); perspective: 1400px; }
.ticket {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 0.42fr);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  transform-style: preserve-3d;
}
.ticket__main { padding: clamp(24px, 4vw, 48px); }
.ticket__brand, .ticket__label { color: #6d6862; font: 700 12px/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; }
.ticket__title {
  margin-top: 14px;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}
.ticket__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 26px;
  font-family: var(--f-display);
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 900;
  line-height: 1;
}
.ticket__price small { font: 700 1.1rem/1 var(--f-body); }
.odo { display: inline-flex; white-space: nowrap; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; }
.odo__col { display: flex; flex-direction: column; }
.odo__col b { display: block; height: 1em; font-weight: inherit; line-height: 1; }
.ticket__perks { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; font-size: 0.95rem; font-weight: 600; list-style: none; }
.ticket__perks i { margin-right: 10px; color: #b98400; font-style: normal; }
.ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-left: 2px dashed rgba(5, 5, 5, 0.22);
}
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  left: -17px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
}
.ticket__stub::before { top: -16px; }
.ticket__stub::after { bottom: -16px; }
.ticket__deposit { margin-top: 10px; font-family: var(--f-display); font-size: clamp(2.6rem, 4vw, 3.8rem); font-weight: 900; line-height: 0.9; }
.ticket__deposit small { font: 700 1rem/1 var(--f-body); }
.ticket__meta { display: grid; gap: 10px; }
.ticket__meta div { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(5, 5, 5, 0.14); }
.ticket__meta dt { color: #6d6862; font: 600 11px/1.3 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.ticket__meta dd { font-weight: 700; }
.price__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1060px;
  margin-top: 28px;
}
.price__cta p { max-width: 44ch; color: var(--muted); }

/* ── 9. Вопросы ──────────────────────────────────────── */
.faq { padding-block: var(--section) calc(var(--section) * 0.6); }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  font: 600 1.05rem/1.3 var(--f-body);
  text-align: left;
  cursor: pointer;
}
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item [aria-expanded="true"] { color: var(--yellow); }
.faq__item [aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { overflow: hidden; }
.faq__answer p { max-width: 52ch; padding-bottom: 22px; color: var(--muted); line-height: 1.55; }

/* ── 10. Финал и титры ───────────────────────────────── */
.finale {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding-block: var(--section) clamp(110px, 14vh, 160px);
}
.finale__pic { position: absolute; inset: 0; }
.finale__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.finale__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--ink) 3%, rgba(5, 5, 5, 0.55) 46%, rgba(5, 5, 5, 0.2));
}
.finale__copy { position: relative; z-index: 1; }
.finale h2 { max-width: 12ch; }
.finale__text { max-width: 34ch; margin: 22px 0 28px; color: #e2ddd6; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

.credits {
  padding-block: clamp(80px, 10vw, 140px) calc(112px + env(safe-area-inset-bottom));
  text-align: center;
}

/* Наезд камеры: титры стоят друг за другом в глубине и пролетают мимо зрителя. */
.credits__track.is-dolly .credits__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.credits__track.is-dolly .credits__roll { position: absolute; inset: 0; }
.credits__track.is-dolly .credits__roll p {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  margin: 0;
  padding-inline: var(--pad);
  will-change: transform, opacity;
}
.credits__track.is-dolly .credits__roll b { font-size: clamp(3rem, 8vw, 8.5rem); line-height: 0.88; }
.credits__track.is-dolly .credits__roll span { font-size: 13px; }
.credits__roll p { display: grid; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.credits__roll span { color: var(--muted); font: 600 12px/1 var(--f-ui); letter-spacing: 0.22em; text-transform: uppercase; }
.credits__roll b { font-family: var(--f-display); font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 800; line-height: 0.95; text-transform: uppercase; }
.credits__end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(60px, 8vw, 110px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.credits__end .brand { color: var(--paper); }
.credits__links { display: flex; gap: 22px; }
.credits__links a { color: var(--paper); text-decoration: none; }
.credits__links a:hover { text-decoration: underline; }

/* ── Адаптив ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .modes__window { width: 250px; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: auto 1fr; gap: 12px; height: calc(56px + env(safe-area-inset-top)); }
  .rec { justify-self: center; }
  .topbar__meta { display: none; }
  .brand { font-size: 1.15rem; }

  /* Плашка версий уезжает наверх, чтобы не спорить с нижней панелью. */
  .vswitch { top: calc(13px + env(safe-area-inset-top)); right: 10px; bottom: auto; left: auto; }
  .topbar { padding-right: 150px; }

  .modes { right: 10px; left: 10px; gap: 8px; padding: 5px 5px 5px 8px; transform: none; }
  .modes__window { flex: 1; width: auto; }
  .shutter { height: 44px; padding-right: 14px; }
  .shutter__btn { width: 32px; height: 32px; }
  .shutter__btn i { width: 21px; height: 21px; }

  .hero__title { font-size: clamp(3.6rem, 19vw, 6.4rem); }
  .hero__copy { bottom: 98px; }
  .hero__actions .btn--ghost { display: none; }
  .hero__pause { top: calc(70px + env(safe-area-inset-top)); bottom: auto; }
  .zoom { display: none; }
  .screen__mode { top: calc(68px + env(safe-area-inset-top)); }
  .hero__cap { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero__cap--top { bottom: calc(50% + var(--phone-h, 60vh) / 2 + 18px); }
  .hero__cap--bottom { top: calc(50% + var(--phone-h, 60vh) / 2 + 18px); }

  .facts { grid-template-columns: 1fr; gap: 18px; }
  .program__head { flex-direction: column; align-items: flex-start; }
  .days { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .frame, .slate { width: 74vw; }
  .strip__track { gap: 24px; }

  .nle { padding: 18px 12px; }
  .nle__ruler, .nle__track--a, .nle__playhead, .nle__label { display: none; }
  .nle__track { display: block; }
  .nle__clips { grid-template-columns: 1fr; }
  .clip { min-height: 0; }

  .gallery__head { flex-direction: column; align-items: flex-start; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 56vw; height: auto; gap: 10px; }
  .mosaic .tile { grid-area: auto; }
  .mosaic .g-0 { grid-column: span 2; grid-row: span 2; }
  .mosaic .g-1, .mosaic .g-6 { grid-row: span 2; }

  .mentor__grid { grid-template-columns: 1fr; }
  .works__head { flex-direction: column; align-items: flex-start; }
  .works__grid { grid-template-columns: 1fr; }
  .work:first-child { aspect-ratio: 16 / 9; }

  .ticket { grid-template-columns: 1fr; }
  .ticket__stub { border-top: 2px dashed rgba(5, 5, 5, 0.22); border-left: 0; }
  .ticket__stub::before { top: -17px; left: -16px; }
  .ticket__stub::after { top: -17px; right: -16px; bottom: auto; left: auto; }
  .price__cta { flex-direction: column; align-items: flex-start; }

  .faq__list { grid-template-columns: 1fr; }
  .credits__end { flex-direction: column; }
}

/* Мобильные: герой и титры «залипают» средствами CSS, анимация идёт скраббом. */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .hero { height: 230svh; }
  .js .hero__stage { position: sticky; top: 0; }
  .credits__track.is-dolly { height: 460svh; }
  .credits__track.is-dolly .credits__stage { position: sticky; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .rec__dot { animation: none; }
  .js:not(.is-ready) [data-intro] { opacity: 1; animation: none; }
  .fact::before { transform: none; }
}
