:root {
  --bg: #0E1322;        /* тёмная монтажная */
  --night: #0A0F1C;
  --panel: #161D31;
  --ink: #E9ECF2;       /* текст */
  --ink-2: #1F2840;
  --slate: #9AA3B6;
  --line: #273049;
  --tally: #E0352B;     /* лампа «идёт запись» — только рендер и бренд */
  --ok: #3FB173;
  --warn: #E0A23A;
  --radius-s: 6px;
  --radius-m: 10px;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2.25rem;
  --side: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.5 var(--text); }
body.booting .shell { visibility: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #7FA3FF; outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--panel); padding: 8px 12px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--night) var(--side), var(--bg) var(--side)); }
.shell > * { min-width: 0; }
.side { background: var(--night); border-right: 1px solid var(--line); color: #DCE2EA; padding: 24px 18px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--tally) 0 34%, transparent 36%), #263049; box-shadow: inset 0 0 0 2px #3A4664; }
.brand-name { font: 700 0.95rem/1.1 var(--display); color: #fff; }
.brand-name span { display: block; }
.nav-toggle { display: none; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 9px 12px; border-radius: var(--radius-s); color: #C9D1DC; }
nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
nav a:hover { background: var(--ink-2); color: #fff; }
nav a[aria-current="page"] { background: var(--ink-2); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--tally); }
.nav-soon { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.nav-soon p { margin: 0 0 4px 12px; color: #8592A6; font-size: var(--step--1); }
.nav-soon span { padding: 5px 12px 5px 44px; color: #69768B; font-size: 0.9375rem; }
.who { margin-top: auto; font-size: var(--step--1); color: #C9D1DC; display: flex; flex-direction: column; gap: 6px; }
.who b { color: #fff; font-weight: 500; word-break: break-all; }
.who button { align-self: flex-start; background: transparent; border: 1px solid #3A4664; color: #C9D1DC; border-radius: var(--radius-s); padding: 4px 10px; cursor: pointer; }
.who button:hover { color: #fff; border-color: #6A7792; }
.gpu { font-size: var(--step--1); color: #AEB8C6; display: flex; gap: 8px; align-items: flex-start; }
.gpu::before { content: ""; flex: none; margin-top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #69768B; }
.gpu.on::before { background: var(--ok); }
.gpu.off::before { background: var(--warn); }
.gpu.idle::before { background: #8592A6; }
.gpu.warm::before { background: var(--tally); animation: pulse 1.2s ease-in-out infinite; }

.stage { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { display: flex; justify-content: flex-end; padding: 16px clamp(20px, 4vw, 56px) 0; }
.langs { display: inline-flex; background: var(--panel); border-radius: 99px; padding: 3px; gap: 2px; }
.langs button { border: 0; background: transparent; padding: 5px 12px; border-radius: 99px; cursor: pointer; font-size: var(--step--1); font-weight: 600; color: var(--slate); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
main { padding: 12px clamp(20px, 4vw, 56px) 80px; max-width: 1180px; width: 100%; min-width: 0; }
main:focus { outline: none; }

/* ---------- типографика ---------- */
h1 { font: 700 var(--step-3)/1.1 var(--display); margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font: 500 var(--step-1)/1.25 var(--display); margin: 0 0 14px; }
h3 { font: 600 var(--step-0)/1.3 var(--text); margin: 0 0 6px; }
.lead { color: var(--slate); max-width: 62ch; margin: 0 0 28px; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }
.warn { color: var(--warn); }
.mt { margin-top: 28px; }
.m0 { margin: 0; }
.right { text-align: right; }
.big { font: 500 var(--step-2)/1 var(--display); }
.crumbs { margin: 0 0 6px; }

/* ---------- блоки и формы ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
label, .label { display: block; font-weight: 500; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--slate); font-size: var(--step--1); margin-top: 2px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #0F1527; }
input:disabled { background: #141A2C; color: var(--slate); }
textarea { min-height: 220px; resize: vertical; line-height: 1.55; }
textarea.short { min-height: 110px; }
input.code { font: 600 1.5rem/1 var(--display); letter-spacing: .35em; text-align: center; }
input[type=range] { width: 100%; accent-color: var(--ink); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: var(--radius-s); cursor: pointer; text-decoration: none; font-weight: 500; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #3A4560; }
.btn.ghost:hover { background: var(--ink-2); }
.btn.wide { width: 100%; padding: 12px 18px; }
.small-btn { padding: 7px 14px; font-size: 0.9375rem; margin: 0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.9375rem; }
.note { margin: 0; padding: 10px 12px; border-radius: var(--radius-s); background: #2A2415; border: 1px solid #5A4A22; color: #F1DDB0; font-size: var(--step--1); }

/* ---------- экран входа: форма слева, стена роликов справа ---------- */
body.anon .side { display: none; }
body.anon .shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
body.anon .topbar { position: absolute; right: 0; top: 0; z-index: 5; }
body.anon main { max-width: none; padding: 0; }
.auth { display: grid; grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); min-height: 100vh; }
.auth-side { padding: 56px clamp(24px, 4vw, 64px) 40px; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.land-h { font: 700 clamp(2rem, 3.4vw, 3.1rem)/1.04 var(--display); letter-spacing: -0.02em; margin: 0 0 14px; max-width: 13ch; }
.land-p { color: var(--slate); margin: 0 0 6px; max-width: 44ch; font-size: 1.0625rem; }
.land-note { margin: 0 0 26px; font: 600 1rem/1.3 var(--text); color: var(--tally); transform: rotate(-1.5deg); transform-origin: left; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.auth-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: var(--radius-s); margin: 16px 0; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 4px; cursor: pointer; font-weight: 500; color: var(--slate); }
.tabs button[aria-selected="true"] { background: var(--ink-2); color: var(--ink); box-shadow: 0 1px 2px rgba(23,32,51,.12); }
.legal { margin: 16px 0 0; font-size: 0.75rem; color: var(--slate); line-height: 1.45; }

/* стена: три колонки вертикальных роликов, медленно едут навстречу друг другу */
.wall { position: relative; background: var(--night); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  padding: 0 28px; height: 100vh; position: sticky; top: 0; overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 9%, #000 91%, transparent); mask: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
.col { min-width: 0; }
.track { display: flex; flex-direction: column; gap: 38px; padding-top: 30px; animation: drift 70s linear infinite; }
.c1 .track { animation-direction: reverse; animation-duration: 82s; padding-top: 0; }
.c2 .track { animation-duration: 76s; padding-top: 120px; }
.wall:hover .track { animation-play-state: paused; }
@keyframes drift { to { transform: translateY(-50%); } }
.tile { margin: 0; position: relative; cursor: pointer; }
.tile video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; border-radius: 12px; background: #263049; }
.tile .chip { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 99px; font-size: 0.75rem;
  background: rgba(23,32,51,.72); color: #fff; backdrop-filter: blur(4px); }
.snd { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(23,32,51,.72); display: grid; place-items: center; }
.snd[hidden] { display: none; }
.snd i { width: 14px; height: 14px; background: #fff; clip-path: polygon(0 35%, 30% 35%, 70% 0, 70% 100%, 30% 65%, 0 65%); }
.tile.loud .snd { background: var(--tally); }
.tile.loud video { outline: 3px solid var(--tally); outline-offset: 3px; }
.wall.strip { position: relative; height: auto; display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 24px 20px 30px; gap: 16px;
  border-radius: var(--radius-m); -webkit-mask: none; mask: none; }
.strip .tile { flex: 0 0 210px; scroll-snap-align: start; }
/* заметка-стикер поверх ролика */
.stick { position: relative; margin: -46px 10px 0; padding: 14px 14px 12px; background: #FFF4C2; color: #2A2410; border-radius: 3px;
  box-shadow: 0 10px 22px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 6px; transform: rotate(-2deg); }
.stick.n1 { transform: rotate(1.6deg); background: #FFE3E0; }
.stick.n2 { transform: rotate(-0.8deg); background: #E2F3E6; }
.stick::before { content: ""; position: absolute; left: 50%; top: -9px; width: 58px; height: 18px; margin-left: -29px;
  background: rgba(255,255,255,.55); transform: rotate(-4deg); }
.stick q { font: 600 1rem/1.3 var(--text); quotes: "«" "»"; }
html[lang="en"] .stick q { quotes: "“" "”"; }
.stick b { font-size: 0.8125rem; font-weight: 600; }
.stick em { font-style: normal; font-size: 0.75rem; color: #6B6040; }
.stick em::before { content: "+ "; color: var(--tally); font-weight: 700; }

/* ---------- персонажи ---------- */
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cast-card { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); overflow: hidden; cursor: pointer; text-align: left;
  padding: 0; display: flex; flex-direction: column; text-decoration: none; }
.cast-card img, .cast-card .noimg, .portrait img, .portrait .noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--ink-2); }
.noimg { display: grid; place-items: center; color: var(--slate); font-size: var(--step--1); }
.cast-card > span { padding: 10px 12px; font-weight: 600; }
.cast-card[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: -3px; }
.profile { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
.portrait { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.facts-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.facts-list dt { font-size: var(--step--1); color: var(--slate); }
.facts-list dd { margin: 2px 0 0; }

/* ---------- раскадровка (главный элемент) ---------- */
.reel { background: var(--night); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px 18px; overflow-x: auto; display: flex; gap: 10px;
  scroll-snap-type: x proximity;
  background-image: radial-gradient(circle, #3A4664 3px, transparent 3.5px), radial-gradient(circle, #3A4664 3px, transparent 3.5px);
  background-size: 22px 100%, 22px 100%; background-position: 0 8px, 0 calc(100% - 8px); background-repeat: repeat-x; }
.frame { flex: 0 0 220px; scroll-snap-align: start; background: var(--ink-2); border-radius: 4px; color: #DCE2EA; border: 2px solid transparent;
  cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; }
.frame[aria-pressed="true"] { border-color: #F7F8F9; }
.frame .pic { aspect-ratio: 16 / 9; background: #2B3652; position: relative; overflow: hidden; border-radius: 2px 2px 0 0; }
.frame .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame .num { position: absolute; right: 8px; bottom: 6px; font: 700 1.3rem/1 var(--display); color: rgba(255,255,255,.55); }
.frame .lamp { position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #69768B; box-shadow: 0 0 0 2px rgba(23,32,51,.6); }
.frame[data-status="rendering"] .lamp { background: var(--tally); animation: pulse 1.2s ease-in-out infinite; }
.frame[data-status="done"] .lamp { background: var(--ok); }
.frame[data-status="failed"] .lamp { background: var(--warn); }
.frame .line { margin: 9px 10px 11px; font-size: var(--step--1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 4.2em; }
@keyframes pulse { 50% { opacity: .35; } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); color: var(--slate); margin: 10px 2px 0; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.l-wait { background: #69768B; } .l-rec { background: var(--tally); } .l-ok { background: var(--ok); }

.player video { width: 100%; border-radius: var(--radius-m); background: #000; display: block; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; }
.facts b { display: block; font: 500 var(--step-1)/1.2 var(--display); }
.facts span { font-size: var(--step--1); color: var(--slate); }
.status-line { display: flex; gap: 10px; align-items: center; color: var(--slate); }
.status-line .dot, .list .dot { width: 10px; height: 10px; border-radius: 50%; background: #69768B; flex: none; }
.dot.rendering { background: var(--tally); animation: pulse 1.2s ease-in-out infinite; }
.dot.done { background: var(--ok); }
.dot.failed, .dot.needs_review { background: var(--warn); }
audio { width: 100%; }

/* ---------- списки и таблицы ---------- */
.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); overflow: hidden; }
.list a { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; text-decoration: none; border-top: 1px solid var(--line); }
.list a:first-child { border-top: 0; }
.list a:hover { background: var(--ink-2); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
th, td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
th { font-weight: 600; background: var(--ink-2); border-top: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--tally); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-grid figcaption { padding: 6px 8px; font-size: 0.75rem; line-height: 1.35; }
.photo-grid figure.bad { border: 2px solid var(--warn); }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dodont > div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; border-top: 3px solid var(--ok); }
.dodont > .dont { border-top-color: var(--warn); }
.dodont ul { margin: 6px 0 0; padding-left: 18px; }
.dodont li { margin: 3px 0; }

.empty { display: flex; gap: 24px; align-items: center; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius-m); background: var(--panel); }
.empty-art { flex: none; width: 120px; height: 80px; border-radius: 6px; background: var(--night);
  background-image: radial-gradient(circle, #3A4664 2.5px, transparent 3px), radial-gradient(circle, #3A4664 2.5px, transparent 3px),
    linear-gradient(#2B3652, #2B3652);
  background-size: 14px 100%, 14px 100%, 84% 56%; background-position: 0 5px, 0 calc(100% - 5px), center; background-repeat: repeat-x, repeat-x, no-repeat; position: relative; }
.empty-art::after { content: ""; position: absolute; left: 16px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); }

.toast { position: fixed; right: 20px; bottom: 20px; max-width: 420px; background: var(--ink); color: var(--bg); padding: 12px 16px;
  border-radius: var(--radius-s); box-shadow: 0 8px 24px rgba(23,32,51,.25); z-index: 20; }
.toast.err { background: #7A2420; color: #fff; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1000px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 56px 16px 28px; }
  .land-h { max-width: none; }
  .wall { position: relative; height: auto; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 16px 34px; gap: 14px;
    -webkit-mask: none; mask: none; }
    .col, .track { display: contents; }
  .tile[aria-hidden="true"] { display: none; }
  .tile { flex: 0 0 min(62vw, 260px); scroll-snap-align: center; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .side { position: static; height: auto; padding: 12px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .brand-name span { display: inline; }
  .nav-toggle { display: inline-block; margin-left: auto; background: transparent; color: #fff; border: 1px solid #3A4664; border-radius: var(--radius-s); padding: 6px 12px; }
  nav { display: none; width: 100%; }
  nav.open { display: flex; }
  .who { width: 100%; margin-top: 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
  .gpu { width: 100%; }
  .topbar { padding: 12px 16px 0; }
  main { padding: 8px 16px 64px; }
  .grid-2, .dodont, .profile, .facts-list { grid-template-columns: 1fr; }
  #result { order: -1; }
  h1 { font-size: 1.75rem; }
  .frame { flex-basis: 72vw; }
  .portrait { max-width: 260px; }
  .empty { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =========================== лендинг гостя (v2) =========================== */
body.anon { background: #0E1322; color: #E9ECF2; }
body.anon .shell { background: #0E1322; }
body.anon .topbar { display: none; }
.landing { --night: #0E1322; --night-2: #161D31; --fog: #9AA3B6; --line-d: #273049; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.landing a { text-decoration: none; }
.lnav { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 28px; padding: 16px 0;
  background: rgba(14,19,34,.82); backdrop-filter: blur(12px); }
.lnav .brand-name { font-size: 1rem; }
.lnav-links { display: flex; gap: 22px; flex-direction: row; }
.lnav-links a { color: var(--fog); font-size: 0.9375rem; padding: 0; }
.lnav-links a:hover { color: #fff; background: none; }
.lnav-end { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.landing .langs { background: var(--night-2); }
.landing .langs button { color: var(--fog); }
.landing .langs button[aria-pressed="true"] { background: #E9ECF2; color: var(--night); }
.btn.ghost-d { background: transparent; border-color: #3A4560; color: #E9ECF2; }
.btn.ghost-d:hover { background: var(--night-2); }
.btn.rec { background: var(--tally); border-color: var(--tally); color: #fff; }
.btn.rec:hover { background: #C92C23; }
.btn.rec.go::before { background: #fff; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(28px, 6vh, 72px) 0 40px; position: relative; }
.hero::before { content: ""; position: absolute; right: -6%; top: 4%; width: 620px; height: 620px; z-index: -1;
  background: radial-gradient(closest-side, rgba(224,53,43,.20), transparent 70%); }
.beta { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 12px; border-radius: 99px;
  border: 1px solid var(--line-d); color: var(--fog); font-size: var(--step--1); }
.beta i { width: 8px; height: 8px; border-radius: 50%; background: var(--tally); animation: pulse 1.6s ease-in-out infinite; }
.hero h1 { font: 700 clamp(2.2rem, 4.6vw, 4rem)/1.02 var(--display); letter-spacing: -0.025em; color: #fff; margin: 0 0 18px; max-width: 15ch; }
.hero-p { color: var(--fog); font-size: 1.125rem; max-width: 50ch; margin: 0 0 26px; }
.composer { background: var(--night-2); border: 1px solid var(--line-d); border-radius: 18px; padding: 14px; max-width: 600px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.composer:focus-within { border-color: #4A5677; }
.composer textarea { background: transparent; border: 0; color: #fff; min-height: 84px; padding: 6px 8px; resize: none; font-size: 1.0625rem; }
.composer textarea::placeholder { color: #6C7690; }
.composer textarea:focus-visible { outline: none; }
.composer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip-btn { border: 1px solid var(--line-d); background: transparent; color: var(--fog); border-radius: 99px; padding: 6px 12px; cursor: pointer; font-size: 0.875rem; }
.chip-btn:hover { color: #fff; border-color: #4A5677; }
.hero-fine { color: #6C7690; font-size: var(--step--1); margin: 12px 2px 0; max-width: 600px; }

/* сцена — единственный «громкий» элемент страницы */
.lstage { margin: 0; width: min(100%, max(280px, calc((100vh - 230px) * 9 / 16))); justify-self: end; }
.screen { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px #2A334C, 0 40px 90px rgba(0,0,0,.55); }
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.subs { position: absolute; left: 8%; right: 8%; bottom: 13%; margin: 0; text-align: center; font: 700 1.3rem/1.35 var(--text);
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.65); }
.subs span { padding: 0 3px; border-radius: 6px; transition: background .12s; }
.subs span.on { background: var(--tally); text-shadow: none; }
.snd-btn { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(14,19,34,.6); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; }
.snd-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snd-btn[aria-pressed="false"] .w { opacity: 0; }
.snd-btn[aria-pressed="true"] { background: var(--tally); }
.screen .tag { position: absolute; left: 14px; top: 20px; font-size: 0.75rem; color: #fff; background: rgba(14,19,34,.6);
  backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 99px; }
.lstage figcaption { display: flex; flex-direction: column; gap: 2px; margin: 16px 4px 12px; }
.lstage figcaption b { color: #fff; font-weight: 600; }
.lstage figcaption span { color: var(--fog); font-size: var(--step--1); }
.cast-row { display: flex; gap: 8px; }
.cast-row button { width: 44px; height: 44px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none;
  opacity: .55; transition: opacity .15s; }
.cast-row button[aria-selected="true"] { border-color: var(--tally); opacity: 1; }
.cast-row button:hover { opacity: 1; }
.cast-row img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.disclaim { color: #6C7690; font-size: 0.75rem; margin: 0 0 56px; }

.how, .can { padding: 56px 0; border-top: 1px solid var(--line-d); }
.landing h2 { font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--display); color: #fff; margin: 0 0 32px; letter-spacing: -0.015em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: st; }
.steps li { counter-increment: st; }
.steps h3 { color: #fff; font: 600 1.125rem/1.3 var(--text); margin: 16px 0 6px; }
.steps h3::before { content: counter(st); color: var(--tally); font-family: var(--display); margin-right: 10px; }
.steps p { color: var(--fog); margin: 0; max-width: 34ch; }
.step-pic { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--night-2); position: relative; border: 1px solid var(--line-d); }
.step-pic img, .step-pic video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.step-pic.text { display: grid; place-items: center; padding: 24px; }
.step-pic.text span { font: 500 1.2rem/1.4 var(--text); color: #fff; border-left: 3px solid var(--tally); padding-left: 14px; }
.rec-dot { position: absolute; left: 14px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--tally); animation: pulse 1.2s infinite; }
.can-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.can-list div { padding: 22px 0; border-top: 1px solid var(--line-d); }
.can-list dt { color: #fff; font-weight: 600; font-size: 1.0625rem; margin-bottom: 6px; }
.can-list dd { margin: 0; color: var(--fog); max-width: 46ch; }
/* частые вопросы: раскрывающиеся ответы в общем ритме разделов */
.faq { padding: 56px 0; border-top: 1px solid var(--line-d); }
.faq details { border-top: 1px solid var(--line-d); max-width: 820px; }
.faq details:last-child { border-bottom: 1px solid var(--line-d); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--tally); font: 500 1.5rem/1 var(--display); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--tally); outline-offset: 4px; }
.faq h3 { display: inline; color: #fff; font: 600 1.0625rem/1.4 var(--text); margin: 0; }
.faq details p { margin: 0 0 20px; color: var(--fog); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.final { text-align: center; padding: 72px 0; border-top: 1px solid var(--line-d); }
.final h2 { margin-bottom: 22px; }
.lfoot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 0 40px; border-top: 1px solid var(--line-d);
  color: #6C7690; font-size: 0.75rem; }
.lfoot span:last-child { max-width: 60ch; }

/* окно входа */
.auth-dlg { border: 0; padding: 0; background: transparent; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.auth-dlg::backdrop { background: rgba(8,11,20,.72); backdrop-filter: blur(4px); }
.auth-dlg .auth-card { position: relative; color: var(--ink); }
.dlg-x { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--slate); cursor: pointer; padding: 4px 8px; }

@media (max-width: 900px) {
  .lnav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .lstage { max-width: 340px; width: 100%; margin: 0 auto; justify-self: center; }
  .chips { flex: 1 1 100%; }
  .chip-btn { white-space: nowrap; }
  .composer .go { width: 100%; }
  .hero h1 { max-width: none; }
  .steps, .can-list { grid-template-columns: 1fr; }
  .lnav { gap: 12px; }
  .lnav .brand-name { display: none; }
}

.guide-img { width: 100%; border-radius: var(--radius-m); border: 1px solid var(--line); display: block; }

/* видео-селфи */
.vs-steps { margin: 0; padding-left: 22px; display: grid; gap: 4px; color: var(--slate); }
.rec-dlg { border: 0; padding: 0; background: #000; width: min(460px, 100vw); max-height: 100vh; border-radius: 18px; overflow: hidden; }
.rec-dlg::backdrop { background: rgba(8,11,20,.85); }
.rec-stage { position: relative; aspect-ratio: 3 / 4; max-height: calc(100vh - 90px); }
.rec-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.rec-frame { position: absolute; left: 22%; right: 22%; top: 12%; bottom: 30%; border: 3px dashed rgba(255,255,255,.55); border-radius: 50%; }
.rec-prompt { position: absolute; left: 16px; right: 16px; bottom: 34px; margin: 0; text-align: center; color: #fff; font: 600 1.25rem/1.3 var(--text);
  text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.rec-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 5px; background: rgba(255,255,255,.25); border-radius: 9px; overflow: hidden; }
.rec-bar i { display: block; height: 100%; width: 0; background: var(--tally); }
.rec-actions { padding: 14px; background: var(--night); justify-content: center; }

/* ---------- раздел «Не только говорящие головы»: три ролика со спецэффектами ---------- */
.fx { padding: 56px 0; border-top: 1px solid var(--line-d); }
.fx h2 { margin-bottom: 10px; }
.fx-p { color: var(--fog); max-width: 60ch; margin: 0 0 28px; }
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fx-tile { margin: 0; position: relative; cursor: pointer; }
.fx-tile video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; border-radius: 14px; background: #263049; }
.fx-tile figcaption { padding: 12px 2px 0; display: grid; gap: 3px; }
.fx-tile figcaption b { color: #fff; font-weight: 600; font-size: 1.0625rem; }
.fx-tile figcaption span { color: var(--fog); font-size: 0.9375rem; }
.fx-tile .snd { right: 12px; top: 12px; }
.fx-tile.loud .snd { background: var(--tally); }
.fx-tile.loud video { outline: 3px solid var(--tally); outline-offset: 3px; }
.fx-tile:focus-within video, .fx-tile .snd:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) {
  .fx-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 0 20px 6px; }
  .fx-tile { flex: 0 0 72%; scroll-snap-align: start; }
}
/* выбор качества перед сборкой: оценка времени рядом с каждым вариантом */
.quality { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 10px 14px 12px; margin: 14px 0 6px; display: grid; gap: 8px; }
.quality legend { padding: 0 6px; font-size: var(--step--1); color: var(--slate); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan h2 { margin: 0; }
.plan .price { margin: 0; }
.plan .price b { font: 500 var(--step-2, 1.6rem)/1.1 var(--display); }
.plan ul { margin: 0; padding-left: 1.1em; flex: 1; }
.plan.current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* трендовые форматы */
.trends{margin-bottom:20px}
.trend-list{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x proximity}
.trend{flex:0 0 220px;scroll-snap-align:start;display:flex;flex-direction:column;gap:6px;text-align:left;padding:12px 14px;border-radius:12px;
  border:1px solid var(--line,#d9dce3);background:var(--card,#fff);color:inherit;cursor:pointer;font:inherit;min-height:44px}
.trend[aria-pressed="true"]{border-color:var(--accent,#ff5a36);box-shadow:0 0 0 2px var(--accent,#ff5a36) inset}
.trend:focus-visible{outline:3px solid var(--accent,#ff5a36);outline-offset:2px}
.tr-badge{align-self:flex-start;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:#eef0f4;color:#334}
.tr-rising{background:#e3f6e8;color:#14532d}.tr-peaking{background:#fff1e0;color:#7c2d12}.tr-seasonal{background:#e8eefe;color:#1e3a8a}
.tr-evergreen{background:#eef0f4;color:#334155}.tr-past{background:#f3f4f6;color:#6b7280}
.row.between{justify-content:space-between;align-items:baseline}
