/* Видеорулетка — ночной телеэфир.
   Сцена #101423 · янтарь ламп #ffb54d (единственный акцент) · винный бархат #2b1622 ·
   тёплый белый #f4efe6 · Unbounded / Onest / JetBrains Mono ·
   карточки r14, кнопки pill — зафиксировано. */

/* ── шрифты ── */
@font-face { font-family: 'Unbounded'; src: url('/assets/fonts/unbounded-cyr.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Unbounded'; src: url('/assets/fonts/unbounded-lat.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F; }
@font-face { font-family: 'Onest'; src: url('/assets/fonts/onest-cyr.woff2') format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; src: url('/assets/fonts/onest-lat.woff2') format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F; }
@font-face { font-family: 'JBMono'; src: url('/assets/fonts/jbmono-cyr.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'JBMono'; src: url('/assets/fonts/jbmono-lat.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F; }

:root {
  --ink: #101423;
  --ink-2: #161b2f;
  --ink-3: #1d2340;
  --velvet: #2b1622;
  --velvet-2: #3a1d2d;
  --amber: #ffb54d;
  --amber-deep: #d98f24;
  --amber-ink: #241303;
  --text: #f4efe6;
  --dim: #b7aea8;
  --dim-velvet: #d9bdc9;
  --line: rgba(255, 181, 77, .16);
  --line-soft: rgba(244, 239, 230, .1);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body-f: 'Onest', 'Segoe UI', sans-serif;
  --mono: 'JBMono', 'Consolas', monospace;
  --r-card: 14px;
  --shadow: 0 10px 34px rgba(4, 6, 14, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body-f);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--velvet-2) var(--ink); }
body::-webkit-scrollbar { width: 12px; background: var(--ink); }
body::-webkit-scrollbar-thumb { background: var(--velvet-2); border-radius: 6px; border: 3px solid var(--ink); }

a { color: var(--amber); text-decoration-color: rgba(255, 181, 77, .4); text-underline-offset: 3px; transition: color .18s, text-decoration-color .18s; }
a:hover { color: #ffcd85; text-decoration-color: currentColor; }
mark { background: rgba(255, 181, 77, .2); color: var(--text); padding: 0 .2em; border-radius: 3px; }
code { font-family: var(--mono); font-size: .88em; background: var(--ink-3); padding: .1em .4em; border-radius: 5px; }
img { max-width: 100%; height: auto; }

/* без узкого конверта: секции во всю ширину, дышат боковыми полями;
   мера — только у текста (74ch) и блоков данных, не у лейаута */
.wrap { width: 100%; padding: 0 clamp(18px, 4.5vw, 96px); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--amber-ink); padding: 10px 18px; z-index: 200; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* ── шапка-эфир ── */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 20, 35, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo__m { display: grid; place-items: center; width: 34px; height: 34px; color: var(--amber); }
.logo__m svg { width: 100%; height: 100%; animation: reel-idle 24s linear infinite; }
@keyframes reel-idle { to { transform: rotate(360deg); } }
.logo:hover .logo__m svg { animation-duration: 3s; }
.logo__t { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.logo__t span { color: var(--amber); }
.onair {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 8px;
}
.onair i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 1px 6px 1px rgba(255, 181, 77, .55); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 13px; border-radius: 999px; transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: var(--ink-3); }
.nav a[aria-current] { color: var(--amber); background: rgba(255, 181, 77, .1); }
.hdr__cta {
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  color: var(--amber-ink); background: var(--amber);
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(255, 181, 77, .3);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.hdr__cta:hover { background: #ffc670; color: var(--amber-ink); transform: translateY(-1px); box-shadow: 0 7px 22px rgba(255, 181, 77, .4); }
.hdr__cta:active { transform: translateY(0) scale(.98); }
.burger { display: none; }

.mnav { display: none; }

/* ── герой ── */
.hero { position: relative; padding: 46px 0 34px; overflow: hidden; }
.hero--front { padding: 40px 0 8px; }
.beam {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 90% at 72% 0%, rgba(255, 181, 77, .13), transparent 62%),
    radial-gradient(34% 55% at 14% 8%, rgba(255, 181, 77, .05), transparent 70%);
}
.beam::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244, 239, 230, .35) .6px, transparent .7px);
  background-size: 190px 170px;
  opacity: .12; mix-blend-mode: screen;
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(340px, 600px) minmax(0, 1fr);
  gap: clamp(44px, 4vw, 72px); align-items: center;
}
.hero__in { position: relative; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.12;
  letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance;
  max-width: 22ch;
}
h2 { max-width: 32ch; }
.hero--front h1 { font-size: clamp(30px, 3.4vw, 44px); }
.lead { font-size: 19px; line-height: 1.6; color: var(--dim); margin: 0 0 14px; max-width: 62ch; }
.hero__flip { font-size: 17px; color: var(--dim); margin: 20px 0 0; }

/* флип-табло (сплит-флап) */
.flip {
  display: inline-grid; vertical-align: baseline; min-width: var(--flipw, 12ch);
  font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--amber); perspective: 300px;
}
.flip__w {
  grid-area: 1 / 1; padding: 1px 8px; border-radius: 6px;
  background: var(--ink-3); border: 1px solid var(--line);
  box-shadow: inset 0 -9px 12px -10px rgba(0, 0, 0, .8);
  transform-origin: 50% 0;
}
.flip__w.is-flipping { animation: flipdown .38s cubic-bezier(.3, 0, .4, 1); }
@keyframes flipdown {
  0% { transform: rotateX(-88deg); opacity: .2; }
  100% { transform: rotateX(0); opacity: 1; }
}

/* сцена с виджетом */
.stage { position: relative; }
.hero__stage .stage { margin: 8px 0 26px; }
.stage__lamps, .cta__lamps, .side__lamps, .agegate__lamps {
  display: flex; justify-content: space-between; padding: 0 18px; margin-bottom: -5px;
  position: relative; z-index: 2;
}
.stage__lamps i, .cta__lamps i, .side__lamps i, .agegate__lamps i {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe3b0, var(--amber) 62%, var(--amber-deep));
  box-shadow: 0 2px 10px 1px rgba(255, 181, 77, .5);
}
.stage__lamps i:nth-child(2n), .cta__lamps i:nth-child(2n), .agegate__lamps i:nth-child(2n) { animation: lamp 2.2s ease-in-out infinite; }
.stage__lamps i:nth-child(2n+1), .cta__lamps i:nth-child(2n+1), .agegate__lamps i:nth-child(2n+1) { animation: lamp 2.2s ease-in-out -1.1s infinite; }
@keyframes lamp { 50% { opacity: .55; box-shadow: 0 2px 5px 0 rgba(255, 181, 77, .25); } }
.stage__screen {
  position: relative; min-height: 540px; border-radius: var(--r-card);
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(244, 239, 230, .06);
  overflow: hidden;
}
#app_container { position: relative; z-index: 1; min-height: 540px; }
.stage__wait {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px;
}
.stage__beam {
  width: 74px; height: 74px; border-radius: 50%;
  border: 3px solid var(--ink-3); border-top-color: var(--amber);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage__waitcap { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 0; }
.stage__note { font-size: 14px; color: var(--dim); margin: 12px 4px 0; }
.stage__note strong { color: var(--amber); }

/* ── тело ── */
.body { padding: 34px 0 64px; }
.body__in { display: grid; grid-template-columns: minmax(0, 74ch) 300px; gap: clamp(48px, 5vw, 96px); align-items: start; justify-content: flex-start; }
.body__in--wide { grid-template-columns: minmax(0, 1fr); }
.main { min-width: 0; max-width: 74ch; }
.main--front { max-width: none; }
.main--front > p, .main--front > ul, .main--front > ol, .main--front > h2, .main--front > h3, .main--front > .note, .main--front > .fine { max-width: 74ch; }
h2 {
  font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.25;
  margin: 46px 0 14px; letter-spacing: -.005em; text-wrap: balance;
}
h2:first-child { margin-top: 0; }
h3 { font-weight: 700; font-size: 19px; margin: 30px 0 10px; font-family: var(--body-f); }
p { margin: 0 0 14px; }
.ul, .ol { margin: 0 0 16px; padding-left: 24px; }
.ul li, .ol li { margin-bottom: 7px; }
.ul li::marker { color: var(--amber); }
.ol li::marker { color: var(--amber); font-weight: 700; font-family: var(--mono); }
.fine { font-size: 14.5px; color: var(--dim); }

/* таблицы */
.tbl__wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; vertical-align: top; }
.tbl thead th {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--amber); background: var(--ink-2); border-bottom: 1px solid var(--line);
}
.tbl tbody th { font-weight: 700; color: var(--text); }
.tbl tbody tr + tr { border-top: 1px solid var(--line-soft); }
.tbl td { color: var(--dim); }
.tbl td strong { color: var(--text); }
.tbl tbody tr:hover { background: rgba(255, 181, 77, .04); }

/* заметки */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: 16px 18px; margin: 20px 0;
}
.note__i, .note__t svg { width: 21px; height: 21px; color: var(--amber); flex: none; }
.note__t { display: flex; align-items: center; gap: 9px; font-weight: 700; margin: 0; grid-column: 1 / -1; }
.note__t + .note__b { grid-column: 1 / -1; }
.note__b p:last-child { margin-bottom: 0; }
.note--warn .note__i, .note--warn .note__t svg { color: #ffd23e; }
.note--shield { background: linear-gradient(180deg, rgba(43, 22, 34, .85), var(--ink-2)); }
.note__b { color: var(--dim); }
.note__b strong { color: var(--text); }

/* штампы */
.stamp {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  border: 1.5px solid currentColor; border-radius: 7px; padding: 4px 11px;
  transform: rotate(-1.6deg); margin: 4px 0 12px;
}
.stamp--live { color: #7fe08d; }
.stamp--closed { color: #ff7d6b; }
.stamp--adult, .stamp--warn { color: var(--amber); }
.stamp--ok { color: #7fe08d; }
.stamp--hero { font-size: 13.5px; }

/* шаги (LEGO: номер → стрелка → следующий) */
.route { margin: 26px 0 8px; }
.route__t { margin-top: 0; }
.steps { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); counter-reset: none; max-width: 1120px; }
.step {
  position: relative; background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 20px 20px 16px;
}
.step__n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--amber-ink); background: var(--amber); margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(255, 181, 77, .3);
}
.step__arr { position: absolute; top: 30px; right: -15px; z-index: 2; color: var(--amber); }
.step__arr svg { width: 22px; height: 22px; }
.step__t { font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.step__b p { color: var(--dim); font-size: 15px; margin-bottom: 0; }

/* расклад-афиша (bill) */
.bill {
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  margin: 20px 0; background: linear-gradient(180deg, rgba(43, 22, 34, .6), var(--ink-2) 55%);
  max-width: 1120px;
}
.bill__row { display: flex; align-items: baseline; gap: 14px; padding: 13px 20px; }
.bill__row + .bill__row { border-top: 1px dashed rgba(255, 181, 77, .22); }
.bill__t { font-weight: 600; }
.bill__t small { display: block; font-size: 13.5px; font-weight: 400; color: var(--dim-velvet); }
.bill__v {
  margin-left: auto; font-family: var(--mono); font-weight: 700; font-size: 15px;
  color: var(--amber); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* CTA */
.cta {
  position: relative; margin: 30px 0; padding: 24px 26px 22px;
  background: linear-gradient(180deg, var(--velvet), var(--velvet-2));
  border: 1px solid rgba(255, 181, 77, .25); border-radius: var(--r-card);
  box-shadow: var(--shadow);
  max-width: 1120px;
}
.cta__lamps { padding: 0 4px; margin: -29px 0 14px; }
.cta__lamps i { width: 9px; height: 9px; }
.cta__t { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.cta__b { color: var(--dim-velvet); margin: 0 0 16px; max-width: 58ch; }
.cta__go {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  color: var(--amber-ink); background: var(--amber);
  padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 5px 20px rgba(255, 181, 77, .35);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.cta__go:hover { background: #ffc670; color: var(--amber-ink); transform: translateY(-1px); }
.cta__go:active { transform: scale(.98); }
.cta__go svg { width: 18px; height: 18px; }
.pl { font-weight: 600; }

/* возрастные ворота 18+: бархатная афиша поверх затемнённого зала */
.agegate {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 22px;
  background: rgba(11, 14, 26, .88);
  animation: gate-dim .24s ease-out;
}
.agegate__box {
  position: relative; width: 100%; max-width: 430px;
  padding: 26px 28px 24px; text-align: center;
  background: linear-gradient(180deg, var(--velvet), var(--velvet-2));
  border: 1px solid rgba(255, 181, 77, .25); border-radius: var(--r-card);
  box-shadow: var(--shadow);
  animation: gate-rise .3s cubic-bezier(.16, 1, .3, 1);
}
.agegate__lamps { padding: 0 6px; margin: -31px 0 18px; }
.agegate__lamps i { width: 9px; height: 9px; }
.agegate__badge {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px;
  border: 2px solid var(--amber); border-radius: 50%;
  font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  color: var(--amber);
}
.agegate__t { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.25; margin: 0 0 8px; }
.agegate__b { color: var(--dim-velvet); font-size: 16px; line-height: 1.55; margin: 0 auto 18px; max-width: 36ch; }
.agegate__yes {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body-f); font-weight: 700; font-size: 16px; cursor: pointer;
  color: var(--amber-ink); background: var(--amber); border: 0;
  padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 5px 20px rgba(255, 181, 77, .35);
  transition: background .15s, transform .15s;
}
.agegate__yes:hover { background: #ffc670; transform: translateY(-1px); }
.agegate__yes:active { transform: scale(.98); }
.agegate__no { display: block; margin-top: 14px; font-size: 13.5px; color: var(--dim-velvet); }
.agegate__no:hover { color: var(--text); }
.agegate-open { overflow: hidden; }
@keyframes gate-dim { from { opacity: 0; } }
@keyframes gate-rise { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* каталог сервисов */
.cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0; max-width: 1120px; }
.cat__i {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: 18px 20px 15px; color: var(--text);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.cat__i:hover { transform: translateY(-2px); border-color: var(--line); box-shadow: var(--shadow); color: var(--text); }
.cat__n { font-family: var(--display); font-weight: 700; font-size: 17px; }
.cat__i .stamp { margin: 2px 0 4px; align-self: flex-start; font-size: 11px; }
.cat__d { color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.cat__go { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; color: var(--amber); font-weight: 600; font-size: 14.5px; }
.cat__go svg { width: 16px; height: 16px; transition: transform .16s; }
.cat__i:hover .cat__go svg { transform: translateX(3px); }

/* сайдбар */
.side { position: sticky; top: 88px; display: grid; gap: 20px; }
.toc { background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 16px 18px; }
.toc__t { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: 7px; }
.toc a { color: var(--dim); text-decoration: none; font-size: 14.5px; display: block; border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--amber); border-color: var(--amber); }
.side__box {
  position: relative; background: linear-gradient(180deg, var(--velvet), var(--velvet-2));
  border: 1px solid rgba(255, 181, 77, .25); border-radius: var(--r-card); padding: 18px 20px;
}
.side__lamps { padding: 0 2px; margin: -23px 0 12px; }
.side__lamps i { width: 8px; height: 8px; }
.side__t { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.side__fine { font-size: 14px; color: var(--dim-velvet); margin: 0 0 12px; }
.side__go {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px;
  color: var(--amber-ink); background: var(--amber); text-decoration: none;
  padding: 9px 16px; border-radius: 999px; transition: background .15s, transform .15s;
}
.side__go:hover { background: #ffc670; color: var(--amber-ink); transform: translateY(-1px); }
.side__go svg { width: 15px; height: 15px; }
.mtoc { display: none; }

/* related */
.rel { margin-top: 44px; }
.rel__t { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); margin: 0 0 12px; }
.rel__g { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rel__g a {
  display: block; text-decoration: none; background: var(--ink-2);
  border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 14px 16px;
  transition: border-color .16s, transform .16s;
}
.rel__g a:hover { border-color: var(--line); transform: translateY(-2px); }
.rel__n { display: block; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rel__d { display: block; font-size: 13.5px; color: var(--dim); line-height: 1.5; }

/* крошки */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 14px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs span[aria-current] { color: var(--text); }
.crumbs__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); opacity: .6; }

/* FAQ */
h3.q { position: relative; padding-left: 26px; }
h3.q::before { content: ''; position: absolute; left: 0; top: .34em; width: 14px; height: 14px; border: 2.5px solid var(--amber); border-radius: 50%; }

/* 404 */
.hero--404 { text-align: center; padding: 84px 0 30px; }
.hero--404 .hero__txt { max-width: 640px; margin: 0 auto; }
.e404 {
  font-family: var(--display); font-weight: 900; font-size: clamp(84px, 15vw, 168px);
  line-height: 1; margin: 0 0 8px; color: var(--ink-3); letter-spacing: .02em;
}
.e404__reel { color: var(--amber); display: inline-block; animation: reel-idle 7s linear infinite; }
.hero--404 .main { margin: 0 auto; text-align: center; }

/* подвал */
.ftr { border-top: 1px solid var(--line); background: #0b0e1a; margin-top: 30px; }
.ftr__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 40px 22px 44px; }
.ftr__h { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 0 0 12px; }
.ftr__c a { display: block; color: var(--dim); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.ftr__c a:hover { color: var(--amber); }
.ftr__note { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.ftr__note p { font-size: 13.5px; color: var(--dim); margin: 0 0 8px; max-width: 100ch; }
.age18 {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--amber); color: var(--amber); font-weight: 800; font-size: 12.5px;
  margin-right: 8px; vertical-align: middle; float: left; margin-top: 2px;
}

/* ── адаптив ── */
@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero--front { padding-top: 30px; }
  .hero--front h1 { font-size: clamp(26px, 5.4vw, 38px); }
  .body__in { grid-template-columns: 1fr; }
  .side { position: static; }
  .toc { display: none; }
  .mtoc { display: block; background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 12px 16px; margin-bottom: 20px; }
  .mtoc summary { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); cursor: pointer; }
  .mtoc ul { list-style: none; margin: 10px 0 0; padding: 0; }
  .mtoc li + li { margin-top: 7px; }
  .mtoc a { color: var(--amber); text-decoration: none; font-size: 14.5px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hdr__cta { margin-left: auto; padding: 9px 15px; font-size: 14px; }
  .hdr__in { gap: 12px; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mnav.is-open { display: block; position: sticky; top: 68px; z-index: 49; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 10px 22px 16px; }
  .mnav a { display: block; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 600; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
  .mnav a:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .step__arr { display: none; }
  .cat { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .stage__screen, #app_container { min-height: 480px; }
  /* сцена в край: боковые поля и рамка съедали у виджета 34px, его нижний ряд
     кнопок упирался в раму — отдаём эфиру всю ширину экрана */
  .stage, .hero__stage .stage { margin-left: -16px; margin-right: -16px; }
  .stage__screen { border-radius: 0; border-left: 0; border-right: 0; }
  .agegate__box { padding: 22px 18px 20px; }
  .onair { display: none; }
  .hdr__cta { padding: 8px 11px; font-size: 13.5px; }
  .logo { gap: 7px; }
  .logo__m { width: 28px; height: 28px; }
  .logo__t { font-size: 13.5px; letter-spacing: 0; white-space: nowrap; }
}
@media (max-width: 340px) {
  .hdr__in { gap: 8px; }
  .logo__m { width: 24px; height: 24px; }
  .logo__t { font-size: 12px; }
  .hdr__cta { padding: 7px 9px; font-size: 12.5px; }
  .lead { font-size: 17px; }
  .bill__row { flex-direction: column; gap: 2px; }
  .bill__v { margin-left: 0; }
  .ftr__in { grid-template-columns: 1fr; }
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo__m svg, .e404__reel { animation: none; }
  .onair i, .stage__lamps i, .cta__lamps i, .side__lamps i, .agegate__lamps i { animation: none; }
  .agegate, .agegate__box { animation: none; }
  .flip__w.is-flipping { animation: none; }
  .stage__beam { animation-duration: 2.4s; }
  .cat__i:hover, .rel__g a:hover, .cta__go:hover, .hdr__cta:hover, .side__go:hover { transform: none; }
}

@media print {
  .hdr, .ftr, .side, .cta, .stage, .mnav, .agegate { display: none; }
  body { background: #fff; color: #111; }
}
