/* Бюро слов - стили публичного сайта. Только токены из tokens.css. */

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; -webkit-tap-highlight-color: rgba(39, 66, 214, 0.12); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: var(--leading-body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: inherit;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.tnum { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--margin); top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { top: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: calc(var(--section-gap) * 0.6); }
.field-navy { background: var(--navy); color: var(--on-navy); }
.field-navy a { color: var(--accent-on-navy); }
.field-surface { background: var(--surface); }
.field-accent { background: var(--accent); color: var(--accent-ink); }
.field-accent a { color: var(--accent-ink); }

/* Ось: левая зона 42% - сноски, правая - заголовки и текст */
.ax { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
@media (min-width: 960px) {
  .ax { grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); column-gap: var(--space-8); }
  .ax > .ax-main { grid-column: 2; }
  .ax > .ax-side { grid-column: 1; grid-row: 1; }
  .ax > .ax-main { grid-row: 1; }
  .ax-pad { padding-left: calc(var(--axis) + var(--space-8) * 0.58); }
}
.side-note { font-size: var(--step-small); color: var(--ink-soft); max-width: 34ch; }
.field-navy .side-note { color: var(--on-navy-soft); }

.title { font-size: var(--step-title); line-height: var(--leading-title); letter-spacing: var(--tracking-display); max-width: 18ch; }
.title--wide { max-width: 24ch; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.text { max-width: var(--measure); }
.small { font-size: var(--step-small); }
.soft { color: var(--ink-soft); }
.field-navy .soft { color: var(--on-navy-soft); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control-h); padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font-text); text-decoration: none;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--navy-2); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--surface); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(14px, 1.8vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: underline 2px transparent; text-underline-offset: 7px; font-size: 0.9375rem; font-weight: 500; padding: 6px 0; transition: text-decoration-color var(--dur) ease; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration-color: currentColor; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.login { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; min-height: 44px; }
.login:hover { color: var(--accent); text-decoration: none; }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--ink); font: 600 0.9375rem var(--font-text); cursor: pointer; }
.mobile-nav { display: none; background: var(--bg); padding: var(--space-2) var(--margin) var(--space-6); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 12px 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-nav .btn { margin-top: var(--space-4); width: 100%; }
@media (min-width: 1120px) {
  .nav { display: block; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 640px) and (max-width: 1119px) { .header-cta { display: inline-flex; } }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: var(--step-small); color: var(--ink-soft); padding-top: var(--space-5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); }

/* ---------- Главная: первый экран ---------- */
.hero { padding-top: clamp(20px, 3.4vw, 52px); }
.hero-grid { display: grid; gap: var(--space-6); }
.hero h1 { font-size: clamp(2.15rem, 6.1vw, 6.2rem); line-height: var(--leading-display); letter-spacing: var(--tracking-display); font-weight: 650; }
.hero-talk .lede { font-size: clamp(1.125rem, 1.45vw, 1.375rem); line-height: 1.42; max-width: 32ch; }
.hero-talk .btn { margin-top: var(--space-2); }
.hero-talk .small { margin-top: var(--space-4); color: var(--ink-soft); max-width: 34ch; }
.hero-figure { position: relative; margin: var(--space-6) 0 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 70%; }
@media (min-width: 960px) { .hero-figure img { aspect-ratio: 16 / 9; object-position: center; } }
.hero-figure figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--ink-faint); }
.hero-stamp {
  position: relative; z-index: 2;
  width: min(290px, 80%); padding: 18px 20px 20px;
  margin-bottom: -28px;
  background: var(--navy); color: var(--on-navy);
}
.hero-stamp strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.hero-stamp span { display: block; margin-top: 10px; font-size: var(--step-small); color: var(--on-navy-soft); line-height: 1.4; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); column-gap: var(--space-8); align-items: start; }
  .hero-head { grid-column: 1 / -1; }
  .hero-talk { grid-column: 1; grid-row: 2; padding-top: var(--space-7); }
  .hero-figure { grid-column: 2; grid-row: 2; margin-top: var(--space-5); }
  .hero-stamp { position: absolute; left: calc(-1 * var(--space-8) - 24px); bottom: 64px; margin: 0; }
}
/* Маскированное появление строк заголовка */
.mask-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask-line > span { display: block; }
.js .mask-line > span { transform: translateY(105%); animation: rise var(--dur-slow) var(--ease-out) forwards; }
.js .mask-line:nth-child(2) > span { animation-delay: 110ms; }
.js .mask-line:nth-child(3) > span { animation-delay: 220ms; }
.js .after-mask { opacity: 0; animation: fade 700ms ease 520ms forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* Появление при прокрутке (без скрипта всё видно) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Утверждение + фото ---------- */
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.32; letter-spacing: -0.012em; text-indent: 2.4em; max-width: 38ch; margin: 0; }
.statement-grid { display: grid; gap: var(--space-6); }
.statement-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.statement-photo figcaption { margin-top: var(--space-4); }
@media (min-width: 960px) {
  .statement-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .statement-grid .statement { grid-column: 7 / 13; grid-row: 1; }
  .statement-photo { grid-column: 1 / 5; grid-row: 1 / span 2; margin-top: 12px; }
  .statement-grid .ledger-wrap { grid-column: 7 / 13; grid-row: 2; }
  .statement-photo img { aspect-ratio: 1 / 1; }
}
@media (max-width: 959px) { .statement { text-indent: 0; } .statement-photo { width: 72%; margin-left: auto; } }

/* Счёт за надпись: таблица, линии допустимы */
.ledger-wrap { margin-top: var(--space-8); }
.ledger-wrap h3 { font-size: var(--step-lead); margin-bottom: var(--space-4); }
.ledger { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger td:last-child, .ledger th:last-child { text-align: right; padding-left: var(--space-5); white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.ledger th { font-weight: 500; }
.ledger .src { display: block; font-size: var(--step-small); color: var(--ink-faint); font-weight: 400; margin-top: 2px; }
.ledger tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .ledger tr { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ledger th, .ledger td { border: 0; padding: 0; }
  .ledger td:last-child, .ledger th:last-child { text-align: left; padding-left: 0; white-space: normal; }
  .ledger tfoot tr { border-top: 2px solid var(--ink); border-bottom: 0; }
  .ledger tfoot td { border-top: 0; }
}

/* ---------- Три шага ---------- */
.steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-7); }
.steps li { max-width: 36ch; }
.steps h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; margin-bottom: var(--space-4); }
.steps p { margin: 0; }
.steps .when { display: block; margin-top: var(--space-4); color: var(--ink-soft); font-size: var(--step-small); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-7); } }

/* ---------- Окно: шкала жизни заявки ---------- */
.window-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-8); }
@media (min-width: 960px) { .window-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--space-8); } }
.timeline { display: flex; gap: 6px; height: clamp(200px, 22vh, 260px); }
.timeline .seg { position: relative; flex-basis: 0; min-width: 12%; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); }
.seg--pub { flex-grow: 2; background: var(--surface-2); }
.timeline .seg--formal { flex-grow: 26; background: var(--risk-yellow); color: var(--risk-yellow-ink); }
.seg--merit { flex-grow: 250; background: var(--risk-yellow-wash); }
.timeline .seg--reg { flex-grow: 44; background: var(--risk-red); color: var(--risk-red-ink); }
.seg .dur { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.1; }
.seg .what { font-size: 0.9375rem; line-height: 1.35; max-width: 24ch; margin-top: var(--space-4); }
.timeline-legend { display: flex; gap: 6px; margin-top: 6px; }
.timeline-legend .open { flex: 278 1 0; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 600; }
.timeline-legend .closed { flex: 44 1 0; min-width: 12%; background: var(--ink); color: var(--bg); padding: 12px 18px; font-weight: 600; }
.timeline-legend .lbl-sm { display: none; }
@media (max-width: 1023px) {
  .timeline { flex-direction: column; height: auto; }
  .timeline .seg { min-width: 0; min-height: 84px; flex-basis: auto; }
  .seg--merit { min-height: 220px !important; }
  .seg--formal { min-height: 104px !important; }
  .timeline-legend { flex-direction: column; }
  .timeline-legend .open, .timeline-legend .closed { flex: none; min-width: 0; }
}

/* Калькулятор окна - живая вещь */
.calc { margin-top: var(--space-8); background: var(--surface); padding: clamp(20px, 3vw, 40px); display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); } }
.calc h3 { font-size: var(--step-lead); margin-bottom: var(--space-3); }
.calc label { display: block; font-weight: 600; margin: var(--space-5) 0 var(--space-2); }
.calc-out { display: grid; align-content: start; gap: var(--space-4); }
.calc-track { position: relative; margin-top: 24px; height: 56px; background: var(--risk-yellow-wash); display: flex; }
.calc-track .t-open { flex: 1 1 auto; }
.calc-track .t-reg { width: 14%; background: var(--risk-red); }
.calc-now { position: absolute; top: -8px; bottom: -8px; width: 4px; background: var(--ink); left: 0; transition: left var(--dur) var(--ease-out); }
.calc-now::after { content: "сегодня"; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; }
.calc-scale { display: flex; justify-content: space-between; font-size: var(--step-small); color: var(--ink-soft); }
.calc-verdict { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.25; font-weight: 600; margin: 0; }
.calc-verdict[data-tone="late"] { color: var(--risk-red); }
.calc-note { font-size: var(--step-small); color: var(--ink-soft); margin: 0; }

/* ---------- Поля форм ---------- */
.input, .select, .textarea {
  width: 100%; min-height: var(--control-h); padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: var(--bg); border: 1px solid var(--ink-faint); border-radius: var(--radius-control); /* taste-skill-ignore: состояние поля формы */
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); } /* taste-skill-ignore: состояние поля формы */
.input[aria-invalid="true"] { border-color: var(--error); }
.hint { display: block; font-size: var(--step-small); color: var(--ink-soft); margin-top: 6px; }
.err { display: block; font-size: var(--step-small); color: var(--error); margin-top: 6px; min-height: 0; }

/* ---------- Доска рисков (пример отчёта) ---------- */
.board-section { background: var(--navy); color: var(--on-navy); padding-block: var(--section-gap); overflow: hidden; }
.board-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-7); }
@media (min-width: 960px) { .board-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-8); align-items: end; } }
.board-head .title { color: var(--on-navy); }
.board-section .soft { color: var(--on-navy-soft); }
.board-section a { color: var(--accent-on-navy); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; color: var(--on-navy-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; flex: none; }
.dot--red { background: var(--risk-red); } .dot--yellow { background: var(--risk-yellow); } .dot--orange { background: var(--risk-orange); } .dot--green { background: var(--risk-green); }
.board { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.board-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 14px 20px; background: var(--navy-2); font-size: var(--step-small); color: var(--on-navy-soft); margin-bottom: 4px; }
.row { background: var(--navy-2); transition: background-color var(--dur-fast) ease; }
.row > button {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 72px; padding: 12px 12px 12px 20px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.row:hover { background: #22395E; }
.row .phrase { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.65rem); line-height: 1.15; }
@media (max-width: 899px) { .row > button { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; } .row .status { justify-self: start; min-height: 32px; font-size: 0.875rem; } .row .detail { padding: 0 16px 20px; } }
.row .facts { display: none; color: var(--on-navy-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.status--red { background: var(--risk-red); color: var(--risk-red-ink); }
.status--yellow { background: var(--risk-yellow); color: var(--risk-yellow-ink); }
.status--orange { background: var(--risk-orange); color: var(--risk-orange-ink); }
.status--green { background: var(--risk-green); color: var(--risk-green-ink); }
.row .detail { display: none; padding: 0 20px 24px; }
.row.is-open { background: var(--bg); color: var(--ink); }
.row.is-open .facts { color: var(--ink-soft); }
.row.is-open .detail { display: grid; gap: var(--space-5); }
.detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 0.9375rem; }
.detail dt { color: var(--ink-soft); }
.detail dd { margin: 0; font-variant-numeric: tabular-nums; }
.detail .todo { margin: 0; font-size: 1rem; max-width: 60ch; }
.detail .todo strong { display: block; margin-bottom: 4px; }
@media (min-width: 900px) {
  .row > button { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(170px, 2fr); }
  .row .facts { display: block; }
  .row .status { justify-self: end; }
  .row.is-open .detail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-7); }
}
.board-foot { margin-top: var(--space-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); align-items: center; }
.board-foot p { margin: 0; color: var(--on-navy-soft); font-size: var(--step-small); max-width: 70ch; }

/* ---------- Источники и нормы: имена в колонках ---------- */
.names { display: grid; gap: var(--space-6); }
.names h2 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.15; }
.names-cols { display: grid; gap: var(--space-6); font-size: 1.125rem; line-height: 1.5; }
.names-cols p { margin: 0; }
.names-cols .kind { color: var(--ink-soft); }
@media (min-width: 640px) { .names-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .names { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--space-6); } .names-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Тарифы ---------- */
.plans { display: grid; gap: 4px; margin-top: var(--space-7); }
.plan { background: var(--surface); padding: clamp(22px, 3vw, 36px); display: grid; gap: var(--space-4); align-content: start; }
.plan--main { background: var(--navy); color: var(--on-navy); }
.plan--main .soft { color: var(--on-navy-soft); }
.plan--free { background: var(--accent); color: var(--accent-ink); }
.plan--free .soft { color: var(--accent-wash); }
.plan h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.plan .price { white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 2.9vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--font-text); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.plan .vol { font-weight: 600; font-size: 1.125rem; }
.plan p { margin: 0; }
.plan .btn { justify-self: start; margin-top: var(--space-2); }
.plan--main .btn { background: var(--bg); color: var(--ink); }
.plan--main .btn:hover { background: var(--surface); }
.plan--free .btn { background: var(--bg); color: var(--accent); }
.plan--free .btn:hover { background: var(--accent-wash); }
.plan ul { margin: 0; padding-left: 1.1em; }
.plan li { margin-bottom: 4px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: 4fr 4fr 5fr 4fr; } .plans--3 { grid-template-columns: 4fr 5fr 4fr; } }
.anchor-line { margin-top: var(--space-6); max-width: 70ch; color: var(--ink-soft); }

/* Сравнительная таблица тарифов */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: var(--space-6); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; }
.cmp th, .cmp td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 500; color: var(--ink-soft); width: 32%; }
.yes { color: var(--risk-green); font-weight: 600; }
.no { color: var(--ink-faint); }

/* ---------- Честная полоса ---------- */
.honest { display: grid; gap: var(--space-6); }
.honest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.honest-list li { background: var(--bg); padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.honest-list .icon { margin-top: 3px; color: var(--risk-red); }
.honest-list--yes .icon { color: var(--risk-green); }
@media (min-width: 960px) { .honest { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); } }

/* ---------- Финальный призыв ---------- */
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.strip img:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .strip img:first-child { grid-column: auto; } .strip img { aspect-ratio: auto; height: 40svh; min-height: 260px; max-height: 460px; } }
.closing { background: var(--accent); color: var(--accent-ink); padding-block: clamp(56px, 8vw, 120px); }
.closing p.big { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.28; max-width: 30ch; margin: 0 0 var(--space-6); }
.closing a.act { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.closing a.act:hover { text-decoration-color: var(--accent-wash); }
.closing-grid { display: grid; gap: var(--space-7); }
.closing-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.closing-facts li { color: var(--accent-wash); }
.closing-facts strong { display: block; color: var(--accent-ink); font-size: 1.125rem; }
@media (min-width: 960px) { .closing-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--space-9); align-items: end; } .closing p.big { margin: 0; } }
.brand-mark .bm-bg { fill: var(--ink); }
.brand-mark .bm-fg { stroke: var(--bg); }
.site-footer .brand-mark .bm-bg { fill: var(--on-navy); }
.site-footer .brand-mark .bm-fg { stroke: var(--navy); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding-top: var(--space-8); padding-bottom: var(--space-6); }
.site-footer a { color: var(--on-navy); }
.foot-top { display: grid; gap: var(--space-6); font-size: 0.9375rem; color: var(--on-navy-soft); }
.foot-top .brand { color: var(--on-navy); }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-top a { text-decoration: none; color: var(--on-navy); }
.foot-top a:hover { text-decoration: underline; }
.foot-top h2 { font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; color: var(--on-navy-soft); margin-bottom: 12px; letter-spacing: 0; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 4fr 2fr 2fr 2fr; column-gap: var(--space-6); } }
.foot-contact { margin-top: clamp(64px, 10vw, 140px); }
.foot-contact p { margin: 0 0 8px; color: var(--on-navy-soft); }
.foot-contact a.mail { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 7.4vw, 7rem); line-height: 1; letter-spacing: -0.03em; text-decoration: none; color: var(--on-navy); overflow-wrap: anywhere; }
.foot-contact a.mail:hover { color: var(--accent-on-navy); }
.foot-meta { margin-top: var(--space-8); display: grid; gap: 10px; font-size: var(--step-small); color: var(--on-navy-soft); }
.foot-meta p { margin: 0; }
@media (min-width: 900px) { .foot-meta { grid-template-columns: 1fr 1fr 1fr; } .foot-meta p:nth-child(2) { text-align: center; } .foot-meta p:last-child { text-align: right; } }

/* ---------- Внутренние страницы ---------- */
.page-head { padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(48px, 7vw, 104px); }
.page-head h1 { font-size: var(--step-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); max-width: 20ch; }
.page-head .lead { margin-top: var(--space-6); max-width: 46ch; }
.page-head .actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; }
.page-head--navy { background: var(--navy); color: var(--on-navy); }
.page-head--navy .crumbs, .page-head--navy .crumbs a { color: var(--on-navy-soft); }
.page-head-grid { display: grid; gap: var(--space-6); }
.page-head-grid figure { margin: 0; }
.page-head-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 960px) { .page-head-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--space-8); align-items: end; } }

/* Аудитории: фото + текст, через раз зеркально */
.aud { padding-block: var(--section-gap); }
.aud-grid { display: grid; gap: var(--space-7); align-items: start; }
.aud figure { margin: 0; }
.aud figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.aud-text { max-width: 62ch; }
.aud-text h3 { font-size: 1.25rem; margin: var(--space-6) 0 var(--space-3); }
.aud-text .title { margin-bottom: var(--space-5); }
.aud-text ul { padding-left: 1.2em; margin: 0; }
.aud-text li + li { margin-top: 8px; }
.aud-text p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .aud-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-9); }
  .aud--alt figure { order: 2; }
}

/* Блоки «что проверяем» - строки с текстом по оси */
.rows { display: grid; gap: 4px; margin-top: var(--space-7); }
.rows > div { background: var(--surface); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: var(--space-3); }
.rows h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; }
.rows p { margin: 0; max-width: 62ch; }
@media (min-width: 960px) { .rows > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-7); } }
.rows--risk > div { border-left: 8px solid transparent; }
.rows--risk .r-red { border-left-color: var(--risk-red); }
.rows--risk .r-yellow { border-left-color: var(--risk-yellow); }
.rows--risk .r-orange { border-left-color: var(--risk-orange); }
.rows--risk .r-green { border-left-color: var(--risk-green); }

.split { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.checklist .icon { margin-top: 4px; color: var(--accent); }

/* Пример письма-оповещения */
.alert-mock { background: var(--bg); color: var(--ink); max-width: 560px; font-size: 0.9375rem; }
.alert-mock header { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--risk-yellow); color: var(--risk-yellow-ink); font-weight: 600; }
.alert-mock .body { padding: 18px; display: grid; gap: 12px; }
.alert-mock .body p { margin: 0; }
.alert-mock dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.alert-mock dt { color: var(--ink-soft); }
.alert-mock dd { margin: 0; }
.alert-mock .act-row { display: flex; flex-wrap: wrap; gap: 8px; }
.alert-mock .act-row span { background: var(--surface); padding: 6px 10px; font-weight: 500; }

/* ---------- Статьи ---------- */
.article { padding-bottom: var(--section-gap); }
.article-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1100px) { .article-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: var(--space-9); } .toc { position: sticky; top: 24px; align-self: start; } }
.toc { font-size: 0.9375rem; }
.toc h2 { font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; margin-bottom: 10px; letter-spacing: 0; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.prose { max-width: 70ch; font-size: 1.125rem; line-height: 1.62; }
.prose > * + * { margin-top: 1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.15; margin-top: 2.2em; scroll-margin-top: 24px; }
.prose h3 { font-size: clamp(1.25rem, 1.6vw, 1.45rem); line-height: 1.25; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 120px; }
.prose thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
.callout { background: var(--surface); padding: 20px 24px; }
.callout > :last-child { margin-bottom: 0; }
.callout--warn { background: var(--risk-red-wash); }
.callout--ok { background: var(--accent-wash); }
.callout strong:first-child { display: block; margin-bottom: 6px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--step-small); color: var(--ink-soft); margin-top: var(--space-5); }
.sources { font-size: 0.9375rem; color: var(--ink-soft); }
.sources ol { padding-left: 1.3em; }
.sources a { overflow-wrap: anywhere; }

/* Список статей */
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.posts li a { display: grid; gap: var(--space-3); padding: clamp(22px, 3vw, 40px); background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast) ease; }
.posts li a:hover { background: var(--surface-2); }
.posts h2 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.12; max-width: 26ch; }
.posts p { margin: 0; max-width: 64ch; color: var(--ink-soft); }
.posts .meta { font-size: var(--step-small); color: var(--ink-faint); }
@media (min-width: 960px) { .posts li a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-8); align-items: end; } .posts li a .meta { grid-column: 1 / -1; } }

/* ---------- FAQ: полоса на вопрос ---------- */
.faq-band { padding-block: clamp(32px, 4vw, 56px); }
.faq-band:nth-child(odd) { background: var(--surface); }
.faq-band .wrap { display: grid; gap: var(--space-4); }
.faq-band h2, .faq-band h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; }
.faq-band .answer { max-width: 62ch; font-size: 1.0625rem; }
.faq-band .answer > :last-child { margin-bottom: 0; }
@media (min-width: 960px) { .faq-band .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); } }
.faq-group-title { background: var(--navy); color: var(--on-navy); padding-block: var(--space-7) var(--space-5); }
.faq-group-title h2 { font-size: var(--step-title); line-height: 1.05; }

/* ---------- Форма заявки ---------- */
.lead-form { background: var(--surface); padding: clamp(22px, 3.4vw, 48px); display: grid; gap: var(--space-5); }
.lead-form .row2 { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .lead-form .row2 { grid-template-columns: 1fr 1fr; } }
.lead-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.lead-form .req { color: var(--risk-red); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; align-items: start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.consent label { font-weight: 400; margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin: 0; font-weight: 500; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-control); cursor: pointer; } /* taste-skill-ignore: состояние поля формы */
.radio-row input { accent-color: var(--accent); }
.radio-row label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } /* taste-skill-ignore: состояние поля формы */

/* Контакты */
.contacts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.contacts-list dt { color: var(--ink-soft); font-size: var(--step-small); }
.contacts-list dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

/* ---------- Юридические документы ---------- */
.doc { max-width: 78ch; font-size: 1rem; line-height: 1.6; }
.doc h2 { font-size: 1.45rem; margin-top: 2em; margin-bottom: 0.6em; }
.doc p, .doc li { margin-bottom: 0.6em; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc .summary { background: var(--surface); padding: 20px 24px; margin-bottom: var(--space-6); }
.doc mark { background: var(--risk-yellow-wash); color: var(--ink); padding: 0 3px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Движение: уважение к настройкам ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .mask-line > span { transform: none; }
  .js .after-mask { opacity: 1; }
}

/* Печать */
@media print {
  .site-header, .site-footer, .closing, .strip, .btn { display: none !important; }
  body { background: #fff; }
  * { box-shadow: none !important; } /* taste-skill-ignore: состояние поля формы */
}
.field-navy .checklist .icon { color: var(--accent-on-navy); }
.page-head--article { padding-bottom: 48px; }
.page-head--article h1 { font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.06; max-width: 22ch; }


/* Telegram в подвале */
.foot-tg { margin-top: var(--space-4) !important; font-size: 1.125rem; }

/* Баннер cookie: появляется, только если задан счётчик Метрики. Две равные кнопки, без тёмных паттернов */
.cookie { position: fixed; z-index: 40; left: var(--margin); right: var(--margin); bottom: var(--margin); max-width: 620px; padding: 20px 22px; background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-float); /* taste-skill-ignore: парящий баннер */ }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 16px; font-size: 0.9375rem; line-height: 1.5; }
.cookie a { color: var(--accent-on-navy); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-height: 44px; flex: 1 1 200px; }
.cookie-open { background: none; border: 0; padding: 0; color: var(--on-navy-soft); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-open:hover { color: var(--on-navy); }
