/* Заголовки — Druk Cyr, тот же, что на thisai: кириллица и латиница в одном файле. */
@font-face { font-family: "Druk"; font-weight: 700; font-display: swap; src: url(/fonts/druk-700.woff2) format("woff2"); }
@font-face { font-family: "Druk"; font-weight: 800; font-display: swap; src: url(/fonts/druk-800.woff2) format("woff2"); }
@font-face { font-family: "Text"; font-weight: 400; font-display: swap; src: url(/fonts/onest-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Text"; font-weight: 400; font-display: swap; src: url(/fonts/onest-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Text"; font-weight: 600; font-display: swap; src: url(/fonts/onest-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Text"; font-weight: 600; font-display: swap; src: url(/fonts/onest-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Mono"; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Mono"; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Mono"; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Mono"; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }

/* Палитра снята с образца: кремовый лист, тёмно-синий, жёлтый, оранжево-красный подвал. */
:root {
  --paper: #f4ecd0;
  --paper-hi: #faf8f2;
  --paper-sunk: #ebe1c0;
  --ink: #111111;
  --muted: #5f5a4c;
  --line: rgba(17, 17, 17, .14);
  --navy: #14254f;
  --navy-ink: #f4ecd0;
  --amber: #f6b23c;
  --amber-ink: #1b1206;
  --flame: #f5501a;
  --dark-btn: #16171b;
  --pill-bg: rgba(250, 248, 242, .78);

  --display: "Druk", "Arial Narrow", sans-serif;
  --text: "Text", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Mono", ui-monospace, Menlo, monospace;

  --pad: 16px;
  --wrap: min(1180px, 100% - 2 * var(--pad));
  --r-card: 26px;
}
:root[data-theme="dark"] {
  --paper: #0e1631;
  --paper-hi: #14254f;
  --paper-sunk: #18295a;
  --ink: #f4ecd0;
  --muted: #a9b0c6;
  --line: rgba(244, 236, 208, .16);
  --pill-bg: rgba(20, 37, 79, .78);
  --dark-btn: #f4ecd0;
}
@media (min-width: 768px) { :root { --pad: 32px; } }

* { box-sizing: border-box; }
html { scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
.wrap { width: var(--wrap); margin-inline: auto; }
:where(ul.plain, ol.plain) { list-style: none; margin: 0; padding: 0; }

.mono, .label { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--muted); }
.muted { color: var(--muted); }

/* Заголовки: тяжёлый гротеск капсом, плотная разрядка, вторая строка синяя. */
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(5.4rem, 29vw, 17rem); font-weight: 800; line-height: .86; letter-spacing: 0; }
h2 { font-size: clamp(3.4rem, 15.5vw, 6.25rem); line-height: .9; letter-spacing: 0; max-width: 18ch; }
h3 { font-size: 1.9rem; line-height: .95; letter-spacing: .005em; }
h2 em { font-style: normal; color: var(--navy); }
:root[data-theme="dark"] h2 em { color: var(--amber); }
.lead { font-size: 1.15rem; line-height: 1.5; max-width: 38ch; }

/* Шапка: плавающие «пилюли» поверх страницы. */
.top { position: fixed; inset: 0 0 auto; z-index: 30; padding: 10px 0; pointer-events: none; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top a, .top nav { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--pill-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); text-decoration: none; font-size: 14px; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .35); }
.logo { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 20px; }
/* Логотип в шапке — пиксельная надпись из Higgsfield (GPT Image 2.5, вариант 3), без
   подложки, той же ширины, что была надпись в пилюле. Файл с версией в имени:
   заменяя картинку, меняйте имя (logo-v2.webp), иначе старая останется в кеше. */
.logo-img { display: inline-flex; align-items: center; height: 40px; }
.logo-img img { display: block; width: 122px; height: auto; }
.logo-img { transition: opacity .2s; }
.top.scrolled .logo-img { opacity: 0; pointer-events: none; }
/* В кабинете скрипта нет: шапка уезжает со страницей, чтобы логотип не наезжал на текст. */
.top.static { position: absolute; }
.top .buy { background: var(--amber); color: var(--amber-ink); font-weight: 600; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; padding: 4px; height: auto; max-width: 100%; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; padding: 7px 12px; border-radius: 999px; font-size: 13px; text-decoration: none; white-space: nowrap; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { background: var(--paper-hi); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
:root[data-theme="dark"] .nav a[aria-current] { background: var(--navy); }
@media (max-width: 1099px) {
  .top .nav { transition: opacity .2s, transform .2s; }
  .top.tuck .nav { opacity: 0; transform: translateY(-10px); pointer-events: none; }
}
@media (min-width: 1100px) {
  .top .wrap { position: relative; }
  .nav { position: absolute; left: 50%; top: 0; transform: translateX(-50%); margin: 0; max-width: 700px; }
}

/* Кнопки — пилюли. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 14px 28px; border-radius: 999px; border: 0; background: var(--dark-btn); color: var(--paper-hi); font: 500 16.5px/1.2 var(--text); text-decoration: none; cursor: pointer; transition: transform .15s; }
:root[data-theme="dark"] .btn { color: var(--navy); }
.btn:hover { transform: translateY(-1px); }
.btn.amber { background: var(--amber); color: var(--amber-ink); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Разделы: номер «002» над заголовком. */
.sec { padding: 72px 0 12px; }
.sec h2 { margin-bottom: 22px; }
@media (min-width: 900px) { .sec h2.one { max-width: none; white-space: nowrap; font-size: clamp(3.4rem, 8.6vw, 6.25rem); } }
.sec-intro { display: grid; gap: 4px 48px; margin-bottom: 34px; }
.sec-intro h2 { margin: 0 0 14px; }
@media (min-width: 900px) {
  .sec { padding-top: 140px; }
  .sec-intro { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .sec-intro h2, .sec-intro .lead { margin: 0; }
}

/* Первый экран — тёмно-синий. */
.hero { background: var(--navy); color: var(--navy-ink); padding: 130px 0 56px; overflow: hidden; }
/* Заголовок ровно во всю ширину сетки: надпись в Druk вместе с режиссёром шириной
   5,18 своего кегля (замерено в браузере), значит, кегль — ширина сетки / 5,18.
   Поменяете слово, шрифт или персонажа — замерьте заново, иначе он не дотянется
   до края или вылезет за него. */
.hero > .wrap { container-type: inline-size; }
.hero h1 { color: var(--navy-ink); font-size: 19.25cqw; white-space: nowrap; margin-bottom: 22px; }
/* Режиссёр вместо точки: стоит на линии букв, моргает, при наведении подпрыгивает. */
.mascot { display: inline-block; height: .5em; width: auto; margin-left: .05em; vertical-align: baseline; shape-rendering: crispEdges; overflow: visible; }
.mascot .y { fill: var(--amber); }
.mascot .e { fill: var(--navy); animation: blink 4.2s infinite; }
@keyframes blink { 0%, 93%, 100% { fill: var(--navy); } 95%, 98% { fill: var(--amber); } }
.mascot:hover { animation: hop .45s ease-out; }
@keyframes hop { 40% { transform: translateY(-.12em); } }
@media (prefers-reduced-motion: reduce) { .mascot .e, .mascot:hover { animation: none; } }
.hero .lead { color: #fff; max-width: none; margin: 0; }
.hero .lead b { font-weight: 600; }
/* На телефоне видео идёт сразу под заголовком, до текста: иначе оно уезжает за первый экран. */
@media (max-width: 899px) {
  .hero > .wrap { display: flex; flex-direction: column; }
  .hero .screen { order: 1; margin: 0 0 28px; }
  .hero .lead { order: 2; }
}
@media (min-width: 900px) {
  .hero { padding-top: 120px; }
  .hero h1 { margin-bottom: 30px; }
  .hero .lead { width: 50%; }
}

/* Экран первого экрана: нарезка стилей целиком, 16:9 */
.screen { position: relative; margin: 44px 0 0; }
.screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); background: #000; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8); }
@media (min-width: 900px) {
  .screen { margin-top: 56px; }
}

/* Бригада: пропуска на шнурках с пиксельными человечками */
.crew { display: grid; gap: 44px 14px; padding-top: 30px; }
.crew li { position: relative; display: flex; flex-direction: column; padding: 16px 18px 20px; border-radius: 20px; background: var(--paper-hi); color: var(--ink); box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .45); transform: rotate(var(--tilt, 0deg)); transition: transform .25s; }
.crew li:nth-child(3n + 1) { --tilt: -1.1deg; }
.crew li:nth-child(3n + 2) { --tilt: .8deg; }
.crew li:hover { transform: none; }
/* Шнурок и клипса над карточкой */
.crew li::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 32px; margin-left: -1px; background: var(--ink); opacity: .55; }
.crew li::after { content: ""; position: absolute; left: 50%; top: -7px; width: 30px; height: 12px; margin-left: -15px; border-radius: 4px; background: var(--flame); }
:root[data-theme="dark"] .crew li { background: var(--paper-sunk); }
.badge-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 14px; }
.crew .tag { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--paper); }
.crew .pic { width: 64px; height: 76px; margin-bottom: 14px; color: var(--navy); }
.crew .px { width: 100%; height: 100%; fill: currentColor; shape-rendering: crispEdges; }
:root[data-theme="dark"] .crew .pic { color: var(--amber); }
.crew h3 { margin: 0 0 6px; }
.crew p { margin: 0; color: var(--muted); font-size: 15px; }
.crew .critic { background: var(--navy); color: var(--navy-ink); }
.crew .critic .label, .crew .critic p { color: rgba(244, 236, 208, .72); }
.crew .critic .tag { background: rgba(244, 236, 208, .12); }
.crew .critic .pic { color: var(--amber); }
.crew .boss { background: var(--amber); color: var(--amber-ink); }
.crew .boss .label, .crew .boss p { color: rgba(27, 18, 6, .72); }
.crew .boss .tag { background: rgba(255, 255, 255, .45); }
.crew .boss .pic { color: var(--navy); }
.crew li.critic::before, .crew li.boss::before { background: var(--ink); }
/* На телефоне по два пропуска в ряд, иначе бригада растягивается на три экрана */
@media (max-width: 699px) {
  .crew { grid-template-columns: 1fr 1fr; gap: 40px 10px; }
  .crew .boss { grid-column: 1 / -1; }
  .crew li { padding: 12px 12px 16px; border-radius: 16px; }
  .crew .tag { display: none; }
  .badge-top { margin: 6px 0 10px; }
  .crew .pic { width: 44px; height: 52px; margin-bottom: 10px; }
  .crew h3 { font-size: 1.45rem; }
  .crew p { font-size: 13.5px; line-height: 1.4; }
}
@media (min-width: 700px) {
  .crew { grid-template-columns: 1fr 1fr; }
  .crew .boss { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 26px; }
  .crew .boss .badge-top { grid-column: 1 / -1; }
  .crew .boss .pic { grid-row: 2 / 4; width: 84px; height: 100px; margin: 0; }
}
@media (min-width: 1050px) {
  .crew { grid-template-columns: repeat(12, 1fr); }
  .crew li { grid-column: span 4; }
  .crew .boss { grid-column: 1 / -1; }
  .crew .critic { grid-column: span 3; }
}

/* Цепочка: как задача идёт по бригаде */
.chain { display: flex; gap: 8px; margin: 40px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 6px; overflow-x: auto; scrollbar-width: none; counter-reset: c; }
.chain::-webkit-scrollbar { display: none; }
.chain li { position: relative; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--paper-hi); }
.chain li + li { margin-left: 22px; }
.chain li + li::before { content: "→"; position: absolute; left: -22px; top: 50%; width: 22px; transform: translateY(-50%); text-align: center; font: 500 15px var(--mono); color: var(--muted); }
.chain b { font: 700 1.25rem/1 var(--display); text-transform: uppercase; }
.chain span { font: 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.chain .you { background: var(--flame); color: #fff; }
.chain .you span { color: rgba(255, 255, 255, .8); }
.chain .crit { background: var(--navy); color: var(--navy-ink); }
.chain .crit span { color: rgba(244, 236, 208, .7); }
.chain .done { background: var(--amber); color: var(--amber-ink); }
.chain .done span { color: rgba(27, 18, 6, .7); }
:root[data-theme="dark"] .chain li:not(.you):not(.crit):not(.done) { background: var(--paper-sunk); }
@media (min-width: 900px) { .chain { flex-wrap: wrap; row-gap: 12px; margin-inline: 0; padding-inline: 0; overflow: visible; } }
.chain-note { margin-top: 16px; }

/* Таблица против генераторов */
.versus { border-radius: var(--r-card); background: var(--paper-hi); padding: 6px 22px; }
:root[data-theme="dark"] .versus { background: var(--paper-sunk); }
.versus .row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; padding: 16px 0; box-shadow: inset 0 -1px 0 var(--line); }
.versus .row:last-child { box-shadow: none; }
.versus .row > :first-child { grid-column: 1 / -1; }
.versus .head { font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.versus .head span:last-child { color: var(--navy); font-weight: 500; }
:root[data-theme="dark"] .versus .head span:last-child { color: var(--amber); }
.versus .us { font-weight: 600; }
.versus .them { color: var(--muted); }
@media (min-width: 800px) {
  .versus { padding: 10px 34px; }
  .versus .row { grid-template-columns: 170px 1fr 1fr; }
  .versus .row > :first-child { grid-column: auto; }
}

.cols { display: grid; gap: 20px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 40px; } .cols.wide-left { grid-template-columns: 1.3fr 1fr; } }

/* Форматы: цветные плитки, на телефоне листаются вбок */
.formats { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; scroll-padding-inline: var(--pad); }
.formats::-webkit-scrollbar { display: none; }
.fmt { scroll-snap-align: start; display: flex; flex-direction: column; min-height: 250px; padding: 22px; border-radius: var(--r-card); background: var(--paper-hi); }
.fmt.navy { background: var(--navy); color: var(--navy-ink); }
.fmt.amber { background: var(--amber); color: var(--amber-ink); }
:root[data-theme="dark"] .fmt.paper { background: var(--paper-sunk); }
.fmt .n { font: 500 12px var(--mono); letter-spacing: .08em; opacity: .65; }
.fmt h3 { font-size: 2.2rem; margin: auto 0 12px; padding-top: 28px; }
.ask { margin: 0; font-size: 15px; line-height: 1.4; font-style: italic; opacity: .85; }
.ask::before { content: "запрос"; display: block; font: normal 10.5px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
@media (min-width: 800px) {
  .formats { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
}
.ideas { display: grid; gap: 10px; }
.ideas li { padding: 14px 18px; border-radius: 16px; background: var(--paper-hi); }
:root[data-theme="dark"] .ideas li { background: var(--paper-sunk); }
@media (min-width: 800px) { .ideas { grid-template-columns: 1fr 1fr; } }

/* Стили */
.loops { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.loops figure { margin: 0; }
.loops video, .loops img, .card-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--paper-sunk); }
.loops figcaption { margin-top: 8px; font: 11.5px/1.35 var(--mono); }
.loops figcaption span { color: var(--muted); }
@media (min-width: 800px) { .loops { grid-template-columns: repeat(4, 1fr); } }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 40px; }
.cats a { display: inline-flex; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper-hi); font: 12px/1.3 var(--mono); text-decoration: none; white-space: nowrap; }
.cats a:hover { background: var(--navy); color: #fff; }
.cats a span:last-child { opacity: .6; }
:root[data-theme="dark"] .cats a { background: var(--paper-sunk); }
@media (max-width: 799px) {
  .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .cats::-webkit-scrollbar { display: none; }
  .cats li { flex: none; }
}

/* Цветные плитки, как карточки роликов у образца */
.panel { border-radius: var(--r-card); padding: 26px 22px; }
.panel.navy { background: var(--navy); color: var(--navy-ink); }
.panel.amber { background: var(--amber); color: var(--amber-ink); }
.panel .label { color: inherit; opacity: .72; }
.panel h3 { font-size: clamp(2.6rem, 9vw, 3.6rem); margin: 6px 0 12px; }
.panels { display: grid; gap: 16px; }
@media (min-width: 900px) { .panel { padding: 36px; } .panels { grid-template-columns: 1fr 1fr; } }

/* Один ролик перепиской: одно окно чата закреплено на экране, сообщения появляются
   по мере прокрутки. Без скрипта или с отключённой анимацией видна вся переписка сразу. */
.story-stick { display: grid; gap: 18px; }
.story-steps { display: grid; gap: 18px; }
.story-steps h3 { font-size: 1.9rem; margin: 4px 0 6px; }
.story-steps p { margin: 0; color: var(--muted); }
.chatwin { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--navy); color: var(--navy-ink); overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .6); }
.chatwin-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(0, 0, 0, .18); font: 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(244, 236, 208, .65); }
.chatwin-head b { display: block; font: 700 1.15rem/1 var(--display); letter-spacing: .01em; color: var(--navy-ink); }
.chatwin-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--navy); }
.chatwin-ava .px { width: 20px; height: 24px; fill: currentColor; shape-rendering: crispEdges; }
.chatwin-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.chatwin-body .msg { max-width: 88%; align-self: flex-start; }
.msg.me { align-self: flex-end !important; border-radius: 18px 18px 6px 18px; background: var(--flame); color: #fff; }
.msg.me .copy { margin-top: 10px; background: rgba(0, 0, 0, .28); color: #fff; }
.chatwin-input { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 14px; padding: 12px 16px; border-radius: 999px; background: rgba(244, 236, 208, .08); color: rgba(244, 236, 208, .45); font-size: 14px; }
.chatwin-input span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.thumbs-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; font: 500 11px var(--mono); }
.thumbs-n i { font-style: normal; opacity: .75; }
.chatwin .shot { margin-top: 10px; border-radius: 12px; box-shadow: none; }
.file { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(244, 236, 208, .1); }
.file-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--amber); color: var(--amber-ink); font: 700 1rem var(--display); }
.msg .file b { display: block; margin: 0 0 2px; font: 600 14px var(--text); letter-spacing: 0; text-transform: none; color: var(--navy-ink); }
.file > span:last-child { font: 11px/1.4 var(--mono); opacity: .8; }
.copy { display: block; padding: 7px 14px; border: 0; border-radius: 999px; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.shot { display: block; overflow: hidden; }

/* Режим прокрутки: блок высокий, окно прилипает, лишние сообщения спрятаны */
.js-story .story { height: calc(100svh + 11 * 30svh); }
.js-story .story-stick { position: sticky; top: 104px; height: calc(100svh - 120px); grid-template-rows: auto minmax(0, 1fr); }
.js-story .chatwin { min-height: 0; }
/* Сообщения прижаты к низу окна: новые встают над полем ввода, старые уходят за верхний край. */
.js-story .chatwin-body { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-end; }
.js-story .chatwin-body .msg:not(.on) { display: none; }
.js-story .chatwin-body .msg.on { animation: msg-in .35s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(14px); } }
/* На телефоне над окном только текущий шаг */
@media (max-width: 899px) {
  .js-story .story-steps li:not(.on) { display: none; }
  .js-story .story-steps h3 { font-size: 1.55rem; }
  .js-story .story-steps p { font-size: 14.5px; }
}
@media (min-width: 900px) {
  .story-stick { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
  .js-story .story-stick { top: 112px; height: calc(100svh - 132px); grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .story-steps { align-content: center; gap: 22px; }
  .js-story .story-steps li { opacity: .3; transition: opacity .3s; }
  .js-story .story-steps li.on { opacity: 1; }
}
/* С 1100 px меню в шапке встаёт в одну строку, шапка ниже — окно можно поднять */
@media (min-width: 1100px) { .js-story .story-stick { top: 84px; height: calc(100svh - 104px); } }

/* Пример: пояснения режиссёра и отчёт критика */
.chat { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-card); background: var(--navy); color: var(--navy-ink); }
.chat .label { color: rgba(244, 236, 208, .65); margin-bottom: 4px; }
.msg { padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: rgba(244, 236, 208, .1); font-size: 15px; line-height: 1.5; }
.msg b { display: block; margin-bottom: 4px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.msg.critic { background: var(--amber); color: var(--amber-ink); }
.msg.critic b { color: var(--amber-ink); opacity: .75; }
.own { max-width: 640px; }

/* Что внутри */
.gets { display: grid; gap: 12px; margin-bottom: 20px; }
.gets li { padding: 20px; border-radius: 20px; background: var(--paper-hi); }
:root[data-theme="dark"] .gets li { background: var(--paper-sunk); }
.gets h3 { font-size: 1.7rem; margin-bottom: 8px; }
.gets p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 700px) { .gets { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .gets { grid-template-columns: 1fr 1fr 1fr; } }
.tree-box { margin-top: 14px; }
.tree-box summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 10px 18px; border-radius: 999px; background: var(--paper-hi); font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.tree-box summary::-webkit-details-marker { display: none; }
.tree-box summary::after { content: "+"; font-size: 15px; }
.tree-box[open] summary::after { content: "−"; }
:root[data-theme="dark"] .tree-box summary { background: var(--paper-sunk); }
.tree-box .tree { margin-top: 10px; }
.tree { margin: 4px 0 0; padding: 22px; border-radius: 20px; background: var(--navy); color: var(--navy-ink); font: 13px/1.75 var(--mono); overflow-x: auto; white-space: pre; }
.tree .c { color: rgba(244, 236, 208, .6); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.facts li { padding: 18px; border-radius: 20px; background: var(--amber); color: var(--amber-ink); }
.facts b { display: block; font: 700 3.8rem/.95 var(--display); margin-bottom: 6px; }
.facts span { font-size: 14.5px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Списки «подходит / нет» */
.ticks li, .crosses li { position: relative; padding: 12px 0 12px 30px; box-shadow: inset 0 -1px 0 var(--line); }
.ticks li:last-child, .crosses li:last-child { box-shadow: none; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 12px; font: 600 16px/1.55 var(--mono); }
.ticks li::before { content: "+"; }
.crosses li::before { content: "×"; opacity: .6; }

/* Что нужно и сколько стоит */
.needs { border-radius: var(--r-card); background: var(--paper-hi); padding: 6px 22px; }
:root[data-theme="dark"] .needs { background: var(--paper-sunk); }
.needs .row { display: grid; gap: 2px 24px; padding: 16px 0; box-shadow: inset 0 -1px 0 var(--line); }
.needs .row:last-child { box-shadow: none; }
.needs .row > :first-child { font: 11.5px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.needs b { font-weight: 600; }
@media (min-width: 800px) { .needs { padding: 10px 34px; } .needs .row { grid-template-columns: 240px 1fr; } }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Цена */
.price { font: 800 clamp(6.4rem, 32vw, 11rem)/.86 var(--display); margin: 8px 0 16px; }
.panel .ticks li { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .14); }
.panel.navy .ticks li { box-shadow: inset 0 -1px 0 rgba(244, 236, 208, .16); }
.panel .ticks li:last-child { box-shadow: none; }
.panel.navy p { color: rgba(244, 236, 208, .85); }

/* Вопросы */
.faq details { border-radius: 18px; background: var(--paper-hi); margin-bottom: 10px; padding: 0 20px; }
:root[data-theme="dark"] .faq details { background: var(--paper-sunk); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 20px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; max-width: 64ch; color: var(--muted); }

/* Подвал — оранжево-красный, крупное слово синим */
.foot { margin-top: 120px; padding: 56px 0 110px; background: var(--flame); color: var(--navy); }
.foot-big { font: 800 clamp(4.6rem, 25vw, 17rem)/.86 var(--display); text-transform: uppercase; margin: 0 0 28px; }
.foot-text { max-width: 60ch; font-size: 16px; margin-bottom: 36px; color: #1b1206; }
.foot-grid { display: grid; gap: 22px; }
.foot ul { list-style: none; margin: 0; padding: 0; font: 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.foot li { padding: 4px 0; }
.foot a { text-underline-offset: 3px; }
.foot .label { color: var(--navy); opacity: .7; }
.foot button { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot .fine { color: #1b1206; opacity: .8; margin-top: 30px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } }
.foot .fine + .fine { margin-top: 8px; }

/* Документы: оферта, политика, согласие, оплата, реквизиты. Узкая колонка для чтения,
   заголовки тем же Druk, но мельче, чем на главной. */
.doc { padding: 140px 0 0; max-width: 760px; }
.doc h1 { font-size: clamp(3rem, 11vw, 5.6rem); line-height: .9; margin-bottom: 14px; }
.doc > .label { margin-bottom: 36px; }
.doc h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1; max-width: none; margin: 40px 0 14px; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.3em; }
.doc li { margin-bottom: .35em; }
.doc a { text-underline-offset: 3px; }

/* Липкая кнопка покупки на телефоне */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--navy); color: var(--navy-ink); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); transform: translateY(150%); transition: transform .25s; }
.dock.on { transform: none; }
.in-story .dock.on { transform: translateY(150%); }
.dock b { display: block; font-size: 14.5px; }
.dock span { font: 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.dock .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; flex: none; }
@media (min-width: 900px) { .dock { display: none; } }

/* Согласие на Метрику */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 560px; margin: 0 auto; padding: 14px 16px; border-radius: 20px; background: #16171b; color: #fff; font-size: 14px; }
.consent[hidden] { display: none; }
.consent .btn { min-height: 38px; padding: 8px 16px; font-size: 14px; background: var(--amber); color: var(--amber-ink); }
.consent .btn.ghost { background: transparent; color: #fff; }

/* Библиотека стилей */
.lib-head { padding: 130px 0 10px; }
.lib-head h1 { font-size: clamp(4.6rem, 21vw, 12rem); margin-bottom: 20px; }
.lib-head h1 em { font-style: normal; color: var(--navy); }
:root[data-theme="dark"] .lib-head h1 em { color: var(--amber); }
.filters { position: sticky; top: 106px; z-index: 10; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--pill-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); font: 13px/1 var(--text); cursor: pointer; box-shadow: 0 4px 14px -10px rgba(0, 0, 0, .4); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.toc a { padding: 7px 13px; border-radius: 999px; background: var(--paper-hi); font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--muted); }
:root[data-theme="dark"] .toc a { background: var(--paper-sunk); }
.toc a:hover { color: var(--ink); }
.cat { padding-top: 64px; }
.cat h2 { font-size: clamp(3rem, 11vw, 5.4rem); max-width: none; margin-bottom: 22px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card { padding: 10px 10px 18px; border-radius: 22px; background: var(--paper-hi); }
:root[data-theme="dark"] .card { background: var(--paper-sunk); }
.card[hidden] { display: none; }
.card .card-media.none { display: grid; place-items: center; color: var(--navy-ink); background: var(--navy); font: 700 4.4rem/1 var(--display); }
.card h3 { font-size: 1.75rem; margin: 14px 8px 6px; }
.card h3 .n { font: 500 12px var(--mono); color: var(--navy); margin-right: 6px; vertical-align: 3px; letter-spacing: 0; }
:root[data-theme="dark"] .card h3 .n { color: var(--amber); }
.card p, .card .for, .card .btn { margin-inline: 8px; }
.card p { margin-block: 0 6px; font-size: 15px; }
.card .for { font: 11.5px/1.5 var(--mono); color: var(--muted); margin-bottom: 14px; }
.card .btn { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.empty { padding: 40px 0; color: var(--muted); }

/* Оформление заказа: окно поверх страницы. Поля без рамок — на утопленном фоне. */
.checkout { width: min(520px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--r-card); background: var(--paper-hi); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.checkout::backdrop { background: rgba(14, 22, 49, .6); }
.checkout-form { padding: 28px 24px 24px; }
.checkout h3 { font-size: 2.6rem; margin: 6px 0 18px; }
.checkout-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.checkout .x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-sunk); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.field[hidden] { display: none; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.field input, .cab-form input { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--paper-sunk); color: var(--ink); font: 17px var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.check a { text-underline-offset: 3px; }
.pay-ways { display: grid; gap: 10px; margin-top: 18px; }
.pay-ways [hidden] { display: none; }
.pay-ways .btn:disabled { opacity: .5; cursor: wait; }
.checkout-error { margin: 14px 0 0; color: #b42318; font-weight: 600; }
.checkout .fine a { text-underline-offset: 3px; }
:root[data-theme="dark"] .checkout-error { color: #ff8a73; }

/* Кабинет и вход: те же документы, плюс форма и кнопки. */
.cab .btn { margin-top: 6px; }
.cab-form { display: grid; gap: 10px; max-width: 420px; margin-top: 18px; }

/* Кабинет: одно видео и текст под ним. Ширина — та же силовая линия, что на
   лендинге (--wrap): шапка, видео и текст стоят по одному краю с главной
   (владелец, 4 ноября). Строки текста не длиннее 760px, у левого края. Высоту
   видео держит экран, чтобы кнопки плеера не уезжали за нижний край. */
.cab-top, .cab-stage { width: var(--wrap); margin: 0 auto; }
.cab-stage { padding-top: 76px; }
.cab-video video { display: block; width: 100%; max-width: calc((100vh - 150px) * 16 / 9); aspect-ratio: 16 / 9; border-radius: var(--r-card); background: #0d0c10; }
.cab-head { position: relative; max-width: 760px; margin: 0 0 36px; padding: 28px 0 24px; }
.cab-stage.no-video .cab-head { padding-top: 64px; }
.cab-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 25%, var(--line) 75%, transparent); }
.cab-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: .92; margin-top: 8px; }
.cab-body { padding-bottom: 80px; }
.cab-content { max-width: 760px; }
.cab-content h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1; max-width: none; margin: 40px 0 14px; }
.cab-content ol, .cab-content ul { margin: 0 0 1em; padding-left: 1.3em; }
.cab-content li { margin-bottom: .35em; }
.cab-archive { padding: 22px 24px 8px; border-radius: 18px; background: var(--paper-sunk); }

/* Шапка кабинета справа: поддержка и почта вошедшего, по клику — «Выйти».
   Просто надписи, без подложек (владелец, 4 ноября). */
.cab-actions { display: flex; align-items: center; gap: 24px; pointer-events: auto; }
.cab-actions .pill { height: auto; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 15px; }
.cab-actions a.pill { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.cab-actions a.pill:hover { text-decoration-color: currentColor; }
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 40px; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary::after { content: " ▾"; opacity: .6; }
.acct[open] summary::after { content: " ▴"; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: 14px; background: var(--paper-hi); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .45); z-index: 40; }
.acct-menu button { width: 100%; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 15px var(--text); text-align: left; cursor: pointer; }
.acct-menu button:hover, .acct-menu a:hover { background: var(--paper-sunk); }
.acct-menu a { display: none; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
@media (max-width: 1099px) { .cab-stage { padding-top: 68px; } }
@media (max-width: 600px) {
  .cab-actions .pill:not(summary) { display: none; }
  .acct-menu a { display: block; }
  .acct summary { max-width: 170px; }
}

/* Плеер кабинета: свои кнопки поверх видео (assets/player.js). Без скрипта —
   стандартные кнопки, класс .on не ставится и всё ниже не действует. */
.cab-video { position: relative; max-width: calc((100vh - 150px) * 16 / 9); border-radius: var(--r-card); overflow: hidden; background: #0d0c10; }
.cab-video video { max-width: none; border-radius: 0; }
.cab-video:fullscreen { max-width: none; border-radius: 0; display: grid; place-items: center; }
.cab-video:fullscreen video { height: 100%; aspect-ratio: auto; object-fit: contain; }
.cab-video.on .pl-big { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--amber); color: var(--amber-ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); transition: opacity .2s, transform .15s; }
.cab-video.on .pl-big svg { width: 40px; height: 40px; fill: currentColor; margin-left: 4px; }
.cab-video.on .pl-big:hover { transform: scale(1.05); }
.cab-video.playing .pl-big { opacity: 0; pointer-events: none; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 28px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; transition: opacity .25s; }
.cab-video.playing:not(:hover):not(:focus-within) .pl-bar { opacity: 0; }
.pl-bar button { flex: none; display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border: 0; border-radius: 10px; background: none; color: inherit; font: 600 14px var(--text); cursor: pointer; }
.pl-bar button:hover { background: rgba(255, 255, 255, .14); }
.pl-bar svg { width: 22px; height: 22px; fill: currentColor; }
.pl-time { flex: none; font: 13px var(--mono); opacity: .9; }
.pl-track { position: relative; flex: 1; height: 18px; cursor: pointer; touch-action: none; }
.pl-track::before, .pl-buf, .pl-fill { content: ""; position: absolute; left: 0; top: 7px; height: 4px; border-radius: 4px; }
.pl-track::before { right: 0; background: rgba(255, 255, 255, .25); }
.pl-buf { width: 0; background: rgba(255, 255, 255, .4); }
.pl-fill { width: 0; background: var(--amber); }
@media (max-width: 600px) { .pl-time { display: none; } .pl-bar { gap: 4px; padding: 24px 8px 8px; } .cab-video.on .pl-big { width: 64px; height: 64px; } }

/* Проба главной /2/: первый экран как описание бота. */
.hero2 { position: relative; text-align: center; padding: 120px 0 64px; }
.hero2 .stars { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--navy-ink); pointer-events: none; }
.hero2 .stars .tw { animation: twinkle 2.6s steps(2) infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
.hero2 > .wrap { position: relative; display: block; }
/* Человечки стоят на слове: ряд прижат к верхнему краю заглавных букв. Сдвиг
   замерен в браузере по метрикам Druk при строке .82: над заглавными .093em. */
.hero2-title { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.hero2 h1 { font-size: clamp(4rem, 15vw, 11.5rem); line-height: .82; white-space: nowrap; margin: 0; }
.hero2-title .crew-row { margin-bottom: -.093em; font-size: clamp(4rem, 15vw, 11.5rem); width: 100%; justify-content: space-around; gap: 0; }
.hero2-sub { max-width: 32ch; margin: 0 auto; color: var(--amber); font-size: clamp(18px, 2.3vw, 26px); line-height: 1.3; font-weight: 600; }
.hero2-br { display: none; }
@media (min-width: 900px) { .hero2-br { display: inline; } }
.hero2-stage { margin: 56px 0 0; }
.crew-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(2px, 1.6vw, 22px); position: relative; z-index: 1; margin-bottom: -1px; }
.buddy { width: clamp(22px, 4.4vw, 56px); color: var(--amber); animation: hop 1.8s steps(1) infinite; animation-delay: calc(var(--i) * -.26s); }
.buddy.big { width: clamp(30px, 6vw, 76px); }
.buddy .px { display: block; width: 100%; height: auto; fill: currentColor; shape-rendering: crispEdges; }
/* Прыжок пиксельный — ступенькой, без плавного разгона, как в старой игре. */
@keyframes hop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-5px); } 90% { transform: translateY(-2px); } }
.hero2 .screen { margin: 0; }
@media (max-width: 899px) { .hero2 { padding: 100px 0 40px; } .hero2-stage { margin-top: 36px; } .hero2 h1 { font-size: 17vw; } .hero2-title .crew-row { font-size: 17vw; } }
@media (prefers-reduced-motion: reduce) { .buddy, .hero2 .stars .tw { animation: none; } }

/* Проба /2/: карточки бригады ровные, без шнурков и без покачивания при наведении. */
.crew.flat { padding-top: 0; gap: 14px; }
.crew.flat li { transform: none; transition: none; }
.crew.flat li::before, .crew.flat li::after { display: none; }

/* Проба /2/: шапка в одну строку — логотип, основные разделы текстом, кабинет и
   «Купить». Логотип не уходит при прокрутке. Над синим первым экраном пункты
   светлые, ниже — тёмные (класс over-hero ставит site.js). */
.top.v2.scrolled .logo-img { opacity: 1; pointer-events: auto; }
.top.v2 .top-row { gap: 24px; }
.nav2 { display: flex; gap: 26px; margin-right: auto; margin-left: 40px; pointer-events: auto; }
.nav2 a, .top.v2 .cab-link { color: var(--ink); font-size: 15px; text-decoration: none; transition: color .2s; }
.nav2 a:hover, .top.v2 .cab-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.top.v2.over-hero .nav2 a, .top.v2.over-hero .cab-link { color: var(--navy-ink); }
.top-end { display: flex; align-items: center; gap: 20px; pointer-events: auto; }
@media (max-width: 899px) { .nav2 { display: none; } .top.v2 .top-row { gap: 12px; } }

/* Проба /2/: карточки агентов на компьютере — текст слева, человечек справа,
   метка «агент 01» на прежнем месте сверху. На телефоне раскладка прежняя. */
@media (min-width: 700px) {
  .crew.flat li:not(.boss):not(.critic) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "badge badge" "title pic" "desc pic"; grid-template-rows: auto 1fr auto; column-gap: 20px; min-height: 240px; padding: 20px 26px 30px; }
  .crew.flat li:not(.boss):not(.critic) .badge-top { grid-area: badge; }
  .crew.flat li:not(.boss):not(.critic) h3 { grid-area: title; align-self: end; font-size: 2.1rem; line-height: .95; margin-bottom: 12px; }
  .crew.flat li:not(.boss):not(.critic) p { grid-area: desc; font-size: 16px; line-height: 1.4; max-width: 24ch; }
  .crew.flat li:not(.boss):not(.critic) .pic { grid-area: pic; align-self: center; width: 104px; height: 121px; margin: 0; }
}
/* На телефоне метки «агент 01» мельче и еле заметны (владелец, 4 ноября). */
@media (max-width: 699px) { .crew.flat .badge-top .label { font-size: 9px; opacity: .45; } }

/* Живые человечки: три кадра из одной сетки — обычный, кивок, моргание —
   переключаются ступенькой. У каждой карточки свой ритм и сдвиг, чтобы бригада
   не двигалась хором. */
.pxa .f1, .pxa .f2 { opacity: 0; }
.pxa path { animation-duration: var(--d, 4.6s); animation-timing-function: steps(1); animation-iteration-count: infinite; animation-delay: var(--o, 0s); }
.pxa .f0 { animation-name: px-f0; }
.pxa .f1 { animation-name: px-f1; }
.pxa .f2 { animation-name: px-f2; }
@keyframes px-f0 { 0% { opacity: 1; } 56% { opacity: 0; } 64% { opacity: 1; } 84% { opacity: 0; } 88% { opacity: 1; } }
@keyframes px-f1 { 0% { opacity: 0; } 56% { opacity: 1; } 64% { opacity: 0; } }
@keyframes px-f2 { 0% { opacity: 0; } 84% { opacity: 1; } 88% { opacity: 0; } }
.crew li:nth-child(1) { --d: 5.2s; --o: -1.1s; }
.crew li:nth-child(2) { --d: 4.3s; --o: -2.7s; }
.crew li:nth-child(3) { --d: 4.9s; --o: -.4s; }
.crew li:nth-child(4) { --d: 4.1s; --o: -3.3s; }
.crew li:nth-child(5) { --d: 5.6s; --o: -1.9s; }
.crew li:nth-child(6) { --d: 4.5s; --o: -4s; }
.crew li:nth-child(7) { --d: 5s; --o: -2.2s; }
.crew li:nth-child(8) { --d: 4.4s; --o: -.9s; }
.crew li:nth-child(9) { --d: 5.3s; --o: -3.6s; }
.crew li:nth-child(10) { --d: 4.7s; --o: -1.5s; }
.crew li:nth-child(11) { --d: 5.1s; --o: -2.9s; }
@media (prefers-reduced-motion: reduce) { .pxa path { animation: none; } .pxa .f0 { opacity: 1; } }

/* Проба /2/: жёлтая карточка режиссёра — текст слева, справа дорожка во всю
   оставшуюся ширину, по ней режиссёр ходит туда и обратно (владелец, 4 ноября).
   Одинаково на компьютере и телефоне. */
.crew.flat .boss { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; align-items: center; column-gap: clamp(16px, 4vw, 56px); padding: 24px clamp(18px, 3vw, 40px) 28px; }
.crew.flat .boss .boss-text { max-width: 30ch; }
.crew.flat .boss h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 8px; }
.crew.flat .boss p { font-size: clamp(14px, 1.4vw, 17px); line-height: 1.4; }
.walk-track { --w: clamp(56px, 6vw, 84px); position: relative; height: calc(var(--w) * 14 / 12); }
.walker { position: absolute; left: 0; bottom: 0; width: var(--w); color: var(--navy); animation: walk 16s linear infinite; }
.walker .px { display: block; width: 100%; height: auto; fill: currentColor; shape-rendering: crispEdges; animation: face 16s steps(1) infinite; }
/* Туда — 44% круга, постоять, обратно — 44%, постоять. Разворот — в точках стоянки. */
@keyframes walk { 0%, 3% { left: 0; } 47%, 53% { left: calc(100% - var(--w)); } 97%, 100% { left: 0; } }
@keyframes face { 0% { transform: none; } 50% { transform: scaleX(-1); } }
.pxw .wb { opacity: 0; }
.pxw .wa { animation: step-a .5s steps(1) infinite; }
.pxw .wb { animation: step-b .5s steps(1) infinite; }
@keyframes step-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes step-b { 0% { opacity: 0; } 50% { opacity: 1; } }
@media (max-width: 699px) { .crew.flat .boss { grid-column: 1 / -1; grid-template-columns: 44% minmax(0, 1fr); column-gap: 14px; } .crew.flat .boss .boss-text { max-width: none; } .crew.flat .boss h3 { font-size: 1.7rem; } .crew.flat .boss p { font-size: 13.5px; } .walk-track { --w: 44px; } }
@media (prefers-reduced-motion: reduce) { .walker, .walker .px, .pxw .wa, .pxw .wb { animation: none; } .pxw .wb { opacity: 0; } }

/* Проба /2/, телефон: окно чата в «от привет до MP4» тянется до низа экрана.
   Высота считается по видимой части экрана (dvh), а не по самой маленькой (svh):
   на iPhone при свёрнутой панели Safari svh меньше видимого, и снизу оставалась
   пустая полоса. Где dvh не знают, остаётся прежняя высота. */
@media (max-width: 899px) {
  .js-story .v2 .story-stick { top: 84px; height: calc(100svh - 96px); height: calc(100dvh - 96px); gap: 14px; }
  .js-story .v2 .story { height: calc(100dvh + 11 * 30svh); }
}

/* Проба /2/, правки 4 ноября. Режиссёр ходит по линии низа описания, а не по
   середине карточки; на телефоне он крупнее. */
.crew.flat .boss { align-items: end; }
@media (max-width: 699px) { .crew.flat .boss .walk-track { --w: 60px; } }
/* Заголовки агентов в одном ряду стоят на одной высоте: описание любой длины
   растёт вниз, а не толкает заголовок вверх. */
@media (min-width: 700px) {
  .crew.flat li:not(.boss):not(.critic) { grid-template-rows: auto auto 1fr; align-items: start; }
  .crew.flat li:not(.boss):not(.critic) h3 { align-self: start; margin-top: 44px; }
  .crew.flat li:not(.boss):not(.critic) .pic { align-self: center; margin-top: 30px; }
}

/* Проба /2/, телефон: в шапке вместо «Купить» — «Личный кабинет»; покупка
   переезжает под видео — жёлтая кнопка во всю ширину ролика. Отступ под ней до
   края синего блока такой же, как у следующего блока до его заголовка. На
   компьютере кнопки под видео нет: там «Купить» в шапке. */
.hero2-buy { display: none; }
@media (max-width: 899px) {
  .top.v2 .buy { display: none; }
  .hero2-buy { display: flex; width: 100%; margin-top: 24px; min-height: 56px; font-size: 17px; font-weight: 600; }
  .hero2 { padding-bottom: 72px; }
}

/* Проба /2/: ролики форматов 9:16 — четыре в ряд, на телефоне лента вбок. */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.reel { position: relative; margin: 0; cursor: pointer; }
.reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-card); background: var(--paper-sunk); box-shadow: 0 30px 50px -36px rgba(0, 0, 0, .55); }
.reel-sound { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: 500 12px var(--text); cursor: pointer; }
.reel.loud .reel-sound { background: var(--amber); color: var(--amber-ink); }
.reel figcaption { margin-top: 12px; }
.reel q { display: block; font-size: 15px; line-height: 1.35; quotes: "«" "»"; }
.reel .label { display: block; margin-top: 6px; }
@media (max-width: 899px) {
  .reels { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 62%; scroll-snap-align: start; }
}

/* Проба /2/: вкладки разделов библиотеки стилей. На телефоне — лента вбок. */
.style-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.style-tabs button { flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--paper-hi); color: var(--ink); font: 500 14px var(--text); cursor: pointer; white-space: nowrap; box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .4); }
.style-tabs button span { color: var(--muted); margin-left: 4px; }
.style-tabs button[aria-selected="true"] { background: var(--navy); color: var(--navy-ink); }
.style-tabs button[aria-selected="true"] span { color: rgba(244, 236, 208, .65); }
.style-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.style-panel[hidden] { display: none; }
.style-panel figure { margin: 0; }
.style-panel video, .style-panel img, .style-panel .card-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--paper-sunk); }
.style-panel .card-media.none { display: grid; place-items: center; font: 800 2rem var(--display); color: var(--muted); }
.style-panel figcaption { margin-top: 8px; font: 11.5px/1.35 var(--mono); }
.style-panel figcaption span { color: var(--muted); }
@media (max-width: 899px) {
  .style-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; }
  .style-tabs::-webkit-scrollbar { display: none; }
  .style-panel { grid-template-columns: 1fr 1fr; }
}

/* Проба /2/: в «Честно, чтобы не ошибиться» без полосок между строками — больше
   нигде на странице их нет (владелец, 4 ноября). */
.v2 #who .ticks li, .v2 #who .crosses li { box-shadow: none; padding-block: 8px; }

/* Проба /2/: блок цены — справа режиссёр-кассир. Моргает, потом глаза становятся
   рублями, он подпрыгивает, и из рук вылетают монетки. Цикл 7 с. */
.price2 { display: grid; gap: 28px; }
.cashier { position: relative; justify-self: center; width: 116px; color: var(--amber); }
.cashier-px { display: block; width: 100%; height: auto; fill: currentColor; shape-rendering: crispEdges; animation: cash-hop 7s infinite; }
.cashier-px path { opacity: 0; animation: 7s steps(1) infinite; }
.cashier-px .k0 { animation-name: cash-k0; }
.cashier-px .k1 { animation-name: cash-k1; }
.cashier-px .k2 { animation-name: cash-k2; }
@keyframes cash-k0 { 0% { opacity: 1; } 30% { opacity: 0; } 33% { opacity: 1; } 58% { opacity: 0; } 92% { opacity: 1; } }
@keyframes cash-k1 { 0% { opacity: 0; } 30% { opacity: 1; } 33% { opacity: 0; } }
@keyframes cash-k2 { 0% { opacity: 0; } 58% { opacity: 1; } 92% { opacity: 0; } }
@keyframes cash-hop { 0%, 60%, 100% { transform: none; } 63% { transform: translateY(-8%); } 66% { transform: none; } 69% { transform: translateY(-5%); } 72% { transform: none; } }
.coin { position: absolute; top: 58%; width: 9%; aspect-ratio: 1; background: var(--amber); opacity: 0; animation: coin 7s infinite; }
.coin.c1 { left: 6%; --x: -60%; }
.coin.c2 { left: 46%; top: 50%; --x: 0%; animation-delay: .15s; }
.coin.c3 { right: 6%; --x: 60%; animation-delay: .3s; }
@keyframes coin { 0%, 60% { opacity: 0; transform: none; } 62% { opacity: 1; transform: none; } 74% { opacity: 1; transform: translate(var(--x), -420%); } 86%, 100% { opacity: 0; transform: translate(calc(var(--x) * 1.4), -60%); } }
@media (min-width: 900px) {
  .price2 { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; }
  .cashier { width: clamp(180px, 20vw, 260px); margin-right: clamp(0px, 4vw, 60px); }
}
@media (prefers-reduced-motion: reduce) { .cashier-px, .cashier-px path, .coin { animation: none; } .cashier-px .k0 { opacity: 1; } }
