/* Вынесено из public/index.html командой tools/extract-inline.py.
 * Не редактировать здесь: правьте источник и запускайте инструмент заново,
 * иначе при следующем извлечении правка пропадёт.
 *
 * Инлайн-стили и инлайн-скрипты запрещены политикой безопасности
 * (script-src 'self', style-src 'self'): браузер вырезал их молча.
 */
@import url('/tokens-shared.css');

:root {
  --bg: var(--color-bg);
  --cream: var(--color-text);
  --muted: var(--color-muted);
  --amber: var(--color-primary);
  --green: var(--color-green);
  --green-deep: var(--color-green-deep);
  --line: var(--color-line);
  --pad-x: clamp(24px, 6vw, 96px);
}
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--cream);
      font-family: var(--sans);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
    .container {
      width: 100%;
      max-width: 1240px;
      margin-inline: auto;
      padding-inline: var(--pad-x);
    }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
    :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
    .header { position: sticky; top: 0; z-index: 50; height: 112px; background: rgba(13,12,11,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
    .header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
    .logo { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
    .logo svg { width: 66px; height: 56px; flex: none; }
    .logo span { white-space: nowrap; font-family: var(--serif-display); font-size: 23px; color: var(--cream); }
    .header__right { display: flex; align-items: center; gap: 40px; flex: none; }
    .nav { display: flex; gap: 36px; }
    .nav a { font-size: 13px; color: var(--muted); transition: color .2s; white-space: nowrap; }
    .nav a:hover { color: var(--cream); }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 24px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
    .btn svg { width: 15px; height: 15px; }
    .btn--amber { background: linear-gradient(180deg,#e2aa64,#d29a52); color: #1c130a; box-shadow: 0 6px 22px rgba(219,162,92,.18); }
    .btn--amber:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(219,162,92,.3); }
    .btn--ghost { color: var(--cream); border-color: rgba(219,162,92,.55); background: rgba(13,12,11,.25); }
    .btn--ghost:hover { border-color: var(--amber); background: rgba(219,162,92,.08); }
    .btn--sm { height: 36px; padding: 0 22px; font-size: 13px; }
    .hero { position: relative; min-height: 700px; overflow: hidden; text-align: left; background: radial-gradient(55% 45% at 18% 88%,rgba(160,105,52,.20),transparent 70%),radial-gradient(35% 45% at 96% 28%,rgba(70,95,55,.22),transparent 70%),var(--bg); }
    .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: linear-gradient(to bottom,transparent,var(--bg)); pointer-events: none; }
    .scene { position: absolute; left: 0; bottom: 0; width: min(720px,72vw); height: auto; mask-image: linear-gradient(to bottom,#000 55%,transparent 100%); pointer-events: none; }
    .leaves { position: absolute; top: 20px; right: 0; width: 170px; height: 420px; opacity: .8; pointer-events: none; }
    .hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 24px; align-items: start; padding-top: 91px; padding-bottom: 96px; }
    .eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .27em; text-transform: uppercase; color: var(--amber); }
    .hero__text { padding-top: 7px; text-align: left; }
    .hero__text .eyebrow { margin: 0 0 24px; }
    h1 { margin: 0; font-family: var(--serif-display); font-weight: 400; font-size: clamp(38px,5.1vw,56px); line-height: 1.19; letter-spacing: -.012em; color: var(--cream); }
    .hero h1 { margin: 0; font-size: clamp(38px,5.1vw,56px); line-height: 1.19; }
    h1 em { display: block; font-style: italic; font-weight: 400; background: linear-gradient(90deg,#e0a35c,#c98b47); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
    .lead { margin: 30px 0 0; font-size: 15px; line-height: 1.67; color: var(--muted); max-width: 340px; }
    .hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
    .trainer { position: relative; width: 400px; max-width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: linear-gradient(180deg,rgba(27,27,24,.82),rgba(15,15,14,.9)); backdrop-filter: blur(8px); box-shadow: 0 30px 70px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
    .trainer__head { display: flex; align-items: center; gap: 20px; height: 84px; padding: 0 24px 0 22px; border-bottom: 1px solid var(--line); }
    .trainer__head svg { width: 30px; height: 30px; color: #cfc6b8; flex: none; }
    .trainer__meta { flex: 1; font-size: 13.5px; line-height: 1.5; color: #d8cfc1; }
    .trainer__meta span { display: block; color: #cfc6b8; }
    .trainer__count { font-size: 13px; color: var(--amber); font-variant-numeric: tabular-nums; }
    .verses { list-style: none; margin: 0; padding: 17px 28px 20px 36px; }
    .verse { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; font-family: var(--serif-text); font-size: 18px; line-height: 1.35; color: #cbc1b2; transition: color .4s; }
    .verse .txt { transition: text-shadow .4s,text-decoration-color .4s; }
    .verse .tok { transition: color .3s,text-shadow .3s; }
    .verse .tail { display: inline-block; white-space: pre; }
    .verse .check { width: 15px; height: 15px; flex: none; color: var(--green); opacity: 0; transform: scale(.6); transition: opacity .3s,transform .3s; }
    .verse .gap { color: #cbc1b2; }
    .verse .tok.lit,.verse.done .tok,.verse.done .tail { color: var(--green); text-shadow: 0 0 14px rgba(102,232,163,.55); }
    .verse.done .txt { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(102,232,163,.75); }
    .verse.done .check { opacity: 1; transform: none; }
    .trainer__mic { display: flex; align-items: center; justify-content: center; gap: 14px; height: 129px; margin: 0 24px; border-top: 1px solid var(--line); }
    .mic { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--green); background: radial-gradient(circle,rgba(47,191,116,.22),rgba(20,60,40,.35)); color: var(--green); display: grid; place-items: center; box-shadow: 0 0 22px rgba(102,232,163,.35),inset 0 0 14px rgba(102,232,163,.12); transition: transform .2s; }
    .mic:hover { transform: scale(1.04); }
    .mic svg { width: 26px; height: 26px; }
    .mic::before,.mic::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(102,232,163,.25); opacity: .9; }
    .mic::after { animation: pulse 2.2s ease-out infinite; }
    .trainer.is-idle .mic::after { animation: none; opacity: 0; }
    @keyframes pulse { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
    .status { font-size: 13px; color: var(--green); min-width: 70px; }
    .features { padding: 72px 0 0; }
    .section-head { text-align: center; }
    .section-head .eyebrow { margin: 0 0 22px; }
    h2 { margin: 0 auto; max-width: 500px; font-family: var(--serif-display); font-weight: 400; font-size: clamp(32px,4.3vw,45px); line-height: 1.17; letter-spacing: -.01em; color: var(--cream); }
    .features h2 { margin: 0 auto; font-size: clamp(32px,4.3vw,45px); line-height: 1.17; }
    .features__grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 40px; }
    .feature { padding: 0 32px; }
    .feature:first-child { padding-left: 0; }
    .feature:last-child { padding-right: 0; }
    .feature + .feature { border-left: 1px solid rgba(255,255,255,.09); padding-left: 33px; }
    .feature__icon { width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(219,162,92,.65); display: grid; place-items: center; color: var(--amber); margin-bottom: 24px; }
    .feature__icon svg { width: 27px; height: 27px; }
    h3 { margin: 0 0 14px; font-family: var(--serif-display); font-weight: 400; font-size: 26px; line-height: 1.16; color: var(--cream); }
    .feature p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
    .footer { margin-top: 65px; border-top: 1px solid var(--line); }
    /* Две зоны вместо одной цепочки. Раньше все четыре элемента были
       прямыми детьми flex-контейнера и раскладывались по горизонтали
       последовательно: на ноутбуках и планшетах цепочка ломалась на две
       строки в произвольном месте. Слева — кто мы, справа — чем это
       безопасно и где документ; ломаться может только каждая зона
       внутри себя, и на узких экранах — по правилам ниже. */
    /* Зоны сжимаются и переносятся внутри себя: на ноутбуке шириной
       ~1024 обе зоны вместе не помещаются, и раньше весь футер уезжал
       в столбец целиком. Теперь переносится только та часть, что не
       влезает, — слоган под логотипом или ссылка под бейджем, — а сами
       зоны остаются на своих местах. min-width: 0 обязателен, иначе
       содержимое распирает зону и перенос не происходит. */
    /* Перенос на этом уровне запрещён намеренно. С flex-wrap зоны
       переносились целиком, минуя сжатие: правило переноса срабатывает
       раньше, чем флекс-элементы успевают ужаться, и на ноутбуке 1024
       футер уезжал в столбец, хотя обе зоны помещались с запасом.
       Сжатие вместо переноса задаёт min-width: 0 на зонах и детях.
       На узких экранах столбец включается явным правилом ниже. */
    .footer .container { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 34px 50px; flex-wrap: nowrap; }
    .footer__brand, .footer__aside { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; flex: 0 1 auto; min-width: 0; }
    /* Сжиматься должны и дети зон: у флекс-элемента min-width по умолчанию
       равен min-content, поэтому слоган и ссылка держат зону на своей
       максимальной ширине, и футер уезжает в столбец на ноутбуке 1024,
       где обе зоны помещаются с запасом. */
    .footer__brand > *, .footer__aside > * { min-width: 0; }
    .footer__brand .tagline { flex: 0 1 auto; }
    /* Ссылка на документ отодвинута от бейджа подальше: рядом с ним она
       читалась как продолжение того же блока, а это разные вещи —
       обещание безопасности и юридический документ. */
    .footer__aside { justify-content: flex-end; }
    .footer__aside .footer-link { margin-left: 12px; }
    .footer .logo svg { width: 66px; height: 56px; }
    .footer .logo span { font-size: 19px; }
    .badge { display: inline-flex; align-items: center; gap: 12px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(47,191,116,.4); background: rgba(20,60,40,.28); font-size: 11px; color: #d4ddd6; }
    .badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-deep); box-shadow: 0 0 8px var(--green-deep); }
    .badge svg { width: 13px; height: 13px; color: var(--green); }
    .tagline { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; color: #8f8578; }
    .tagline::after { content: ""; width: 24px; height: 1px; background: var(--amber); opacity: .7; }
    .toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: calc(100% - 32px); padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(20,18,15,.96); color: var(--cream); font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: opacity .2s,transform .2s; }
    .toast.show { opacity: 1; transform: translate(-50%,0); }
    /* Точка перехода футера в столбец. Ниже неё сжимать больше нечего:
       логотип, бейдж и текст ссылки упираются в min-content, и зоны
       начинают наезжать друг на друга. Граница поставлена выше 760,
       где включается общая мобильная раскладка, чтобы между двумя
       режимами не было промежутка, где футер ведёт себя случайно. */
    @media (max-width: 1080px) {
      .footer .container { flex-direction: column; align-items: flex-start; gap: 18px; }
      /* Зона растягивается на всю ширину: иначе ссылка центрируется по
         бейджу, а не по футеру, и «отдельной строкой по центру» не
         выглядит. Бейдж при этом остаётся слева — он привязан к логотипу. */
      .footer__aside { justify-content: flex-start; align-self: stretch; }
      .footer__aside .footer-link { margin-left: 0; align-self: stretch; text-align: center; }
    }
    @media (max-width: 960px) { .nav { display: none; } .hero__grid { grid-template-columns: 1fr; gap: 56px; } .lead br { display: none; } .trainer { margin-inline: auto; } .scene { width: 100%; opacity: .7; } .leaves { opacity: .45; } }
    @media (max-width: 760px) { .features__grid { grid-template-columns: 1fr; gap: 44px; } .feature,.feature:first-child,.feature:last-child,.feature + .feature { padding: 0; border-left: 0; } /* На мобильных зоны становятся столбиком, а ссылка на политику
       уходит последней строкой по центру: она юридически обязательна и
       должна читаться как отдельный элемент, а не хвост блока. */
      .footer .container { flex-direction: column; align-items: flex-start; gap: 22px; }
      .footer__brand, .footer__aside { flex-direction: column; align-items: flex-start; gap: 14px; }
      .footer__aside .footer-link { margin-left: 0; align-self: stretch; text-align: center; }
      .header { height: 84px; } .logo svg { width: 52px; height: 44px; } .logo span { font-size: 19px; } }
    @media (max-width: 460px) {
      .verse { font-size: 16px; }
      .header .container { gap: 10px; }
      .header__right { min-width: 0; gap: 10px; }
      .header .logo { gap: 10px; }
      .header .logo svg { width: 44px; height: 38px; }
      .header .logo span { font-size: 16px; }
      .btn--sm { padding: 0 9px; font-size: 11px; letter-spacing: 0; }
      .btn--sm svg { display: none; }
    }

/* Атрибут style= запрещён политикой безопасности наравне с блоком
   <style>, поэтому оформление svg-спрайта вынесено в класс. */
.svg-defs {
    position: absolute;
}
