/* «Не про бег» — стили сайта книги
   Цвета взяты с обложки. Заголовки — узкий шрифт, как на обложке; время и даты — моноширинный, как в протоколе гонки. */

:root {
  --coral: #E43941;       /* фон обложки; белый и чёрный текст на нём — только крупный */
  --coral-deep: #B8202A;  /* мелкий красный текст и ссылки на светлом фоне */
  --ink: #1A1315;
  --ink-on-coral: #0F0A0B;/* мелкий текст на коралловом фоне (контраст 4,6:1) */
  --paper: #FBF6F1;
  --sand: #F2EAE3;
  --muted: #6B5E5A;
  --line: #E0D4CC;
  --pale: #F4A9AD;        /* мелкий текст на тёмном фоне */
  --dark-line: #4A3D40;
  --on-dark: #EDE6E2;
  --on-dark-muted: #CFC4C0;

  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 10vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--coral-deep); text-underline-offset: 0.18em; }
a:hover { color: #8E1820; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .on-coral :focus-visible { outline-color: #FFFFFF; }
h1, h2, h3, h4, p, blockquote, figure, ol, ul { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.band-sand { background: var(--sand); }
.dark { background: var(--ink); color: #FFFFFF; }
.on-coral { background: var(--coral); color: #FFFFFF; }

/* Отсечка дистанции над разделом */

.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.005em; }
.h2 { font-size: clamp(60px, 8vw, 112px); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; max-width: 60ch; margin-top: 24px; }
.quote { font-family: var(--display); font-weight: 700; line-height: 1.04; }
.time { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 4px; font-size: 17px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn svg { flex: none; }
.btn--ink { background: var(--ink-on-coral); color: #FFFFFF; }
.btn--ink:hover { color: #FFFFFF; background: #000000; }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.on-coral .btn--line { color: var(--ink-on-coral); }
.btn--line:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.btn--coral { background: var(--coral-deep); color: #FFFFFF; }
.btn--coral:hover { background: #8E1820; color: #FFFFFF; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Шапка и первый экран */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; color: #FFFFFF; text-decoration: none; }
.wordmark:hover { color: #FFFFFF; }
.nav__links { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav__links a:not(.btn) { color: var(--ink-on-coral); font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 0; }
.nav__links a:not(.btn):hover { text-decoration: underline; }
.nav__links .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 720px) {
  .nav__links { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 18px; padding-bottom: 4px; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; }
}

.hero__grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 64px; padding-top: 24px; }
.hero__title-col { flex: 1 1 460px; min-width: 0; }
.hero__text-col { flex: 1 1 400px; min-width: 0; padding-bottom: 8px; }
.hero__author { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink-on-coral); }
.hero__title { margin-top: 10px; font-family: var(--display); font-weight: 900; text-transform: uppercase; color: #FFFFFF; font-size: clamp(132px, 17vw, 264px); line-height: 0.8; letter-spacing: -0.01em; }
.hero__title span { display: block; }
.hero__lede { font-size: 21px; line-height: 1.45; font-weight: 500; color: var(--ink-on-coral); max-width: 34ch; }
.hero__epigraph { margin-top: 28px; font-size: clamp(30px, 3.2vw, 38px); color: #FFFFFF; max-width: 18ch; }
.hero__btns { margin-top: 32px; }
.hero__note { margin-top: 14px; font-size: 15px; color: var(--ink-on-coral); }
.hero__runner { display: flex; justify-content: flex-end; padding-top: 16px; }
.hero__runner img { width: min(560px, 80%); }

.stats { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-block: 36px; }
.stat { flex: 1 1 220px; }
.stat__value { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; color: var(--coral); }
.stat__value.time { font-family: var(--mono); font-weight: 500; font-size: 44px; line-height: 1.1; }
.stat__label { margin-top: 6px; font-size: 16px; color: var(--on-dark); }

/* Старт */
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
#start .split { align-items: stretch; }
.start__big { flex: 1 1 300px; min-width: 0; }
.start__img { display: block; width: 100%; height: auto; }
.start__place { margin-top: 14px; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.start__text { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; }
/* На десктопе блок прижат к низу колонки: низ цифры на уровне низа картинки.
   Когда колонки встают друг под друга, auto даёт 0 — остаётся отступ 40px. */
.start__finish { margin-top: auto; padding-top: 40px; }
.start__num { font-family: var(--display); font-weight: 900; font-size: clamp(120px, 12vw, 200px); line-height: 0.85; color: var(--coral); position: relative; top: 0.12em; }
/* Глифы шрифта кончаются на 0,12em выше рамки строки: сдвиг ставит низ цифр вровень с низом картинки. */
.start__finish .start__finish-note { margin-top: 14px; max-width: none; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.start__text h2 { font-size: clamp(48px, 6vw, 76px); margin-bottom: 28px; }
.start__text p { font-size: 20px; max-width: 62ch; }
.start__text p + p { margin-top: 18px; }

/* О книге */
.themes { display: flex; flex-wrap: wrap; gap: 48px 32px; margin-top: 56px; }
.theme { flex: 1 1 250px; min-width: 0; border-top: 3px solid var(--ink); padding-top: 20px; }
.theme h3 { font-size: 40px; line-height: 0.95; margin-bottom: 14px; }
.theme p { font-size: 17px; margin-bottom: 18px; }
.theme .quote { font-size: 27px; }

/* Шесть звёзд */
.six__quote { margin: 12px 0 56px; font-size: 30px; max-width: 36ch; }
.six .lead { color: var(--on-dark); }
.stars { display: flex; flex-wrap: wrap; gap: 20px; }
.star { flex: 1 1 340px; min-width: 0; border: 1px solid var(--dark-line); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.star__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 14px; }
.star__meta span:first-child { color: var(--pale); }
.star__meta span:last-child { color: var(--on-dark-muted); }
.star h3 { font-size: 54px; margin-top: 4px; }
.star__time { font-size: 44px; color: var(--coral); line-height: 1.1; }
.star__place { font-family: var(--mono); font-size: 14px; color: var(--on-dark-muted); }
.star p { font-size: 17px; line-height: 1.55; color: var(--on-dark); }
.star .quote { font-size: 28px; margin-top: 4px; }
.star__links { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.star__read { display: inline-flex; align-items: center; min-height: 44px; color: var(--pale); font-size: 16px; font-weight: 600; }
.star__read:hover { color: #FFFFFF; }
.star__listen { display: inline-flex; align-items: center; gap: 10px; color: var(--pale); font-size: 16px; font-weight: 600; min-height: 44px; }
.star__listen:hover { color: #FFFFFF; }
.star__listen small { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--on-dark-muted); }

/* Пары */
/* Пары: игра «одна пара за раз». Положение рисунков (--l, --w, --h) — из PAIRS.md. */
.pairs-game { margin-top: 48px; }
.pairs-stage { border-top: 1px solid var(--ink); padding-top: 28px; touch-action: pan-y; }
.pair-no { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--coral-deep); margin-bottom: 20px; }
.pair-wrap { position: relative; display: flex; align-items: center;
             font-size: clamp(56px, 7.5vw, 124px); min-height: var(--h); }
.pair-art  { position: absolute; left: var(--l); top: 50%; transform: translateY(-50%);
             width: var(--w); height: auto; z-index: 0; pointer-events: none; }
.pair-words { position: relative; z-index: 1; margin: 0; font-family: var(--display);
              font-weight: 800; text-transform: uppercase; line-height: 0.86; color: var(--ink); }
/* Фокус ставится на слова после «Следующей пары», чтобы экранный диктор прочитал новую пару; рамка не нужна. */
.pair-words:focus { outline: none; }
.pair-word { display: block; white-space: pre-line; font-size: 1em; }
.pair-and  { display: block; margin: 10px 0 8px; font-size: clamp(30px, 3.2vw, 52px);
             font-weight: 700; text-transform: none; color: var(--coral); }
.pair-q { margin-top: 32px; font-size: 20px; }
.pair-show { margin-top: 16px; }
.pair-answer p { margin-top: 24px; font-size: 20px; line-height: 1.55; max-width: 62ch; }
.pair-links { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.pair-read { display: inline-flex; align-items: center; min-height: 44px; color: var(--coral-deep); font-size: 17px; font-weight: 600; }
.pair-listen { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--coral-deep); font-size: 17px; font-weight: 600; }
.pair-listen small { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--muted); }
.pairs-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; }
.pairs-count { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
  .pair-wrap { min-height: 60vw; }
  .pair-art  { left: auto; right: -4vw; width: auto; height: auto;
               max-width: 78vw; max-height: 60vw; }
  .pairs-nav { gap: 6px; }
  .pairs-nav .btn { padding: 0 10px; font-size: 13px; gap: 6px; white-space: nowrap; }
  .pairs-count { font-size: 12px; }
}
@media (max-width: 380px) {
  .pairs-nav .btn { padding: 0 7px; font-size: 12px; gap: 4px; }
  .pairs-count { font-size: 11px; }
}
.toc { margin-top: 56px; border-top: 1px solid var(--ink); padding-top: 20px; }
.toc h3 { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--coral-deep); margin-bottom: 16px; }
.toc__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 56px; }
.toc__list li { break-inside: avoid; }
.toc__list a { display: flex; gap: 14px; align-items: baseline; padding: 7px 0; font-size: 17px; line-height: 1.35; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(26, 19, 21, 0.12); }
.toc__list a:hover { color: var(--coral-deep); }
.toc__no { flex: none; width: 2ch; font-family: var(--mono); font-size: 14px; color: var(--muted); text-align: right; }
.toc__list .is-race a, .toc__list .is-race .toc__no { color: var(--coral-deep); font-weight: 600; }
@media (max-width: 760px) { .toc__list { columns: 1; } }

/* Цитаты */
/* Цитаты: коллаж из «вырезок». Размер текста в cqi — от ширины карточки (container-type).
   .em/.thin/.lead — только внутри карточек: .lead занят вводными абзацами разделов. */
.quotes { background: var(--paper); color: var(--ink); }
.quotes .h2 { color: var(--ink); }
.qgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; align-items: start; margin-top: 48px; }
.qcard { margin: 0; container-type: inline-size; padding: 26px 26px 16px; border-radius: 3px;
         display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.qcard blockquote { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; }
.qcard .em    { color: var(--em); font-weight: 900; text-transform: uppercase; line-height: 0.92;
                font-size: var(--k, 1.5em); }
.qcard .thin  { font-weight: 200; text-transform: uppercase; font-size: 1.6em; line-height: 0.92; }
.qcard .lead  { display: block; margin: 0 0 8px; max-width: none; font-size: 0.6em; font-weight: 600; line-height: 1.1; }
.qfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qfoot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit;
           font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.qfoot button { flex: none; display: inline-grid; place-items: center; padding: 0; width: 40px; height: 40px; border-radius: 50%;
                border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.qfoot button:hover { background: rgba(127, 127, 127, 0.15); }
.q-actions { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.q-copied { font-size: 13px; font-weight: 600; }
.q1 { grid-column: 1 / 9; }  .q2 { grid-column: 9 / 13; } .q3 { grid-column: 1 / 6; }
.q4 { grid-column: 6 / 10; } .q5 { grid-column: 2 / 10; } .q6 { grid-column: 10 / 13; }
.q7 { grid-column: 1 / 11; } .q8 { grid-column: 4 / 13; }
@media (max-width: 760px) {
  .qgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .qcard { padding: 16px 16px 10px; gap: 14px; }
  .qfoot a { font-size: 12px; }
  .q1 { grid-column: 1 / 7; } .q2 { grid-column: 1 / 6; } .q3 { grid-column: 1 / 4; }
  .q4 { grid-column: 4 / 7; } .q5 { grid-column: 2 / 7; } .q6 { grid-column: 1 / 6; }
  .q7 { grid-column: 1 / 7; } .q8 { grid-column: 2 / 7; }
}

/* Слушать */
.listen__intro { flex: 1 1 380px; min-width: 0; }
.listen__intro .quote { margin-top: 28px; font-size: 34px; }
.listen__src { margin: 8px 0 28px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.listen__intro p { font-size: 19px; }
.listen__intro p + p { margin-top: 14px; }
.listen__rss { margin-top: 28px; }
.listen__rss-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.player { flex: 1 1 480px; min-width: 0; background: var(--ink); color: #FFFFFF; border-radius: 6px; padding: clamp(22px, 3vw, 32px); }
.player__ep { font-family: var(--mono); font-size: 14px; color: var(--pale); }
.player__title { margin-top: 8px; font-size: clamp(40px, 5vw, 52px); }
.player__chapter { margin-top: 10px; font-size: 17px; color: var(--on-dark); min-height: 1.6em; }
.player__seek { width: 100%; margin-top: 22px; accent-color: var(--coral); height: 28px; cursor: pointer; }
.player__times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.player__controls { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.player__skip { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #6A595C; background: transparent; color: #FFFFFF; font-family: var(--mono); font-size: 14px; cursor: pointer; }
.player__skip:hover { border-color: #FFFFFF; }
.player__play { width: 80px; height: 80px; border-radius: 50%; border: 0; background: var(--coral); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.player__play:hover { background: #F0474F; }
.player__row { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.player__speed { min-height: 44px; padding: 0 14px; border: 2px solid #6A595C; border-radius: 4px; background: transparent; color: #FFFFFF; font-family: var(--mono); font-size: 14px; cursor: pointer; }
.player__status { font-size: 14px; color: var(--on-dark-muted); }
.player__error { margin-top: 12px; padding: 12px 14px; background: #3A1C20; border-radius: 4px; font-size: 15px; color: #FFFFFF; }
.player h4 { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--dark-line); font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--pale); }
.plist { list-style: none; padding: 0; margin-top: 6px; }
.plist button { width: 100%; display: flex; align-items: baseline; gap: 16px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--on-dark); text-align: left; cursor: pointer; }
.plist button:hover { background: rgba(255,255,255,0.06); }
.plist .t { flex: none; font-family: var(--mono); font-size: 14px; color: var(--pale); font-variant-numeric: tabular-nums; }
.plist .d { margin-left: auto; flex: none; font-family: var(--mono); font-size: 14px; color: inherit; }
.plist [aria-current="true"] { background: var(--coral-deep); color: #FFFFFF; }
.plist [aria-current="true"] .t { color: #FFFFFF; }

/* Читать */
.read__grid { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.read__cover { flex: 0 1 340px; width: 340px; border-radius: 2px; }
.read__text { flex: 1 1 420px; min-width: 0; }
.read__text p { font-size: 19px; }
.read__text .btns { margin-top: 28px; }
.read__first { margin-top: 24px; font-size: 18px; font-weight: 600; }
.read__meta { margin-top: 32px; font-size: 15px; color: var(--muted); }
.read__meta + .read__meta { margin-top: 6px; }
/* Отзывы с обложки книги */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--ink); }
.review { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.review blockquote { font-size: 18px; line-height: 1.6; }
.review blockquote::before { content: "«"; } .review blockquote::after { content: "»"; }
.review figcaption { font-size: 15px; line-height: 1.5; color: var(--muted); }
.review figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }

/* После книги */
.after__pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; padding: 40px 0 56px; border-bottom: 1px solid var(--ink); }
.after__time { font-size: clamp(56px, 7vw, 96px); line-height: 1; }
.after__time--new { color: var(--coral); }
.after__cap { margin-top: 10px; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.after__arrow { margin-bottom: 40px; }
.after__cols { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.timeline { flex: 1 1 460px; min-width: 0; list-style: none; padding: 0; }
.timeline li { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { flex: 0 0 136px; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--coral-deep); }
@media (max-width: 480px) { .timeline li { flex-direction: column; gap: 4px; } .timeline .when { flex-basis: auto; } }
.bars { flex: 1 1 420px; min-width: 0; }
.bars h3 { font-size: 36px; line-height: 1; }
.bars__note { margin: 6px 0 20px; font-size: 14px; color: var(--muted); }
.bars ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bar { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.bar__label { flex: 0 0 128px; }
.bar__track { flex: 1; height: 14px; background: #EFE5DD; }
.bar__fill { display: block; height: 14px; background: var(--ink); }
.bar--after .bar__fill { background: var(--coral); }
.bar__time { flex: 0 0 64px; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Поля автора */
.margins { margin-top: 48px; }
.mrow { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 28px 0; border-top: 1px solid var(--ink); }
.mrow:last-child { border-bottom: 1px solid var(--ink); }
.mrow > div { flex: 1 1 380px; min-width: 0; }
.mrow__src { margin-bottom: 8px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.mrow__src--now { color: var(--coral-deep); }
.mrow .quote { font-size: 30px; }
.mrow p { font-size: 18px; }

/* Ученики */
.students { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; }
.student { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.student img { width: 100%; border-radius: 4px; }
.student h3 { margin-top: 4px; font-size: 44px; line-height: 0.95; }
.student p { font-size: 18px; }
.student__meta { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.sub3 { margin: 72px 0 0; display: flex; flex-direction: column; gap: 18px; }
.sub3 img { display: block; width: 100%; height: auto; border-radius: 4px; }
.sub3 figcaption { font-size: clamp(36px, 4.6vw, 64px); line-height: 0.95; }
.s10 { margin-top: 72px; border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; }
.s10 > div { flex: 2 1 420px; min-width: 0; }
.s10__name { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 0.9; text-transform: uppercase; }
.s10 p { margin: 14px 0 18px; color: var(--on-dark); }
.s10 .quote { font-size: 28px; }
.s10 .btn { flex: none; }

/* Финиш */
.finish__quote { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(60px, 9vw, 132px); line-height: 0.88; color: #FFFFFF; max-width: 12ch; }
.finish__text { margin-top: 48px; font-size: 21px; color: var(--ink-on-coral); max-width: 58ch; }
.finish__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.finish__actions a:not(.btn) { color: var(--ink-on-coral); font-size: 17px; font-weight: 600; padding: 12px 0; }
.finish__bottom { margin-top: 56px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.finish__bottom p { font-size: 14px; color: var(--ink-on-coral); }
.finish__bottom img { width: min(300px, 50%); }

/* Мини-плеер внизу экрана */
.mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: #FFFFFF; border-top: 1px solid var(--dark-line); padding: 10px var(--pad); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 14px; transform: translateY(110%); transition: transform 0.2s ease; }
.mini.is-visible { transform: translateY(0); }
.mini__play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--coral); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mini__text { flex: 1; min-width: 0; }
.mini__title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__time { font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted); }
.mini a { flex: none; color: var(--pale); font-size: 15px; font-weight: 600; padding: 12px 0; }

/* Страница с первой главой */
.reader { max-width: 720px; margin: 0 auto; padding: var(--section) var(--pad); }
.reader__back { font-size: 16px; font-weight: 600; }
.reader h1 { margin-top: 32px; font-size: clamp(60px, 10vw, 104px); }
.reader__by { margin-top: 14px; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.reader__body { margin-top: 48px; }
.reader__body p { font-size: 20px; line-height: 1.7; }
.reader__body p + p { margin-top: 1em; }
.reader__end { margin-top: 64px; padding-top: 28px; border-top: 3px solid var(--ink); }
.reader__end p { font-size: 19px; }
.reader__end .btns { margin-top: 22px; }
.reader__end .btn--line { color: var(--ink); }

[hidden] { display: none !important; }

/* Страницы глав: glava/NN/ (собирает tools/build_chapters.py) */
.chapter__no { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--coral-deep); }
.chapter h1 { margin-top: 14px; font-size: clamp(48px, 9vw, 96px); overflow-wrap: break-word; hyphens: auto; }
.chapter__listen { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.chapter__when { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.chapter__note { flex-basis: 100%; font-size: 15px; color: var(--muted); }
.chapter .reader__body { margin-top: 40px; }
.reader__body .gap { margin-top: 2em; }
.reader__body .chapter__split { margin-top: 2.2em; margin-bottom: 0.6em; font-family: var(--mono); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); letter-spacing: 0; text-transform: none; }
.reader__body .chapter__case { font-family: var(--mono); font-size: 15px; line-height: 1.6; color: var(--muted); }
.reader__body .chapter__case + .chapter__case { margin-top: 0.2em; }
.reader__body .chapter__case + p:not(.chapter__case) { margin-top: 1.6em; }
.reader__body blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--coral); }
.reader__body blockquote p { font-style: italic; }
.reader__body .chapter__verse { margin: 1.2em 0 1.2em 2em; }
.reader__body .chapter__verse p { font-style: italic; margin-top: 0; }
.reader__body ul { margin: 1em 0; padding-left: 1.3em; }
.reader__body li { font-size: 20px; line-height: 1.7; }
.reader__body li + li { margin-top: 0.5em; }
.chapter__pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin-bottom: 28px; }
.chapter__pn a { display: flex; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 600; text-decoration: none; color: var(--ink); }
.chapter__pn a span { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }
.chapter__pn a:hover { color: var(--coral-deep); }
.chapter__next { text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .chapter__pn { grid-template-columns: 1fr; } .chapter__next { text-align: left; align-items: flex-start; } }

/* Тренировки: приглашение (section#coach) */
.coach      { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.coach-pic  { flex: 0 1 420px; min-width: 0; display: flex; justify-content: center; }
.coach-pic img { width: 100%; max-width: 400px; height: auto; border-radius: 3px; transform: rotate(-1.5deg); }
.coach-text { flex: 1 1 480px; min-width: 0; }
@media (max-width: 760px) { .coach-pic { flex-basis: 100%; } .coach-pic img { max-width: 300px; } }
.coach-quote { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5vw, 72px); line-height: 0.95; color: #FFFFFF; }
.coach-src { margin-top: 16px; font-family: var(--mono); font-size: 14px; color: var(--pale); }
.coach-src a { color: inherit; }
.coach-p { font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 56ch; margin-top: 16px; }
.coach-src + .coach-p { margin-top: 32px; }
.coach-btn { margin-top: 32px; }

/* stro.coffee: последний раздел главной. Розовый — --pale из палитры сайта, на кнопке тёмный текст (контраст 9:1). */
.coffee__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.coffee__text { flex: 1 1 480px; min-width: 0; }
.coffee__pic  { flex: 0 1 420px; min-width: 0; position: relative; display: flex; justify-content: center; }
.coffee__pic img { width: 100%; max-width: 400px; height: auto; border-radius: 3px; transform: rotate(1.5deg); }
.coffee__chip { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(-2deg); margin: 0; padding: 8px 16px; border-radius: 3px;
                background: var(--pale); color: var(--ink); font-family: var(--mono); font-size: 14px; font-weight: 600; white-space: nowrap; }
.coffee__eyebrow { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pale); }
.coffee__title { margin-top: 16px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 6vw, 96px); line-height: 0.92; color: #FFFFFF; }
.coffee__title span { color: var(--pale); }
.coffee__p { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 52ch; }
.coffee__quote { margin: 28px 0 0; padding-left: 18px; border-left: 3px solid var(--pale); }
.coffee__quote blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; color: #FFFFFF; }
.coffee__quote figcaption { margin-top: 8px; font-family: var(--mono); font-size: 14px; color: var(--pale); }
.coffee__quote figcaption a { color: inherit; }
.coffee__btn { margin-top: 32px; background: var(--pale); color: var(--ink); }
.coffee__btn:hover { background: #FFFFFF; color: var(--ink); }
@media (max-width: 760px) {
  .coffee__pic { flex-basis: 100%; order: -1; }
  .coffee__pic img { max-width: 300px; }
}
