/* =========================================================================
   Дом Ангелины — «живой стиль» (ризо + Т—Ж)
   Один файл: токены → база → типографика → раскладка → компоненты.
   Эталон внешнего вида: dom-angeliny/dom-angeliny/design/live/*.dc.html (390 px).
   ========================================================================= */

/* ---------- 1. Токены ---------- */
:root {
  /* три краски ризографа */
  --sun: #F2B53A;
  --blue: #24548C;
  --pink: #EE5A8C;

  --ink: #1F2430;
  --ink-soft: #3B3A40;          /* второстепенный текст на светлом */
  --paper: #F5ECDC;
  --card: #FFF8EC;
  --pink-soft: rgba(238, 90, 140, .4);

  /* краски для ТЕКСТА: исходные не дотягивают до 4.5:1 мелким кеглем */
  --pink-text: #C2306A;         /* розовый текст на бумаге/карточке (4.6–5.1:1) */
  --sun-text: #F6C65C;          /* жёлтый текст на синем (4.8:1) */

  /* фоны кадров эпизода: фон / текст / дорожка прогресса */
  --fr-dark-bg: #1F2430;  --fr-dark-fg: #F5ECDC;  --fr-dark-track: rgba(245, 236, 220, .25);
  --fr-night-bg: #24548C; --fr-night-fg: #F5ECDC; --fr-night-track: rgba(245, 236, 220, .3);
  --fr-paper-bg: #F5ECDC; --fr-paper-fg: #1F2430; --fr-paper-track: rgba(31, 36, 48, .18);
  --fr-warm-bg: #F9D3DF;  --fr-warm-fg: #1F2430;  --fr-warm-track: rgba(31, 36, 48, .18);
  --fr-sun-bg: #F7DC96;   --fr-sun-fg: #1F2430;   --fr-sun-track: rgba(31, 36, 48, .18);

  --f-display: 'Unbounded', system-ui, sans-serif;  /* заголовки, цифры, метки, кнопки */
  --f-voice: 'Spectral', Georgia, serif;            /* голос Ангелины */
  --f-body: 'Manrope', system-ui, sans-serif;       /* текст и интерфейс */

  --gutter: 24px;
  --site-max: 480px;            /* макеты мобильные; на десктопе — колонка по центру */
  --r-pill: 999px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-note: 4px 16px 16px 16px; /* «оторванный» угол заметки */
  --tap: 44px;                  /* минимальная сенсорная цель */

  --grain: url("../img/grain.0475bc5419be.png");
}


/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--blue); }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

p { margin: 0; }

/* Фокус: двухцветное кольцо — видно и на светлых, и на тёмных плашках */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--paper);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--paper); }

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


/* ---------- 3. Раскладка ---------- */

/* Обёртка страницы. clip, а не hidden: наклонные ленты вылезают за край,
   но горизонтального скролла быть не должно и sticky продолжает работать. */
.site {
  max-width: var(--site-max);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: var(--grain);   /* зерно и в промежутках между плашками — без «швов» */
  background-size: 256px 256px;
}
.site__main { flex-grow: 1; }

/* Зерно: накладывается на любой фон, цвет задаётся background-color */
.grain {
  background-image: var(--grain);
  background-size: 256px 256px;
}

/* Плашка-раздел: секция на всю ширину с цветным фоном + зерно */
.band {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 52px var(--gutter) 48px;
  background-color: var(--paper);
  background-image: var(--grain);
  background-size: 256px 256px;
}
.band--sun   { background-color: var(--sun); }
.band--blue  { background-color: var(--blue); color: var(--paper); }
.band--pink  { background-color: var(--pink); }
.band--ink   { background-color: var(--ink); color: var(--paper); }
.band--hero  { padding: 8px 0 44px; gap: 0; }       /* первый экран: шапка своя, без боковых полей */
.band--flush { padding-left: 0; padding-right: 0; }

.band--blue a, .band--ink a { color: var(--paper); }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 10px); }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Горизонтальная лента со скрытым скроллбаром (сезоны, чипсы тем) */
.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hscroll::-webkit-scrollbar { display: none; }


/* ---------- 4. Типографика ---------- */

/* Кикер — надпись над разделом */
.kicker {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker--sm   { font-size: 10px; }
.kicker--pink { color: var(--pink-text); }
.kicker--sun  { color: var(--sun-text); }          /* только на синем/тёмном */

/* Крупные заголовки Unbounded */
.display {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 42px;
  line-height: .95;
  letter-spacing: -.02em;
}
.display--s  { font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.display--l  { font-size: 50px; }
.display--xl { font-size: 64px; line-height: .9; letter-spacing: -.03em; }

/* Голос Ангелины — всегда Spectral */
.voice {
  margin: 0;
  font-family: var(--f-voice);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
}
.voice--italic { font-style: italic; }
.voice--light  { font-weight: 300; }
.voice--s  { font-size: 19px; line-height: 1.4; }
.voice--l  { font-size: 30px; line-height: 1.2; }
.voice--xl { font-size: 40px; line-height: 1.05; }

/* Обычный текст */
.text      { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.text--lg  { font-size: 16px; line-height: 1.65; }
.text--s   { font-size: 13px; line-height: 1.4; font-weight: 500; }
.band--blue .text, .band--ink .text { color: var(--paper); }

/* Маркер: розовое выделение снизу, как фломастером */
.marker {
  background: linear-gradient(180deg, transparent 58%, var(--pink-soft) 58%, var(--pink-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Подчёркивание жёлтым (на синем) */
.underline-sun { box-shadow: inset 0 -3px 0 var(--sun); }

/* Обводка от руки: слово внутри, SVG-петля поверх (см. templates/components/scribble.html) */
.scribble {
  position: relative;
  display: inline-block;
  padding: 0 6px;
}
.scribble__loop {
  position: absolute;
  left: -12px; top: -10px;
  width: calc(100% + 24px);
  height: calc(100% + 20px);
  pointer-events: none;
  overflow: visible;
}


/* ---------- 5. Компоненты ---------- */

/* -- Шапка страницы: «← Дом» + метка комнаты -- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--gutter) 0 8px;
}
.topbar__back {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.topbar--home { padding: 0 8px 0 var(--gutter); }

/* -- Стикер: скруглённый блок с наклоном --
   Наклон: --tilt (по умолчанию −2°). Варианты фона, рамки и жёсткой тени. */
.sticker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--ink);
  transform: rotate(var(--tilt, -2deg));
}
.sticker--sun    { background: var(--sun); }
.sticker--blue   { background: var(--blue); color: var(--paper); }
.sticker--pink   { background: var(--pink); }
.sticker--ink    { background: var(--ink); color: var(--paper); }
.sticker--card   { background: var(--card); border: 2px solid var(--ink); }
.sticker--shadow { box-shadow: 8px 8px 0 var(--shadow, var(--pink)); }
.sticker--shadow-blue { --shadow: var(--blue); }
a.sticker { text-decoration: none; }

/* -- Ризо-подложка: цветная плашка со сдвигом под картинкой/карточкой --
   Обёртка задаёт размер; первый ребёнок — содержимое.
   --under: цвет, --under-tilt и --tilt: наклоны подложки и содержимого. */
.riso {
  position: relative;
  display: block;
}
.riso::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border-radius: var(--riso-radius, 18px);
  background: var(--under, var(--pink));
  transform: rotate(var(--under-tilt, 2deg));
}
.riso > * {
  position: relative;
  border-radius: var(--riso-radius, 18px);
  transform: rotate(var(--tilt, -1.5deg));
}
.riso > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.riso--blue { --under: var(--blue); }
.riso--sun  { --under: var(--sun); }
.riso--arch { --riso-radius: 160px 160px 18px 18px; }   /* портрет-арка на «Обо мне» */

/* -- Заметка на полях: жёлтый листок с оторванным углом -- */
.note {
  padding: 14px 16px;
  border-radius: var(--r-note);
  background: var(--sun);
  color: var(--ink);
  transform: rotate(var(--tilt, -1.5deg));
}
.note__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.note__text {
  font-family: var(--f-voice);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
}
.note--card {
  padding: 22px 22px 18px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(42, 37, 33, .12);
}
.note--card .note__label { color: var(--pink-text); letter-spacing: .18em; font-family: var(--f-body); font-size: 11px; font-weight: 600; }
.note--card .note__text { font-size: 21px; }

/* -- Круглый значок: ICF, «бесплатно», «скоро» -- */
.badge {
  width: var(--size, 76px);
  height: var(--size, 76px);
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  transform: rotate(var(--tilt, 12deg));
}
.badge--s  { --size: 64px; --tilt: -14deg; }
.badge--l  { --size: 104px; }
.badge--pink { background: var(--pink); --tilt: 14deg; --size: 84px; } /* в макете 76 px — «бесплатно» вылезал за круг */
.badge--blue { background: var(--blue); color: var(--paper); box-shadow: 0 6px 0 rgba(31, 36, 48, .25); }
.badge__big { font-weight: 800; font-size: 22px; line-height: 1; }
.badge__small { margin-top: 4px; font-family: var(--f-body); font-weight: 600; font-size: 10px; }

/* -- Таблетка-метка (СЕЗОН 1, ЗАКРЕПЛЕНО) -- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.tag--card { background: var(--card); }
.tag--pink { background: var(--pink-soft); }

/* -- Чипсы: облако качеств или фильтр тем -- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(var(--tilt, 0deg));
}
.chip--fill-ink  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--fill-sun  { background: var(--sun); border-color: var(--sun); }
.chip--fill-pink { background: var(--pink); border-color: var(--pink); }
.chip--fill-soft { background: var(--pink-soft); border-color: transparent; }
.chip--plain { font-family: var(--f-body); font-size: 14px; font-weight: 600; } /* «что мне помогает» */
/* чипсы-подписи (не кнопки): размер как в макете, без минимума сенсорной цели */
li.chip, span.chip { min-height: 0; padding: 10px 14px; }
/* фильтр: нажатая кнопка */
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--sun); }

/* -- Лента: синяя полоса через всю ширину, слова через жёлтые точки -- */
.ribbon {
  position: relative;
  z-index: 2;
  margin: -18px -40px 0;
  padding: 14px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  background: var(--blue);
  color: var(--paper);
  transform: rotate(-3deg);
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.ribbon__dot { color: var(--sun); }

/* -- Кнопки -- */
/* CTA: тёмная таблетка, справа жёлтый кружок со стрелкой */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 10px 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: left;
}
.cta:hover { color: var(--paper); background: #2C3344; }
.cta__arrow {
  width: var(--tap);
  height: var(--tap);
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 20px;
}
/* CTA с двумя строками: «вы остановились / Клубок · Эпизод 2» */
.cta__text { display: flex; flex-direction: column; gap: 2px; }
.cta__eyebrow {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun);
}
.cta__title { font-size: 14px; }

/* Простые кнопки-таблетки */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.btn--sun {
  border-color: var(--sun);
  background: var(--sun);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
}
.btn--sun:hover { color: var(--ink); background: #F5C04F; }
.btn--display { font-family: var(--f-display); font-size: 13px; font-weight: 700; }

/* Переключатель (Знакомство / Сейчас) */
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--ink);
}
.segmented__btn {
  min-height: var(--tap);
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
}
.segmented__btn[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.segmented__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }

/* -- Нумерованные шаги «как это бывает» -- */
.steps { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; gap: 16px; align-items: center; padding: 8px 0; }
.step__num {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sun);
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
}
.step__num--pink { background: var(--pink); }
.step__num--blue { background: var(--blue); color: var(--paper); }
.step__title { display: block; font-size: 16px; font-weight: 700; }
.step__text { display: block; font-size: 14px; color: var(--ink-soft); }

/* -- FAQ на <details>: работает без JS -- */
.faq__item { border-top: 2px solid var(--ink); }
.faq__q {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__sign {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 16px;
}
.faq__sign::before { content: "+"; }
.faq__item[open] .faq__sign { background: var(--sun); }
.faq__item[open] .faq__sign::before { content: "−"; }
.faq__a { margin: 0 0 18px; font-family: var(--f-voice); font-size: 19px; line-height: 1.4; }

/* -- Форма -- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field__input {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}
textarea.field__input { padding: 12px 14px; resize: vertical; min-height: 110px; }
.field__input::placeholder { color: #6B6A70; }
.field__input:focus-visible { outline-offset: 1px; }
.field__error { color: #B3261E; font-weight: 600; }

/* -- Тетрис комнат: сетка 4×6, ряд 80 px, gap 8 --
   Г-фигура = ссылка во всю свою область + два абсолютных блока-«кирпича».
   Кликабельны только кирпичи (pointer-events), чтобы пустой угол Г не перехватывал соседа. */
.rooms {
  --gap: 8px;
  --row: 80px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(6, var(--row));
  gap: var(--gap);
}
.room {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
}
.room:hover { color: inherit; }
.room__num   { position: absolute; font-size: 13px; pointer-events: none; }
.room__label { position: absolute; pointer-events: none; }
.room__brick { position: absolute; pointer-events: auto; }
.room--shape { pointer-events: none; }
/* фокус на Г-фигурах рисуем на кирпичах, а не на прямоугольнике ссылки */
.room--shape:focus-visible { outline: none; box-shadow: none; }
.room--shape:focus-visible .room__brick { outline: 3px solid var(--ink); outline-offset: 2px; }

/* 01 Блог — Г: верхняя полоса на 3 колонки, ножка в первой колонке */
.room--blog { grid-column: 1 / 4; grid-row: 1 / 4; --col: calc((100% - 2 * var(--gap)) / 3); }
.room--blog .room__brick { background: var(--card); border: 2px solid var(--ink); }
.room--blog .room__brick--top {
  left: 0; top: 0; right: 0;
  height: calc(2 * var(--row) + var(--gap));
  border-radius: 16px 16px 16px 0;
  border-bottom-color: transparent;
}
.room--blog .room__brick--leg {
  left: 0; bottom: 0;
  top: calc(2 * var(--row) + var(--gap) - 18px);
  width: var(--col);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
.room--blog .room__seam {     /* нижняя граница верхней полосы правее ножки */
  position: absolute;
  left: calc(var(--col) + 2px); right: 0;
  top: calc(2 * var(--row) + var(--gap) - 2px);
  height: 2px;
  background: var(--ink);
  pointer-events: none;
}
.room--blog .room__num { left: 18px; top: 16px; color: var(--pink-text); }
.room--blog .room__label { left: 18px; top: 86px; display: flex; flex-direction: column; gap: 6px; }
.room--blog .room__title { font-size: 30px; line-height: 1; }
.room__sub { font-family: var(--f-body); font-weight: 500; font-size: 13px; }

/* 02 Практики — палочка 1×4 */
.room--practice {
  grid-column: 4 / 5; grid-row: 1 / 5;
  border-radius: 16px;
  background: var(--sun);
}
.room--practice .room__num { left: 12px; top: 14px; }
.room--practice .room__label {
  left: 14px; bottom: 16px;
  font-size: 19px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* 03 Сериалы — квадрат 2×2 с наклоном, поверх соседей */
.room--series {
  z-index: 3;
  grid-column: 2 / 4; grid-row: 3 / 5;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-2deg);
}
.room--series:hover { color: var(--paper); }
.room--series .room__num { left: 16px; top: 14px; color: var(--sun); }
.room--series .room__label { left: 16px; bottom: 16px; font-size: 20px; }

/* 04 Обо мне — Г: столбик в первой колонке + полоса на 2 колонки */
.room--about {
  z-index: 2;
  grid-column: 1 / 3; grid-row: 4 / 6;
  color: var(--paper);
  --col: calc((100% - var(--gap)) / 2);
}
.room--about:hover { color: var(--paper); }
.room--about .room__brick { background: var(--blue); }
.room--about .room__brick--top { left: 0; top: 0; width: var(--col); height: calc(var(--row) + 20px); border-radius: 16px 16px 0 0; }
.room--about .room__brick--base { left: 0; right: 0; top: calc(var(--row) + var(--gap)); bottom: 0; border-radius: 0 16px 16px 16px; }
.room--about .room__num { left: 14px; top: 14px; color: var(--sun); }
.room--about .room__label { left: 14px; bottom: 16px; font-size: 18px; }

/* 05 Кабинет — Г на всю ширину: выступ справа + полоса */
.room--talk {
  z-index: 1;
  grid-column: 1 / 5; grid-row: 5 / 7;
}
.room--talk .room__brick { background: var(--pink); }
.room--talk .room__brick--top { left: calc(50% + var(--gap) / 2); right: 0; top: 0; height: calc(var(--row) + 20px); border-radius: 16px 16px 0 0; }
.room--talk .room__brick--base { left: 0; right: 0; top: calc(var(--row) + var(--gap)); bottom: 0; border-radius: 16px 0 16px 16px; }
.room--talk .room__num { right: 16px; top: 14px; }
.room--talk .room__label {
  left: 18px; right: 12px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.room--talk .room__title { font-family: var(--f-voice); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.05; }
.room--talk .room__arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-body); font-size: 18px;
}

/* -- Кадр эпизода: фон и цвет текста по data-bg -- */
.frame { background-color: var(--fr-bg); color: var(--fr-fg); background-image: var(--grain); background-size: 256px 256px; }
.frame[data-bg="dark"]  { --fr-bg: var(--fr-dark-bg);  --fr-fg: var(--fr-dark-fg);  --fr-track: var(--fr-dark-track);  --fr-dot: var(--sun); }
.frame[data-bg="night"] { --fr-bg: var(--fr-night-bg); --fr-fg: var(--fr-night-fg); --fr-track: var(--fr-night-track); --fr-dot: var(--sun); }
.frame[data-bg="paper"] { --fr-bg: var(--fr-paper-bg); --fr-fg: var(--fr-paper-fg); --fr-track: var(--fr-paper-track); --fr-dot: var(--pink); }
.frame[data-bg="warm"]  { --fr-bg: var(--fr-warm-bg);  --fr-fg: var(--fr-warm-fg);  --fr-track: var(--fr-warm-track);  --fr-dot: var(--pink); }
.frame[data-bg="sun"]   { --fr-bg: var(--fr-sun-bg);   --fr-fg: var(--fr-sun-fg);   --fr-track: var(--fr-sun-track);   --fr-dot: var(--pink); }

/* -- Полоски прогресса (сторис, кадры) -- */
.progress { display: flex; gap: 4px; }
.progress__seg { flex-grow: 1; height: 3px; border-radius: 2px; background: var(--track, rgba(31, 36, 48, .2)); overflow: hidden; }
.progress__fill { display: block; height: 100%; width: var(--fill, 0%); border-radius: 2px; background: var(--bar, var(--ink)); }

/* -- Подвал -- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px var(--gutter);
  background-color: var(--sun);
  background-image: var(--grain);
  background-size: 256px 256px;
  font-size: 12px;
  font-weight: 600;
}
.footer a { color: inherit; }
.footer-credit { flex-basis: 100%; font-weight: 500; }


/* ---------- 6. Страницы ---------- */

/* Шапка-герой: заголовок из двух шрифтов */
.hero-title { margin: 0; display: flex; flex-direction: column; gap: 6px; font-weight: inherit; }
.hero-lead  { margin-top: 8px; font-size: 15px; font-weight: 500; }

/* -- Главная: сторис -- */
.stories {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.stories__stage {
  position: relative;
  width: min(330px, 100% - 60px);
  aspect-ratio: 330 / 534;
}
.stories__stage::before {          /* розовая ризо-подложка */
  content: "";
  position: absolute;
  inset: 12px -8px -10px 12px;
  border-radius: 24px;
  background: var(--pink);
  transform: rotate(2.5deg);
}
.story {
  --story-tone: var(--paper);
  --track: rgba(31, 36, 48, .2);
  --bar: var(--ink);
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--story-tone);
  transform: rotate(-1deg);
}
.story[data-photo] { --track: rgba(255, 255, 255, .45); --bar: #FFFFFF; }
.story__progress { position: absolute; z-index: 3; top: 12px; left: 14px; right: 14px; pointer-events: none; }
.story__head {
  position: absolute;
  z-index: 3;
  top: 25px; left: 14px; right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.story__label {
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--sun);
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
}
/* «1 / 6» — это и кнопка паузы: автопрокрутку обязательно можно остановить */
.story__meta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  pointer-events: auto;
}
.story__meta-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(245, 236, 220, .92);
  font-size: 12px;
  font-weight: 600;
}
.story__pause-icon { width: 8px; height: 9px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.story__meta[aria-pressed="true"] .story__pause-icon {     /* на паузе — треугольник «играть» */
  width: 0; height: 0; border-right: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor;
}
.story__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 14px 16px;
}
.story__slide[hidden] { display: none; }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__text {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid var(--ink);
  font-family: var(--f-voice);
  font-size: 20px;
  line-height: 1.3;
  pointer-events: none;
}
.story__tap {
  position: absolute;
  z-index: 1;
  top: 0; bottom: 0;
  border: 0;
  background: transparent;
}
.story__tap--prev { left: 0; width: 40%; cursor: w-resize; }
.story__tap--next { right: 0; width: 60%; cursor: e-resize; }
.story__tap:focus-visible { outline-offset: -6px; box-shadow: none; }
.stories__hint { margin-top: 6px; font-size: 13px; font-weight: 600; }

.tone-sun   { --story-tone: #F7D98F; }
.tone-pink  { --story-tone: #F9C3D5; }
.tone-blue  { --story-tone: #BFD0E6; }
.tone-paper { --story-tone: var(--paper); }

/* -- Карточки сезонов (горизонтальная лента) -- */
.season-cards { padding: 18px var(--gutter) 8px; }
.season-card {
  flex-shrink: 0;
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}
.season-card__cover { position: relative; display: block; width: 190px; height: 260px; transform: rotate(-2deg); }
.season-card__cover::before {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  border-radius: 16px;
  background: var(--blue);
}
.season-card__cover img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.season-card__tag { position: absolute; z-index: 1; left: 12px; top: 12px; }
.season-card__title {
  position: absolute;
  z-index: 1;
  left: 12px; bottom: 14px;
  padding: 4px 12px 7px;
  border-radius: 10px;
  background: var(--card);
  font-family: var(--f-voice);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
}
.season-card__text { font-size: 13px; font-weight: 500; line-height: 1.4; }
/* сезон без обложки — розовая плашка; без эпизодов — со значком «скоро» */
.season-card__plain {
  position: relative;
  width: 190px;
  height: 260px;
  padding: 14px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--pink);
  background-image: var(--grain);
  background-size: 256px 256px;
  transform: rotate(2deg);
}
.season-card__plain-title { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: .98; }
.season-card__soon { position: absolute; right: -10px; top: 70px; }

/* -- Карточка поста (закреплённый, на главной и в блоге) -- */
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transform: rotate(-1deg);
  box-shadow: 8px 8px 0 var(--shadow, var(--pink));
}
.band--blue a.post-card, a.post-card:hover { color: var(--ink); }
.post-card--blue-shadow { --shadow: var(--blue); }
.post-card__media { position: relative; display: block; height: 170px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media .tag { position: absolute; top: 12px; left: 12px; padding: 6px 12px; }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card__meta { font-size: 12px; font-weight: 600; color: var(--pink-text); }
.post-card__title { font-family: var(--f-voice); font-size: 25px; line-height: 1.2; }
.post-card__excerpt { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-head__link { min-height: var(--tap); display: flex; align-items: center; font-size: 13px; font-weight: 600; }

/* -- Сезон: нить эпизодов -- */
.season-hero { padding-bottom: 34px; }
.season-cover { position: relative; height: 300px; margin: 6px 30px 0; }
.season-cover::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border-radius: 18px;
  background: var(--blue);
  transform: rotate(2deg);
}
.season-cover img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transform: rotate(-1.5deg);
}
.season-cover__tag { position: absolute; z-index: 1; left: -10px; top: 18px; padding: 6px 10px; transform: rotate(-6deg); }
.season-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 20px var(--gutter) 4px; font-size: 12px; font-weight: 600; }
.thread { display: flex; flex-direction: column; padding: 8px var(--gutter) 0; margin: 0; list-style: none; }
.thread__row { display: flex; gap: 14px; }
.thread__rail { position: relative; width: 20px; flex-shrink: 0; display: flex; justify-content: center; }
.thread__rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 9px; width: 3px; background: var(--pink); }
.thread__dot {
  position: relative;
  margin-top: 20px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid var(--pink);
  background: var(--paper);
}
.thread__row[data-seen] .thread__dot { background: var(--pink); }
.thread__link {
  flex-grow: 1;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
}
.thread__meta  { font-family: var(--f-display); font-size: 10px; font-weight: 700; color: var(--pink-text); }
.thread__title { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.2; }
.thread__teaser { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.thread__note-row { display: flex; gap: 14px; }
.thread__note-row .thread__rail::before { width: 2px; }
.thread__note-row .note { flex-grow: 1; margin: 6px 0 14px 12px; }
.season-cta { margin: 28px var(--gutter) 40px; gap: 12px; }

/* -- Плеер эпизода --
   Без JS кадры идут лентой друг под другом; с JS (.player.is-ready) — по одному на весь экран. */
.player { position: relative; }
.player:not(.is-ready) .player__progress { display: none; }
.player__frame {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 28px;
}
.player.is-ready {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background-color: var(--fr-bg);
  color: var(--fr-fg);
  background-image: var(--grain);
  background-size: 256px 256px;
}
.player.is-ready .player__bar {
  display: block;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
}
.player.is-ready .player__frames { position: relative; flex-grow: 1; width: 100%; max-width: var(--site-max); margin: 0 auto; }
.player.is-ready .player__frame {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0 28px 64px;
  background: none;
}
.player.is-ready .player__frame[hidden] { display: none; }
/* кадр лежит поверх зон тапа: клики проходят сквозь него, кроме кнопок и аудио */
.player.is-ready .player__frame { pointer-events: none; }
.player.is-ready .fr-cliff__actions { pointer-events: auto; }
.player__progress { padding: 14px 16px 0; --track: var(--fr-track); --bar: var(--fr-fg); }
.player__top { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 0 20px; }
.player__label { font-size: 12px; opacity: .8; }
.player__close {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: inherit;
}
.player__close:hover { color: inherit; }
.player__tap { display: none; }
.player.is-ready .player__tap {
  display: block;
  position: absolute;
  z-index: 1;
  top: 0; bottom: 0;
  border: 0;
  background: transparent;
}
.player__tap--prev { left: 0; width: 35%; cursor: w-resize; }
.player__tap--next { right: 0; width: 65%; cursor: e-resize; }
.player__tap:focus-visible { outline-offset: -6px; box-shadow: none; }
.player__hint {
  display: none;
  position: absolute;
  bottom: 20px; left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  opacity: .7;
  pointer-events: none;
}
.player.is-ready .player__hint { display: block; }
html.player-open, html.player-open body { overflow: hidden; }

/* Кадры. Содержимое кадра — под зонами тапа; кнопки и аудио подняты над ними (z-index: 2). */
.fr-title { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.fr-title__kicker { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.fr-title__name { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; }
.fr-title__line { width: 40px; height: 1px; background: var(--pink); }
.fr-phrase { margin: 0; font-family: var(--f-voice); font-weight: 300; font-size: 27px; line-height: 1.32; }
.fr-quote { display: flex; flex-direction: column; gap: 14px; }
.fr-quote p { margin: 0; font-family: var(--f-voice); font-style: italic; font-size: 27px; line-height: 1.3; }
.fr-quote__who { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.fr-photo { display: flex; flex-direction: column; gap: 14px; }
.fr-photo img { width: 100%; height: min(480px, 56vh); object-fit: cover; border-radius: 18px; background: #C9BFB0; }
.fr-photo__caption { font-family: var(--f-voice); font-style: italic; font-size: 17px; opacity: .85; }
.fr-list { display: flex; flex-direction: column; gap: 14px; }
.fr-list__heading { font-family: var(--f-voice); font-size: 24px; line-height: 1.2; }
.fr-list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fr-list li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.45; }
.fr-list li::before {
  content: "";
  width: 6px; height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--fr-dot);
  transform: translateY(-3px);
}
.fr-note .audio { margin-top: 4px; }
.fr-cliff { display: flex; flex-direction: column; gap: 28px; }
.fr-cliff__actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; }
.fr-btn {
  min-height: 52px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  background: var(--paper);
  color: var(--ink);
}
.fr-btn:hover { color: var(--ink); }
.fr-btn--sun { background: var(--sun); }
.fr-btn--ghost { min-height: 48px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 14px; font-weight: 500; }
.fr-btn--ghost:hover { color: inherit; }
/* на светлом фоне светлая кнопка «дальше» сливается — делаем её тушью */
.frame[data-bg="paper"] .fr-btn--next,
.frame[data-bg="warm"] .fr-btn--next,
.frame[data-bg="sun"] .fr-btn--next { background: var(--ink); color: var(--paper); }

/* -- Блог -- */
.blog-hero { padding-bottom: 40px; }
.blog-hero__badge { position: absolute; right: 22px; top: 70px; }
.topic-chips { padding: 24px var(--gutter) 0; gap: 8px; }
.topic-chips .chip { flex-shrink: 0; text-decoration: none; }
.topic-chips .chip[aria-current="page"] { background: var(--ink); color: var(--sun); }
.blog-pinned { margin: 28px var(--gutter) 8px; }
.blog-pinned .post-card__media { height: 180px; }
.blog-pinned .post-card__title { font-size: 26px; }
.post-list { margin: 20px var(--gutter) 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.post-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  text-decoration: none;
  background: var(--row-bg, var(--card));
  color: var(--row-fg, var(--ink));
  transform: rotate(var(--tilt, .6deg));
}
.post-row:hover { color: var(--row-fg, var(--ink)); }
.post-row .tag { background: var(--row-tag, var(--sun)); }
.post-row__title { font-family: var(--f-voice); font-size: 22px; line-height: 1.22; }
.post-row__excerpt { font-size: 14px; line-height: 1.5; }
.post-row__meta { font-size: 12px; font-weight: 600; }
/* пять «образов» карточек по кругу, как в макете */
.post-list > li:nth-child(5n+1) .post-row { --tilt: .6deg; }
.post-list > li:nth-child(5n+2) .post-row { --row-bg: var(--blue); --row-fg: var(--paper); --tilt: -.8deg; }
.post-list > li:nth-child(5n+3) .post-row { --row-tag: var(--pink-soft); --tilt: .4deg; }
.post-list > li:nth-child(5n+4) .post-row { --row-bg: var(--pink); --row-tag: var(--card); --tilt: -.6deg; }
.post-list > li:nth-child(5n+5) .post-row { --tilt: .8deg; }
.blog-empty { padding: 32px 0; font-family: var(--f-voice); font-style: italic; font-size: 20px; }
.blog-more { margin: 28px var(--gutter) 0; }

/* -- Пост (макета нет — собран из компонентов) -- */
.post-head { padding: 12px var(--gutter) 0; display: flex; flex-direction: column; gap: 14px; }
.post-head__title { margin: 0; font-family: var(--f-voice); font-weight: 400; font-size: 34px; line-height: 1.15; }
.post-head__meta { font-size: 13px; font-weight: 600; }
.post-cover { position: relative; height: 240px; margin: 28px calc(var(--gutter) + 6px) 8px; }
.post-cover::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border-radius: 18px;
  background: var(--sun);
  transform: rotate(2deg);
}
.post-cover img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; transform: rotate(-1deg); }
.prose { padding: 28px var(--gutter) 8px; font-size: 16px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.8em; font-family: var(--f-display); font-weight: 700; line-height: 1.2; }
.prose h2 { font-size: 21px; }
.prose h3 { font-size: 17px; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--pink);
  font-family: var(--f-voice);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
}
.prose img { height: auto; border-radius: 14px; }
.prose hr { border: 0; height: 2px; background: var(--ink); margin: 2em 0; }
.post-end { padding: 32px var(--gutter) 48px; display: flex; flex-direction: column; gap: 12px; }

/* -- Обо мне -- */
.about-portrait { position: relative; height: 420px; margin: 28px 34px 0 40px; }
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 12px 14px -12px -14px;
  border-radius: 160px 160px 18px 18px;
  background: var(--pink);
  transform: rotate(-3deg);
}
.about-portrait img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 28% 30%;
  border-radius: 160px 160px 18px 18px;
  transform: rotate(1.5deg);
}
.about-portrait__badge { position: absolute; z-index: 2; right: -26px; bottom: 48px; }
.about-tea { position: relative; height: 230px; margin-top: 10px; }
.about-tea img {
  position: absolute; left: 0; top: 0;
  width: 250px; height: 210px;
  object-fit: cover;
  border-radius: 14px;
  border: 6px solid var(--paper);
  transform: rotate(-4deg);
}
.about-tea .note { position: absolute; right: 0; bottom: 0; width: 150px; padding: 14px; font-size: 13px; font-weight: 500; line-height: 1.4; --tilt: 3deg; }
.beliefs { padding-bottom: 20px; gap: 6px; }
.beliefs .sticker { flex-direction: row; gap: 16px; align-items: flex-start; }
.beliefs .sticker + .sticker { margin-top: -6px; }
.beliefs__num { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; }
.beliefs__text { font-family: var(--f-voice); font-size: 21px; line-height: 1.25; }
.come { display: flex; align-items: flex-end; gap: 10px; }

/* -- Кабинет -- */
.talk-hero { padding-bottom: 48px; }
.talk-hero__sticker {
  position: absolute; z-index: 2;
  right: 18px; bottom: -34px;
  padding: 14px 18px;
  font-family: var(--f-display); font-weight: 700; font-size: 13px; line-height: 1.25;
  --tilt: -4deg;
}
.nots { margin: 0; padding: 0; list-style: none; }
.nots li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; font-family: var(--f-voice); font-size: 22px; line-height: 1.25; }
.nots svg { flex-shrink: 0; margin-top: 2px; }
.format-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.format-title { font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.format-price { font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.sticker--blue .format-price { color: var(--sun-text); }
.sticker--card .format-price { color: var(--pink-text); }
.format-meta { font-size: 13px; font-weight: 600; }
.format-text { font-size: 14px; line-height: 1.5; }
.format-badge { position: absolute; right: -8px; top: -18px; }
.talk-form {
  position: relative;
  z-index: 2;
  margin: -20px 16px 0;
  padding: 26px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.talk-form__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.talk-form__or { text-align: center; font-size: 13px; font-weight: 500; }
.talk-form .cta { min-height: 56px; padding-left: 22px; padding-right: 8px; font-size: 14px; }
.talk-form .cta__arrow { width: 42px; height: 42px; font-size: 18px; }

/* карточка плеера и кнопки под ней: на телефоне карточка = весь экран, кнопок нет */
.player__nav { display: none; }
.player.is-ready .player__card { position: relative; flex-grow: 1; display: flex; flex-direction: column; min-height: 0; }
.ribbon__extra { display: none; }


/* ---------- 7. Десктоп (от 960 px) ----------
   Плашки тянутся цветом на весь экран, содержимое — по центру в 1160 px.
   Всё держится на --gutter: отступ = max(48px, (ширина − 1160px) / 2).
   Внутри узких блоков --gutter переопределяется под их ширину. */
@media (min-width: 960px) {
  :root {
    --content: 1160px;
    --gutter: max(48px, calc((100% - var(--content)) / 2));
    --edge: max(48px, calc((100vw - var(--content)) / 2));   /* то же, но от края экрана */
  }
  .site { max-width: none; }
  .topbar { padding-left: calc(var(--gutter) - 16px); }        /* «← Дом» по линии содержимого */
  .band > .cta, .band > .btn { width: 100%; max-width: 520px; }  /* кнопки не растягиваем на 1160 */

  .ribbon { margin: -18px -40px 0; transform: rotate(-1.5deg); gap: 22px; font-size: 17px; }
  .ribbon__extra { display: inline; }

  .display      { font-size: 56px; }
  .display--s   { font-size: 40px; }
  .display--l   { font-size: 64px; }
  .display--xl  { font-size: 96px; }
  .voice--xl    { font-size: 54px; }

  /* две колонки «цветными половинами»: каждая плашка — свой фон до края экрана */
  .split { display: grid; grid-template-columns: 1fr 1fr; }
  .split > .band { padding-left: 48px; padding-right: 48px; }
  .split > .band:first-child { padding-left: var(--edge); }
  .split > .band:last-child { padding-right: var(--edge); }
  .split--center > .band { justify-content: center; }

  /* -- Главная -- */
  .home-hero {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 72px;
    align-items: center;
    padding: 24px var(--gutter) 24px;
  }
  .home-hero .pad { padding: 0; }
  .home-hero__stories { order: -1; margin-top: 0; }
  .home-hero__text .hero-title .display { font-size: 84px; }
  .home-hero__text .hero-title .voice--xl { font-size: 76px; }
  .home-hero__text .hero-lead { margin-top: 20px; font-size: 20px; }
  .stories__stage { width: 340px; }

  .home-series {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding: 88px var(--gutter) 72px !important;
  }
  .home-series .pad { padding-left: 0; padding-right: 0; }
  .home-series .season-cards { padding: 8px 12px 16px 0; flex-wrap: wrap; gap: 32px 28px; overflow: visible; }

  .post-card { flex-direction: row; }
  .post-card__media { flex: 0 0 44%; height: auto !important; min-height: 260px; }
  .post-card__body { justify-content: center; padding: 32px 36px; gap: 12px; }
  .post-card__title { font-size: 32px !important; }
  .post-card__excerpt { font-size: 16px; }

  .band--rooms { align-items: center; padding-top: 72px; padding-bottom: 80px; }
  .band--rooms > * { width: 100%; max-width: 640px; }
  .band--rooms .rooms { --row: 104px; --gap: 10px; }
  .band--rooms .room--blog .room__title { font-size: 38px; }
  .band--rooms .room--talk .room__title { font-size: 30px; }

  /* -- Блог -- */
  .blog-hero { padding-bottom: 56px; }
  .blog-hero__badge { right: var(--gutter); top: 72px; --size: 110px !important; font-size: 14px; }
  .topic-chips { flex-wrap: wrap; }
  .blog-pinned { margin-top: 40px; }
  .post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 36px;
  }
  .post-list > li { display: flex; }
  .post-row { flex-grow: 1; padding: 24px; }
  .blog-more { max-width: 360px; margin-left: auto; margin-right: auto; }

  /* -- Пост: текст узкой колонкой -- */
  .post-article { --gutter: max(48px, calc((100% - 720px) / 2)); }
  .post-head__title { font-size: 48px; }
  .post-cover { height: 420px; }
  .prose { font-size: 18px; }
  .post-end { --gutter: max(48px, calc((100% - 720px) / 2)); flex-direction: row; }
  .post-end > * { flex: 1; }

  /* -- Сезон -- */
  .season-hero__grid {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    padding: 16px var(--gutter) 24px;
  }
  .season-hero__grid .pad { padding-left: 0; padding-right: 0; }
  .season-cover { margin: 0; height: 380px; }
  .season-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 64px;
    align-items: start;
    padding: 32px var(--gutter) 72px;
  }
  .season-main .season-facts, .season-main .thread { padding-left: 0; padding-right: 0; }
  .season-main .season-cta { position: sticky; top: 32px; margin: 24px 12px 0 0; }
  .thread__title { font-size: 22px; }

  /* -- Плеер эпизода: кадр карточкой-сторис по центру, кнопки внизу -- */
  .player.is-ready {
    align-items: center;
    justify-content: center;
    gap: 22px;
    background-color: var(--paper);
    color: var(--ink);
  }
  .player.is-ready .player__card {
    flex-grow: 0;
    width: min(440px, calc((100vh - 140px) * 390 / 844));
    height: min(952px, calc(100vh - 140px));
    border-radius: 26px;
    background-color: var(--fr-bg);
    background-image: var(--grain);
    background-size: 256px 256px;
    color: var(--fr-fg);
    box-shadow: 12px 12px 0 var(--pink);
  }
  .player.is-ready .player__card .player__bar,
  .player.is-ready .player__card .player__frames { max-width: none; }
  .player.is-ready .player__frame { padding: 0 32px 56px; }
  .player.is-ready .player__hint { display: none; }
  .player.is-ready .player__nav { display: flex; gap: 12px; }
  .player__nav-btn {
    min-width: 150px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: var(--r-pill);
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 700;
  }
  .player__nav-btn--next { background: var(--ink); color: var(--paper); }
  .player__nav-btn:disabled { opacity: .35; cursor: default; }

  /* -- Обо мне -- */
  .about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 72px;
    align-items: center;
    padding: 12px var(--gutter) 24px;
  }
  .about-hero .pad { padding: 0; }
  .about-hero .hero-title .display { font-size: 76px !important; }
  .about-hero .hero-title .voice { font-size: 56px !important; }
  .about-portrait { margin: 0; height: 520px; }
  .split .about-tea { height: 280px; }
  .split .about-tea img { width: 320px; height: 250px; }
  .split .about-tea .note { width: 190px; }
  .band--pink .voice--l { font-size: 40px; max-width: 900px; }
  .beliefs .sticker { max-width: 560px; }

  /* -- Кабинет -- */
  .talk-hero .pad { max-width: calc(760px + 2 * var(--gutter)); }
  .talk-hero__sticker { right: var(--gutter); bottom: -40px; font-size: 16px; padding: 18px 24px; }
  .talk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: 0 var(--gutter);
  }
  .talk-grid .band { padding-left: 0; padding-right: 0; }
  .talk-faq { --gutter: max(48px, calc((100% - 760px) / 2)); padding-top: 72px !important; }
  .talk-end {
    display: grid;
    /* колонка = ширина формы (460) + отступ до края экрана − заезд формы на розовую плашку (48) */
    grid-template-columns: minmax(0, 1fr) calc(460px + var(--edge) - 48px);
    align-items: center;
    margin-top: 72px;
  }
  .talk-end__step { margin-top: 0 !important; height: 100%; justify-content: center; padding: 72px 64px 72px var(--edge) !important; }
  .talk-end__step .voice { font-size: 34px !important; max-width: 560px; }
  .talk-form { margin: 48px var(--edge) 48px -48px; }
}


/* ---------- 8. Аудио в эпизодах ---------- */
.audio { position: relative; z-index: 2; }
.audio__native { width: 100%; }
.audio__ui[hidden] { display: none; }
.audio__ui {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 8px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
}
.audio__play {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sun);
  color: var(--ink);
}
.audio__icon {                    /* ▶ */
  width: 0; height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}
.audio__play[aria-pressed="true"] .audio__icon {   /* ❚❚ */
  width: 14px; height: 18px;
  margin-left: 0;
  border: 0;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}
.audio__seek { flex-grow: 1; min-width: 0; height: 32px; accent-color: var(--pink); cursor: pointer; }
.audio__time { min-width: 4.6em; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.fr-voice { display: flex; flex-direction: column; gap: 16px; }
.fr-voice__label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.fr-voice__caption { font-family: var(--f-voice); font-style: italic; font-size: 21px; line-height: 1.35; }
.fr-voice__transcript { position: relative; z-index: 2; }
.fr-voice__transcript summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.fr-voice__transcript summary::-webkit-details-marker { display: none; }
.fr-voice__transcript summary::after { content: "+"; margin-left: 10px; font-family: var(--f-display); }
.fr-voice__transcript[open] summary::after { content: "−"; }
.fr-voice__transcript p {
  margin-top: 12px;
  max-height: 34vh;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.55;
}
/* в плеере кадр пропускает клики к зонам тапа — кроме аудио и расшифровки */
.player.is-ready .audio, .player.is-ready .fr-voice__transcript { pointer-events: auto; }
