/* Собрано build/build.py из fonts, tokens, base, styles — правьте исходники */
/* Шрифты на сайте — self-host-fonts.py */
@font-face { font-family: 'Alumni Sans'; font-style: normal; font-weight: 200; font-display: swap; src: url('fonts/alumni-sans-200-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alumni Sans'; font-style: normal; font-weight: 200; font-display: swap; src: url('fonts/alumni-sans-200-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alumni Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/alumni-sans-800-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alumni Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/alumni-sans-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/cormorant-garamond-500-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/cormorant-garamond-500-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/onest-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/onest-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/onest-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/onest-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Токены ViNSo — из design/direction.md. Лист и чернила + свет каждой части цикла (задаётся у секции: --plane, --light). */
:root {
  --surface: #F3EEE3;      /* чистый лист */
  --ink: #15131C;          /* чернила */
  --ink-muted: #5C5664;    /* вторичный на листе, 6.3:1 */
  --accent: #15131C;       /* действие на листе — чернила; цвет даёт только свет части */
  --on-accent: #F3EEE3;
  --plane: #E7E0D2;        /* слот без картинки */
  --danger: #A1301F;
  --on-dark: #F3EEE3;
  --on-dark-muted: rgb(243 238 227 / .7);
  --night: #0F1429;        /* «Мой путь» */

  --font-display: 'Alumni Sans', 'Arial Narrow', sans-serif;
  --font-voice: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --step--1: clamp(.8rem, .78rem + .1vw, .875rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.8vw, 4rem);
  --step-4: clamp(3.6rem, 2rem + 8vw, 10rem);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 40px; --space-7: 64px; --space-8: 112px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);

  --radius-control: 0;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 160ms;
  --dur-reveal: 520ms;
  --dur-draw: 1200ms;

  /* Сигнатура: сердце с крыльями тонкой линией */
  --signature-stroke: 1.6px;
  --signature-gold: #B8862B;
  --signature-light: var(--light, var(--signature-gold));
}

/* base.css — механика и качественный минимум (§8). Внешнего вида здесь нет: цвет, шрифт, радиус, сетка секций — в styles.css из токенов.
   Файл не правится под проект; нужно другое поведение — переопредели в styles.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h, 72px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Фокус виден всегда (§8) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: .6em 1em; background: var(--ink); color: var(--surface);
}
.skip-link:focus { top: var(--gutter); }

/* Форма заявки: механика и состояния; вид полей — в styles.css */
.form { display: grid; gap: var(--space-4); max-width: 34rem; }
.field { display: grid; gap: var(--space-2); }
.field input, .field textarea { font: inherit; color: inherit; width: 100%; min-height: 44px; padding: .7em .9em; background: transparent; border: 1px solid color-mix(in oklab, var(--ink) 30%, transparent); border-radius: var(--radius-control); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger, #b3261e); }
.field__error { font-size: var(--step--1); color: var(--danger, #b3261e); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status:empty { display: none; }
.form[data-state="sending"] button[type="submit"] { opacity: .6; pointer-events: none; }

/* Шапка и меню: механика */
.header { position: sticky; top: 0; z-index: 50; background: var(--surface); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h, 72px); }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.nav__list { display: flex; gap: var(--space-5); }
.burger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform var(--dur-micro) var(--ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { padding: var(--space-5) var(--gutter) var(--space-6); border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
.mobile-menu ul { display: grid; gap: var(--space-3); font-size: var(--step-2); }

.lang { display: flex; gap: 2px; }
.lang button { min-width: 36px; min-height: 36px; background: none; border: 0; font-size: var(--step--1); opacity: .6; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .7em 1.4em; text-decoration: none; border: 1px solid transparent; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }

/* Слот изображения: пропорция держит место, пока картинки нет; без файла видна плоскость с именем слота */
.slot { position: relative; aspect-ratio: var(--ratio, 4/3); overflow: hidden; background: var(--plane); }
.slot > img, .slot > picture, .slot > picture > img { width: 100%; height: 100%; object-fit: cover; }
.slot.is-empty::after {
  content: attr(data-slot); position: absolute; inset: 0; display: grid; place-items: center;
  font: 500 var(--step--1)/1.2 ui-monospace, monospace; color: var(--ink-muted); letter-spacing: .04em;
}
.slot.is-empty > img, .slot.is-empty > picture { display: none; }

/* Появление при прокрутке — одно на странице, не на каждом блоке */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

.sticky-cta { display: none; }

@media (max-width: 900px) {
  .nav, .header__cta, .header__actions .lang { display: none; }
  .burger { display: block; }
  .sticky-cta {
    display: block; position: fixed; left: var(--gutter); right: var(--gutter); bottom: max(var(--gutter), env(safe-area-inset-bottom)); z-index: 40;
    transform: translateY(calc(100% + 2 * var(--gutter))); transition: transform var(--dur-reveal) var(--ease-out);
  }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta.is-on { transform: none; }
  body { padding-bottom: 88px; } /* липкая кнопка не закрывает контакты и подвал */
  .mobile-menu .lang { display: flex; margin-top: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* styles.css — вид ViNSo «С чистого листа». Всё из токенов; свет и плоскость части — --light / --plane у секции.
   Порядок: сигнатура → шапка → первый экран → лист (манифест, новое, цикл) → стопка частей → короткие → «Мой путь» → финал → телефон. */

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
em { font-family: var(--font-voice); font-style: italic; font-weight: 500; font-size: 1.08em; letter-spacing: -.01em; }

/* ── Сигнатура: сердце с крыльями ── */
.heart { display: block; overflow: visible; fill: none; stroke: var(--signature-light); stroke-linecap: round; stroke-linejoin: round; }
.heart--hero { stroke-width: .8; }
.heart--final { stroke-width: 1.2; }
.heart--mini { stroke-width: 5; }
.heart__core { fill: color-mix(in oklab, var(--signature-light) 0%, transparent); transition: fill 1.2s var(--ease-out); }
.heart--mini { width: 46px; flex: none; }

/* Рисование штрихом: перья по очереди, затем сердце и лучи */
.heart--draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.heart--draw.is-drawn path { animation: draw var(--dur-draw) var(--ease-out) forwards; }
.heart--draw.is-drawn .heart__wing path:nth-child(2) { animation-delay: 90ms; }
.heart--draw.is-drawn .heart__wing path:nth-child(3) { animation-delay: 180ms; }
.heart--draw.is-drawn .heart__wing path:nth-child(4) { animation-delay: 270ms; }
.heart--draw.is-drawn .heart__wing path:nth-child(5) { animation-delay: 360ms; }
.heart--draw.is-drawn .heart__core { animation-delay: 420ms; }
.heart--draw.is-drawn .heart__ray { animation-delay: 900ms; }
.heart--draw.is-drawn .heart__core { fill: color-mix(in oklab, var(--signature-light) 14%, transparent); transition-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Рваная надпись ViNSo — из логотипа, цвет берёт от текста */
.wordmark { display: block; aspect-ratio: 1592 / 676; background: currentColor;
  -webkit-mask: url(images/vinso-wordmark.webp) center / contain no-repeat; mask: url(images/vinso-wordmark.webp) center / contain no-repeat; }
.wordmark--logo { width: 92px; }

/* ── Кнопки и мелочи ── */
.btn { font-weight: 500; font-size: var(--step--1); letter-spacing: .02em; border-radius: 0; }
.btn--ink { background: var(--ink); color: var(--surface); }
.btn--ink:hover { background: color-mix(in oklab, var(--ink) 82%, var(--signature-gold)); }
.btn--light { background: var(--light, var(--signature-gold)); color: var(--ink); }
.btn--light:hover { background: color-mix(in oklab, var(--light, var(--signature-gold)) 82%, white); }

.play { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid currentColor; border-radius: 50%; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.play::before { content: ""; width: 12px; height: 14px; margin-left: 3px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play--big { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); }
.play--big::before { width: 26%; height: 30%; }

.tag { display: inline-block; padding: .3em .7em; border: 1px solid currentColor; font-size: var(--step--1); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.kicker { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }

/* ── Шапка ── */
.header { transition: background-color var(--dur-reveal) var(--ease-out), color var(--dur-reveal) var(--ease-out); }
.header__inner { min-height: 64px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.nav__list a { display: inline-block; padding: .6em 0; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 85% / 0 1px no-repeat; transition: background-size var(--dur-reveal) var(--ease-out); }
.nav__list a:hover { background-size: 100% 1px; }
.header.is-dark { background: var(--ink); color: var(--on-dark); }
.header.is-dark .btn--ink { background: var(--surface); color: var(--ink); }
.header.is-dark :focus-visible { outline-color: var(--signature-gold); }
.mobile-menu { position: fixed; inset: var(--header-h, 56px) 0 0; z-index: 60; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-5); background: var(--surface); color: var(--ink); border-top: 1px solid var(--ink); }
.mobile-menu .nav__list { display: grid; gap: 0; }
.mobile-menu .nav__list a { display: flex; align-items: center; min-height: 56px; padding: 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); font-family: var(--font-display); font-weight: 200; font-size: clamp(2.2rem, 11vw, 3rem); letter-spacing: 0; line-height: 1; background: none; }
.mobile-menu .lang { margin-top: 0; }
.mobile-menu .lang button { min-width: 48px; min-height: 48px; font-size: var(--step-0); }
.mobile-menu .btn { align-self: stretch; min-height: 52px; font-size: var(--step-0); }

/* ── Первый экран: чистый лист ── */
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h, 64px)); overflow: hidden; }
.hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding-top: var(--space-5); }
.hero__vis { font-family: var(--font-voice); font-style: italic; font-weight: 500; font-size: var(--step-1); }
.hero__live { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2em .5em; min-height: 44px; font-size: var(--step--1); text-decoration: none; }
.hero__live:hover .hero__song { text-decoration: underline; text-underline-offset: 4px; }
.hero__song { font-weight: 500; }
.hero__ago { color: var(--ink-muted); }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signature-gold); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); opacity: 1; } 12% { transform: scale(1.6); opacity: .7; } 24% { transform: scale(1); opacity: 1; } }
.hero__stage { flex: 1; display: grid; place-items: center; align-content: center; gap: var(--space-4); padding: var(--space-6) var(--gutter) var(--space-5); }
.heart--hero { width: clamp(260px, 36vw, 540px); }
.hero__line { font-size: var(--step-1); text-align: center; }
.hero__line em { font-size: 1.25em; }
.hero__word { margin: 0 calc(var(--gutter) * .5); line-height: 0; }
.hero__word .wordmark { width: 100%; transform: translateY(14%); margin-top: -7%; animation: rise 1.1s var(--ease-out) both; }
@keyframes rise { from { transform: translateY(40%); } }

/* ── Лист: манифест ── */
.manifest { padding-block: var(--space-8) var(--space-7); border-top: 1px solid var(--ink); }
.manifest__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); align-items: start; }
.manifest__kicker { grid-column: 1 / 4; font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.manifest__text { grid-column: 4 / 13; font-size: var(--step-2); line-height: 1.22; letter-spacing: -.012em; text-indent: 2.5em; }
.ai-note { grid-column: 9 / 13; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--ink); color: var(--ink-muted); }
.ai-note__label { margin-bottom: var(--space-2); color: var(--ink); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: var(--step--1); }

/* ── Лист: новый клип ── */
.latest { padding-block: var(--space-6) var(--space-8); }
.latest__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); align-items: end; }
.latest__head { grid-column: 1 / 5; display: grid; gap: var(--space-3); padding-bottom: var(--space-3); }
.latest__title { font-weight: 200; font-size: clamp(3.4rem, 1.6rem + 6vw, 8.5rem); line-height: .86; text-transform: uppercase; letter-spacing: -.01em; }
.latest__dur { color: var(--ink-muted); font-size: var(--step--1); }
.video { grid-column: 5 / 13; position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video__btn, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; transition: filter var(--dur-reveal) var(--ease-out); }
.video__btn .play { position: absolute; left: var(--space-5); bottom: var(--space-5); color: var(--on-dark); background: rgb(21 19 28 / .35); }
.video__btn:hover .play { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.video__btn:focus-visible { outline-offset: 4px; }

/* ── Лист: цикл и оглавление ── */
.cycle { padding-block: var(--space-7) var(--space-8); border-top: 1px solid var(--ink); }
.cycle__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5) var(--space-5); }
.cycle__title { grid-column: 1 / 13; font-weight: 200; font-size: clamp(3.4rem, 1rem + 10vw, 13rem); line-height: .82; text-transform: uppercase; letter-spacing: -.015em; }
.cycle__sub { grid-column: 1 / 5; font-family: var(--font-voice); font-style: italic; font-weight: 500; font-size: var(--step-1); line-height: 1.3; }
.toc { grid-column: 6 / 13; border-bottom: 1px solid var(--ink); }
.toc a { display: grid; grid-template-columns: 46px 3ch 1fr auto; align-items: center; gap: var(--space-4); min-height: 64px; padding-block: var(--space-2); border-top: 1px solid var(--ink); text-decoration: none; transition: padding var(--dur-reveal) var(--ease-out); }
.toc .heart { stroke: color-mix(in oklab, var(--light) 55%, var(--ink)); }
.toc__n { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); }
.toc__name { font-family: var(--font-display); font-weight: 200; font-size: var(--step-2); text-transform: uppercase; line-height: 1; }
.toc__count { font-size: var(--step--1); color: var(--ink-muted); }
.toc a:hover, .toc a:focus-visible, .toc a.is-on { padding-inline: var(--space-3); background: var(--plane); color: var(--on-dark); }
.toc a:hover .heart, .toc a:focus-visible .heart, .toc a.is-on .heart { stroke: var(--light); }
.toc a:hover .toc__count, .toc a.is-on .toc__count, .toc a:focus-visible .toc__count { color: var(--on-dark-muted); }
.toc a { transition: padding var(--dur-reveal) var(--ease-out), background-color var(--dur-reveal) var(--ease-out), color var(--dur-reveal) var(--ease-out); }
.cycle__peek { grid-column: 1 / 5; grid-row: 3; align-self: start; position: relative; aspect-ratio: 1; background: var(--plane); overflow: hidden; }
.cycle__peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out); }
.cycle__peek img.is-on { opacity: 1; }
.cycle__sub { grid-row: 2; }
.toc { grid-row: 2 / 4; align-self: start; }

/* ── Стопка частей: каждая наезжает на предыдущую ── */
.chapter { --signature-light: var(--light); position: sticky; top: var(--stick, 0px); min-height: 100svh; background: var(--plane); color: var(--on-dark); border-top: 1px solid color-mix(in oklab, var(--light) 45%, transparent); }
.in-tg .chapter { position: relative; top: auto; }
.chapter__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-6) var(--space-5); align-items: center; padding-block: var(--space-7); min-height: 100svh; }
.chapter__cover { grid-column: 1 / 7; grid-row: 1; justify-self: center; width: min(100%, calc(80svh * var(--ratio, 1))); }
.chapter__cover img { width: 100%; height: auto; }
.chapter__cover.reveal { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
.chapter__cover.reveal.is-in { clip-path: inset(0); }
.chapter__body { grid-column: 7 / 13; grid-row: 1; }
.chapter--flip .chapter__cover { grid-column: 7 / 13; }
.chapter--flip .chapter__body { grid-column: 1 / 7; }
.chapter__kicker { display: flex; align-items: center; gap: var(--space-3); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.chapter__num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); letter-spacing: 0; color: var(--light); }
.chapter__title { margin-top: var(--space-4); font-weight: 200; font-size: clamp(3rem, 1rem + 5.4vw, 7.4rem); line-height: .86; text-transform: uppercase; letter-spacing: -.01em; }
.chapter__line { margin-top: var(--space-4); font-size: var(--step-1); line-height: 1.3; color: var(--on-dark-muted); }
.chapter__line em { color: var(--light); }

/* Песни строками */
.tracks { margin-top: var(--space-6); border-bottom: 1px solid rgb(243 238 227 / .16); }
.track { border-top: 1px solid rgb(243 238 227 / .16); }
.track__btn { width: 100%; display: grid; grid-template-columns: 2.4ch 104px 1fr auto 44px; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; background: none; border: 0; text-align: left; }
.track__n { font-family: var(--font-display); font-weight: 800; font-size: var(--step-0); color: var(--on-dark-muted); }
.track__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: rgb(0 0 0 / .3); }
.track__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-reveal) var(--ease-out); }
.track__title { font-size: var(--step-1); font-weight: 500; line-height: 1.15; transition: color var(--dur-micro) var(--ease-out); }
.track__meta { display: grid; justify-items: end; font-size: var(--step--1); color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.track__btn:hover .track__title, .track__btn[aria-expanded="true"] .track__title { color: var(--light); }
.track__btn:hover .play, .track__btn[aria-expanded="true"] .play { background: var(--light); border-color: var(--light); color: var(--plane); }
.track__btn:hover .track__thumb img { transform: translateX(3%) scale(1.06); }
.track__btn:focus-visible { outline-color: var(--light); }
.track__player { position: relative; aspect-ratio: 16 / 9; margin-bottom: var(--space-4); background: #000; }
.track__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Короткие истории ── */
.shorts { padding-block: var(--space-8) var(--space-7); background: var(--ink); color: var(--on-dark); --light: var(--signature-gold); }
.shorts__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); }
.shorts__title { font-weight: 200; font-size: clamp(2.8rem, 1rem + 5vw, 6.5rem); line-height: .86; text-transform: uppercase; }
.shorts__sub { max-width: 30ch; color: var(--on-dark-muted); }
.shorts__nav { display: flex; gap: var(--space-2); }
.shorts__arrow { width: 52px; height: 52px; border: 1px solid currentColor; border-radius: 50%; background: none; display: grid; place-items: center; }
.shorts__arrow::before { content: ""; width: 12px; height: 12px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateX(-2px) rotate(45deg); }
.shorts__arrow--prev::before { transform: translateX(2px) rotate(-135deg); }
.shorts__arrow:hover { background: var(--signature-gold); border-color: var(--signature-gold); color: var(--ink); }
.shorts__arrow:disabled { opacity: .3; pointer-events: none; }
.shorts__arrow:focus-visible { outline-color: var(--signature-gold); }
.shorts .shorts__rail { display: flex; gap: var(--space-4); margin-top: var(--space-6); padding: 0 max(var(--gutter), (100% - var(--container)) / 2) var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100% - var(--container)) / 2); scrollbar-width: thin; scrollbar-color: rgb(243 238 227 / .45) rgb(243 238 227 / .08); }
.shorts__rail::after { content: ""; flex: 0 0 1px; }
.short { flex: 0 0 clamp(200px, 19vw, 260px); scroll-snap-align: start; }
.short__btn { position: relative; display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; }
.short__btn img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: opacity var(--dur-micro) var(--ease-out); }
.short__btn .play { position: absolute; right: var(--space-3); top: var(--space-3); color: var(--on-dark); background: rgb(21 19 28 / .45); }
.short__btn:hover .play { background: var(--signature-gold); border-color: var(--signature-gold); color: var(--ink); }
.short__title { display: block; margin-top: var(--space-3); font-weight: 500; line-height: 1.2; }
.short__btn:focus-visible { outline-color: var(--signature-gold); }

/* ── «Мой путь» — скоро ── */
.next { --light: #E8B64C; --signature-light: var(--light); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--space-6); padding: var(--space-8) max(var(--gutter), (100% - var(--container)) / 2); background: var(--night); color: var(--on-dark); }
.next__cover img { width: 100%; height: auto; }
.next__body { width: auto; margin: 0; display: grid; gap: var(--space-4); justify-items: start; }
.next__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; font-weight: 200; font-size: clamp(3.6rem, 1rem + 5.6vw, 8.6rem); line-height: .82; text-transform: uppercase; }
.next__soon { font-family: var(--font-voice); font-style: italic; font-weight: 500; font-size: .42em; text-transform: none; color: var(--light); }
.next__text { max-width: 36ch; font-size: var(--step-1); color: var(--on-dark-muted); }
.next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-top: var(--space-3); }
.next :focus-visible { outline-color: var(--light); }
.link-play { min-height: 44px; padding: 0; background: none; border: 0; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--light); }

/* ── Финал: снова чистый лист ── */
.final { padding-top: var(--space-8); overflow: hidden; }
.final__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); align-items: center; }
.heart--final { grid-column: 1 / 4; width: 100%; max-width: 300px; }
.final__line { grid-column: 4 / 13; font-weight: 200; font-size: clamp(2.6rem, 1rem + 4.6vw, 6.4rem); line-height: .92; text-transform: uppercase; }
.final__line em { text-transform: none; font-size: .9em; }
.final__links { grid-column: 4 / 13; margin-top: var(--space-6); border-bottom: 1px solid var(--ink); }
.final__links a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--ink); text-decoration: none; }
.final__net { font-family: var(--font-display); font-weight: 200; font-size: var(--step-3); line-height: 1; text-transform: uppercase; transition: letter-spacing var(--dur-reveal) var(--ease-out); }
.final__handle { color: var(--ink-muted); font-size: var(--step--1); }
.final__links a:hover .final__net { letter-spacing: .04em; }
.final__word { margin: var(--space-7) calc(var(--gutter) * .5) 0; line-height: 0; }
.final__word .wordmark { width: 100%; transform: translateY(18%); margin-top: -8%; }
.final__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-block: var(--space-4); color: var(--ink-muted); position: relative; background: var(--surface); }

/* ── Просмотр короткого видео ── */
.viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(15 20 41 / .94); color: var(--on-dark); }
.viewer::backdrop { background: transparent; }
.viewer[open] { display: grid; place-items: center; }
.viewer__frame { position: relative; height: min(86svh, 160vw); aspect-ratio: 9 / 16; background: #000; }
.viewer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer__close { position: absolute; top: var(--space-4); right: var(--space-4); width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; background: none; z-index: 1; }
.viewer__close::before, .viewer__close::after { content: ""; position: absolute; left: 13px; right: 13px; top: 23px; height: 1px; background: currentColor; transform: rotate(45deg); }
.viewer__close::after { transform: rotate(-45deg); }
.viewer__close:focus-visible { outline-color: var(--signature-gold); }

/* Липкая кнопка на телефоне — золото видно и на листе, и на тёмных частях */
.sticky-cta .btn { background: var(--cta-bg, var(--ink)); color: var(--cta-ink, var(--surface)); transition: background-color var(--dur-reveal) var(--ease-out), color var(--dur-reveal) var(--ease-out); }
.sticky-cta.is-off { transform: translateY(calc(100% + 2 * var(--gutter))) !important; }

/* ── Ноутбук и планшет ── */
@media (max-width: 1100px) {
  .chapter__cover, .chapter--flip .chapter__cover { grid-column: 1 / 13; grid-row: 1; width: min(100%, calc(62svh * var(--ratio, 1))); }
  .chapter__body, .chapter--flip .chapter__body { grid-column: 1 / 13; grid-row: 2; }
  .chapter__inner { align-items: start; }
  .latest__head { grid-column: 1 / 13; }
  .video { grid-column: 1 / 13; }
  .toc, .cycle__sub { grid-column: 1 / 13; grid-row: auto; }
  .cycle__peek { display: none; }
}

/* ── Телефон: своя композиция ── */
@media (max-width: 900px) {
  .header__inner { min-height: 56px; }
  .hero__top { padding-top: var(--space-4); gap: var(--space-2) var(--space-4); }
  .hero__vis { order: 3; width: 100%; }
  .hero__live { margin-left: 0; order: 2; width: 100%; padding: var(--space-2) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .hero__stage { padding-block: var(--space-5) var(--space-4); }
  .heart--hero { width: min(88vw, 420px); }
  .hero__word { margin-inline: 0; }
  .hero__word .wordmark { transform: none; margin-top: 0; margin-bottom: var(--space-3); }

  .manifest { padding-block: var(--space-7) var(--space-6); }
  .manifest__kicker, .manifest__text, .ai-note { grid-column: 1 / 13; }
  .manifest__text { text-indent: 1.5em; font-size: clamp(1.45rem, 1rem + 2.4vw, 2rem); }
  .ai-note { margin-top: var(--space-4); }

  .latest { padding-block: var(--space-5) var(--space-7); }
  .latest__title { font-size: clamp(3.2rem, 17vw, 5.5rem); }
  .video { margin-inline: calc(var(--gutter) * -1); }

  .cycle { padding-block: var(--space-6) var(--space-7); }
  .cycle__title { font-size: clamp(3.2rem, 21vw, 6rem); }
  .toc a { grid-template-columns: 40px 2.6ch 1fr auto; gap: var(--space-3); }
  .heart--mini { width: 40px; }

  /* Часть: обложка во весь экран, название наезжает плашкой на её низ */
  .chapter { min-height: 0; }
  .chapter__inner { width: 100%; min-height: 0; padding-block: 0 var(--space-7); gap: 0; }
  .chapter__cover, .chapter--flip .chapter__cover { width: 100%; max-height: 72svh; overflow: hidden; }
  .chapter__cover img { height: 100%; max-height: 72svh; object-fit: cover; }
  .chapter__body, .chapter--flip .chapter__body { padding-inline: var(--gutter); }
  .chapter__head { position: relative; margin-top: -3.6rem; padding: var(--space-4) var(--space-4) 0; margin-left: calc(var(--space-4) * -1); background: var(--plane); width: fit-content; max-width: calc(100% + var(--space-4)); }
  .chapter__title { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .tracks { margin-top: var(--space-5); }
  .track__btn { grid-template-columns: 84px 1fr 40px; grid-template-rows: auto auto; gap: 2px var(--space-3); }
  .track__n { display: none; }
  .track__thumb { grid-row: 1 / 3; }
  .track__title { font-size: var(--step-0); align-self: end; }
  .track__meta { grid-column: 2; grid-row: 2; display: flex; gap: var(--space-3); justify-items: start; align-self: start; }
  .track__btn .play { grid-column: 3; grid-row: 1 / 3; width: 40px; height: 40px; }
  .track__player { margin-inline: calc(var(--gutter) * -1); }

  .shorts { padding-block: var(--space-7) var(--space-6); }
  .short { flex-basis: 62vw; }
  .shorts__nav { display: none; }

  .next { grid-template-columns: 1fr; padding: 0 0 var(--space-7); gap: var(--space-5); }
  .next__body { padding-inline: var(--gutter); }
  .next__title { font-size: clamp(3.4rem, 19vw, 6rem); }

  .final { padding-top: var(--space-7); }
  .heart--final { grid-column: 1 / 13; max-width: 200px; }
  .final__line, .final__links { grid-column: 1 / 13; }
  .final__links { margin-top: var(--space-4); }
  .final__word { margin-inline: 0; }
  .final__word .wordmark { transform: none; margin-top: 0; }
  .final__legal { padding-bottom: calc(var(--space-4) + 72px); }
}

@media (max-width: 380px) {
  .tag { letter-spacing: .1em; }
  .toc__count { display: none; }
  .toc a { grid-template-columns: 40px 2.6ch 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .heart--draw path { stroke-dashoffset: 0; }
  .chapter__cover.reveal { clip-path: none; }
  .hero__word .wordmark { animation: none; }
  .hero__dot { animation: none; }
}
