/*
 * Бинарность — база: сброс, типографика, сетка, кнопки, формы, карточки, метки.
 * Токены — в tokens.css.
 */

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
html.is-locked { overflow: hidden; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
h1, h2, h3, h4, h5 { font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: var(--r-sm); font-weight: 600; transition: top .15s; }
.skip:focus { top: 12px; }
.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; }

/* ---------- Сетка страницы ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line); }
.night { background: var(--bg); color: var(--ink); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--aside { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.split--center { align-items: center; }
@media (max-width: 940px) { .split, .split--even, .split--aside { grid-template-columns: minmax(0, 1fr); } }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Типографика ---------- */
.h1 { font-size: clamp(36px, 5.2vw, 68px); font-weight: 650; line-height: 1.02; letter-spacing: -0.038em; }
.h2 { font-size: clamp(30px, 3.7vw, 48px); line-height: 1.06; letter-spacing: -0.032em; }
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.18; letter-spacing: -0.02em; }
.h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-feature-settings: normal; }
.accent { color: var(--accent-text); }
.nowrap { white-space: nowrap; }
.grad { background: linear-gradient(100deg, oklch(0.78 0.13 250), oklch(0.86 0.12 200)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* метка над заголовком: «01 · Услуги» */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-text); }
.eyebrow b { color: var(--accent-text); font-weight: 600; }
.eyebrow--plain::before { display: none; }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.section-head--row > div { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head--center { align-items: center; text-align: center; margin-inline: auto; }
@media (max-width: 760px) { .section-head--row { flex-direction: column; align-items: flex-start; } }

.icon { flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 oklch(1 0 0 / .22), var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent-text); color: var(--accent-text); background: var(--accent-soft); }
.btn--soft { background: var(--accent-soft); color: var(--accent-text); }
.btn--soft:hover { background: color-mix(in oklch, var(--accent-soft), var(--accent) 12%); }
.btn--white { background: #fff; color: oklch(0.2 0.035 266); }
.btn--white:hover { background: oklch(0.95 0.01 264); transform: translateY(-1px); }
.btn--danger { background: transparent; color: var(--danger-text); border-color: color-mix(in oklch, var(--danger) 40%, transparent); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--sm { --btn-h: 38px; padding: 0 15px; font-size: 14px; border-radius: var(--r-sm); gap: 8px; }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.link { color: var(--accent-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link .icon { transition: transform .2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
.link--under { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; font-weight: inherit; display: inline; }
.link--under:hover { text-decoration-color: currentColor; }

/* ---------- Метки, чипы, статусы ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 3px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; line-height: 1.3; color: var(--ink-2); background: transparent; white-space: nowrap; }
.chip--mono { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; }
.chip--accent { border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip { transition: border-color .15s, color .15s, background-color .15s; }
a.chip:hover { border-color: var(--accent-text); color: var(--accent-text); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip__count { font-family: var(--font-mono); font-size: 11px; opacity: .65; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge--plain::before { display: none; }
.badge--ok { background: var(--ok-soft); color: var(--ok-text); }
.badge--warn { background: var(--warn-soft); color: var(--warn-text); }
.badge--danger { background: var(--danger-soft); color: var(--danger-text); }
.badge--accent { background: var(--accent-soft); color: var(--accent-text); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklch, var(--ok) 22%, transparent); flex: none; }
.dot--pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px color-mix(in oklch, var(--ok) 0%, transparent); } }

/* ---------- Карточки ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.card--flat { box-shadow: none; }
.card--tint { background: var(--surface-2); box-shadow: none; }
.card--accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 62%); }
/* блик за курсором (см. spotlight_controller.js) */
[data-spotlight] { isolation: isolate; }
[data-spotlight]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--accent) 13%, transparent), transparent 70%); }
[data-spotlight]:hover::after { opacity: 1; }

.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-text); flex: none; }
.icon-tile--sm { width: 38px; height: 38px; border-radius: var(--r-sm); }
.icon-tile--ok { background: var(--ok-soft); color: var(--ok-text); }
.icon-tile--warn { background: var(--warn-soft); color: var(--warn-text); }

/* список с галочками */
.ticks { display: grid; gap: 0; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li > .icon { margin-top: 2px; color: var(--accent-text); }
.ticks li b, .ticks li strong { color: var(--ink); font-weight: 600; }
.ticks--plain li { border: 0; padding: 6px 0; }
.ticks--plain li:last-child { border: 0; }

/* пары «ключ — значение» */
.kv { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.kv__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv__row:last-child { border-bottom: 0; }
.kv__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-3); flex: none; }
.kv__v { text-align: right; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field > label, .field__label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field__hint, .field .help-text { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.field__error { font-size: 13px; color: var(--danger-text); font-weight: 500; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="number"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 15px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font-size: 15.5px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238790a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in oklch, var(--line-2), var(--ink-3) 40%); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field--error input:focus, .field--error textarea:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.field input[disabled] { opacity: .65; background: var(--surface-2); }

/* поле пароля с кнопкой «показать» */
.pass { position: relative; }
.pass input { padding-right: 48px !important; }
.pass__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-3); }
.pass__toggle:hover { color: var(--ink); background: var(--surface-2); }
.pass .icon--hide { display: none; }
.pass.is-revealed .icon--show { display: none; }
.pass.is-revealed .icon--hide { display: block; }

/* чекбокс согласия */
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent-text); }
.check a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 2px; }
.check a:hover { text-decoration-color: currentColor; }
.check--error input { border-color: var(--danger); }

/* ловушка для ботов: поле есть в разметке, но человек его не видит и не достигает с клавиатуры */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }
.form-card__title { font-size: 22px; letter-spacing: -0.02em; }
.form-card__sub { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.form-card .form { margin-top: 24px; }
.form-card > .form:first-child { margin-top: 0; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.field__top label { font-weight: 600; color: var(--ink-2); }
.night .form-card { background: oklch(1 0 0 / .045); border-color: var(--line-2); box-shadow: 0 30px 70px -20px oklch(0 0 0 / .6); backdrop-filter: blur(8px); }
.night .field input, .night .field textarea, .night .field select { background: oklch(1 0 0 / .04); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.notice > .icon { color: var(--accent-text); margin-top: 1px; }
.notice--warn { background: var(--warn-soft); }
.notice--warn > .icon { color: var(--warn-text); }
.notice--ok { background: var(--ok-soft); }
.notice--ok > .icon { color: var(--ok-text); }
.notice--danger { background: var(--danger-soft); }
.notice--danger > .icon { color: var(--danger-text); }
.notice a { color: var(--accent-text); font-weight: 600; }

/* ---------- Всплывающие уведомления ---------- */
.toasts { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border-radius: var(--r); background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 14.5px; line-height: 1.45; animation: toast-in .35s var(--ease) both; }
.toast > .icon { margin-top: 1px; color: var(--ok-text); }
.toast--error > .icon { color: var(--danger-text); }
.toast__close { margin-left: auto; color: var(--ink-3); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.toast__close:hover { color: var(--ink); background: var(--surface-2); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Запрос согласия на cookie аналитики ---------- */
.cookiebar { position: fixed; z-index: 140; left: 20px; bottom: 20px; width: min(460px, calc(100vw - 40px)); display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease) both; }
.cookiebar[hidden] { display: none; }
.cookiebar__text { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cookiebar__text a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 2px; }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Диалог ---------- */
.dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.dialog::backdrop { background: oklch(0.12 0.03 268 / .62); backdrop-filter: blur(4px); }
.dialog[open] { animation: dialog-in .28s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog__body { padding: clamp(24px, 4vw, 36px); position: relative; }
.dialog__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-3); }
.dialog__close:hover { background: var(--surface-2); color: var(--ink); }
.dialog__title { font-size: 24px; padding-right: 36px; }
.dialog__sub { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.dialog .form { margin-top: 22px; }
.skeleton { display: grid; gap: 14px; margin-top: 22px; }
.skeleton i { display: block; height: 48px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:nth-child(4) { height: 112px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Форматированный текст (статьи, описания, документы) ---------- */
.prose { font-size: 17px; line-height: 1.72; color: var(--ink-2); max-width: 74ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2em; font-size: clamp(24px, 2.5vw, 30px); letter-spacing: -0.025em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: 1.7em; font-size: 20px; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { display: grid; gap: .5em; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 2.5px; background: var(--accent); }
.prose ol { counter-reset: prose; }
.prose ol > li { position: relative; padding-left: 38px; counter-increment: prose; }
.prose ol > li::before { content: counter(prose, decimal-leading-zero); position: absolute; left: 0; top: .22em; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.prose blockquote { margin-block: 1.6em; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--accent-soft); color: var(--ink); font-size: 1.06em; line-height: 1.55; font-weight: 500; }
.prose blockquote > * + * { margin-top: .6em; }
.prose code { font-family: var(--font-mono); font-size: .86em; padding: .15em .4em; border-radius: 6px; background: var(--surface-3); color: var(--ink); overflow-wrap: anywhere; }
.prose pre { margin-block: 1.5em; padding: 20px 22px; border-radius: var(--r); background: var(--night); color: oklch(0.9 0.015 264); overflow-x: auto; font-size: 13.5px; line-height: 1.7; border: 1px solid oklch(1 0 0 / .08); }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.prose table { display: block; width: 100%; overflow-x: auto; font-size: 15px; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--r); }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 130px; }
.prose thead th { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose img { border-radius: var(--r); border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose--compact { font-size: 16px; line-height: 1.65; }
.prose--compact h2 { font-size: 22px; margin-top: 1.6em; }

/* ---------- Появление при прокрутке (см. reveal_controller.js) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--reveal-delay, 0ms), transform .7s var(--ease) var(--reveal-delay, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .link .icon, .btn .icon { transition: none; }
  .dot--pulse { animation: none; }
  .toast, .dialog[open] { animation: none; }
}

@media print {
  .header, .topline, .footer, .toasts, .cta, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
