/* АУ-Аналитик — оформление «Малахит» (утверждено владельцем 16.10.2026).
   Шрифты Prata и Onest (SIL OFL 1.1, тексты лицензий — fonts/OFL-*.txt) раздаются самим сайтом:
   внешних запросов со страниц нет. Анимация отключается при prefers-reduced-motion: reduce. */

@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/prata-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/prata-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/onest-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/onest-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/onest-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/onest-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/onest-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/onest-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Тёмная тема браузера сайт не инвертирует: «Малахит» один. */
  color-scheme: only light;
  --bg: #EEF1EE;
  --deep: #0D3B32;
  --ink: #142420;
  --gold: #C9A267;
  --gold-hover: #D5B47F;
  --gold-dark: #8A6A36;
  --gold-kicker: #7A5A2A;
  --card: #F7F8F5;
  --line: #C9CFCB;
  --muted: #4B5A55;
  --muted-2: #3D4C47;
  --on-head: #F4F2EA;
  --on-text: #CBD6D0;
  --on-nav: #D6DED9;
  --on-line: #5F8479;
  --link: #14594B;
  --link-hover: #0D3B32;
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
b, strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.005em; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.3; margin: 32px 0 12px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 1.25em; }
li { margin: 0 0 8px; }
ul > li::marker { color: var(--gold-dark); }
ol > li::marker { color: var(--gold-dark); font-family: var(--serif); }
code { font-family: var(--mono); font-size: .88em; background: #E2E7E3; color: var(--ink); padding: 1px 6px; border-radius: 2px; overflow-wrap: anywhere; }
pre { background: var(--deep); color: #E6ECE8; padding: 18px 22px; margin: 14px 0 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
pre code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Шапка ---------- */
.site-head { background: var(--deep); color: var(--on-nav); position: relative; z-index: 2; }
.site-head .bar { max-width: 1200px; margin: 0 auto; padding: 22px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--on-head); text-decoration: none; font-family: var(--serif); font-size: 21px; line-height: 1; }
.brand:hover { color: var(--on-head); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border: 1px solid var(--gold); display: inline-grid; place-items: center; font-family: var(--serif); font-size: 16px; color: var(--gold); letter-spacing: .02em; transition: background .25s ease, color .25s ease; }
.brand:hover .brand-mark { background: var(--gold); color: var(--deep); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 6px 30px; font-size: 15px; }
.site-head nav a { color: var(--on-nav); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.site-head nav a:hover { color: var(--on-head); border-bottom-color: var(--on-line); }
.site-head nav a[aria-current="page"] { color: var(--on-head); border-bottom-color: var(--gold); }
.site-head :focus-visible, .hero :focus-visible, .page-head :focus-visible, .cta :focus-visible, pre:focus-visible { outline-color: var(--gold); }

/* ---------- Тёмные блоки: герой, заголовок страницы, призыв ---------- */
.hero, .page-head { background: var(--deep); color: var(--on-text); position: relative; overflow: hidden; }
.hero a:not(.btn), .page-head a, .cta a:not(.btn) { color: var(--gold); }
.hero a:not(.btn):hover, .page-head a:hover, .cta a:not(.btn):hover { color: var(--gold-hover); }
.hero code, .page-head code { background: rgba(244, 242, 234, .1); color: var(--on-head); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 112px; }
.hero-rule { display: block; width: 56px; height: 1px; background: var(--gold); margin: 0 0 30px; }
.hero h1 { font-size: 54px; line-height: 1.08; color: var(--on-head); margin: 0 0 26px; }
.hero .lead { font-size: 19px; line-height: 1.62; color: var(--on-text); max-width: 33em; margin: 0 0 22px; }
.hero .note { background: none; border: 0; padding: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--on-text); max-width: 36em; margin: 0 0 34px; padding-top: 18px; border-top: 1px solid rgba(95, 132, 121, .55); }
.hero .note b { color: var(--on-head); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold::after { content: "→" / ""; transition: transform .2s ease; }
.btn-gold:hover { background: var(--gold-hover); color: var(--deep); box-shadow: 0 10px 24px rgba(4, 24, 19, .28); }
.btn-gold:hover::after { transform: translateX(3px); }
.btn-ghost { border-color: var(--on-line); color: var(--on-head); }
.btn-ghost:hover { border-color: var(--gold); color: var(--on-head); }

/* «Спирограф» и карточка «Пакет по делу» */
.hero-art { position: relative; min-height: 460px; display: grid; place-items: center; }
.spiro { position: absolute; width: 640px; max-width: none; height: 640px; left: 50%; top: 50%; margin: -320px 0 0 -320px; animation: spin 120s linear infinite; }
.packet { position: relative; width: min(340px, 100%); background: var(--card); color: var(--ink); padding: 30px 32px 22px; box-shadow: 0 30px 60px rgba(4, 24, 19, .45); }
.packet-kicker { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-kicker); margin: 0 0 14px; }
.packet ol { list-style: none; margin: 0; padding: 0; }
.packet li { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 6px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.packet li span:first-child { color: var(--gold-dark); font-size: 17px; }

/* Заголовок внутренних страниц */
.page-head .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 72px; }
.page-head::after { content: ""; position: absolute; width: 520px; height: 520px; right: -150px; top: 50%; margin-top: -260px; opacity: .45; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-260 -260 520 520'%3E%3Cg fill='none' stroke='%23C9A267' stroke-width='.6'%3E%3Cellipse rx='190' ry='62'/%3E%3Cellipse rx='190' ry='62' transform='rotate(15)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(30)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(45)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(60)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(75)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(90)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(105)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(120)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(135)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(150)'/%3E%3Cellipse rx='190' ry='62' transform='rotate(165)'/%3E%3Ccircle r='120'/%3E%3Ccircle r='124'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: spin 160s linear infinite; }
.page-head h1 { font-size: 48px; line-height: 1.12; color: var(--on-head); margin: 0 0 18px; max-width: 16em; }
.page-head h1::before { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-bottom: 26px; }
.page-head p { color: var(--on-text); max-width: 44em; }
.page-head .lead { font-size: 19px; line-height: 1.62; }
.page-head p:last-child { margin-bottom: 0; }

/* ---------- Секции главной ---------- */
.section { padding: 96px 0 0; }
.section h2 { font-size: 40px; line-height: 1.15; margin: 0 0 20px; max-width: 18em; }
.section-intro { max-width: 46em; color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; counter-reset: card; }
.cards .card { background: var(--card); padding: 36px 32px 40px; counter-increment: card; position: relative; transition: background-color .3s ease, box-shadow .3s ease; }
.cards .card::before { content: counter(card, upper-roman) / ""; display: block; font: 400 46px/1 var(--serif); color: var(--gold-dark); margin-bottom: 30px; transition: color .3s ease, transform .3s ease; transform-origin: left bottom; }
.cards .card:hover { background: #FBFBF8; box-shadow: inset 0 2px 0 var(--link); }
.cards .card:hover::before { color: var(--link); transform: translateY(-2px); }
.cards .card h3 { font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
.cards .card p { color: var(--muted-2); font-size: 16px; line-height: 1.62; margin: 0; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--link); padding-top: 22px; margin: 0; color: var(--muted-2); font-size: 16px; line-height: 1.6; }
.steps li::before { content: counter(step, decimal-leading-zero) / ""; display: block; font: 400 30px/1 var(--serif); color: var(--gold-dark); margin-bottom: 16px; }

.privacy { margin-top: 96px; padding: 80px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy + .section { padding-top: 96px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.split h2 { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 18px 40px; margin: 0 0 18px; border-bottom: 1px solid var(--line); color: var(--muted-2); }
.checks li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10.25' fill='none' stroke='%2314594B' stroke-width='1.2'/%3E%3Cpath d='M6.5 11.4l3 3 6-6.4' fill='none' stroke='%2314594B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

.cols { columns: 2; column-gap: 56px; padding-left: 1.1em; margin-top: 28px; }
.cols li { break-inside: avoid; }

.cta { background: var(--deep); color: var(--on-text); padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(201, 162, 103, .35); border-radius: 50%; pointer-events: none; }
.cta h2 { color: var(--on-head); margin-bottom: 14px; }
.cta p { color: var(--on-text); max-width: 40em; margin: 0; }
.cta .actions { position: relative; z-index: 1; }

.plans { margin-top: 28px; }
.closing { padding: 72px 0 96px; }
.closing .note { max-width: 52em; }

/* ---------- Внутренние страницы: заголовок слева, текст справа ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding-top: 24px; padding-bottom: 96px; position: relative; z-index: 1; }
.doc > * { grid-column: 2; padding-left: 56px; min-width: 0; }
.doc > h2 { grid-column: 1; padding-left: 0; padding-right: 24px; font-size: 28px; line-height: 1.22; margin: 48px 0 0; padding-top: 34px; border-top: 1px solid var(--line); }
.doc > h2 + * { margin-top: 48px; padding-top: 38px; border-top: 1px solid var(--line); }
.doc > h2 + pre, .doc > h2 + table, .doc > h2 + .note { padding-top: 18px; }
.doc > h3 { font-size: 21px; margin: 26px 0 10px; }
.doc > :first-child:not(h2) { margin-top: 40px; }
.doc > ul, .doc > ol { padding-left: calc(56px + 1.25em); }
.doc > pre { margin-left: 56px; padding-left: 22px; }
.doc > table { margin-left: 56px; width: calc(100% - 56px); }
.doc > .note { margin-left: 56px; }
.doc li > pre { margin: 12px 0; }
.doc p, .doc li { color: var(--muted-2); }
.doc b { color: var(--ink); }

.toc { padding-top: 40px; }
.toc p { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-kicker); margin-bottom: 14px; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 40px; border-top: 1px solid var(--line); padding-top: 16px; }
.toc li { break-inside: avoid; margin: 0 0 8px; }

.prose { max-width: 820px; padding-top: 48px; padding-bottom: 96px; }
.prose p { color: var(--muted-2); }

.note { background: var(--card); border: 1px solid var(--line); padding: 16px 20px; color: var(--muted-2); }

table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; margin: 8px 0 22px; background: var(--card); border: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); background: #E6EBE7; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted-2); }

/* ---------- Формы: загрузка комплекта, вход администратора ---------- */
form { margin: 0; }
.form-card { background: var(--card); border: 1px solid var(--line); padding: 32px; max-width: 560px; margin-top: 28px; }
label { display: block; font-weight: 500; color: var(--ink); }
input[type="password"], input[type="email"], input[type="text"], input[type="number"], input:not([type]), select {
  display: block; width: 100%; margin-top: 8px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #9AA6A0; border-radius: 0; padding: 12px 14px; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--link); }
label:has(input[type="checkbox"]) { font-weight: 400; color: var(--muted-2); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }
button { font: 600 16px/1.2 var(--sans); color: var(--on-head); background: var(--deep); border: 1px solid var(--deep); padding: 13px 24px; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
button:hover { background: var(--link); transform: translateY(-1px); }
.form-card button { margin-top: 20px; }
.choice { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.choice form { display: inline; }
button.quiet { background: transparent; color: var(--deep); }
button.quiet:hover { background: transparent; color: var(--link); }
.error { background: #FBEDEA; border: 1px solid #E3B5AE; color: #8E2318; padding: 12px 16px; }
.token { font-family: var(--mono); word-break: break-all; background: var(--card); border: 1px solid var(--line); padding: 14px 16px; font-size: 15px; }

/* Служебные страницы администратора */
.page { padding-top: 32px; padding-bottom: 96px; }
.page h1 { font-size: 40px; margin: 18px 0 14px; }
.page h2 { font-size: 26px; margin: 36px 0 12px; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-bar p { margin: 0; }
.admin-bar button { padding: 8px 16px; font-size: 14px; }
.page td form button { padding: 6px 12px; font-size: 14px; }
.page form.card { background: var(--card); border: 1px solid var(--line); padding: 28px 32px; max-width: 640px; }
.table-scroll { overflow-x: auto; }

/* ---------- Подвал ---------- */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; gap: 20px; align-items: flex-start; padding-top: 32px; padding-bottom: 48px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.foot-mark { flex: none; width: 32px; height: 32px; border: 1px solid var(--gold-dark); display: inline-grid; place-items: center; font-family: var(--serif); font-size: 13px; color: var(--gold-dark); }
.site-foot p { margin: 0; max-width: 62em; }

/* ---------- Возможности: фон из формул и слов ---------- */
.formula-field { position: relative; overflow: hidden; }
.formula-field > .doc { padding-bottom: 56px; }
.formulas { position: absolute; inset: 0; pointer-events: none; user-select: none; z-index: 0; color: var(--deep); }
.formulas span { position: absolute; left: var(--x); top: var(--y); font-size: var(--s); opacity: var(--o); white-space: nowrap; line-height: 1;
  transform: rotate(var(--r)); animation: drift var(--d) ease-in-out var(--delay, 0s) infinite alternate; will-change: transform; }
.formulas span::before { content: attr(data-t); }
.formulas .f { font-family: var(--mono); letter-spacing: .02em; }
.formulas .w { font-family: var(--serif); }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(var(--r)); }
  50%  { transform: translate(calc(var(--dx) * .55), calc(var(--dy) * -.4)) rotate(calc(var(--r) + 2deg)); }
  100% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) - 3deg)); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Появление при прокрутке (классы ставит site.js; без JS всё видно сразу) ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { gap: 32px; }
  .toc ul { columns: 2; }
}
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 72px; }
  .hero-art { min-height: 380px; }
  .spiro { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 44px 32px; gap: 28px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc > * { grid-column: 1; padding-left: 0; }
  .doc > h2 { padding-right: 0; font-size: 26px; }
  .doc > h2 + * { margin-top: 0; padding-top: 14px; border-top: 0; }
  .doc > h2 + pre, .doc > h2 + table, .doc > h2 + .note { padding-top: 18px; margin-top: 14px; }
  .doc > ul, .doc > ol { padding-left: 1.25em; }
  .doc > pre, .doc > table, .doc > .note { margin-left: 0; }
  .doc > table { width: 100%; }
  .cols { columns: 1; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .site-head .bar { padding-top: 16px; padding-bottom: 14px; gap: 12px; }
  .site-head nav { gap: 2px 18px; font-size: 15px; width: 100%; }
  .hero h1 { font-size: 40px; }
  .hero .lead, .page-head .lead { font-size: 17px; }
  .hero-art { min-height: 340px; }
  .spiro { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .packet { padding: 24px 22px 16px; }
  .packet li { font-size: 16px; grid-template-columns: 34px 1fr; }
  .page-head h1 { font-size: 34px; }
  .page-head .wrap { padding-top: 32px; padding-bottom: 52px; }
  .page-head::after { width: 360px; height: 360px; right: -200px; margin-top: -180px; opacity: .3; }
  .section { padding-top: 72px; }
  .section h2 { font-size: 30px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .privacy { margin-top: 72px; padding: 56px 0; }
  .cards .card { padding: 28px 24px 30px; }
  .cta { padding: 36px 24px; }
  .toc ul { columns: 1; }
  .form-card { padding: 22px; }
  .page h1 { font-size: 32px; }
  table { display: block; overflow-x: auto; }
  .formulas span:nth-child(n+13) { display: none; }
  .formulas span { font-size: calc(var(--s) * .7); }
  .btn { padding: 14px 22px; }
}

/* ---------- Без анимации по настройке системы ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
