:root {
  --bg: #000;
  --bg-soft: #0a0a0b;
  --surface: #121214;
  --text: #f5f5f2;
  --meta: #a3a3a0;
  --accent: #c23b3b;
  --line: rgba(245, 245, 242, 0.12);
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: rgba(18,18,20,.55);
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .topbar .site-nav { display: none; }
  .topbar.is-open .site-nav {
    display: flex;
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(10,10,11,.94);
    border: 1px solid var(--line);
  }
  .topbar.is-open .site-nav .ghost-link { padding: 10px 8px; font-size: 0.82rem; }
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand span { color: var(--meta); font-family: var(--font-ui); font-size: 0.72rem; margin-left: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; }
@media (max-width: 720px) {
  .site-nav .ghost-link { font-size: 0.68rem; }
}
.ghost-link {
  font-size: 0.78rem;
  color: var(--meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ghost-link:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(18,18,20,.55);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: border-color .25s, background .25s;
}
.btn:hover { border-color: rgba(245,245,242,.35); background: rgba(18,18,20,.85); }
.btn-accent { border-color: rgba(194,59,59,.55); background: rgba(194,59,59,.18); }
.btn-accent:hover { background: rgba(194,59,59,.32); }

/* Theater sound — заметная иконка с цветным фоном */
.btn-sound {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #c23b3b;
  color: #fff;
  box-shadow: 0 6px 20px rgba(194, 59, 59, 0.45);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-sound:hover {
  background: #d44848;
  border-color: transparent;
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(194, 59, 59, 0.55);
}
.btn-sound.is-on {
  background: #2f9e5a;
  box-shadow: 0 6px 20px rgba(47, 158, 90, 0.45);
}
.btn-sound.is-on:hover {
  background: #38b068;
  box-shadow: 0 8px 24px rgba(47, 158, 90, 0.55);
}
.btn-sound svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.btn-sound .icon-sound-on { display: none; }
.btn-sound .icon-sound-off { display: block; }
.btn-sound.is-on .icon-sound-on { display: block; }
.btn-sound.is-on .icon-sound-off { display: none; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: #000;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .88;
  transform: scale(1.02);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.45) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px 72px;
  max-width: 720px;
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero-copy p {
  margin: 14px 0 0;
  color: var(--meta);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2;
  transform: translateX(-50%);
  width: 22px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: .7;
}
.scroll-cue::after {
  content: "";
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: .2; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

.section { padding: 56px 28px 80px; max-width: 1280px; margin: 0 auto; }
.section-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: end; justify-content: space-between;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}
.section-head p { margin: 6px 0 0; color: var(--meta); font-size: 0.9rem; }

.tabs {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-bottom: 22px;
}
.tab {
  color: var(--meta);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.tab.is-active, .tab:hover {
  color: var(--text);
  border-bottom-color: rgba(245,245,242,.45);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-dense { grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 980px) {
  .grid, .grid-dense { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid, .grid-dense { grid-template-columns: 1fr; }
  .topbar { padding: 14px 16px; }
  .section { padding: 40px 16px 64px; }
}

.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  isolation: isolate;
}
.tile.is-vertical { aspect-ratio: 9 / 16; max-height: 420px; margin-inline: auto; width: 100%; }
.tile img, .tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .35s;
}
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent 55%);
  opacity: .75;
  transition: opacity .3s;
  pointer-events: none;
}
.tile:hover .tile-shade { opacity: .35; }
.tile-meta {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: end; justify-content: space-between; gap: 8px;
  z-index: 2;
}
.tile-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.1;
}
.tile-meta small { display: block; color: var(--meta); font-size: 0.72rem; margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(245,245,242,.75);
  border: 1px solid var(--line);
  padding: 3px 6px;
  background: rgba(0,0,0,.35);
}
.tile-save {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .25s, border-color .25s, background .25s;
}
.tile:hover .tile-save, .tile-save.is-on { opacity: 1; }
.tile-save.is-on { border-color: rgba(194,59,59,.7); background: rgba(194,59,59,.25); }
.tile-save svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tile-save.is-on svg { fill: var(--accent); stroke: var(--accent); }

.rail-9x16 {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 200px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.rail-9x16 .tile { scroll-snap-align: start; }

.shortlist {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: min(340px, calc(100vw - 24px));
  background: rgba(12,12,14,.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 14px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.shortlist.is-open { opacity: 1; transform: none; pointer-events: auto; }
.shortlist h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
}
.shortlist ul { list-style: none; margin: 0 0 12px; padding: 0; }
.shortlist li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.shortlist .empty { color: var(--meta); font-size: 0.82rem; margin-bottom: 10px; }
.shortlist-actions { display: flex; gap: 8px; }

.theater {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.94);
  display: none;
  flex-direction: column;
}
.theater.is-open { display: flex; }
.theater-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.theater-bar h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
}
.theater-bar p { margin: 2px 0 0; color: var(--meta); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.theater-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 12px;
  min-height: 0;
}
.theater-stage video {
  width: min(1120px, 100%);
  max-height: calc(100dvh - 180px);
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.theater-stage.is-vertical video { aspect-ratio: 9 / 16; max-width: min(420px, 100%); }
.theater-foot {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}
.theater-foot .hint { color: var(--meta); font-size: 0.78rem; }
.chapters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.chapter-chip {
  font-size: 0.75rem;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--meta);
}
.chapter-chip.is-active, .chapter-chip:hover {
  color: var(--text);
  border-color: rgba(245,245,242,.4);
}

.featured-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .featured-rail { grid-template-columns: repeat(2, 1fr); }
}

.case-page { display: none; }
.case-page.is-open { display: block; }
.hub-view.is-hidden { display: none; }

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.outcome {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.outcome strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}
.bts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.bts img { aspect-ratio: 4/3; object-fit: cover; opacity: .85; }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.chip {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 11px;
  border: 1px solid var(--line);
  color: var(--meta);
}
.chip.is-active, .chip:hover {
  color: var(--text);
  border-color: rgba(245,245,242,.4);
}
.search {
  width: min(280px, 100%);
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(18,18,20,.6);
  color: var(--text);
  outline: none;
}
.search::placeholder { color: var(--meta); }

.logo-wall {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 8px 0 24px;
}
.logo-pill {
  font-size: 0.78rem;
  color: var(--meta);
  border: 1px solid var(--line);
  padding: 8px 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-pill.is-active { color: var(--text); border-color: rgba(245,245,242,.45); }

.footer-cta {
  text-align: center;
  padding: 72px 24px 96px;
  border-top: 1px solid var(--line);
}
.footer-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
}
.footer-cta p { color: var(--meta); margin: 10px 0 22px; }

.note-banner { display: none !important; }

/* v2 presentability */
.tile { aspect-ratio: auto; display: flex; flex-direction: column; background: transparent; }
.tile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.tile:hover .tile-media img { transform: scale(1.03); }

.filmstrip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: 4px;
}
.filmstrip-compact .frame { opacity: .55; }
.tile:hover .filmstrip-compact .frame { opacity: .85; }
.frame {
  aspect-ratio: 16 / 9;
  background: #111 center/cover no-repeat;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity .25s, outline-color .2s;
  outline: 1px solid transparent;
}
.frame:hover, .frame.is-active {
  opacity: 1 !important;
  outline-color: rgba(245,245,242,.35);
}

.stamp {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,245,242,.85);
  border: 1px solid rgba(245,245,242,.28);
  padding: 4px 7px;
  background: rgba(0,0,0,.35);
}
.pin-badge {
  position: absolute; left: 10px; bottom: 48px; z-index: 3;
  font-size: .7rem;
  color: rgba(245,245,242,.9);
  background: rgba(0,0,0,.45);
  border-left: 1px solid rgba(245,245,242,.4);
  padding: 4px 8px;
  max-width: 70%;
}
.pin-badge i {
  font-family: var(--font-mono);
  font-style: normal;
  opacity: .7;
  margin-right: 6px;
}

.accent-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0 36px;
}
.accent-pin {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  padding: 8px;
  background: rgba(18,18,20,.4);
  transition: border-color .25s, background .25s;
}
.accent-pin:hover { border-color: rgba(245,245,242,.35); background: rgba(18,18,20,.75); }
.accent-still {
  aspect-ratio: 16/9;
  background: #111 center/cover no-repeat;
}
.accent-meta {
  display: flex; flex-direction: column; gap: 2px;
  font-size: .78rem; color: var(--meta); line-height: 1.25;
}
.accent-meta i { font-family: var(--font-mono); font-style: normal; font-size: .68rem; }
.accent-meta b { color: var(--text); font-weight: 500; font-family: var(--font-display); font-size: 1rem; }

.credit-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 0 0 8px;
  color: var(--meta);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.credit-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 28s linear infinite;
}
@keyframes ticker {
  to { transform: translateX(-100%); }
}

.quote-rule {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 1px solid rgba(245,245,242,.35);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: rgba(245,245,242,.88);
  max-width: 28ch;
}

#theater-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(560px, 100%);
  margin-top: 8px;
}
.theater.is-open { animation: theaterIn .45s cubic-bezier(.22,1,.36,1); }
@keyframes theaterIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.theater-stage {
  position: relative;
}
.theater-stage::before,
.theater-stage::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 4vh;
  background: #000;
  z-index: 2;
  pointer-events: none;
}
.theater-stage::before { top: 0; }
.theater-stage::after { bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .scroll-cue::after { display: none; }
  .credit-ticker span { padding-left: 0; transform: none; }
}

/* ——— Chapters (B) editorial ——— */
[data-variant="b"] .hero.hero-chapters {
  min-height: auto;
  place-items: stretch;
  padding: 88px 6vw 56px;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(194, 59, 59, 0.08), transparent 45%),
    #050505;
}
[data-variant="b"] .hero.hero-chapters .hero-media {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transform: none;
  background: #000;
}
.hero-chapters-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-chapters-inner { grid-template-columns: 1fr; }
  [data-variant="b"] .hero.hero-chapters { padding-top: 80px; }
}
[data-variant="b"] .hero-copy {
  text-align: left;
  padding: 0;
  max-width: 38ch;
  position: relative;
  z-index: 2;
}
[data-variant="b"] .hero-copy h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  line-height: 0.98;
  margin: 0 0 18px;
}
[data-variant="b"] .hero-lead {
  margin: 0 0 22px;
  color: rgba(245, 245, 242, 0.86);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  letter-spacing: 0;
  max-width: 36ch;
}
.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.hero-points li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.55);
  color: rgba(245, 245, 242, 0.78);
  font-size: 0.92rem;
  line-height: 1.4;
}
.hero-points strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}
.hero-frame {
  position: relative;
  display: block;
  width: min(100%, 720px);
  padding: 0;
  aspect-ratio: 16 / 9;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  text-align: left;
}
.hero-frame .hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: contrast(1.08) saturate(1.05) brightness(1.03);
}
.hero-playcue {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(194, 59, 59, 0.9);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.hero-frame:hover .hero-playcue,
.hero-frame:focus-visible .hero-playcue { opacity: 1; }
.hero-frame:focus-visible {
  outline: 1px solid rgba(245, 245, 242, 0.45);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .hero-frame {
    width: min(100%, 560px);
    margin: 0 auto;
  }
}
.hero-kicker {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.62);
}

/* Case / theater: mid size, contain, respect vertical aspect */
[data-variant="b"] .case-watch {
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  justify-content: start;
}
[data-variant="b"] .case-watch-stage {
  width: 100%;
  max-width: 760px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
[data-variant="b"] .case-watch-stage video {
  width: 100%;
  max-width: 760px;
  max-height: min(48vh, 420px);
  object-fit: contain;
  background: #000;
}
[data-variant="b"] .case-watch-stage.is-vertical {
  max-width: 340px;
}
[data-variant="b"] .case-watch-stage.is-vertical video {
  max-width: 320px;
  max-height: min(62vh, 560px);
  aspect-ratio: 9 / 16;
}
[data-variant="b"] .theater-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}
[data-variant="b"] .theater-stage video {
  width: min(860px, 92vw) !important;
  max-height: min(58vh, 480px);
  height: auto !important;
  object-fit: contain;
  background: #000;
}
[data-variant="b"] .theater-stage.is-vertical video {
  width: min(360px, 70vw) !important;
  max-height: min(70vh, 640px);
}
[data-variant="b"] .theater-stage::before,
[data-variant="b"] .theater-stage::after {
  display: none;
}

[data-variant="b"] .section {
  max-width: 1320px;
}
/* Сетки по форматам: ширина блока = природе кадра */
.story-rail {
  display: grid;
  gap: 14px;
  align-items: start;
}
.story-rail-9x16 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 1200px) {
  .story-rail-9x16 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .story-rail-9x16 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.story-rail-16x9 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 820px) {
  .story-rail-16x9 { grid-template-columns: 1fr; }
}
.story-rail-1x1 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .story-rail-1x1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.story-rail-other {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.format-section[hidden] { display: none !important; }
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1320px;
  margin: 8px auto 0;
  padding: 0 28px;
}
.case-filter {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--meta);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-filter.is-on,
.case-filter:hover {
  border-color: rgba(245, 245, 242, 0.35);
  color: var(--text);
}
.story-rail:not(.is-expanded) .story-card.is-extra { display: none !important; }
.story-more-btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.45);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.story-more-btn:hover { border-color: rgba(245, 245, 242, 0.35); }

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.45);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.story-card:hover {
  border-color: rgba(245, 245, 242, 0.35);
  transform: translateY(-2px);
}

/* Lead 16:9 — отдельная полоса */
.story-card.is-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  grid-template-areas:
    "preview body"
    "strip strip";
  gap: 0;
}
.story-card.is-lead .story-card-preview { grid-area: preview; }
.story-card.is-lead .story-card-strip { grid-area: strip; }
.story-card.is-lead .story-card-body {
  grid-area: body;
  justify-content: center;
  padding: 28px 32px;
}
@media (max-width: 820px) {
  .story-card.is-lead {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "strip"
      "body";
  }
  .story-card.is-lead .story-card-body { padding: 18px 20px 20px; }
}

.story-card-preview {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

/* Вертикальная карточка = телефонный кадр целиком, без «квадратного колодца» */
.story-card.is-vertical {
  aspect-ratio: 9 / 16;
  max-height: none;
  background: #000;
}
.story-card.is-vertical .story-card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
}
.story-card.is-vertical .story-card-preview video,
.story-card.is-vertical .story-card-still {
  object-fit: cover;
}
.story-card.is-vertical .story-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 56px 12px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  pointer-events: none;
}
.story-card.is-vertical .story-card-body h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin: 0 0 4px;
}
.story-card.is-vertical .story-card-atm {
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card.is-vertical .story-card-dur {
  bottom: auto;
  top: 10px;
  right: 10px;
}
.story-card.is-vertical .story-card-playcue {
  bottom: auto;
  top: 10px;
  left: 10px;
}
.story-card.is-vertical .story-card-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  z-index: 5;
  margin: 0;
  border: 0;
  background: transparent;
  backdrop-filter: blur(6px);
}
.story-card.is-vertical:hover .story-card-strip,
.story-card.is-vertical:focus-within .story-card-strip {
  background: rgba(0, 0, 0, 0.45);
  border-top: 0;
}

/* 16:9 — тот же концепт карточки, рамка = полный кадр без crop */
.story-card.is-wide {
  aspect-ratio: auto;
  background: rgba(18, 18, 20, 0.45);
}
.story-card.is-wide .story-card-preview {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  background: #000;
}
.story-card.is-wide .story-card-preview video,
.story-card.is-wide .story-card-still {
  object-fit: contain;
}
.story-card.is-wide .story-card-body {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  padding: 14px 16px 16px;
  background: transparent;
  pointer-events: none;
}
.story-card.is-wide .story-card-strip {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  border-top: 1px solid var(--line);
}
.story-card.is-wide .story-card-strip .frame {
  aspect-ratio: 16 / 9;
}
.story-card.is-wide .story-card-dur {
  top: auto;
  bottom: 10px;
  right: 10px;
}
.story-card.is-wide .story-card-playcue {
  top: auto;
  bottom: 10px;
  left: 10px;
}

/* 1:1 */
.story-card.is-square {
  aspect-ratio: auto;
}
.story-card.is-square .story-card-preview {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
}
.story-card.is-square .story-card-preview video,
.story-card.is-square .story-card-still {
  object-fit: contain;
}
.story-card.is-square .story-card-body {
  position: relative;
  padding: 14px 16px 16px;
  background: transparent;
  pointer-events: none;
}
.story-card.is-square .story-card-strip {
  position: relative;
  bottom: auto;
}
.story-card.is-square .story-card-strip .frame { aspect-ratio: 1 / 1; }
.story-card.is-square .story-card-dur { top: auto; bottom: 10px; }
.story-card.is-square .story-card-playcue { top: auto; bottom: 10px; }

/* other — произвольное соотношение через --card-ar */
.story-card.is-other {
  aspect-ratio: auto;
}
.story-card.is-other .story-card-preview {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: var(--card-ar, 1);
  background: #000;
}
.story-card.is-other .story-card-preview video,
.story-card.is-other .story-card-still {
  object-fit: contain;
}
.story-card.is-other .story-card-body {
  position: relative;
  padding: 14px 16px 16px;
  background: transparent;
  pointer-events: none;
}
.story-card.is-other .story-card-strip { position: relative; bottom: auto; }

.story-card-preview video,
.story-card-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}
.story-card-still {
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s;
}
.story-card-preview video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}
.story-card.is-preview-on:not(.is-scrubbing) .story-card-still { opacity: 0; }
.story-card.is-preview-on:not(.is-scrubbing) .story-card-preview video { opacity: 1; }
.story-card.is-scrubbing .story-card-still { opacity: 1; }
.story-card.is-scrubbing .story-card-preview video { opacity: 0; }
.story-card-preview .pin-badge { z-index: 3; left: 12px; top: 12px; }
.story-card-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
}
.story-card-playcue {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(194, 59, 59, 0.9);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.story-card:hover .story-card-playcue { opacity: 1; }

/* Clean mute preview: hide chrome that sits on the picture */
.story-card.is-preview-on .story-card-body {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.story-card.is-preview-on .story-card-playcue,
.story-card.is-preview-on .pin-badge {
  opacity: 0 !important;
  pointer-events: none;
}
.story-card.is-preview-on .story-card-dur {
  opacity: 0.55;
}
.story-card.is-preview-on .story-card-strip {
  opacity: 0 !important;
  max-height: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
}
.story-card-strip {
  margin: 0;
  padding: 0 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 0 solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
}
.story-card:hover .story-card-strip,
.story-card:focus-within .story-card-strip {
  max-height: 64px;
  opacity: 1;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
}
.story-card-strip .frame {
  min-height: 36px;
  aspect-ratio: 9 / 16;
  background-size: cover;
  background-position: center;
}
.story-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
}
.story-card-meta {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}
.story-card-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
  margin: 0 0 8px;
}
.story-card-atm {
  margin: 0;
  color: var(--meta);
  font-size: 0.88rem;
  line-height: 1.4;
  flex: 1;
}
.story-card-atm.is-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(245, 245, 242, 0.88);
}
.story-card.is-lead .story-card-body h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* B theater: respect format, mid-large */
[data-variant="b"] .theater-stage video {
  width: min(920px, 94vw) !important;
  max-height: min(62vh, 520px);
}
[data-variant="b"] .theater-stage.is-vertical video {
  width: min(380px, 78vw) !important;
  max-height: min(72vh, 680px);
}

.credo-wrap { padding-top: 8px; padding-bottom: 8px; }
.credo {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(194, 59, 59, 0.12), rgba(18, 18, 20, 0.55) 42%, rgba(18, 18, 20, 0.35));
  padding: clamp(28px, 4vw, 48px);
  max-width: 980px;
}
.credo-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.62);
}
.credo h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  max-width: 18ch;
}
.credo-lead {
  margin: 0 0 16px;
  color: rgba(245, 245, 242, 0.82);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 62ch;
}
.credo-punch {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
  color: var(--text);
  max-width: 40ch;
}
.credo-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.credo-points li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(245, 245, 242, 0.8);
  font-size: 0.92rem;
  line-height: 1.4;
}
.credo-points strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}
@media (min-width: 800px) {
  .credo-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.archive-wrap { padding-top: 8px; }
.catalog-wrap { padding-top: 12px; }
.catalog-wrap .tabs { margin: 4px 0 18px; }
[data-variant="b"] .grid-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 1200px) {
  [data-variant="b"] .grid-catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 820px) {
  [data-variant="b"] .grid-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
[data-variant="b"] .tile-quiet {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: none;
  overflow: hidden;
}
[data-variant="b"] .tile-quiet .tile-media {
  aspect-ratio: auto;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  background: #000;
}
[data-variant="b"] .tile-quiet .tile-media img {
  object-fit: cover;
  transform: none !important;
}
[data-variant="b"] .tile-quiet .tile-meta h3 {
  font-size: 0.95rem;
}
[data-variant="b"] .tile-quiet .tile-save {
  width: 32px;
  height: 32px;
}
.archive-block {
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.35);
  padding: 8px 18px 18px;
}
.archive-block summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.archive-block summary::-webkit-details-marker { display: none; }
.archive-block summary i {
  font-style: normal;
  color: var(--accent, #c23b3b);
}
.archive-hint {
  font-family: var(--font-body, inherit);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--meta);
}

/* Case story page */
.case-page.is-open {
  min-height: 100vh;
  background: #050505;
}
.case-story-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 6vw;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.case-story-hero {
  position: relative;
  min-height: min(72vh, 720px);
  display: grid;
  place-items: end start;
  overflow: hidden;
}
.case-story-still {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.case-story-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.15), rgba(5, 5, 5, 0.2) 40%, rgba(5, 5, 5, 0.92));
}
.case-story-hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 6vw 8vh;
  max-width: 720px;
}
.case-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.62);
}
.case-story-hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.98;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.case-atmosphere {
  margin: 0 0 18px;
  font-size: 1.12rem;
  max-width: 36ch;
  color: rgba(245, 245, 242, 0.88);
}
.case-quote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  max-width: 28ch;
  color: rgba(245, 245, 242, 0.92);
}
.case-story-body { padding-top: 40px; }
.case-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
@media (max-width: 800px) {
  .case-blocks { grid-template-columns: 1fr; }
}
.case-block {
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  background: rgba(18, 18, 20, 0.4);
}
.case-block > span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 8px;
}
.case-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 10px;
  line-height: 1.15;
}
.case-block p {
  margin: 0;
  color: var(--meta);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 42ch;
}
.case-keybeat {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 40px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(194, 59, 59, 0.08), transparent 55%);
}
@media (max-width: 720px) {
  .case-keybeat { grid-template-columns: 1fr; }
}
.case-keybeat-still {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.case-keybeat h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 8px;
}
.case-keybeat p { color: var(--meta); margin: 0 0 14px; max-width: 46ch; }

.case-watch {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
  margin-bottom: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .case-watch { grid-template-columns: 1fr; }
}
.case-watch-stage {
  border: 1px solid var(--line);
  background: #000;
}
.case-watch-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}
.case-watch-side h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 14px;
}
.case-filmstrip { margin: 14px 0 8px; }
.case-similar-head {
  margin-bottom: 16px;
}
.case-similar-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 6px;
}
.case-similar-head p {
  margin: 0;
  color: var(--meta);
  font-size: 0.9rem;
}
.case-similar.featured-rail,
.case-similar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .case-similar { grid-template-columns: 1fr; }
}
.case-similar .story-card {
  grid-template-columns: 1fr;
  min-height: 0;
}
.case-similar .story-card-media { min-height: 140px; }
