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

   Правила, которые держит весь файл (как и site.css):
   - рамок нет ни у карточек, ни у кнопок, ни у полей: глубина - тоном фона
     и тенями;
   - колонка 440px, режима для компьютера нет;
   - текст полупрозрачным не делаем: на графите он проваливается ниже 4.5.
     Подписи на самом светлом уровне (#333538) - --outline-strong, а не
     --outline (3.89 против 4.56). */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--body);
  /* body-md 14/20 - база всех экранов системы A. */
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

/* Сброс отступов с нулевой специфичностью: обычный «.block p» перебивал
   размер подписи .block-label (15px вместо 11px) - любой класс компонента
   теперь сильнее сброса. */
:where(.shell) :where(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
:where(.shell) :where(ul, ol) { padding: 0; list-style: none; }

.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; }

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

/* -------- каркас -------- */

/* Каркас: контент листается, шапка и бар всегда в поле. Шапка и бар не
   fixed, как в макете, а в потоке колонки: внутри Telegram высоту диктует
   клиент, и fixed-слои при открытой клавиатуре уезжают. Вид тот же -
   полупрозрачный фон, размытие и тень. */
.shell {
  display: flex;
  flex-direction: column;
  /* Именно height, а не min-height: иначе на длинном экране область
     контента растёт вместо прокрутки, и бар уезжает в самый низ. */
  height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

/* Внутри Telegram высоту диктует клиент: dvh в его вебвью врёт при
   открытой клавиатуре и в полноэкранном режиме. */
body.in-telegram .shell {
  height: var(--tg-viewport-stable-height, 100dvh);
}

/* В полноэкранном режиме шапка Telegram с крестиком лежит поверх
   страницы: safe-area - вырез устройства, content-safe-area - место под
   саму шапку, нужны оба. Отступ на оболочке, а не на шапке: у части
   экранов шапки нет, и заголовок уехал бы под крестик. */
body.tg-fullscreen .shell {
  padding-top: calc(
    var(--tg-safe-area-inset-top, 0px) +
      var(--tg-content-safe-area-inset-top, 0px)
  );
}

.topbar {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 16px;
  background: rgb(17 19 23 / .8);
  -webkit-backdrop-filter: blur(var(--blur-xl));
  backdrop-filter: blur(var(--blur-xl));
  box-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.topbar:empty { display: none; }

/* Шапка разбора C3: бренд label-sm, тема блока headline-sm, полоса 4px. */
.topbar-row { min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 0; }
.topbar-brand {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--primary);
}
.topbar-title {
  font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600;
  letter-spacing: -.01em; color: var(--on-surface);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track { height: 4px; margin-top: 6px; border-radius: var(--r-pill); background: var(--surface-container-highest); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--primary-container); border-radius: var(--r-pill); transition: width .4s ease; }

/* Шапка сайта (C1, C5, C7, B3): бренд headline-sm uppercase + точка. */
.brandbar { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brandbar.is-center { justify-content: space-between; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--primary); text-decoration: none;
  white-space: nowrap;
}
.brand::after { content: ""; flex: none; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--primary-container); }
/* B3: крестик слева, бренд по центру, справа пустое место того же размера. */
.brandbar-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--surface-container); color: var(--on-surface-variant);
}
.brandbar-icon:hover { color: var(--primary); }
.brandbar-spacer { width: 40px; height: 40px; flex: none; }
/* Длинное название не влезает между двумя кнопками по 40px на 360px:
   в такой шапке бренд на ступень мельче. */
.brandbar.is-center .brand { font-size: 15px; letter-spacing: .04em; }

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 24px;
  overflow-wrap: anywhere;
  scroll-padding-top: 12px;
}

.dock {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgb(17 19 23 / .9);
  -webkit-backdrop-filter: blur(var(--blur-xl));
  backdrop-filter: blur(var(--blur-xl));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .4);
}
/* Пустой бар с тенью выглядел бы как оборванный экран. */
.dock:empty { display: none; }

/* В полноэкранном режиме env() отдаёт ноль, отступ снизу приходит от
   Telegram. Берём максимум, чтобы не сложить их дважды на iPhone. */
body.tg-fullscreen .dock {
  padding-bottom: max(
    calc(12px + env(safe-area-inset-bottom)),
    calc(12px + var(--tg-safe-area-inset-bottom, 0px))
  );
}

/* -------- текст -------- */

.eyebrow {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--primary);
}
.eyebrow.quiet { color: var(--outline); }

h1, .h1 {
  font-family: var(--display); font-size: 22px; line-height: 28px; font-weight: 600;
  letter-spacing: -.025em; color: var(--on-surface); text-wrap: balance;
}
.h2 { font-family: var(--display); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--on-surface); }
.lede { font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.body-sm { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant); }
.label-sm { font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; }
.section-label {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--outline); padding: 0 4px;
}

.intro { display: flex; flex-direction: column; gap: 8px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.section { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* Чип / пилюля: A1 и C4. */
.chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 2px 8px; 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: .05em;
  text-transform: uppercase; color: var(--primary);
}
.chip .ic { color: var(--primary); }
.chip.is-soft { color: var(--on-surface-variant); text-transform: none; letter-spacing: .04em; }
.dot { width: 6px; height: 6px; flex: none; border-radius: var(--r-pill); background: var(--primary); }
.dot.is-pulse { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* Карточки: уровень 1 и 2, без рамок. */
.block {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: var(--r-md); background: var(--surface-container); box-shadow: var(--shadow-sm);
}
.card-low { padding: 12px; border-radius: var(--r-md); background: var(--surface-container-low); }
.block-label {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--outline);
}
.divider { height: 1px; background: var(--surface-container-high); }

/* -------- кнопки -------- */

.btn {
  width: 100%; min-height: var(--control-h);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; border: 0; border-radius: var(--r-md);
  font-family: var(--display); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .01em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: var(--primary-container); color: var(--on-primary); box-shadow: var(--shadow-md); }
.btn-primary:hover:not(:disabled) { background: var(--primary); }
/* Вторичная C3/C7: #282a2d, светлый текст, без рамки. */
.btn-ghost { background: var(--surface-container-high); color: var(--on-surface); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-container-highest); }
.btn-ghost .ic { color: var(--outline); }
.btn-quiet {
  width: auto; min-height: 44px; align-self: center; background: transparent; color: var(--on-surface-variant);
  font-size: 12px; line-height: 16px; letter-spacing: .02em; padding: 0 8px;
}
.btn-quiet:hover { color: var(--primary); }
/* Неактивная: #333538 и --outline-strong без прозрачности. В макете C5
   прозрачность .75 даёт контраст 2.86 - текст там смысловой. */
.btn:disabled { background: var(--surface-container-highest); color: var(--outline-strong); box-shadow: none; cursor: not-allowed; }

.btn-note {
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em;
  color: var(--on-surface-variant); text-align: center;
}
.btn-note:empty { display: none; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--on-surface-variant); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--on-surface); }

/* -------- плашка ошибки -------- */

/* В системе A полной плашки нет, перевод из C2: error-container 30% поверх
   фона, светлый текст, без рамки. */
.error:empty { display: none; }
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: var(--r-md);
  background: rgb(147 0 10 / .3); box-shadow: var(--shadow-md);
  text-align: left;
}
.alert-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: rgb(147 0 10 / .45); color: var(--error); }
.alert-title { font-family: var(--display); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--on-surface); }
.alert-text { font-size: 13px; line-height: 18px; color: var(--on-error-container); }

/* -------- скелетон (a1_glavnaya_loading) -------- */

.skeleton { display: flex; flex-direction: column; gap: 12px; }
.sk { border-radius: var(--r-pill); background: var(--surface-container); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.sk-title { height: 20px; width: 70%; background: var(--surface-container-high); }
.sk-line { height: 16px; }
.sk-line.w60 { width: 60%; }
.sk-card { padding: 12px; border-radius: var(--r-md); background: var(--surface-container); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.sk-inner { height: 64px; border-radius: var(--r-sm); background: var(--surface-container-lowest); }
.sk-card .sk-line { background: var(--surface-container-high); }

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

.num-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: var(--surface-container-low); }
.num-tile {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-sm);
  background: var(--surface-container-high); color: var(--primary);
  font-family: var(--display); font-size: 14px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.num-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.num-title { font-family: var(--display); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .01em; color: var(--on-surface); }

.link-card {
  display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--r-md);
  background: var(--surface-container); text-decoration: none; transition: background .15s, transform .1s;
}
.link-card:hover { background: var(--surface-container-high); }
.link-card:active { transform: scale(.99); }
.link-tile { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface-container-highest); color: var(--primary); }
.link-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link-title { font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--primary); }
.link-sub { font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; color: var(--on-surface-variant); }
.link-card > .ic { color: var(--primary); }

.facts { display: flex; gap: 4px; align-items: flex-start; }
.facts .ic { color: var(--primary); margin-top: 0; }

.options { display: flex; flex-direction: column; gap: 8px; }
/* Карточка-радио C1. Выбранное в разметке макета не нарисовано (классы
   ставит скрипт) - берём язык выбранного «Так» из C4: янтарь 20% и
   тонкая внутренняя обводка. */
.option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border: 0; border-radius: var(--r-md);
  background: var(--surface-container-low); color: var(--on-surface);
  font-family: var(--body); font-size: 14px; line-height: 20px; text-align: left;
  cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s;
}
.option:hover { background: var(--surface-container); }
.option:active { transform: scale(.99); }
.option-text { flex: 1; min-width: 0; }
.option > .ic { color: var(--on-surface-variant); }
.radio {
  flex: none; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: var(--r-pill); background: var(--surface-container-highest);
}
.radio::after { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--on-primary); transform: scale(0); transition: transform .12s; }
.option[aria-pressed="true"] { background: rgb(245 158 11 / .2); box-shadow: inset 0 0 0 1px rgb(245 158 11 / .5); }
.option[aria-pressed="true"] .radio { background: var(--primary); }
.option[aria-pressed="true"] .radio::after { transform: scale(1); }

/* «Свой вариант»: поле раскрывается внутри той же карточки. */
.own { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--surface-container-low); }
.own .option { padding: 0; background: transparent; box-shadow: none; }
.own:has(.option[aria-pressed="true"]) { background: rgb(245 158 11 / .2); box-shadow: inset 0 0 0 1px rgb(245 158 11 / .5); }
.own textarea { min-height: 76px; padding: 8px; border-radius: var(--r-sm); font-size: 13px; line-height: 18px; }

/* Согласия C1: чекбокс 20px, радиус 2. */
.terms { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-container-low); }
.terms-head { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--on-surface); }
.terms-head .ic { color: var(--primary); }
.consent { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0;
  border: 0; border-radius: var(--r-xs); background: var(--surface-container-highest);
  display: grid; place-items: center; cursor: pointer;
}
/* Галочка - маска с тем же рисунком check, что в макете (16px). */
.consent input::after {
  content: ""; width: 16px; height: 16px; background: var(--on-primary); transform: scale(0); transition: transform .12s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.consent input:checked { background: var(--primary); }
.consent input:checked::after { transform: scale(1); }
.consent span { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant); }
.consent:hover span { color: var(--on-surface); }
.consent a { color: var(--primary); text-underline-offset: 2px; }

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

textarea {
  display: block; width: 100%;
  background: var(--surface-container-lowest); color: var(--on-surface);
  border: 0; border-radius: var(--r-md);
  padding: 14px; font-family: var(--body); font-size: 14px; line-height: 20px;
  resize: vertical; min-height: 96px;
  transition: background .15s;
}
textarea::placeholder { color: var(--outline); }
/* В Stitch фокус - только смена фона. Этого мало, чтобы увидеть, где
   курсор, поэтому добавляем тонкую янтарную обводку внутрь. */
textarea:focus { outline: none; background: var(--surface-container-low); box-shadow: inset 0 0 0 1px rgb(245 158 11 / .6); }

/* -------- C3 вопрос -------- */

/* История ответов: сворачиваемые блоки, по умолчанию закрыты. */
.history { display: flex; flex-direction: column; gap: 6px; }
.qa { border-radius: var(--r-md); background: var(--surface-container-low); }
.qa summary {
  display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; list-style: none;
  border-radius: var(--r-md);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary > .ic:first-child { color: var(--primary); }
.qa-sum { flex: 1; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .01em; color: var(--on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-chev { color: var(--outline); transition: transform .2s; }
.qa[open] .qa-chev { transform: rotate(180deg); }
.qa-body {
  display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 12px;
  border-radius: 0 0 var(--r-md) var(--r-md); background: rgb(12 14 17 / .5);
  font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant);
  white-space: pre-line;
}
.qa-q { color: var(--on-surface-variant); }
.qa-a { color: var(--on-surface); }

/* Искра C3: карточка с полосой 3px слева, бейдж, body-lg. */
.spark {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 16px 16px 20px; border-radius: var(--r-md);
  background: var(--surface-container); box-shadow: var(--shadow-xl);
}
.spark::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary-container); }
.spark-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-container-highest);
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--primary);
}
.spark-text { font-size: 16px; line-height: 24px; color: var(--on-surface); }

.current { display: flex; flex-direction: column; gap: 12px; }
.status-line { display: flex; align-items: center; gap: 6px; }
.status-line .label-sm { text-transform: uppercase; letter-spacing: .05em; color: var(--on-surface-variant); }
.question { white-space: pre-line; }
/* Размер поля - от C2: у нас длинные ответы, до 4000 знаков. */
.answer-field { min-height: 145px; }
.hint { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface-variant); }
.hint .ic { color: var(--outline); margin-top: 0; }

/* Ожидание ответа модели (c2_vopros_waiting_for_llm). */
.sent { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--surface-container-low); }
.sent-text { font-size: 13px; line-height: 18px; color: var(--on-surface-variant); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 32px 0 8px; text-align: center; }
.rings { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.rings::before, .rings::after { content: ""; position: absolute; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(245 158 11 / .35); }
.rings::before { inset: 0; animation: breathe 2.4s ease-in-out infinite; }
.rings::after { inset: 20px; background: rgb(245 158 11 / .08); }
.rings-core { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-container); color: var(--on-primary); box-shadow: 0 0 24px rgb(245 158 11 / .35); }
@keyframes breathe { 50% { transform: scale(.92); opacity: .6; } }
.wait-card { width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; border-radius: var(--r-md); background: var(--surface-container); box-shadow: var(--shadow-xl); }
.wave { height: 3px; border-radius: var(--r-pill); background: var(--surface-container-highest); overflow: hidden; }
.wave i { display: block; width: 35%; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, transparent, var(--primary-container), transparent); animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* -------- C4 зеркало -------- */

.mirror-card { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-container); box-shadow: var(--shadow-sm); }
.mirror-top { display: none; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mirror-card[data-topic] .mirror-top, .mirror-card[data-answered="no"] .mirror-top { display: flex; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-container-highest);
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; color: var(--primary);
}
.badge.is-muted { color: var(--on-surface-variant); }
.followup { display: none; }
.mirror-card[data-answered="no"] .followup { display: inline-flex; }
.mirror-text { display: flex; flex-direction: column; gap: 4px; }
.statement { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--on-surface); text-wrap: pretty; }
.mirror-card[data-answered="no"] .statement { color: var(--on-surface-variant); text-decoration: line-through; }
.quote { font-size: 13px; line-height: 18px; letter-spacing: .01em; font-style: italic; color: var(--on-surface-variant); }
.answer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.answer {
  height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 12px; border: 0; border-radius: var(--r-md);
  background: var(--surface-container-high); color: var(--on-surface-variant);
  font-family: var(--display); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; transition: background .15s, box-shadow .15s;
}
.answer:hover { background: var(--surface-container-highest); }
.answer[data-v="yes"][aria-pressed="true"] { background: rgb(245 158 11 / .2); color: var(--primary); box-shadow: inset 0 0 0 1px rgb(245 158 11 / .5); }
.answer[data-v="no"][aria-pressed="true"] { background: var(--surface-container-highest); color: var(--on-surface); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15); }

.tally { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--surface-container-high); }
.tally-label { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--on-surface); }
.tally-label .ic { color: var(--primary); }
.tally-count {
  flex: none; padding: 2px 8px; border-radius: var(--r-xs); background: var(--surface-container);
  font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .01em;
  font-variant-numeric: tabular-nums; color: var(--primary);
}

/* -------- C5 сборка -------- */

.center-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.center-hero .lede { max-width: 340px; }
.emblem {
  position: relative; width: 64px; height: 64px; margin-bottom: 4px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--surface-container-high); color: var(--primary); box-shadow: var(--shadow-lg);
}
.emblem.is-pulse::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgb(255 193 116 / .1); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.35); opacity: 0; } }
.info-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-md); background: var(--surface-container); box-shadow: var(--shadow-sm); }
.info-card .ic { color: var(--primary); }
.info-text { font-size: 14px; line-height: 20px; color: var(--on-surface); }
.card-head { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--on-surface); }
.checks .ic { color: var(--primary); }
.list-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--on-surface-variant); }

/* -------- C7 остановка -------- */

.stop-top { display: flex; align-items: center; justify-content: center; }
.pill-soft {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--r-pill);
  background: var(--surface-container-low);
  font-family: var(--display); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--on-surface-variant);
}
.stop-title { text-align: center; }
.stop-text { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-container-low); font-size: 14px; line-height: 20px; color: var(--on-surface); }
.contacts { display: flex; flex-direction: column; gap: 4px; }
.contacts .section-label { margin-bottom: 4px; }
/* Карточка-ссылка tel: как в C7. Номер крупнее, чем 12px в макете
   (решение владельца): на экране помощи номер - главное, что нужно
   прочитать и набрать. */
.contact {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md);
  background: var(--surface-container); color: inherit; text-decoration: none; transition: background .15s;
}
.contact:hover, .contact:active { background: var(--surface-container-high); }
.contact-tile { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--surface-container-high); color: var(--primary); }
.contact-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.contact-name { font-family: var(--display); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .01em; color: var(--on-surface); }
.contact-num { font-family: var(--display); font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: .01em; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact > .ic { color: var(--outline); }
.saved-line { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 13px; line-height: 18px; color: var(--on-surface-variant); }
.saved-line .ic { color: var(--primary); }

/* -------- B3 нет сессии / нет сети -------- */

.b3 { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 100%; }
.b3-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: center;
  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);
}
.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: 16px;
  border-radius: var(--r-pill); background: var(--surface-container-high); color: var(--primary-container); box-shadow: var(--shadow-md);
}
.b3-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(--secondary); box-shadow: var(--shadow-lg);
}
.b3-title { margin-bottom: 8px; }
.b3-text { margin-bottom: 16px; }
.b3-info {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px; 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-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.b3-legal a { font-family: var(--display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--on-surface-variant); text-decoration: none; padding: 4px 0; }
.b3-legal a:hover { color: var(--primary); }
a.btn-quiet { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

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

/* ======================================================================
   Экран оплаты и паспорт - этап 3 (C6). Ниже прежние стили, переведённые
   только на токены без рамок, чтобы экраны не развалились от смены базы
   14/20. Композицию досье сюда не переносим.
   ====================================================================== */

.recap { background: var(--surface-container); border-radius: var(--r-md); padding: 14px 16px; margin-top: 20px; box-shadow: var(--shadow-sm); }
.recap p { font-size: 14px; line-height: 21px; color: var(--on-surface-variant); }
.recap p + p { margin-top: 7px; color: var(--on-surface); font-weight: 500; }

.item { display: flex; gap: 12px; }
.item + .item { margin-top: 14px; }
.item-mark { flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--surface-container-high); color: var(--primary); font-family: var(--display); font-size: 11px; font-weight: 700; display: grid; place-content: center; margin-top: 2px; }
.item h3 { font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 21px; margin: 0 0 3px; }
.item p { font-size: 13px; line-height: 19px; color: var(--on-surface-variant); }

.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { font-family: var(--display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-note { font-size: 12px; line-height: 17px; color: var(--on-surface-variant); text-align: right; }

/* Условия участия после нажатия «Начать разбор» без отметок: подсветка
   рамкой primary и мягкое свечение, чтобы глаз нашёл блок после прокрутки. */
.terms.is-attention {
  box-shadow: inset 0 0 0 2px var(--primary-container), 0 0 0 4px rgb(245 158 11 / .15);
  border-radius: var(--r-md);
  transition: box-shadow .2s;
}
.terms.is-attention .consent:has(input:not(:checked)) span { color: var(--on-surface); }

/* -------- паспорт C6: светлое досье --------
   Спецификация, раздел 3.4 «C6». Токены досье включает data-theme на body
   (renderPassport), остальные экраны его снимают в render(). Заголовки -
   засечки досье, метки - JetBrains Mono, текст - Inter. Номеров досье,
   «верифицировано» и реестров нет: это вид госдокумента, которого нет. */

.shell [hidden] { display: none !important; }

[data-theme="dossier"] .topbar { background: rgb(248 249 255 / .85); box-shadow: 0 1px 8px rgba(0, 0, 0, .04); }
[data-theme="dossier"] .dock { background: rgb(248 249 255 / .85); box-shadow: 0 -2px 12px rgba(0, 0, 0, .04); }

.ds-bar { height: 56px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.ds-bar-title { text-align: center; font-family: var(--dossier-serif); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--on-surface); }
.ds-icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-md);
  background: none; color: var(--on-surface); cursor: pointer;
}
.ds-icon-btn:hover { color: var(--primary); }

.ds { display: flex; flex-direction: column; gap: 24px; }
.ds-section { display: flex; flex-direction: column; gap: 12px; }
.ds-stack-4 { display: flex; flex-direction: column; gap: 4px; }
.ds-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: var(--r-md); background: var(--surface-container-lowest); box-shadow: var(--shadow-sm);
}
.ds-card.is-tight { padding: 16px; }
.ds-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.ds-h1 { font-family: var(--dossier-serif); font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.01em; color: var(--on-surface); text-wrap: pretty; }
.ds-h2 { font-family: var(--dossier-serif); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--on-surface); }
.ds-p { font-size: 14px; line-height: 22px; color: var(--on-surface); }
.ds-italic { font-style: italic; color: var(--on-surface-variant); }
.ds-sub { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--secondary); }
.ds-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--secondary);
}
.ds-label .dot { width: 8px; height: 8px; background: var(--primary); }
.ds-pad { padding: 0 4px; }
.ds-kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--dossier-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--primary);
}

/* «Ваш сценарий»: container-low и полоса 6px слева. */
.ds-scenario {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 16px 16px 16px 24px; border-radius: var(--r-md); background: var(--surface-container-low); box-shadow: var(--shadow-sm);
}
.ds-scenario::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--primary); }

/* Рамка 2×2. Короткое значение - крупной строкой, предложение - текстом. */
.ds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ds-tile { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface-container-lowest); box-shadow: var(--shadow-sm); }
.ds-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-tile-head .ic { color: var(--primary); }
.ds-tile-value { font-family: var(--dossier-serif); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--on-surface); }
.ds-tile-note { font-size: 13px; line-height: 18px; color: var(--on-surface-variant); }
@media (max-width: 359px) { .ds-grid { grid-template-columns: 1fr; } }

.ds-badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 4px 10px; border-radius: var(--r-xs); background: rgb(141 75 0 / .1); color: var(--primary);
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.ds-template { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface-container-low); }
.ds-template-text {
  padding: 12px; border-radius: var(--r-sm); background: var(--surface-container-lowest);
  font-family: var(--dossier-mono); font-size: 13px; line-height: 20px; color: var(--on-surface);
  white-space: pre-wrap; -webkit-user-select: all; user-select: all;
}
.ds-copy {
  min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--r-sm); background: rgb(213 227 252 / .7); color: var(--on-surface); cursor: pointer;
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em;
}
.ds-copy:hover { background: var(--surface-container-highest); }
.ds-copy .ic { color: var(--primary); }

/* Чек-лист: счётчик на Inter, квадрат 24px с радиусом 2. */
.ds-count {
  flex: none; padding: 4px 8px; border-radius: var(--r-xs); background: var(--surface-container); color: var(--primary);
  font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ds-progress { height: 6px; border-radius: 9999px; background: var(--surface-container); overflow: hidden; }
.ds-progress i { display: block; width: 0; height: 100%; border-radius: 9999px; background: var(--primary); transition: width .3s; }
.ds-tasks { display: flex; flex-direction: column; gap: 4px; }
.ds-group { padding: 8px 10px 0; }
.ds-task { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px; border-radius: var(--r-md); cursor: pointer; }
.ds-task:hover { background: var(--surface-container-low); }
.ds-task input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ds-box { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--surface-container-highest); color: var(--on-primary); transition: background .15s; }
.ds-box .ic { opacity: 0; transition: opacity .15s; }
.ds-task input:checked + .ds-box { background: var(--primary); }
.ds-task input:checked + .ds-box .ic { opacity: 1; }
.ds-task input:focus-visible + .ds-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.ds-task-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-task-title { font-size: 14px; line-height: 22px; font-weight: 500; color: var(--on-surface); }
.ds-task-note { font-size: 13px; line-height: 18px; color: var(--on-surface-variant); }
.ds-task input:checked ~ .ds-task-text .ds-task-title { color: var(--secondary); text-decoration: line-through; }

/* Признаки по срокам: переключатель и панель container-low. */
.ds-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface-container); }
.ds-tab {
  flex: 1; min-height: 36px; padding: 6px 4px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--secondary); cursor: pointer;
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .02em;
}
.ds-tab[aria-selected="true"] { background: var(--surface-container-lowest); color: var(--on-surface); box-shadow: var(--shadow-sm); }
.ds-panel { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface-container-low); }
.ds-sign { display: flex; flex-direction: column; gap: 4px; }
.ds-sign-head { display: flex; align-items: center; gap: 8px; font-family: var(--dossier-serif); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--primary); }
.ds-sign-head.is-bad { color: var(--secondary); }

/* Экспорт: две колонки - «На почту» из макета у нас нет. */
.ds-export { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds-export a {
  height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-md); background: var(--surface-container-lowest); box-shadow: var(--shadow-sm); color: var(--on-surface); text-decoration: none;
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em;
}
.ds-export a:hover { background: var(--surface-container-low); }
.ds-export .ic { color: var(--primary); }

.ds-row { display: flex; align-items: flex-start; gap: 12px; }
.ds-invite-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--surface-container-high); color: var(--secondary); }
.ds-invite-row { display: flex; align-items: center; gap: 8px; }
.ds-link-box {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-container-low);
  font-family: var(--dossier-mono); font-size: 13px; line-height: 18px; color: var(--on-surface);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ds-small-btn {
  flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: var(--surface-container-highest); color: var(--on-surface); cursor: pointer;
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em;
}

/* Карточка для соцсетей: превью рисуется на canvas до сохранения. */
.ds-ratio { flex: none; display: flex; gap: 2px; padding: 2px; border-radius: var(--r-md); background: var(--surface-container); }
.ds-ratio-btn {
  min-width: 44px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--secondary); cursor: pointer;
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500;
}
.ds-ratio-btn[aria-pressed="true"] { background: var(--surface-container-lowest); color: var(--on-surface); box-shadow: var(--shadow-sm); }
.ds-card-preview { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--shadow-md); background: var(--inverse-surface); }
.ds-guard { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--surface-container-low); font-size: 13px; line-height: 18px; color: var(--secondary); }
.ds-guard .ic { flex: none; color: var(--primary); }
.ds-save {
  height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: var(--inverse-surface); color: var(--inverse-on-surface); box-shadow: var(--shadow-sm);
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
}
.ds-save:disabled { opacity: .6; cursor: progress; }

/* Приложение: те же карточки, пункты разделены тонкой линией тона. */
.ds-appendix { display: flex; flex-direction: column; gap: 4px; padding: 8px 4px 0; }
.ds-item { display: flex; flex-direction: column; gap: 4px; }
.ds-item + .ds-item { padding-top: 12px; border-top: 1px solid var(--surface-container); }
.ds-item-title { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--on-surface); }
.ds-line { font-size: 13px; line-height: 20px; color: var(--on-surface-variant); }
.ds-line b { font-weight: 600; color: var(--on-surface); }
.ds-when { font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }
.ds-quote { font-size: 13px; line-height: 20px; font-style: italic; color: var(--on-surface-variant); }
.ds-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ds-split > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border-radius: var(--r-md); background: var(--surface-container-low); }
@media (max-width: 359px) { .ds-split { grid-template-columns: 1fr; } }

/* «Пара слов о вас»: варианты чипами, выбранный - цветом primary. */
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chip {
  min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: var(--surface-container-low); color: var(--on-surface); font: 500 13px/18px var(--body); text-align: left;
}
.ds-chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

/* Оценка и удаление в макете отсутствуют, но нужны продукту. */
.ds-hits { display: flex; gap: 8px; }
.ds-hit {
  flex: 1; height: 44px; border: 0; border-radius: var(--r-md); background: var(--surface-container-low); color: var(--on-surface); cursor: pointer;
  font-family: var(--dossier-serif); font-size: 18px; font-weight: 600;
}
.ds-hit[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.ds-textarea {
  width: 100%; min-height: 72px; padding: 12px; border: 0; border-radius: var(--r-md); resize: vertical;
  background: var(--surface-container-low); color: var(--on-surface); font: 14px/22px var(--body);
}
.ds-textarea::placeholder { color: var(--secondary); }
.ds-send {
  height: 44px; border: 0; border-radius: var(--r-md); background: var(--inverse-surface); color: var(--inverse-on-surface); cursor: pointer;
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
}
.ds-send:disabled { background: var(--surface-container-highest); color: var(--secondary); cursor: not-allowed; }
.ds-forget {
  align-self: center; min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--secondary); text-decoration: underline;
}

/* Пример паспорта A3: тёмная шапка «Образец документа» над светлым листом,
   плашка про тестовое прохождение и кнопка начать свой разбор. Тёмный -
   inverse-surface досье; янтарь PDF - primary тёмной темы сайта. */
.sample-bar { height: 56px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; }
[data-theme="dossier"] .topbar:has(.sample-bar) { background: var(--inverse-surface); box-shadow: none; }
.sample-back { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); color: var(--inverse-on-surface); }
.sample-back:hover { background: rgb(255 255 255 / .08); }
.sample-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--inverse-on-surface);
}
.sample-title .dot { width: 8px; height: 8px; background: #f59e0b; }
.sample-pdf {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  background: rgb(255 255 255 / .08); color: #ffc174; text-decoration: none;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.sample-pdf:hover { background: rgb(245 158 11 / .2); }
.sample-note {
  display: flex; align-items: flex-start; gap: 10px; margin: -16px -16px 16px; padding: 12px 16px;
  background: var(--surface-container-low); color: var(--on-surface-variant); font-size: 12px; line-height: 17px;
}
.sample-note .ic { flex: none; margin-top: 1px; color: var(--secondary); }
.sample-note b { font-weight: 600; color: var(--on-surface); }
/* flex: none - бар примера колонкой, а flex: 1 1 0 сжал бы кнопку по высоте. */
.ds-dock-btn.is-cta { flex: none; height: 48px; font-family: var(--body); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.ds-dock-note { text-align: center; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; color: var(--secondary); }
.ds-dock-note:empty { display: none; }

/* Нижний бар C6: вторичная и основная, h-11. */
.ds-dock { display: flex; gap: 12px; }
.ds-dock-btn {
  flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 12px; border: 0; border-radius: var(--r-md); background: rgb(213 227 252 / .8); color: var(--on-surface);
  text-decoration: none; cursor: pointer;
  font-family: var(--dossier-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
}
.ds-dock-btn .ic { color: var(--primary); }
.ds-dock-btn.is-primary { background: var(--primary); color: var(--on-primary); }
.ds-dock-btn.is-primary .ic { color: inherit; }
