/* «Навигатор выплат»: лендинг, анкета, проверка оплаты.
 * Мобильный первый, без отдельной мобильной версии: от 320 px без горизонтальной
 * прокрутки, колонка анкеты до 720 px по центру, отчёт шире; кнопки от 48 px,
 * системные шрифты (никаких внешних), контраст не ниже 4.5:1, печать отчёта.
 * Размеры шрифта — в rem от html 100 %: работает настройка «Размер шрифта» браузера.
 * Страница явно светлая (color-scheme: only light): принудительное затемнение
 * браузера её не перекрашивает. Движения нет; prefers-reduced-motion запрещает
 * анимации. Единственная «анимация» — без движения: запасной текст заглушки
 * (.loading-late) появляется с задержкой, если скрипт страницы не загрузился.
 * Цвета — только токены :root (пол дизайна П1); ниже блока — var(--…), кроме печати
 * (@media print: чёрный по белому для принтера). Насыщенности шрифта — три: 400, 600, 700
 * (пол дизайна, отделка О17; ссылки-кнопки .btn-link — 400).
 * Страховка от выхода за край (П5): картинки, SVG и таблицы не шире колонки, у h1–h3
 * min-width: 0. overflow-x: clip у html и body не ставим: с ним documentElement.scrollWidth
 * равен ширине окна (Chromium: широкий блок 900 px на 320 px — 320 вместо 900), и все замеры
 * «без прокрутки по ширине» (smoke, check:ui, check:catalog) стали бы ложнозелёными, а выход
 * за край прятался бы — то, что П5 запрещает. Разбор Hallmark 28.10.2026: F01, F02, F04, F05,
 * F06 (без ширины отчёта — report.css), F21, F24, F25 — docs/catalog-architecture.md, §3.2 (а⁶). */

:root {
  color-scheme: only light;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1b2130;
  --muted: #4e5868;
  --line: #c9ced8;
  --field-line: #737b8a;
  --accent: #1f4e8c;
  --accent-dark: #173c6c;
  --accent-text: #ffffff;
  --focus-ring: #0b3a75;
  --ok: #1d6f37;
  --ok-bg: #e7f4eb;
  --bad: #a3221b;
  --warn-bg: #fff4d6;
  --warn-line: #d9a93a;
  --internal-bg: #8a1c14;
  --chosen-bg: #e8f0fb;
  /* Цвета, которые раньше стояли литералами в правилах (разбор Hallmark F05) — те же значения. */
  --internal-text: #ffffff;
  --notgov-bg: #e6e9ef;
  --line-soft: #e3e6ec;
  --track: #dde2ea;
  --neutral-bg: #eef1f5;
  --ok-mark-bg: #e3f1e7;
  --bad-mark-bg: #fbe9e7;
  --field-disabled-bg: #eceef2;
  --disabled-bg: #c5cad3;
  --disabled-text: #3b4352;
  --disabled-link: #6b7382;
  --warn-text: #6b4b00;
  /* Выделение текста (F25): светлый оттенок --accent; текст выделения — --text, 11,5:1. */
  --selection-bg: #c9dcf5;
}

* { box-sizing: border-box; }

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

::selection { background: var(--selection-bg); color: var(--text); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Страховка от выхода за край (П5, F06): медиа и таблицы не шире колонки; заголовок в flex и
   grid сжимается, длинное слово переносится (overflow-wrap — от body). */
img, svg, video, canvas, table { max-width: 100%; }
h1, h2, h3 { min-width: 0; }

.wrap {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
/* Отчёт шире колонки анкеты расширяет report.css (.screen-report, от 1024 px):
   до 1024 px карточки идут одной колонкой, и строки шире колонки анкеты были бы
   слишком длинными. */

a { color: var(--accent); }

/* Видимый фокус: тёмная рамка с отступом — контраст к фону страницы, карточке и
 * выбранному варианту не ниже 3:1. После касания пальцем или щелчка мышью рамку
 * убирает :focus-visible; браузер, который его не знает, пропустит второе правило
 * целиком и оставит рамку. */
a:focus, button:focus, input:focus, select:focus, textarea:focus, summary:focus, [tabindex]:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible), input:focus:not(:focus-visible),
select:focus:not(:focus-visible), textarea:focus:not(:focus-visible), summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}
h1[tabindex]:focus, .screen-title:focus { outline: none; } /* фокус на заголовке — для экранного диктора, рамка не нужна */

.is-hidden { display: none !important; }

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

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

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

.internal-banner {
  margin: 0;
  padding: 8px 16px;
  background: var(--internal-bg);
  color: var(--internal-text);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}

.not-gov {
  margin: 0;
  padding: 6px 16px;
  background: var(--notgov-bg);
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}
.not-gov:empty { display: none; }

.warn {
  padding: 12px 16px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 12px;
}
.warn p { margin: 4px 0; }

/* Сообщение вверху экрана: удалено (с «Отменить»), перенесено, удалено по сроку. */
.notice {
  margin: 8px 0 16px;
  padding: 12px 16px;
  background: var(--ok-bg);
  border: 1px solid var(--ok);
  border-radius: 12px;
}
.notice p { margin: 4px 0; }
.notice-text { font-weight: 600; }

/* ---------------------------------------------------------------- лендинг */

.landing { padding-top: 4px; padding-bottom: 8px; }
.landing-title { font-size: 1.75rem; line-height: 1.2; margin: 16px 0 12px; }
.lead { font-size: 1.125rem; margin: 0 0 16px; }
.points { margin: 8px 0 20px; padding-left: 22px; }
.points li { margin: 0 0 8px; }
.start-row { margin: 20px 0 8px; }
.mode-note { margin: 0 0 16px; }

/* ---------------------------------------------------------------- экраны анкеты */

.screen { padding: 16px 0 8px; }
.screen-title { font-size: 1.4375rem; line-height: 1.25; margin: 4px 0 12px; }
.screen h2 { font-size: 1.25rem; margin: 24px 0 8px; }
.screen h3 { font-size: 1.125rem; margin: 0 0 8px; }
.loading { color: var(--muted); padding: 24px 0 8px; }
/* Скрипт страницы (ui.js, paid.js) не загрузился — через 15 с вместо вечного
 * «Загружаем…» совет обновить страницу. Встроенных скриптов CSP не пускает, поэтому
 * текст лежит в HTML скрытым и показывается анимацией с задержкой; загрузившийся
 * скрипт его убирает. visibility, а не прозрачность: скрытый текст не читает и чтец. */
.loading-late {
  visibility: hidden;
  margin: 0 0 16px;
  font-weight: 600;
  animation: nav-late 0s linear 15s forwards;
}
@keyframes nav-late { to { visibility: visible; } }
/* Кнопки подвала app.html работают только с ui.js: до первого экрана их не видно. */
body.page-app:not([data-screen]) .foot-actions { display: none; }

/* Название раздела — строчными, без разрядки (пол П8, разбор Hallmark F02). */
.section-name {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hint { color: var(--muted); font-size: 1rem; margin: 8px 0; }
/* Узлы живых областей и ошибок не прячем display: none — иначе их нет в дереве
 * доступности и появившийся текст чтец может не объявить. Пустые — без отступов. */
.error { color: var(--bad); font-size: 1rem; font-weight: 600; margin: 4px 0 8px; }
.error:empty { margin: 0; }
/* Ошибка одиночного вопроса (ui.js, класс error-line): место под строку ошибки зарезервировано,
 * «Далее» при ошибке не съезжает (отделка О13, разбор Hallmark F21: было +32 px). Зазор до
 * кнопок — у самой строки, поэтому у .actions после неё он меньше. Высоту места задаёт
 * невидимая копия самого длинного текста ошибки этого вопроса (data-reserve, ui.js reserveError):
 * обтекаемый блок во всю ширину с полем справа −100% текст строки не сдвигает, а flow-root
 * растит строку до большей из двух высот. Поэтому ошибка в две строки (длинный текст на
 * 320–390 px) «Далее» тоже не сдвигает (разбор UI1-ERR-2LINE). Браузер без flow-root — место
 * в одну строку, как раньше. Сводку ошибок группы место не покрывает: решение — договор
 * каталога §3.2 (а⁶). */
.error.error-line, .error.error-line:empty { min-height: 1.5em; margin: 4px 0 0; }
@supports (display: flow-root) {
  .error.error-line[data-reserve] { display: flow-root; }
  .error.error-line[data-reserve]::before {
    content: attr(data-reserve);
    float: left;
    width: 100%;
    margin-right: -100%;
    visibility: hidden;
  }
}
.error-line ~ .actions { margin-top: 8px; }
.status { color: var(--accent-dark); font-size: 1rem; margin: 8px 0; }
.status:empty { margin: 0; }

.progress { margin: 0 0 8px; }
.progress progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--track);
  color: var(--accent);
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
.progress progress::-webkit-progress-bar { background: var(--track); border-radius: 4px; }
.progress progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.progress progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.progress-text { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }

.answer { margin: 16px 0 8px; }

.options { display: block; }
.option {
  display: flex;
  align-items: flex-start;
  min-height: 52px;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.option input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 12px 0 0;
  accent-color: var(--accent);
}
/* Выбранный вариант виден по всей карточке, а не только по точке под пальцем. */
.option.is-checked {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--chosen-bg);
}
.option:active { background: var(--chosen-bg); }
.option-text { flex: 1 1 auto; min-width: 0; }
.option-hint { display: block; color: var(--muted); font-size: 1rem; margin-top: 2px; }
.option-inline { margin-top: 12px; }
.options-row { display: flex; flex-wrap: wrap; }
.options-row .option { flex: 1 1 120px; margin-right: 8px; }
.options-row .option:last-child { margin-right: 0; }

.group-field {
  margin: 0 0 16px;
  padding: 12px 14px 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.group-field.has-error { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.group-field .option { background: var(--bg); }
.group-field .option.is-checked { background: var(--chosen-bg); }
.field-set > legend { display: block; width: 100%; }
.field { margin: 16px 0; }
.field-label { display: block; font-weight: 600; margin: 0 0 8px; }
.optional { font-weight: 400; color: var(--muted); }

.input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem; /* не меньше 16 px: иначе iPhone увеличивает страницу при вводе */
}
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.input:disabled { background: var(--field-disabled-bg); color: var(--muted); cursor: not-allowed; }
.input-number { max-width: 180px; margin-bottom: 8px; }
.input-date { max-width: 280px; }
/* «Вы указали: 12 ноября 2024 г.» под полем даты: цветом основного текста — это
   проверка ввода, а не второстепенная подсказка. Пустая строка места не занимает. */
.date-words { margin: 8px 0 0; color: var(--text); font-weight: 600; }
.date-words:empty { margin: 0; }
/* Дата тремя полями (решение владельца 27.11.2026; образец — GOV.UK Design System, date input):
   подпись над каждым полем, ширина — по числу цифр (2, 2 и 4), в em, чтобы при крупном шрифте
   браузера цифры не обрезались; при нехватке места поля переносятся на новую строку. */
.date-input { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.date-item { display: flex; flex-direction: column; }
.date-label { display: block; margin: 0 0 4px; }
.input.date-part-2 { width: 4.5em; max-width: 4.5em; }
.input.date-part-4 { width: 6em; max-width: 6em; }
/* Регион: поле поиска над списком, найденные (1–5) — кнопками под полем. */
.region-find-label { display: block; margin: 0 0 8px; }
.input.region-find { max-width: 520px; }
.region-status { margin: 8px 0 0; }
.region-status:empty { margin: 0; }
.region-picks { display: flex; flex-direction: column; align-items: stretch; gap: 8px; max-width: 520px; margin: 12px 0 0; }
.region-picks:empty { margin: 0; }
.region-pick { text-align: left; }
.field-region select.input { margin-top: 12px; }

/* Мягкое предупреждение у поля (warn анкеты): «Далее» второй раз — дальше.
   Пустое не видно, но остаётся в странице: живая область role=alert должна быть
   на месте до того, как в неё попадёт текст. */
.field-warn { margin: 8px 0 12px; border-width: 2px; }
.field-warn:empty { margin: 0; padding: 0; border: 0; background: none; }
.warn-confirm { font-weight: 600; }
select.input { -webkit-appearance: menulist; max-width: 520px; }
textarea.input { min-height: 120px; resize: vertical; }
.counter { text-align: right; font-size: 0.875rem; }

/* Сводка ошибок группы над «Далее»: каждая строка ведёт к полю. */
.error-summary {
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--card);
  border: 2px solid var(--bad);
  border-radius: 12px;
}
.error-summary-title { margin: 0 0 4px; font-weight: 700; color: var(--bad); }
.error-summary ul { margin: 0; padding-left: 20px; }
/* Маркер пункта — у первой строки: кнопка выровнена по верху строки, без верхнего
 * отступа; высота цели (44 px) — через min-height. */
.error-summary li { margin: 0 0 4px; }
.error-summary .link-button { vertical-align: top; padding: 0 0 8px; }
.link-button {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--bad);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

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

.btn {
  display: inline-block;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:active { background: var(--accent-dark); }
.btn-secondary { background: var(--card); color: var(--accent); border-color: var(--accent); }
.btn-secondary:active { background: var(--chosen-bg); }
.btn-link {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
  text-decoration: underline;
  font-weight: 400;
}
.btn-danger { color: var(--bad); }
.btn-secondary.btn-danger { border-color: var(--bad); }
.btn-wide { display: block; width: 100%; }
.btn:disabled, .btn[disabled] {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border-color: var(--disabled-bg);
  cursor: not-allowed;
}
.btn-link:disabled { background: transparent; border-color: transparent; color: var(--disabled-link); text-decoration: none; }
.btn.is-busy { cursor: progress; opacity: 0.8; }
/* Прежний выбор на экране согласия: двойная рамка видна и на синей, и на белой
 * кнопке; словами он ещё и сказан рядом (.chosen-before). */
.is-chosen { box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 6px var(--text); }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 8px;
}
.actions .btn { margin: 0 0 8px; }
.actions .btn-primary { flex: 1 1 160px; margin-left: 12px; }
.actions .btn:only-child { margin-left: 0; }
.actions .btn-back { flex: 0 1 auto; max-width: 100%; }

/* ---------------------------------------------------------------- согласия, стоп, перенос */

/* Текст согласия — целиком на странице, без вложенной прокрутки. */
.consent-text {
  padding: 4px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
}
summary { display: list-item; cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 0; }
/* Краткое изложение вводного экрана, полный текст под раскрытием и строка подтверждения (решение владельца 27.11.2026). */
.consent-summary { margin: 12px 0; padding-left: 20px; }
.consent-summary li { margin: 0 0 8px; }
.consent-full { margin: 4px 0; border-top: 1px solid var(--line); }
.consent-full-text { padding-bottom: 4px; }
.consent-confirm { margin: 12px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.chosen-before { margin-top: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}
.card > h2:first-child { margin-top: 0; }
.contact-name { font-weight: 700; }

/* Контакт адвокатского бюро крупно — флаги criminal_unknown и death_docs_unknown (решение
 * владельца 23.10.2026): предпросмотр и оплата — перед кнопкой; тот же вид у запасного
 * отчёта. Заметность — рамка, фон и заголовок; телефон — ссылка во всю ширину (цель от 48 px), кнопка вторичная, чтобы
 * главное действие экрана оставалось одно. Текст #1b2130 на #fff4d6 — контраст около 14:1. */
.bureau-alert {
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--warn-bg);
  border: 2px solid var(--warn-line);
  border-left-width: 8px;
  border-radius: 12px;
}
.screen .bureau-alert-title { font-size: 1.25rem; line-height: 1.3; margin: 0 0 8px; }
.bureau-alert p { margin: 8px 0; }
.bureau-alert-text { font-size: 1.0625rem; line-height: 1.45; }
.bureau-alert .btn { margin: 4px 0; }
.bureau-alert .bureau-call { font-size: 1.125rem; font-weight: 700; }
/* «Вы изменили ответ…» — только на экране; на печати — обычный текст блока. */
.ba-print { display: none; }

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

.found { font-size: 1.1875rem; margin: 8px 0 12px; }
.total-count { font-size: 1.75rem; color: var(--accent-dark); }
.totals {
  margin: 0 0 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.totals dt { color: var(--muted); font-size: 1rem; margin-top: 8px; }
.totals dt:first-child { margin-top: 0; }
/* Сумма переносится только между группами разрядов (<wbr> в разметке). */
.totals dd { margin: 2px 0 0; font-size: 1.375rem; font-weight: 700; white-space: normal; overflow-wrap: normal; }
.totals dd.is-unknown { font-size: 1.125rem; font-weight: 600; color: var(--muted); }
.unknown-amounts { margin-top: -4px; }
/* Какие выплаты не вошли в «вашу часть» и почему (svo_texts-15). */
.unknown-list ul { margin: 0; padding-left: 20px; }
.unknown-list li + li { margin-top: 4px; }
.price { font-size: 1.1875rem; font-weight: 600; }
.offer { margin: 16px 0; }
.pending-pay { margin: 8px 0 16px; }
.pending-pay .btn { margin: 4px 0; }
/* Контакт поддержки ООО (app.html и paid.html): почта, телефон и ссылка — кнопками во всю
 * ширину, цель касания от 48 px, как у контакта бюро. Длинный адрес почты переносится. */
.support .btn { margin: 4px 0; overflow-wrap: break-word; word-wrap: break-word; }
.paid-order { font-weight: 600; }
.pay-why { margin-bottom: 0; }

/* ---------------------------------------------------------------- «Ваши ответы» */

.review-section { margin: 20px 0 4px; }
.review-list { margin: 0 0 8px; }
.review-item { padding: 8px 0; border-top: 1px solid var(--line); }
.review-item:first-child { border-top: 0; }
.review-item dt { font-weight: 600; }
.review-item dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  margin: 2px 0 0;
}
.review-item dd > span, .review-item dd > ul { flex: 1 1 200px; min-width: 0; }
.review-group { margin: 0; padding-left: 20px; }
.review-edit { flex: 0 0 auto; margin-left: 8px; }

/* ---------------------------------------------------------------- отчёт */

.payment .facts { margin: 0; }
.facts dt { color: var(--muted); font-size: 0.9375rem; margin-top: 6px; }
.facts dd { margin: 0; }
.docs { margin: 10px 0 0; padding-left: 20px; }
.docs .need { font-weight: 600; }
.calendar { padding-left: 20px; }
.flags .flag h3 { color: var(--bad); }
.meta { margin-top: 20px; }
.meta p { margin: 2px 0; }
.delivery { display: flex; flex-wrap: wrap; margin: 16px 0 0; }
.delivery .btn { flex: 1 1 140px; margin: 0 8px 8px 0; }
.report-tools { margin: 8px 0; }
/* Оценка карты в её конце (ui.js, rateBlock; решение владельца 18.11.2026): вопрос и две кнопки-ссылки
 * в ряд, а там, где двум кнопкам не хватает 140 px каждой (320 px), — по одной во всю ширину: «Не помогло»
 * в 138 px рвалось на две строки. Поля по горизонтали 12 px — тот же приём, что у кнопок PDF карты
 * (orbita-svo.css); правило сильнее .btn темы. На печать блок не идёт (@media print ниже). */
.report-rate { margin: 24px 0 8px; }
.rate-question { margin: 0 0 8px; font-weight: 600; }
.rate-actions { display: flex; flex-wrap: wrap; margin: 0 0 0 -12px; }
.report-rate .rate-actions .btn { flex: 1 1 140px; margin: 0 0 8px 12px; padding-left: 12px; padding-right: 12px; }
.save-top {
  margin: 12px 0 16px;
  padding: 10px 12px 2px;
  background: var(--chosen-bg);
  border-radius: 12px;
}
.save-top-title { margin: 0 0 8px; font-weight: 600; }
.delivery-top { margin: 0; }
.change-first { margin: 12px 0 0; }
.storage-off { margin: 8px 0 16px; }

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

.app-foot, .page-foot {
  margin-top: 24px;
  padding-top: 12px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}
.foot-actions { display: flex; flex-wrap: wrap; margin: 0 -4px; }
/* Между кнопками подвала не меньше 8 px: рядом — «Удалить мои данные». */
.foot-actions .btn { margin: 0 4px 8px; font-size: 1rem; }
.warn-card { border: 2px solid var(--bad); }
.delete-title { margin: 0 0 4px; font-weight: 700; }
.delete-actions { display: flex; flex-wrap: wrap; margin: 8px -4px 0; }
.delete-actions .btn { flex: 1 1 180px; margin: 0 4px 8px; }
/* Кегль подвала — решение владельца 28.10.2026 (РВ-20 договора каталога): реквизиты и ссылки
 * 14 px, строка версии 13 px. Ссылки подвала (оферта, политика, «Все ситуации» мостика) —
 * второстепенная навигация, но цель нажатия не меньше 44 × 44 px: высота и ширина — min-*,
 * текст по центру цели, кегль прежний. Соседние цели — не ближе 12 px по горизонтали и 8 px
 * по вертикали, когда ссылки переносятся (на 320 px «Политика…» уходит на две строки внутри
 * своей цели). Всё в rem: крупный шрифт телефона увеличивает и кегль, и цель. */
.legal { color: var(--muted); font-size: 0.875rem; margin: 6px 0; }
.legal a {
  display: inline-flex;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: 0 0.75rem 0.5rem 0;
  vertical-align: top;
}
.version { font-size: 0.8125rem; }
#tester-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; }

.paid-status { font-size: 1.125rem; margin: 12px 0; }
.paid-status.is-ok { color: var(--ok); }
.paid-status.is-bad { color: var(--bad); }
.paid-status.is-warn { color: var(--warn-text); }

/* ---------------------------------------------------------------- компьютер и планшет */

@media (min-width: 600px) {
  .landing-title { font-size: 2.125rem; }
  .screen-title { font-size: 1.625rem; }
  .btn-start { display: inline-block; width: auto; min-width: 320px; }
  /* «Далее» — крупная, но не на всю колонку; «Назад» слева, «Далее» справа. */
  .actions .btn-primary { flex: 0 1 auto; min-width: 240px; }
}

/* Невысокий экран (телефон в альбомной ориентации): «Начать» — на первом экране. */
@media (max-height: 480px) {
  .landing-title { font-size: 1.5rem; margin: 8px 0; }
  .lead { margin-bottom: 8px; }
  .start-row { margin: 12px 0 8px; }
}

/* Наведение мышью — только там, где оно есть (на сенсорном экране не «залипает»). */
@media (hover: hover) {
  .option:hover { border-color: var(--accent); }
  .btn-primary:not(:disabled):not(.is-busy):hover { background: var(--accent-dark); }
  .btn-secondary:not(:disabled):not(.is-busy):hover { background: var(--chosen-bg); }
  .btn-link:not(:disabled):hover, .link-button:hover, a:hover { text-decoration-thickness: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Кроме вращения сцены орбит главной каталога (.orb-spin, .orb-unspin; в svo их нет): решение владельца
     27.11.2026 «не надо её выключать убери такую возможность» (пол дизайна, раздел 6, К20). */
  *:not(.orb-spin):not(.orb-unspin), *:not(.orb-spin):not(.orb-unspin)::before, *:not(.orb-spin):not(.orb-unspin)::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* Появление запасного текста — без движения: оставляем. */
  .loading-late { animation: nav-late 0s linear 15s forwards !important; }
}

/* Режим высокой контрастности: тени пропадают — отметки рисуем рамкой. */
@media (forced-colors: active) {
  .is-chosen { border: 3px solid Highlight; }
  .option.is-checked { border: 2px solid Highlight; }
  .group-field.has-error, .error-summary { border: 2px solid CanvasText; }
  .field-warn:not(:empty) { border: 2px solid CanvasText; }
  .bureau-alert { border-color: CanvasText; }
}

/* ---------------------------------------------------------------- печать: только отчёт */

@media print {
  body { background: #ffffff; font-size: 12pt; }
  .internal-banner { background: none; color: #000000; border: 1px solid #000000; }
  .not-gov { background: none; }
  .app-foot .foot-actions, #foot-status, #transfer-box, #tester-box, #delete-box,
  .actions, .report-tools, .report-rate, .progress, .btn, .status, .save-top, .notice, .pending-pay,
  .error-summary, .review-edit, .loading-late { display: none !important; }
  .card, .totals { border: 1px solid #999999; break-inside: avoid; page-break-inside: avoid; }
  .bureau-alert { background: none; border: 2pt solid #000000; break-inside: avoid; page-break-inside: avoid; }
  .ba-print { display: block !important; }
  .ba-screen { display: none !important; }
  /* Телефон и сайт бюро на бумаге — текстом (выше .btn скрыты). */
  .bureau-alert .btn { display: inline !important; min-height: 0; padding: 0; border: 0; background: none; color: #000000; font-weight: 700; text-decoration: none; }
  a { color: #000000; }
  /* На бумаге цели касания нет: ссылки подвала — обычной строкой. */
  .legal a { display: inline; min-width: 0; min-height: 0; margin-bottom: 0; }
  .wrap { max-width: none; padding: 0; }
}
