/* Страницы сайта: главная, /about, битая ссылка. Строго по Stitch, система A
   (docs/stitch-строгая-спецификация.md, разделы 2 и 3.1-3.3). Токены - в
   tokens.css.

   styles.css разбора сюда больше не подключается: его .btn, .block, h1 и
   размер body перебивали вид макета, а .block p делал подпись 15px вместо
   11px. Разбор переедет на эти же компоненты на этапе 2.

   Общие правила макета, которые держит весь файл:
   - рамок нет ни у карточек, ни у кнопок, ни у шапки: глубина - тоном
     фона и тенями;
   - режима для компьютера нет: колонка 440px по центру, как в макете;
   - текст полупрозрачным не делаем - на графите он проваливается ниже
     контраста 4.5 (раздел 4). */

*, *::before, *::after { box-sizing: border-box; }

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

body.site {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--body);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* Сброс через :where - нулевая специфичность. Обычный .site p перебивал
   отступы компонентов (.b3-title, .page-kicker) - тот же род бага, что
   .block p против .block-label в styles.css. */
:where(.site) :where(h1, h2, h3, p) { margin: 0; }
:where(.site) :where(ul, ol) { margin: 0; padding: 0; }

/* Фокус с клавиатуры виден всегда. В разметке макетов стоит
   focus:outline-none без замены - это не переносим. */
.site :focus-visible { outline: 2px solid var(--primary-container); outline-offset: 2px; border-radius: var(--r-sm); }

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

.ic { display: inline-block; flex: none; fill: currentColor; vertical-align: middle; }
/* Иконка слева от текста при разметке «текст, потом иконка»: так строка
   ссылки начинается с текста, и её проще искать и проверять. */
.ic-lead { order: -1; }

/* -------- шапка (раздел 1.7) -------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgb(17 19 23 / .85);
  -webkit-backdrop-filter: blur(var(--blur-xl));
  backdrop-filter: blur(var(--blur-xl));
  box-shadow: var(--shadow-header);
}
.site-header-row {
  height: var(--header-h); max-width: 440px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0;
  font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  color: var(--primary); text-decoration: none;
}
.site-brand::after {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: var(--r-pill);
  background: var(--primary-container);
}
/* Текст бренда сжимается многоточием, а не вылезает из блока: иначе на
   узком экране точка ложилась на «К разбору» и читалась как «₭разбору». */
.site-brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Название в верхнем регистре на 18px занимает около 240px. На 320px
   вместе со ссылкой справа строка не влезает - там шрифт мельче, а не
   перенос в две строки. Композицию это не меняет. */
/* В шапке B3 название стоит между двумя квадратами по 40px - в макете там
   короткое «ФАКТЫ», наше длиннее и на 18px не помещается. */
.site-brand.is-compact { font-size: 16px; letter-spacing: .03em; }
/* Со ссылкой «К разбору» справа название на 18px помещается только от
   420px. Уже - мельче, композиция та же. Ширины подобраны замером: бренд
   и ссылка не касаются друг друга ни на одной ширине от 320. */
@media (max-width: 419px) {
  .site-header-row:has(.site-header-link) .site-brand { font-size: 16px; letter-spacing: .03em; }
}
@media (max-width: 389px) {
  .site-header-row:has(.site-header-link) .site-brand { font-size: 14px; letter-spacing: .02em; }
}
@media (max-width: 359px) {
  .site-brand { font-size: 15px; letter-spacing: .03em; }
  .site-brand.is-compact,
  .site-header-row:has(.site-header-link) .site-brand { font-size: 13px; letter-spacing: .02em; }
}
.site-header-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 4px; margin-left: 4px; flex: none; white-space: nowrap;
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em;
  color: var(--on-surface-variant); text-decoration: none; transition: color .15s;
}
.site-header-link:hover { color: var(--primary); }
/* B3: слева крестик, бренд по центру, справа пустое место того же размера. */
.site-header-icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-md); background: var(--surface-container);
  color: var(--on-surface-variant); transition: color .15s, transform .1s;
}
.site-header-icon:hover { color: var(--primary); }
.site-header-icon:active { transform: scale(.95); }
.site-header-spacer { width: 40px; height: 40px; flex: none; }

.site-main {
  max-width: 440px; margin: 0 auto;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

/* -------- кнопки (раздел 2) -------- */

.button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--control-h); padding: 0 16px;
  border: 0; border-radius: var(--r-md); cursor: pointer;
  font-family: var(--display); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .01em;
  text-align: center; text-decoration: none;
  transition: background-color .15s, transform .1s;
}
.button:active { transform: scale(.98); }
.button-primary { background: var(--primary-container); color: var(--on-primary); box-shadow: var(--shadow-md); }
.button-primary:hover { background: var(--primary); }
/* B3 «истекла»: заливка светлым янтарём. Текст тот же #472a00. */
.button-light { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-md); }
.button-light:hover { background: var(--primary-container); }
.button-secondary { background: var(--surface-container-high); color: var(--on-surface); }
.button-secondary:hover { background: var(--surface-bright); }
/* A1 «Посмотреть пример»: самый светлый уровень и янтарный текст. */
.button-tonal { background: var(--surface-container-highest); color: var(--primary); }
.button-tonal:hover { background: var(--surface-bright); }
/* Неактивная: в макете outline на #333538 с прозрачностью .75 - контраст
   2.86. Прозрачность убрана, цвет чуть светлее (--outline-strong, 4.56). */
.button:disabled, .button[aria-disabled="true"] {
  background: var(--surface-container-highest); color: var(--outline-strong);
  box-shadow: none; cursor: not-allowed; transform: none;
}
.text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em;
  color: var(--on-surface-variant); text-decoration: none; transition: color .15s;
}
.text-button:hover { color: var(--primary); }

/* -------- разделы, метки, заголовки -------- */

.sec { padding: var(--space-xl) 16px; display: flex; flex-direction: column; gap: var(--space-lg); }
/* Чередование фона секций: самый глубокий уровень на всю ширину колонки. */
.sec-deep { background: var(--surface-container-lowest); }
.sec-head { display: flex; flex-direction: column; gap: var(--space-xs); }
.sec-label {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--primary);
}
.sec-label.is-quiet { color: var(--outline); }
.sec-title {
  font-family: var(--display); font-size: 22px; line-height: 28px; font-weight: 600;
  letter-spacing: -.015em; color: var(--on-surface); text-wrap: balance;
}

/* -------- первый экран A1 -------- */

.hero { padding: var(--space-md) 16px var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); }
.hero-title {
  font-family: var(--display); font-size: 28px; line-height: 34px; font-weight: 700;
  letter-spacing: -.02em; color: var(--on-surface); text-wrap: balance;
}
.hero-lede { font-size: 16px; line-height: 24px; color: var(--on-surface-variant); }
.hero-note {
  display: flex; align-items: flex-start; gap: var(--space-xs); padding-top: var(--space-xs);
  font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant);
}
.hero-note .ic { color: var(--primary); }

/* -------- чип и бейджи -------- */

.chip {
  display: inline-flex; align-items: center; gap: var(--space-xs); align-self: flex-start;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--surface-container-high); color: var(--primary);
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .025em; text-transform: uppercase;
}
/* «Пилот» на A1: сплошной янтарь, радиус 2. */
.badge {
  display: inline-flex; align-items: center; padding: 4px 8px; border-radius: var(--r-xs);
  background: var(--primary-container); color: var(--on-primary);
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em;
}
/* «Пилотный период» на A8: янтарь на 10% поверх карточки. */
.badge-soft {
  display: inline-flex; align-items: center; align-self: flex-start; padding: 2px 8px; border-radius: var(--r-sm);
  background: rgb(255 193 116 / .1); color: var(--primary);
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 600;
  letter-spacing: .025em; text-transform: uppercase;
}

/* -------- плитки-факты -------- */

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); padding-top: var(--space-sm); }
.fact {
  display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0;
  padding: var(--space-md); border-radius: var(--r-md); background: var(--surface-container-low);
}
.fact-label {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--outline);
}
.fact-value {
  font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600;
  letter-spacing: -.01em; color: var(--primary);
}
.fact-value.is-secondary { color: var(--secondary); }
.fact-note { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant); }

/* -------- карточки -------- */

.cards { display: flex; flex-direction: column; gap: var(--space-md); }
.card {
  display: flex; flex-direction: column; gap: var(--space-md);
  padding: var(--space-lg); border-radius: var(--r-md); background: var(--surface-container);
}
.card.has-shadow { box-shadow: var(--shadow-md); }
.card.is-tight { gap: var(--space-sm); }
.card-head { display: flex; align-items: flex-start; gap: var(--space-sm); }
.card-head > div { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.card-title {
  font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600;
  letter-spacing: -.01em; color: var(--on-surface);
}
.card-text { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant); }
.card-nested { padding: var(--space-md); border-radius: var(--r-sm); background: var(--surface-container-lowest); }
.icon-tile {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: var(--r-sm); background: var(--surface-container-high); color: var(--primary);
}

/* Ссылки внутри текста: цветом текста с янтарным подчёркиванием. У ссылки
   в абзаце строка 18-20px, а пальцу нужно 44: отступ у строчного элемента
   расширяет зону нажатия, не раздвигая строки. */
.site main p a:not([class]) {
  color: var(--on-surface); text-decoration-color: var(--primary-container);
  text-underline-offset: 3px; padding-block: 14px;
}

/* -------- степпер (A1 «Как это устроено») -------- */

.steps { list-style: none; display: flex; flex-direction: column; gap: var(--space-lg); }
.step { display: flex; gap: var(--space-md); }
.step-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
/* Кружок 32 с радиусом 12 - в макете это квадрат со скруглением, не круг. */
.step-num {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--r-pill); background: var(--surface-container-high); color: var(--primary);
  font-family: var(--display); font-size: 14px; line-height: 18px; font-weight: 700;
}
.step:first-child .step-num { background: var(--primary); color: var(--on-primary); }
.step-line { flex: 1; width: 2px; margin: var(--space-xs) 0; background: var(--surface-container-highest); }
.step:last-child .step-line { display: none; }
.step-body { display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; min-width: 0; padding-bottom: var(--space-md); }
.step:last-child .step-body { padding-bottom: 0; }
.step-title {
  font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600;
  letter-spacing: -.01em; color: var(--on-surface); padding-top: 4px;
}
.step-panel {
  display: flex; flex-direction: column; gap: var(--space-xs);
  padding: var(--space-md); border-radius: var(--r-md); background: var(--surface-container-low);
}
.panel-label {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--outline);
}
.panel-text { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface); }
.file-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 44px;
  padding: var(--space-md); border-radius: var(--r-md); background: var(--surface-container-low);
  color: var(--on-surface); text-decoration: none; transition: background-color .15s;
}
.file-row:hover { background: var(--surface-container); }
.file-row-name {
  display: flex; align-items: center; gap: var(--space-sm); min-width: 0;
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em;
  overflow-wrap: anywhere;
}
.file-row-name .ic { color: var(--primary); }
.file-row-meta { flex: none; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; color: var(--outline); }

/* -------- лист примера паспорта -------- */

.sheet-wrap {
  display: flex; flex-direction: column; gap: var(--space-md);
  padding: var(--space-lg); border-radius: var(--r-md); background: var(--surface-container-high);
}
/* Лист целиком - ссылка на PDF примера. */
.sheet {
  display: flex; flex-direction: column; gap: var(--space-md);
  padding: var(--space-lg); border-radius: var(--r-md);
  background: var(--inverse-surface); color: var(--inverse-on-surface); box-shadow: var(--shadow-xl);
  text-decoration: none; transition: transform .1s;
}
.sheet:active { transform: scale(.99); }
.site .sheet:focus-visible { outline: 2px solid var(--primary-container); outline-offset: 3px; border-radius: var(--r-md); }
/* Подписи на светлом листе - тёмным текстом листа, а не outline из
   макета: #a08e7a на #e2e2e6 даёт около 2.9. */
.sheet-kicker, .sheet-title { display: block; }
.sheet-kicker {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.sheet-title { font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
/* Серые полоски - заглушки строк документа, чистая декорация. */
.sheet-lines { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-xs) 0; }
.sheet-lines i { display: block; height: 8px; border-radius: var(--r-xs); background: rgb(17 19 23 / .15); }
.sheet-lines i:first-child { width: 75%; background: rgb(17 19 23 / .2); }
.sheet-lines i:last-child { width: 50%; }
.sheet-field { display: flex; flex-direction: column; gap: 6px; padding: var(--space-sm); border-radius: var(--r-xs); background: rgb(17 19 23 / .08); }
.sheet-field i { display: block; height: 8px; border-radius: var(--r-xs); background: rgb(17 19 23 / .15); }
.sheet-field i:first-child { width: 40%; height: 6px; background: rgb(17 19 23 / .25); }
.sheet-field i:last-child { width: 85%; }
.sheet-note { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant); }

/* -------- «Чем это не является» -------- */

.nots {
  list-style: none; display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-md); border-radius: var(--r-md); background: var(--surface-container-low);
}
.not {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: var(--space-sm); border-radius: var(--r-xs); background: var(--surface-container);
  color: var(--on-surface);
}
.not .ic { color: var(--error); }

/* -------- стоимость -------- */

.price-card {
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-lg); border-radius: var(--r-md); background: var(--surface-container-high);
}
.price-card-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.price-card .price {
  font-family: var(--display); font-size: 28px; line-height: 34px; font-weight: 700;
  letter-spacing: -.02em; color: var(--on-surface);
}
.price-card .card-text { font-size: 14px; line-height: 20px; letter-spacing: 0; }
.price-card .text-button { align-self: flex-start; }

/* -------- аккордеон FAQ -------- */

.faq { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item { border-radius: var(--r-md); background: var(--surface-container); transition: background-color .15s; }
.faq-item:hover { background: var(--surface-container-high); }
/* Отступ стоит на summary, а не на пункте: тогда нажимается вся плашка
   целиком, а не только строка вопроса. */
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-md); list-style: none; cursor: pointer; border-radius: var(--r-md);
  font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600;
  letter-spacing: -.01em; color: var(--on-surface);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--outline); transition: transform .2s; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline-offset: -2px; }
.faq-answer { display: flex; flex-direction: column; gap: var(--space-sm); padding: 0 var(--space-md) var(--space-md); }
.faq-answer p { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant); }

/* -------- подвал -------- */

.site-footer {
  max-width: 440px; margin: 0 auto;
  padding: var(--space-xl) 16px calc(var(--space-xl) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--space-lg);
}
/* Под закреплённым баром подвал не должен прятаться: снизу место под бар. */
.site.has-sticky .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.site-footer-head { display: flex; flex-direction: column; gap: var(--space-xs); }
.site-footer-brand { font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--on-surface); }
.site-footer-note, .site-footer-copy { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--outline); }
.site-footer-copy { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; }
/* Ссылки в строку с переносом, как в макете. Высота каждой 44: зазор 8
   между строками пальцу мал, зону нажатия даёт сама ссылка. */
.site-footer-links { display: flex; flex-wrap: wrap; column-gap: var(--space-lg); }
.site-footer-links a, .site-footer-contacts a {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px;
  color: var(--on-surface-variant); text-decoration: none; transition: color .15s;
}
.site-footer-links a { font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; }
.site-footer-contacts { display: flex; flex-direction: column; }
.site-footer-contacts a { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--outline); overflow-wrap: anywhere; }
.site-footer-links a:hover, .site-footer-contacts a:hover { color: var(--primary); }

/* -------- закреплённый бар (раздел 1.9) --------
   Нижнего меню нет, поэтому бар стоит на bottom: 0 с отступом под вырез.
   Виден всегда: кнопки в первом экране нет, это единственное действие. */
.site-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-width: 440px; margin: 0 auto;
  padding: var(--space-sm) 16px calc(var(--space-sm) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--space-xs);
  background: rgb(12 14 17 / .95);
  -webkit-backdrop-filter: blur(var(--blur-xl));
  backdrop-filter: blur(var(--blur-xl));
  box-shadow: var(--shadow-sticky);
}
/* A8: фон на уровень светлее, отступы 12, тень shadow-2xl. */
.site-sticky.is-low {
  padding-top: var(--space-md); padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); gap: 6px;
  background: rgb(26 28 31 / .95); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25), 0 -8px 24px rgba(0, 0, 0, .35);
}
.site-sticky-note {
  display: flex; align-items: center; justify-content: center; gap: var(--space-xs);
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em;
  color: var(--outline); text-align: center;
}
.dot { width: 6px; height: 6px; flex: none; border-radius: var(--r-pill); background: var(--primary); }

/* -------- /about (A8) -------- */

/* Строка навигации под шапкой: липкая, прилипает сразу под закреплённой шапкой. */
.subnav {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 40;
  height: var(--header-h); padding: 0 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-sm);
  background: rgb(26 28 31 / .9);
  -webkit-backdrop-filter: blur(var(--blur-md));
  backdrop-filter: blur(var(--blur-md));
}
.subnav-back {
  justify-self: start; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px;
  color: var(--on-surface-variant); transition: color .15s;
}
.subnav-back:hover { color: var(--primary); }
.subnav-title { font-family: var(--display); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .01em; color: var(--on-surface); white-space: nowrap; }
.subnav-link {
  justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em;
  color: var(--primary); text-decoration: none; transition: color .15s;
}
.subnav-link:hover { color: var(--primary-container); }

.page { padding: var(--space-lg) 16px var(--space-xl); display: flex; flex-direction: column; gap: var(--space-xl); }
.page-head { display: flex; flex-direction: column; gap: var(--space-xs); }
.page-kicker {
  display: flex; align-items: center; gap: var(--space-sm); margin-bottom: 4px;
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--primary);
}
.page-title {
  font-family: var(--display); font-size: 22px; line-height: 28px; font-weight: 600;
  letter-spacing: -.025em; color: var(--on-surface); text-wrap: balance;
}
.page-lede { font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }

.tariff { position: relative; overflow: hidden; }
/* Декоративное свечение в углу карточки тарифа. */
.tariff::before {
  content: ""; position: absolute; top: 0; right: 0; width: 128px; height: 128px;
  border-radius: 999px; background: rgb(255 193 116 / .05); filter: blur(40px); pointer-events: none;
}
.tariff-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); }
.tariff-head > div { display: flex; flex-direction: column; gap: var(--space-sm); }
.tariff-mark {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: var(--r-pill); background: var(--surface-container-high); color: var(--primary);
}
/* Цена - та же фраза, что уходила на модерацию, крупная только сама сумма. */
.tariff-price-line { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant); }
.tariff-price-line b {
  display: block; margin-bottom: var(--space-sm);
  font-family: var(--display); font-size: 32px; line-height: 1; font-weight: 700; color: var(--primary);
}
.checks-block { display: flex; flex-direction: column; gap: var(--space-xs); }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check > .ic { margin-top: 1px; color: var(--primary); }
.check > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-title { font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--on-surface); }
.check-text { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface); }
.note-panel {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: 10px; border-radius: var(--r-sm); background: var(--surface-container-lowest);
}
.note-panel > .ic { margin-top: 1px; color: var(--primary); }
.note-panel.is-quiet > .ic { color: var(--outline); }
.note-panel > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-panel .panel-text { color: var(--on-surface-variant); }

.card-head.is-compact { align-items: center; gap: 10px; }
.icon-tile.is-small { width: 28px; height: 28px; background: rgb(255 193 116 / .1); }
.card-title.is-small { font-size: 15px; line-height: 20px; }
.card-text.is-relaxed { line-height: 1.625; }

.list-block { display: flex; flex-direction: column; gap: var(--space-sm); }
.list-head {
  display: flex; align-items: center; gap: 6px; padding: 0 4px;
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--outline);
}
.doc-list { list-style: none; overflow: hidden; border-radius: var(--r-md); background: var(--surface-container); box-shadow: var(--shadow-sm); }
/* Разделитель - полоска с отступами по бокам, не рамка у строки. */
.doc-list li + li::before { content: ""; display: block; height: 1px; margin: 0 14px; background: var(--surface-container-high); }
.doc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  min-height: 48px; padding: 14px; color: var(--on-surface); text-decoration: none;
  font-size: 13px; line-height: 18px; letter-spacing: .01em; transition: background-color .15s;
}
.doc-list a:hover { background: var(--surface-container-high); }
.doc-list a:focus-visible { outline-offset: -2px; }
.doc-list-name { display: flex; align-items: center; gap: var(--space-md); min-width: 0; }
.doc-list .ic { color: var(--outline); }

/* Реквизиты: в макете моноширинный шрифт. Решение 13.09 «моно не
   используем» в силе - тот же вид на Inter с цифрами одной ширины. */
.requisites {
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-lg); border-radius: var(--r-md); background: var(--surface-container-lowest);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25);
  font-size: 12px; line-height: 1.625; color: var(--on-surface-variant); font-variant-numeric: tabular-nums;
}
.requisites-name { font-weight: 600; color: var(--on-surface); }
.requisites-contacts { list-style: none; }
.requisites-contacts li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; min-height: 44px; }
/* Строка 12px даёт ссылке зону около 20px. Отступ сверху и снизу доводит
   её до 44, высоту строки при этом не меняет: строка и так 44. */
.requisites a { color: var(--primary); text-underline-offset: 3px; padding-block: 12px; }

/* -------- битая ссылка (B3) -------- */

/* Подвала на B3 нет, как в макете: экран занимает всю высоту под шапкой,
   кнопка стоит у нижнего края. */
.b3 {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl);
  min-height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
  min-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
  padding: var(--space-sm) 16px calc(var(--space-xl) + env(safe-area-inset-bottom));
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: center; margin-top: 4px;
  padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-container-high);
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em;
  color: var(--on-surface-variant);
}
.status-dot { width: 8px; height: 8px; flex: none; border-radius: var(--r-pill); background: var(--secondary); }
.is-expired .status-dot { background: var(--primary); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.b3-center { display: flex; flex-direction: column; align-items: center; align-self: center; width: 100%; max-width: 340px; margin: auto 0; text-align: center; }
.b3-emblem {
  position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: var(--space-lg);
  border-radius: var(--r-pill); background: var(--surface-container-high); color: var(--secondary); box-shadow: var(--shadow-md);
}
.is-expired .b3-emblem { color: var(--primary-container); }
.b3-emblem-badge {
  position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: var(--r-pill); background: var(--surface-container-highest); color: var(--outline-strong); box-shadow: var(--shadow-lg);
}
.is-expired .b3-emblem-badge { color: var(--secondary); }
.b3-title {
  margin-bottom: var(--space-sm);
  font-family: var(--display); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.025em; color: var(--on-surface);
}
.b3-text { margin-bottom: var(--space-lg); font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.b3-info {
  display: flex; align-items: center; justify-content: center; gap: var(--space-sm); width: 100%;
  padding: var(--space-md); border-radius: var(--r-md); background: var(--surface-container); box-shadow: var(--shadow-sm);
  font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant);
}
.b3-info .ic { color: var(--secondary); }
.b3-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-sm); padding-top: var(--space-md); }
.b3-actions .text-button { align-self: center; }

@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { transition: none !important; animation: none !important; }
}
