/* Общий вид страниц-калькуляторов /site/srok/, /site/poshlina/, /site/neustoyka/, /site/395/.
   Цвета, шрифты и кнопки — как на сайте (index.html). Одна светлая тема. */
:root {
  --canvas: #f3f1ed; --paper: #ffffff; --paper-sunk: #f6f4f0; --line: #e5e1da; --line-strong: #8e867a;
  --ink: #141311; --ink-2: #57524b; --ink-3: #6a6359; --on-ink: #ffffff;
  --marker: #ebe5a2; --marker-soft: #f7f4d6; --marker-edge: #c3b851;
  --review: #964b00; --review-soft: #fbf1df; --danger: #b32a15;
  --case-sky: #7d9fd6; --case-tomato: #d79482; --case-mint: #7db7a0;
  --shadow-card: 0 1px 2px #1413110a, 0 8px 24px -14px #14131133;
  --shadow-lift: 0 2px 6px #14131112, 0 22px 44px -18px #14131152;
  --font-display: Unbounded, Manrope, system-ui, sans-serif;
  --font-sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --gutter: 32px; --max: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px; font: 700 15px var(--font-sans); text-decoration: none; cursor: pointer; transition: transform 160ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: var(--on-ink); box-shadow: 3px 3px 0 var(--marker-edge); }
.btn--primary:hover { box-shadow: 5px 5px 0 var(--marker-edge); transform: translate(-1px, -1px); }
.btn--ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--ink); box-shadow: 2px 2px 0 var(--marker-edge); transition: transform 300ms var(--ease-spring); }
.logo svg { width: 66%; height: 66%; display: block; }
.brand:hover .logo { transform: rotate(-8deg); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current], .nav a.is-section { background: var(--paper); color: var(--ink); }
.top-act { margin-left: auto; }
.t-short { display: none; }

.hero { padding: 48px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-card); }
.eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--case-sky); box-shadow: 14px 0 0 var(--case-tomato), 28px 0 0 var(--case-mint); margin-right: 30px; }
h1 { margin: 0; max-width: 900px; font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 58px); line-height: 1.05; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.lede { margin: 18px 0 0; max-width: 680px; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 64px; }
.card { padding: 28px; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-card); }
.step { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.step:last-child { margin-bottom: 0; }
.step legend, .step > label > span { display: block; margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.codes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.codes label { position: relative; }
.codes input, .rules input { position: absolute; opacity: 0; pointer-events: none; }
.codes span { display: grid; place-items: center; min-height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font: 700 17px var(--font-display); letter-spacing: -.02em; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.codes span:hover { border-color: var(--ink-3); }
.codes input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--marker); box-shadow: 3px 3px 0 var(--marker-edge); }
.codes input:focus-visible + span, .rules input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.rules { display: grid; gap: 8px; }
.rules label { position: relative; }
.rules span { display: block; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.rules span:hover { border-color: var(--ink-3); }
.rules b { display: block; font-size: 16px; line-height: 1.3; }
.rules small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.rules input:checked + span { border-color: var(--ink); background: var(--marker-soft); }
.date-label { display: block; }
.date-hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
input[type=date] { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font: 700 17px var(--font-sans); }
input[type=date]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--marker); }
/* Safari на iPhone рисует поле даты своим элементом: шире колонки, ниже соседних полей, текст по центру. */
@supports (-webkit-touch-callout: none) {
  input[type=date] { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; text-align: left; }
  input[type=date]::-webkit-date-and-time-value { margin: 0; text-align: left; }
}

.result { position: sticky; top: 92px; }
.ticket { --tp: 28px; position: relative; padding: 26px var(--tp); border-radius: 28px; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lift); }
/* Вырезы «билета» стоят на линии отреза, какой бы высоты ни был текст над ней. */
.ticket .rule::before, .ticket .rule::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--canvas); }
.ticket .rule::before { left: calc(-1 * var(--tp) - 11px); } .ticket .rule::after { right: calc(-1 * var(--tp) - 11px); }
.ticket small { display: block; font-size: 13px; font-weight: 700; opacity: .72; }
.ticket .due { margin: 8px 0 4px; font: 700 clamp(30px, 3.6vw, 44px)/1.05 var(--font-display); letter-spacing: -.045em; color: var(--marker); font-variant-numeric: tabular-nums; }
.ticket .wd { font-size: 15px; font-weight: 700; opacity: .85; }
.ticket .rule { position: relative; margin: 34px 0 0; padding-top: 18px; border-top: 1.5px dashed #ffffff40; font-size: 15px; line-height: 1.5; }
.ticket .rule b { color: var(--marker); }
/* Ошибка расчёта — подсказка, а не результат: обычный шрифт, не display-шрифт даты. */
.ticket.is-error .due { font: 600 19px/1.45 var(--font-sans); letter-spacing: 0; }
.steps { margin: 16px 0 0; padding: 20px 24px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-card); }
.steps h2 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.steps ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.steps li + li { margin-top: 8px; }
.note { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--review-soft); color: var(--review); font-size: 14px; font-weight: 600; line-height: 1.45; }
.note p { margin: 0; }
.note details { margin-top: 8px; }
.note summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.note details p { margin-top: 8px; font-weight: 500; }
.cta { margin-top: 16px; padding: 22px 24px; border-radius: 24px; background: var(--marker-soft); border: 1.5px solid var(--marker-edge); }
.cta p { margin: 0 0 14px; font-size: 16px; font-weight: 700; line-height: 1.4; }
/* Регистрация и демо: «Вести дело в Фабуле — 30 дней бесплатно» и «Открыть демо без регистрации →». */
.cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
/* «Вести дело в Фабуле — 30 дней бесплатно» длиннее ширины телефона: кнопка переносит строку, а не вылезает за край. */
.cta-act .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
.cta-act .btn[hidden] { display: none; }
.cta .cta-alt { flex-basis: 100%; margin: 2px 0 0; font-size: 15px; }
.cta .cta-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marker-edge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cta-demo { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--marker-edge); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* текст и вопросы */
.sec { padding: 0 0 64px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose b { color: var(--ink); }
.qa { border-top: 1.5px solid var(--line); }
.qa details { border-bottom: 1.5px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--ink); }
.qa summary i::after { transform: rotate(90deg); transition: transform 300ms var(--ease-out); }
.qa details[open] summary i { background: var(--marker); }
.qa details[open] summary i::after { transform: rotate(0); }
.qa details p { margin: -4px 0 20px; color: var(--ink-2); }

.foot { padding: 40px 0 56px; font-size: 13px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot .brand { font-size: 15px; color: var(--ink); }
.foot .brand .logo { width: 30px; height: 30px; border-radius: 10px; }
.foot p { margin: 0; }
.foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-legal a { color: var(--ink-2); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--ink); }
/* «Для юристов: учёт дел и сроков» — отдельной строкой над калькуляторами и документами (web/scripts/seo-pages.mjs, lawyersBlock). */
.foot-lawyers { flex-basis: 100%; }
.foot-lawyers b { color: var(--ink-2); }

@media (max-width: 1000px) {
  .calc, .duo { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top .wrap { height: 60px; gap: 12px; }
  .t-long { display: none; }
  .t-short { display: inline; }
  .hero { padding-top: 28px; }
  .lede { font-size: 17px; }
  .card { padding: 20px; border-radius: 24px; }
  .ticket { --tp: 20px; padding: 22px var(--tp); border-radius: 24px; }
  .codes span { min-height: 48px; font-size: 15px; }
  .foot-links { flex-direction: column; gap: 12px; }
  /* Подвал на телефоне: 14px и 12px между ссылками, чтобы читалось и попадало под палец. */
  .foot { font-size: 14px; }
  .cta-demo { display: inline-block; padding: 8px 0; }
}
/* Меню разделов на телефоне: пункты .nav скрыты на ≤ 1000px — кнопка «Меню» открывает их панелью поверх страницы
   (/site/menu.js; разметка — web/scripts/seo-calcs.mjs, MENU_BUTTON; группы и панели — /site/nav.css). Без JS кнопки нет, пункты — строкой под шапкой. */
.menu-btn { display: none; }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-btn .mb-x, .menu-btn[aria-expanded="true"] .mb-bars { display: none; }
  .menu-btn[aria-expanded="true"] .mb-x { display: block; }
  .menu-btn:focus-visible, .top .nav.is-open a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .top .nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 8px var(--gutter) 16px; max-height: calc(100vh - 60px); overflow-y: auto; background: var(--canvas); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px -18px rgba(20, 19, 17, .35); }
  .top .nav.is-open a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; font-size: 16px; color: var(--ink); }
}
@media (max-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .top .nav.is-open { animation: menu-in 160ms ease-out; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
}
@media (max-width: 1000px) and (scripting: none) {
  .menu-btn { display: none; }
  html .top .wrap { flex-wrap: wrap; height: auto; min-height: 60px; }
  html .top .nav { display: flex; order: 3; flex-basis: 100%; margin: 0 0 8px; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* поля денег и чисел, переключатели, оплаты, таблица периодов (госпошлина, неустойка, 395) */
.codes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.codes--2 span { font-size: 15px; letter-spacing: -.01em; text-align: center; padding: 0 10px; }
.field { display: block; }
.field + .field { margin-top: 14px; }
.field > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pair .field + .field { margin-top: 0; }
.pair + .field { margin-top: 14px; }
.num, select.num { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font: 700 17px var(--font-sans); font-variant-numeric: tabular-nums; }
.num:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--marker); }
.num-wrap { position: relative; }
.num-wrap .num { padding-right: 44px; }
.num-wrap i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--ink-3); pointer-events: none; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; }
.check + .check { margin-top: 8px; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.step > label.check > span { display: block; margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.check b { display: block; font-size: 15px; line-height: 1.35; }
.check small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pays { display: grid; gap: 8px; }
.pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.pay input[type=date] { font-size: 15px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink-2); font: 700 20px/1 var(--font-sans); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.add { margin-top: 10px; }
.sub { margin-top: 14px; }
.periods { margin: 16px 0 0; padding: 20px 24px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-card); }
.periods h2 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.table-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.periods table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.periods th { text-align: left; padding: 8px 6px 8px 0; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.periods td { padding: 9px 6px 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.periods td:last-child, .periods th:last-child { text-align: right; padding-right: 0; color: var(--ink); font-weight: 700; }
.periods tr.is-off td { color: var(--ink-3); font-style: italic; }
.periods tfoot td { border-bottom: 0; padding-top: 12px; font-weight: 800; color: var(--ink); }

/* другие калькуляторы */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { display: block; padding: 22px 24px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-card); text-decoration: none; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tool b { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1.2; letter-spacing: -.03em; }
.tool span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* подписка на новости (subscribe.mjs) */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; margin-top: 16px; padding: 24px 28px; border-radius: 24px; background: var(--marker-soft); border: 1.5px solid var(--marker-edge); }
.news h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; line-height: 1.2; letter-spacing: -.03em; }
.news-text p { margin: 0; font-size: 15px; color: var(--ink-2); }
.news-row { display: flex; gap: 10px; }
.news-row .num { flex: 1; min-width: 0; font-size: 16px; }
.news-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.news-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.news-err { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.news-done { margin: 0; align-self: center; font-size: 16px; font-weight: 700; }

@media (max-width: 1000px) { .tools, .news { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .news { padding: 20px 18px; }
  .news-row { flex-direction: column; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair .field + .field { margin-top: 14px; }
  .periods { padding: 18px 16px; }
  .codes--2 span { font-size: 13px; padding: 8px 6px; line-height: 1.2; }
  /* На телефоне строка таблицы — карточка: период и сумма сверху, долг и ставка ниже. */
  .periods thead { display: none; }
  .periods tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .periods td { padding: 0; border: 0; white-space: normal; }
  .periods tbody td:nth-child(1) { grid-area: 1 / 1; color: var(--ink); font-weight: 700; }
  .periods tbody td:nth-child(5) { grid-area: 1 / 2; }
  .periods tbody td:nth-child(3) { grid-area: 2 / 1; }
  .periods tbody td:nth-child(4) { grid-area: 2 / 2; text-align: right; }
  .periods tbody td:nth-child(2) { grid-area: 3 / 1; }
  .periods tbody td:nth-child(3)::before { content: "Долг "; }
  .periods tbody td:nth-child(2)::before { content: "Дней: "; }
  .periods tfoot tr { border-bottom: 0; padding-top: 12px; }
}
.result--flow { position: static; }

/* хлебные крошки посадочных страниц (web/scripts/seo-calcs.mjs) */
.crumbs { margin: 0 0 14px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink-3); overflow-wrap: anywhere; }
.crumbs a { color: var(--ink-2); text-underline-offset: 3px; }
.crumbs span[aria-current] { color: var(--ink); }
.date-hint a, .note a { color: inherit; text-underline-offset: 3px; }
/* «Смотрите также» внизу калькуляторов (web/scripts/seo-pages.mjs, SEE_ALSO): ссылки строкой, на телефоне переносятся. */
.see-also { padding-bottom: 48px; }
.see-also-h { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.see-also-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.see-also-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ink); text-decoration: none; }
.see-also-list a:hover { border-color: var(--ink-3); }
/* Узкий телефон (320 px): логотип, «О Фабуле» и «Меню» в одну строку, длинные слова заголовка — без горизонтальной прокрутки. */
@media (max-width: 359px) {
  .top .wrap { gap: 8px; }
  h1 { font-size: 28px; }
}

/* На узком экране основные действия помещаются над плашкой согласия. */
@media (max-width: 359px) {
  .hero:has(.hero-act) { padding-top: 16px; }
  .hero:has(.hero-act) .crumbs, .hero:has(.hero-act) .eyebrow { display: none; }
  .hero:has(.hero-act) .lede { margin-top: 12px; font-size: 17px; line-height: 1.4; }
}

.print-url { display: none; }
@media print {
  @page srok-calculation { size: A4; margin: 15mm; }
  body:has(#srok-form) { page: srok-calculation; background: white; color: black; font: 12pt/1.4 Arial, sans-serif; }
  body:has(#srok-form) { padding-bottom: 0 !important; }
  body:has(#srok-form) .top,
  body:has(#srok-form) .skip,
  body:has(#srok-form) [aria-label="Согласие на куки"],
  body:has(#srok-form) .hero :is(.crumbs, .eyebrow, .lede),
  body:has(#srok-form) .cta,
  body:has(#srok-form) .sec,
  body:has(#srok-form) .foot :is(.brand, .foot-legal),
  body:has(#srok-form) .date-hint:not(#event-hint),
  #srok-form :is(.codes, .rules) label:not(:has(input:checked)) { display: none !important; }
  body:has(#srok-form) .wrap { max-width: none; padding: 0; }
  body:has(#srok-form) .hero { padding: 0 0 5mm; }
  body:has(#srok-form) h1 { font: bold 18pt/1.25 Arial, sans-serif; letter-spacing: 0; }
  body:has(#srok-form) .calc { display: block; padding: 0; }
  #srok-form, body:has(#srok-form) :is(.ticket, .steps, .note) {
    margin: 0 0 4mm; padding: 3mm; border: 1px solid #999; border-radius: 0;
    background: white; color: black; box-shadow: none; break-inside: avoid;
  }
  #srok-form .step { margin: 0 0 3mm; padding: 0; border: 0; }
  #srok-form :is(legend, .date-label > span) { font-size: 11pt; }
  #srok-form :is(.codes, .rules) { display: block; }
  #srok-form :is(.codes, .rules) span { min-height: 0; padding: 0; border: 0; background: white; color: black; border-radius: 0; box-shadow: none; }
  #srok-form input[type=radio] { display: none; }
  #srok-form input[type=date] { min-height: 0; padding: 1mm 0; border: 0; border-radius: 0; background: white; color: black; font: bold 12pt Arial, sans-serif; outline: none; box-shadow: none; }
  body:has(#srok-form) .result { position: static; }
  body:has(#srok-form) .ticket :is(.due, .rule b) { color: black; }
  body:has(#srok-form) .ticket .due { font: bold 22pt/1.2 Arial, sans-serif; letter-spacing: 0; }
  body:has(#srok-form) .ticket :is(small, .wd) { opacity: 1; }
  body:has(#srok-form) .ticket .rule { margin-top: 3mm; padding-top: 3mm; border-color: #999; }
  body:has(#srok-form) .ticket .rule::before, body:has(#srok-form) .ticket .rule::after { display: none; }
  body:has(#srok-form) :is(.steps ol, .date-hint) { color: black; }
  body:has(#srok-form) .foot { padding: 2mm 0 0; color: black; font-size: 10pt; }
  body:has(#srok-form) .foot .wrap { display: block; }
  body:has(#srok-form) .print-url { display: block; margin-top: 2mm; overflow-wrap: anywhere; }
}

@media (max-width: 640px) {
  #add-pay { min-width: 44px; min-height: 44px; }
}
