/* vm-sk.su — основные стили темы «Водомонтаж-Стройкомплект».
   Основа: утверждённый макет (prototype/site/assets/css/proto.css) без служебного макета; DESIGN.md (Carbon, фирменный синий #00467a).
   Дополнения темы (договор, разд. 7–8) — в конце файла. */

/* ---------- IBM Plex Sans: локальные файлы (OFL), кириллица + латиница; 500 макета заменён на 600 ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/ibm-plex-sans-cyrillic-300-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-300-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-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 {
  --c-primary: #00467a; --c-primary-hover: #003a66; --c-primary-pressed: #002c4e;
  --c-primary-10: #e5eef5; --c-primary-20: #c3d7e8;
  --c-ink: #161616; --c-ink-muted: #525252; --c-ink-subtle: #6f6f6f;
  --c-canvas: #fff; --c-surface-1: #f4f4f4; --c-surface-2: #e0e0e0;
  --c-hairline: #e0e0e0; --c-hairline-strong: #c6c6c6; --c-field-line: #8d8d8d; --c-field-hover: #e8e8e8;
  --c-inverse: #161616; --c-inverse-2: #262626; --c-inverse-ink-muted: #c6c6c6;
  --c-success: #24a148; --c-error: #da1e28;
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 1312px; --gutter: 32px; --topbar: 64px;
  /* движение Carbon: длительности; кривые productive — интерфейс, expressive — крупные появления */
  --motion-fast-01: 70ms; --motion-fast-02: 110ms; --motion-moderate-01: 150ms; --motion-moderate-02: 240ms;
  --motion-slow-01: 400ms; --motion-slow-02: 700ms;
  --ease-productive-standard: cubic-bezier(0.2, 0, 0.38, 0.9); --ease-productive-entrance: cubic-bezier(0, 0, 0.38, 0.9);
  --ease-productive-exit: cubic-bezier(0.2, 0, 1, 0.9); --ease-expressive-standard: cubic-bezier(0.4, 0.14, 0.3, 1);
  --ease-expressive-entrance: cubic-bezier(0, 0, 0.3, 1); --ease-expressive-exit: cubic-bezier(0.4, 0.14, 1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.5 var(--font); letter-spacing: .16px; color: var(--c-ink); background: var(--c-canvas); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-hover); }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
.h1, .h2 { text-wrap: balance; }
.nowrap { white-space: nowrap; }
button { font: inherit; letter-spacing: inherit; }
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.hp { position: absolute; left: -9999px; }

/* ---------- типографика ---------- */
.h1 { font-size: 42px; line-height: 1.2; font-weight: 300; letter-spacing: 0; }
.h2 { font-size: 32px; line-height: 1.25; font-weight: 400; letter-spacing: 0; margin-bottom: 40px; }
.h3 { font-size: 20px; line-height: 1.4; font-weight: 400; letter-spacing: 0; }
.lead { font-size: 18px; line-height: 1.5; color: var(--c-ink-muted); letter-spacing: 0; }
.eyebrow { font-size: 14px; color: var(--c-ink-muted); margin-bottom: 16px; }
.muted { color: var(--c-ink-muted); }
.small { font-size: 14px; line-height: 1.43; }
.caption { font-size: 12px; line-height: 1.33; letter-spacing: .32px; color: var(--c-ink-muted); }
.src { display: inline; font-size: 12px; line-height: 1.5; letter-spacing: .32px; color: var(--c-ink-subtle); margin-left: 2px; } /* переносится; номера держит неразрывный пробел (vmsk_theme_nbsp) */
.prose p, .prose ul, .prose ol { margin-bottom: 16px; max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { font-size: 28px; line-height: 1.29; font-weight: 400; margin: 48px 0 16px; letter-spacing: 0; }
.prose > h2:first-child, .prose > .h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 400; margin: 24px 0 8px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 12px 16px; font-size: 14px; line-height: 1.29; letter-spacing: .16px; border: 1px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none; text-align: left;
  transition: background-color var(--motion-fast-02) var(--ease-productive-standard), color var(--motion-fast-02) var(--ease-productive-standard), border-color var(--motion-fast-02) var(--ease-productive-standard); }
.btn .i { width: 16px; height: 16px; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--primary:active { background: var(--c-primary-pressed); }
.btn--secondary { background: var(--c-ink); color: #fff; }
.btn--secondary:hover { background: #393939; color: #fff; }
.btn--tertiary { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--tertiary:hover { background: var(--c-primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-surface-1); }
.btn--ghost:disabled { color: #a8a8a8; background: transparent; cursor: default; }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { background: var(--c-primary-10); color: var(--c-primary-hover); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.icon-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 0; color: var(--c-ink); cursor: pointer; }
.icon-btn:hover { background: var(--c-surface-1); }


/* ---------- шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-hairline); }
.topbar__in { display: flex; align-items: center; height: var(--topbar); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-primary); flex: none; }
.logo:hover { color: var(--c-primary); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__name { font-weight: 600; font-size: 15px; line-height: 1.15; letter-spacing: 0; }
.logo__name span { display: block; }
.logo--inverse { color: #fff; margin-bottom: 24px; }
.logo--inverse:hover { color: #fff; }
.nav { display: flex; margin-left: 8px; height: 100%; }
.nav__btn { display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 12px; font-size: 14px; color: var(--c-ink); background: none; border: 0; border-bottom: 3px solid transparent; border-top: 3px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.nav__btn:hover { background: var(--c-surface-1); color: var(--c-ink); }
.nav__btn .i { width: 16px; height: 16px; transition: transform var(--motion-moderate-01) var(--ease-productive-standard); }
.nav__label { display: inline-flex; align-items: center; gap: 4px; }
.nav__btn[aria-expanded="true"] { background: var(--c-surface-1); border-bottom-color: var(--c-primary); }
.nav__btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav__btn.is-current { border-bottom-color: var(--c-primary); font-weight: 600; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar__phone { font-weight: 600; color: var(--c-ink); text-decoration: none; white-space: nowrap; line-height: 1.2; text-align: right; }
.topbar__phone small { display: block; font-weight: 400; font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); }
.topbar__cta { white-space: nowrap; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--c-hairline); box-shadow: 0 8px 16px rgba(0,0,0,.12); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr 360px; gap: 32px; padding-top: 24px; padding-bottom: 32px; }
.mega__grid:has(.mega__list--2) { grid-template-columns: 2fr 360px; }
.mega__list { list-style: none; padding: 0; }
.mega__list--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.mega__head { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); padding: 0 16px 8px; border-bottom: 1px solid var(--c-hairline); margin-bottom: 8px; }
.mega__head a { color: inherit; }
.mega__link { display: block; padding: 10px 16px; text-decoration: none; color: var(--c-ink); }
.mega__link:hover { background: var(--c-surface-1); color: var(--c-ink); }
.mega__link strong { font-weight: 600; font-size: 14px; }
.mega__link span { display: block; font-size: 14px; color: var(--c-ink-muted); }
.mega__cta { background: var(--c-primary-10); padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 14px; }
.mega__cta-title { font-size: 20px; line-height: 1.4; }
.mega__phone a { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.mmenu { position: fixed; inset: var(--topbar) 0 0 0; background: #fff; overflow-y: auto; padding: 16px var(--gutter) 96px; z-index: 60; border-top: 1px solid var(--c-hairline); }
.mmenu__label { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); margin-bottom: 8px; }
.mmenu__sit { list-style: none; padding: 0; margin-bottom: 16px; }
.mmenu__sit a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-hairline); color: var(--c-ink); text-decoration: none; }
.mmenu__sit .i { color: var(--c-primary); width: 16px; }
.mmenu__acc { border-bottom: 1px solid var(--c-hairline); }
.mmenu__acc summary { padding: 14px 0; cursor: pointer; font-weight: 600; }
.mmenu__acc a { display: block; padding: 8px 16px; color: var(--c-ink); text-decoration: none; }
.mmenu__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-hairline); color: var(--c-ink); text-decoration: none; font-weight: 600; }
.mmenu__nap { margin-top: 24px; display: grid; gap: 12px; font-size: 14px; color: var(--c-ink-muted); }
body.no-scroll { overflow: hidden; }

/* ---------- секции и сетки ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--c-surface-1); }
.section--tight { padding: 48px 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.section__head .h2 { margin-bottom: 0; }
.section__head p { max-width: 560px; }
.tiles { display: grid; gap: 1px; background: var(--c-hairline); border: 1px solid var(--c-hairline); }
.tiles > * { background: #fff; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.links { list-style: none; padding: 0; }
.links a, .links > li > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-hairline); text-decoration: none; color: var(--c-ink); font-size: 14px; }
.links a:hover { color: var(--c-primary); }
.links .i { color: var(--c-primary); width: 16px; height: 16px; }

/* ---------- первый экран ---------- */
.hero { background: linear-gradient(180deg, var(--c-primary-10) 0%, #fff 520px); padding: 32px 0 56px; }
.hero:not(.hero--photo) { border-bottom: 1px solid var(--c-hairline); }
.hero + .section { padding-top: 64px; }
.section:not(.section--alt) + .section:not(.section--alt), .section--alt + .section--alt { padding-top: 0; }
.section:not(.section--alt) + .section:not(.section--alt) > .container, .section--alt + .section--alt > .container {
  padding-top: 64px; background: linear-gradient(var(--c-hairline), var(--c-hairline)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.hero__text { padding-top: 16px; }
.hero .h1 { max-width: 760px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); margin-bottom: 24px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #a8a8a8; } /* разделитель — в конце пункта: при переносе не начинает строку */
.crumbs a { color: var(--c-ink-muted); }
.short { background: #fff; border-left: 3px solid var(--c-primary); padding: 16px 20px; margin: 24px 0; max-width: 760px; }
.short p { font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.short__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .32px; color: var(--c-primary); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; border: 1px solid var(--c-hairline); font-size: 14px; color: var(--c-ink); text-decoration: none; }
a.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip .i { width: 16px; height: 16px; color: var(--c-primary); }
.gets { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.gets li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.gets .i { color: var(--c-primary); margin-top: 2px; }
.gets .src { margin-left: 4px; }
.hero__mobile { display: none; }
.hero__photo { margin-top: 32px; }
.figure-cap { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); margin-top: 8px; }

/* ---------- формы ---------- */
.fcard { position: relative; background: #fff; border: 1px solid var(--c-hairline); border-top: 3px solid var(--c-primary); padding: 24px; }
.fcard--wide { padding: 32px; }
.fcard__title { font-size: 20px; line-height: 1.4; font-weight: 400; letter-spacing: 0; margin-bottom: 8px; }
.fcard__sub { font-size: 14px; line-height: 1.43; color: var(--c-ink-muted); margin-bottom: 20px; }
.fcard__foot { font-size: 12px; line-height: 1.5; letter-spacing: .32px; color: var(--c-ink-muted); margin-top: 12px; }
.fcard__close { position: absolute; right: 8px; top: 8px; }
.field { margin-bottom: 16px; }
.field label:not(.drop), .field .label { display: block; font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); margin-bottom: 8px; }
.opt { color: var(--c-ink-subtle); }
.input { display: block; width: 100%; min-height: 40px; padding: 0 16px; background: var(--c-surface-1); border: 0; border-bottom: 1px solid var(--c-field-line); border-radius: 0; font: inherit; font-size: 14px; color: var(--c-ink); }
textarea.input { padding: 11px 16px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; background: var(--c-surface-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23161616' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.input:focus { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.input.is-invalid { outline: 2px solid var(--c-error); outline-offset: -2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
/* до трёх полей в ряд, но не уже 180 px (в узкой форме — по два); поля ряда выровнены по низу при переносе подписей */
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(180px, calc((100% - 32px) / 3)), 1fr)); gap: 0 16px; align-items: end; }
.hint { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-subtle); margin: -8px 0 16px; }
.err--consent { margin: -12px 0 12px 30px; }
.hint.is-error, .err { color: var(--c-error); font-size: 12px; letter-spacing: .32px; margin-top: 4px; }
.drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--c-field-line); background: #fff; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--c-primary); background: var(--c-primary-10); }
.drop__ico { width: 24px; height: 24px; color: var(--c-primary); }
.drop__text strong { display: block; font-size: 14px; font-weight: 600; color: var(--c-primary); }
.drop__text span { display: block; font-size: 12px; letter-spacing: .32px; color: var(--c-ink-subtle); }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.files { list-style: none; padding: 0; font-size: 14px; }
.files li { display: flex; align-items: center; gap: 8px; padding: 8px 0 8px 12px; border-bottom: 1px solid var(--c-hairline); background: var(--c-surface-1); margin-top: 2px; }
.files li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li small { color: var(--c-ink-muted); white-space: nowrap; }
.files button { background: none; border: 0; cursor: pointer; padding: 4px 10px; color: var(--c-ink-muted); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 12px; line-height: 1.5; letter-spacing: .32px; color: var(--c-ink-muted); margin: 4px 0 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c-primary); }
.check.is-invalid span { color: var(--c-error); }
.more { margin-bottom: 16px; }
.more summary { font-size: 14px; color: var(--c-primary); cursor: pointer; padding: 4px 0; }
.more[open] summary { margin-bottom: 12px; }

/* ---------- плитки ситуаций ---------- */
.tile { display: flex; flex-direction: column; padding: 28px; min-height: 210px; text-decoration: none; color: var(--c-ink); position: relative; }
a.tile:hover { background: var(--c-surface-1); color: var(--c-ink); } /* синяя линия сверху — в разделе «Движение» */
.tile__n { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-subtle); }
.tile__title { font-size: 20px; line-height: 1.4; margin: 8px 0; letter-spacing: 0; }
.tile__text { font-size: 14px; line-height: 1.43; color: var(--c-ink-muted); }
.tile__fact { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 14px; }
.tile__fact .i { color: var(--c-primary); }

/* ---------- полоса доверия ---------- */
.trust > div { padding: 24px; }
.trust__big { font-size: 42px; line-height: 1.2; font-weight: 300; color: var(--c-primary); letter-spacing: 0; }
.trust__label { font-size: 14px; line-height: 1.43; color: var(--c-ink-muted); margin-top: 8px; }

/* ---------- путь «от ТУ до пломбы» ---------- */
.path { list-style: none; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 2px solid var(--c-primary); } /* колонок столько, сколько шагов */
.path li { position: relative; padding: 28px 24px 0 0; }
.path li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--c-primary); }
.path__n { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-subtle); }
.path__t { font-size: 18px; line-height: 1.33; margin: 4px 0 8px; letter-spacing: 0; }
.path__d { font-size: 14px; line-height: 1.43; color: var(--c-ink-muted); }
.path .src { white-space: normal; }
.path__t a { color: inherit; text-decoration-color: var(--c-primary-20); }

/* ---------- этапы под ключ ---------- */
.stages { list-style: none; padding: 0; border-bottom: 1px solid var(--c-hairline); }
.stage { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--c-hairline); }
.stage__n { font-size: 42px; line-height: 1; font-weight: 300; color: var(--c-primary); }
.stage__t { font-size: 24px; line-height: 1.33; letter-spacing: 0; margin-bottom: 8px; }
.stage__t a { color: inherit; text-decoration-color: var(--c-primary-20); }
.stage__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 16px; }
.stage__cols dt { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-subtle); margin-bottom: 4px; }
.stage__cols dd { margin: 0; font-size: 14px; line-height: 1.43; }

/* ---------- таблицы и факты ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-hairline); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.43; }
.table th { text-align: left; font-weight: 600; background: var(--c-surface-2); padding: 12px 16px; vertical-align: bottom; }
.table td { padding: 14px 16px; border-top: 1px solid var(--c-hairline); vertical-align: top; }
.table tbody tr:hover td { background: var(--c-surface-1); }
.table td:first-child { font-weight: 600; }
.facts { display: grid; grid-template-columns: 200px 1fr; margin: 24px 0 0; border-top: 1px solid var(--c-hairline); max-width: 760px; }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--c-hairline); margin: 0; font-size: 14px; line-height: 1.43; }
.facts dt { color: var(--c-ink-muted); padding-right: 16px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border-top: 1px solid var(--c-hairline); }
.specs > div { padding: 12px 24px 0 0; }
.specs dt { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); }
.specs dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; }

/* ---------- FAQ, источники, журнал ---------- */
.faq { border-bottom: 1px solid var(--c-hairline); max-width: 900px; }
.faq__item { border-top: 1px solid var(--c-hairline); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; cursor: pointer; font-size: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-primary); }
.faq__chev { transition: transform var(--motion-moderate-01) var(--ease-productive-standard); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 48px 20px 0; color: var(--c-ink-muted); font-size: 14px; line-height: 1.57; }
.sources { padding-left: 22px; font-size: 14px; line-height: 1.5; display: grid; gap: 8px; max-width: 900px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); padding: 12px 0; border-top: 1px solid var(--c-hairline); border-bottom: 1px solid var(--c-hairline); margin: 24px 0; }
.changelog { font-size: 14px; color: var(--c-ink-muted); margin-top: 16px; }
.changelog summary { cursor: pointer; color: var(--c-primary); }
.changelog ul { list-style: none; padding: 8px 0 0; }

/* ---------- квиз ---------- */
.quiz { background: #fff; border: 1px solid var(--c-hairline); }
.quiz__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 24px; }
.quiz__title { font-size: 20px; line-height: 1.4; font-weight: 400; letter-spacing: 0; }
.quiz__count { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); white-space: nowrap; }
.quiz__bar { height: 4px; background: var(--c-surface-2); }
.quiz__bar span { display: block; height: 100%; background: var(--c-primary); transition: width .2s; }
.quiz__step { border: 0; margin: 0; padding: 24px; min-height: 230px; }
.quiz__step legend { font-size: 18px; padding: 0; margin-bottom: 16px; float: left; width: 100%; }
.quiz__step > legend ~ * { clear: both; } /* legend плавает: без clear сетка .row-2 (телефон, почта) встаёт сбоку от него, за край карточки */
.quiz__hint { margin: -8px 0 12px; }
.opts { clear: both; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qopt input { position: absolute; opacity: 0; }
.qopt span { display: block; padding: 12px 16px; border: 1px solid var(--c-hairline); cursor: pointer; font-size: 14px; background: #fff; }
.qopt span:hover { border-color: var(--c-field-line); background: var(--c-surface-1); }
.qopt input:checked + span { border-color: var(--c-primary); background: var(--c-primary-10); box-shadow: inset 0 0 0 1px var(--c-primary); }
.qopt input:focus-visible + span { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.quiz__extra { margin-top: 16px; max-width: 320px; }
.quiz__nav { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--c-hairline); }
.quiz__skip { margin-right: auto; font-size: 14px; }
.btn--link { background: none; border: 0; padding: 4px 0; color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.quiz__result { padding: 24px; }
.quiz__result ol { padding-left: 22px; margin: 12px 0; }

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 1px; background: var(--c-hairline); border: 1px solid var(--c-hairline); }
.calc > div { background: #fff; padding: 32px; }
.calc__res { background: var(--c-primary-10) !important; color: var(--c-ink); display: flex; flex-direction: column; gap: 8px; }
.calc__sum { font-size: 42px; line-height: 1.2; font-weight: 300; letter-spacing: 0; color: var(--c-primary); }
.calc__res a { color: var(--c-primary); }
.calc__res a:hover { color: var(--c-primary-hover); }

/* ---------- карточки ---------- */
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--c-ink); }
.card__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--c-surface-2); }
.card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 20px; line-height: 1.4; letter-spacing: 0; }
.card__more { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--c-primary); display: flex; justify-content: space-between; align-items: center; }
a.card:hover { background: var(--c-surface-1); color: var(--c-ink); }
.model { padding: 24px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--c-ink); min-height: 180px; }
.model__name { font-size: 24px; line-height: 1.33; letter-spacing: 0; }
.model__use { font-size: 14px; color: var(--c-ink-muted); }
.model__reg { margin-top: auto; font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); }
a.model:hover { background: var(--c-surface-1); color: var(--c-ink); }
.svc-group h3 { font-size: 24px; line-height: 1.33; font-weight: 400; letter-spacing: 0; margin-bottom: 8px; }
.svc-group h3 a { color: var(--c-ink); text-decoration: none; }
.svc { display: grid; grid-template-columns: 1fr 20px; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--c-hairline); text-decoration: none; color: var(--c-ink); }
.svc strong { font-weight: 600; font-size: 16px; }
.svc span { grid-column: 1; font-size: 14px; color: var(--c-ink-muted); }
.svc .i { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--c-primary); }
a.svc:hover strong { color: var(--c-primary); }
.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.qa__item { padding: 20px 0; border-top: 1px solid var(--c-hairline); }
.qa__q { font-weight: 600; margin-bottom: 6px; }
.qa__a { font-size: 14px; line-height: 1.57; color: var(--c-ink-muted); }

/* ---------- блок «Следующий шаг» и баннер ---------- */
.next { grid-template-columns: 1fr 1fr 1.2fr; }
.next--2 { grid-template-columns: 1fr 1fr; }
.section.section--joined { padding-bottom: 0; }
.next__col { padding: 24px; }
.next__n { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-subtle); margin-bottom: 12px; }
.next__col--main { background: var(--c-primary) !important; color: #fff; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.next__col--main .next__n { color: var(--c-primary-20); }
.next__title { font-size: 24px; line-height: 1.33; }
.final { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.nap { font-size: 16px; line-height: 1.6; }
.nap dt { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); margin-top: 16px; }
.nap dd { margin: 0; }
.map { position: relative; min-height: 240px; margin-top: 24px; border: 1px solid var(--c-hairline); background-color: #eef1f3;
  background-image: linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(28deg, transparent 46%, #fff 46%, #fff 50%, transparent 50%), linear-gradient(118deg, transparent 58%, #fff 58%, #fff 61%, transparent 61%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%; display: flex; align-items: center; justify-content: center; }
.map__pin { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.map__pin .i { width: 36px; height: 36px; color: var(--c-primary); }
.map__pin a { background: #fff; padding: 6px 12px; border: 1px solid var(--c-hairline); text-decoration: none; }

/* ---------- схема ---------- */
.scheme { background: #fff; border: 1px solid var(--c-hairline); padding: 24px; }
.scheme svg { width: 100%; height: auto; display: block; }
.sc-t { font: 600 13px var(--font); fill: var(--c-ink); }
.sc-s { font: 400 11px var(--font); fill: var(--c-ink-muted); }
.sc-call path { stroke: var(--c-primary); stroke-width: 1; fill: none; }
.sc-call circle { fill: var(--c-primary); }
.sc-call text { font: 600 12px var(--font); fill: #fff; text-anchor: middle; }
.scheme__legend { margin-top: 16px; padding-left: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; font-size: 14px; line-height: 1.43; color: var(--c-ink-muted); }
.scheme__legend b { color: var(--c-ink); font-weight: 600; }

/* ---------- статья ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--topbar) + 24px); font-size: 14px; border-left: 1px solid var(--c-hairline); }
.toc p { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-subtle); padding: 0 16px 8px; }
.toc a { display: block; padding: 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--c-ink-muted); text-decoration: none; line-height: 1.43; }
.toc a:hover { color: var(--c-ink); border-left-color: var(--c-primary); }
.prose .forks li { margin: 0; }
.prose .forks, .forks { list-style: none; padding: 0; display: grid; gap: 1px; background: var(--c-hairline); border: 1px solid var(--c-hairline); margin: 16px 0 24px; max-width: none; }
.forks a { display: grid; grid-template-columns: 1fr 1fr 20px; gap: 16px; align-items: center; padding: 16px 20px; background: #fff; text-decoration: none; color: var(--c-ink); font-size: 14px; }
.forks a:hover { background: var(--c-surface-1); }
.forks b { font-weight: 600; }
.forks .i { color: var(--c-primary); }
.note { display: grid; grid-template-columns: 24px 1fr; gap: 12px; background: var(--c-primary-10); padding: 16px 20px; font-size: 14px; line-height: 1.5; max-width: 760px; margin-bottom: 16px; }
.note .i { color: var(--c-primary); }
.disclaimer { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); margin-top: 24px; }

/* ---------- товар ---------- */
.product__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero .btn-row .btn--ghost { padding-left: 0; padding-right: 0; }

/* ---------- вкладки без JS ---------- */
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs__list { display: flex; border-bottom: 1px solid var(--c-hairline); }
.tabs__list label { padding: 14px 20px; font-size: 14px; color: var(--c-ink-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs__list label:hover { color: var(--c-ink); background: var(--c-surface-1); }
.tabs > section { display: none; }
.tabs > input:nth-of-type(1):checked ~ section:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ section:nth-of-type(2) { display: block; }
.tabs > input:nth-of-type(1):checked ~ .tabs__list label:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tabs__list label:nth-of-type(2) { color: var(--c-ink); font-weight: 600; border-bottom-color: var(--c-primary); }
.tabs > input:nth-of-type(1):focus-visible ~ .tabs__list label:nth-of-type(1),
.tabs > input:nth-of-type(2):focus-visible ~ .tabs__list label:nth-of-type(2) { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.tabs .fcard, .tabs .quiz { border-top-width: 0; }

/* ---------- спасибо ---------- */
.thanks { max-width: 760px; }
.thanks__num { display: inline-block; font-size: 14px; background: var(--c-primary-10); padding: 4px 10px; margin-bottom: 16px; }
.thanks ol { padding-left: 22px; display: grid; gap: 12px; margin: 16px 0 32px; }

/* ---------- подвал ---------- */
.footer { background: var(--c-inverse); color: var(--c-inverse-ink-muted); padding: 64px 0 24px; font-size: 14px; line-height: 1.5; }
.footer a { color: var(--c-inverse-ink-muted); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer__co p { margin-bottom: 16px; }
.footer__h { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; letter-spacing: .16px; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 16px; border-top: 1px solid #393939; font-size: 12px; letter-spacing: .32px; }

/* ---------- первый экран с фото-подложкой («живой» фон) ---------- */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; background: var(--c-primary-10); padding: 40px 0 48px; }
.hero__bg { position: absolute; inset: -6%; z-index: -3; background: url(../img/hero-bg.jpg) 70% 45% / cover no-repeat; opacity: .3; transform: scale(1.04); }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.84) 40%, rgba(240,245,250,.72) 62%, rgba(229,238,245,.68) 100%),
              linear-gradient(180deg, rgba(255,255,255,0) 70%, rgba(255,255,255,.9) 100%); }
.hero__flow { position: absolute; left: 0; bottom: 0; width: 100%; height: 30%; z-index: -1; pointer-events: none; }
.hero__flow path { fill: none; stroke: var(--c-primary); stroke-width: 1.4; stroke-dasharray: 14 18; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero__flow path:nth-child(1) { stroke-opacity: .16; }
.hero__flow path:nth-child(2) { stroke-opacity: .12; animation-delay: var(--motion-fast-02); }
.hero__flow path:nth-child(3) { stroke-opacity: .08; animation-delay: var(--motion-moderate-02); }
/* «Живой» фон без бесконечного движения (WCAG 2.2.2): линии один раз втекают при загрузке (slow-02 + лесенка = 940 мс),
   дальше фон и линии сдвигаются только вместе с прокруткой (scroll-driven animations; где их нет — статично). */
@media screen and (prefers-reduced-motion: no-preference) {
  .hero__flow path { animation: hero-flow-in var(--motion-slow-02) var(--ease-expressive-entrance) both; }
}
@supports (animation-timeline: scroll()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    .hero__bg { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__flow { animation: hero-flow-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes hero-flow-in { from { stroke-dashoffset: 128; opacity: 0; } }
@keyframes hero-parallax { from { transform: scale(1.04); } to { transform: translate3d(0, 6%, 0) scale(1.08); } }
@keyframes hero-flow-parallax { to { transform: translate3d(0, -20%, 0); } }
.hero__lead { font-size: 18px; line-height: 1.55; letter-spacing: 0; color: var(--c-ink-muted); margin-top: 24px; max-width: 680px; }
.hero-stats { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; border-top: 1px solid var(--c-primary-20); }
.hero-stats li { padding: 16px 24px 0 0; }
.hero-stats b { display: block; font-size: 28px; line-height: 1.2; font-weight: 300; color: var(--c-primary); letter-spacing: 0; }
.hero-stats li > span { display: block; font-size: 14px; line-height: 1.43; color: var(--c-ink-muted); margin-top: 4px; }
.hero-stats .src { display: inline; margin-left: 4px; font-size: 12px; color: var(--c-ink-muted); }
.hero--photo .src { color: var(--c-ink-muted); }
.fcard--hero .hint--contact:not(.is-error) { display: none; }

/* ---------- цифры о компании — без рамок ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.stats > div { padding: 0; }
.stats__big { font-size: 28px; line-height: 1.2; font-weight: 300; color: var(--c-ink); letter-spacing: 0; }
.stats__label { font-size: 14px; line-height: 1.5; color: var(--c-ink-muted); margin-top: 8px; }

/* ---------- карточки объектов — отдельно, без общей сетки рамок ---------- */
.cards { display: grid; gap: 24px; }
.cards .card { background: #fff; border: 1px solid var(--c-hairline); }
.tiles.cols-2, .tiles.cols-3 { gap: 1px; }
/* нечётное число плиток в две колонки: последняя на всю ширину, без пустой серой клетки */
.tiles.cols-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }


/* ---------- список вопросов на «Предписании» ---------- */
.qlist { list-style: none; padding: 0; counter-reset: q; border-bottom: 1px solid var(--c-hairline); }
.qlist li { counter-increment: q; display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-top: 1px solid var(--c-hairline); }
.qlist li::before { content: counter(q) "."; grid-row: span 2; font-size: 16px; color: var(--c-ink-subtle); line-height: 1.6; }
.qlist__q { font-size: 18px; line-height: 1.4; margin-bottom: 4px; }

/* ---------- фокус на тёмном и синем ---------- */
.footer :focus-visible, .next__col--main :focus-visible { outline-color: #fff; }

/* ---------- мобильная панель действий ---------- */
.mbar { display: none; }

/* ================= адаптив ================= */
@media (max-width: 1311px) {
  .nav__btn { padding: 0 9px; }
  .topbar__phone { display: none; }
}
@media (min-width: 1200px) and (max-width: 1311px) {
  .topbar__phone-ico { display: inline-flex; }
  .topbar__actions { gap: 4px; }
  .nav__btn { padding: 0 6px; }
}
@media (max-width: 1199px) {
  :root { --topbar: 56px; }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); } /* фокус и якоря не уходят под нижнюю панель */
  .nav { display: none; }
  .icon-btn { display: inline-flex; }
  .topbar__actions { gap: 4px; }
  .topbar__cta { min-height: 40px; padding: 8px 14px; margin-right: 4px; }
  .hero__grid, .final, .split, .article { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__grid--even { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .path { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; row-gap: 32px; }
  .mega__grid { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr 1fr; }
  .calc__res { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 32px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr 1.6fr; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--c-hairline); }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; letter-spacing: .32px; color: var(--c-ink); text-decoration: none; }
  .mbar a.mbar__main { background: var(--c-primary); color: #fff; }
  body { padding-bottom: 60px; }
  body.sheet-open .mbar { display: none; }
  .mbar { transition: transform var(--motion-moderate-02) var(--ease-productive-entrance), visibility 0s; }
  body.mbar-wait .mbar { transform: translateY(100%); visibility: hidden; transition: transform var(--motion-moderate-01) var(--ease-productive-exit), visibility 0s var(--motion-moderate-01); }
  .mbar--2 { grid-template-columns: 1fr 1fr; }
  .hide-lt-desk { display: none; }
}
@media (min-width: 1200px) {
  .mmenu { display: none !important; }
  .fcard--hero { position: sticky; top: calc(var(--topbar) + 24px); }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .topbar__cta { display: none; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__name { font-size: 14px; }
  .h1 { font-size: 30px; line-height: 1.25; }
  .h2 { font-size: 26px; margin-bottom: 24px; }
  .short p, .lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero, .hero--photo { padding: 16px 0 48px; }
  .hero__bg { opacity: .35; background-position: 12% 50%; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.76) 70%, #fff); }
  .hero__lead { font-size: 16px; margin-top: 16px; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 24px; }
  .hero-stats li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--c-primary-20); }
  .hero-stats b { font-size: 22px; white-space: nowrap; }
  .hero-stats li > span { margin: 0; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .hero__mobile { display: grid; gap: 8px; margin: 24px 0; }
  /* нижняя панель не мелькает при загрузке, пока menu.js не узнал, видны ли кнопки первого экрана (mbar-ready ставит motion.js);
     без модуля панель всё равно появится через 4 с (встроенный скрипт в <head>, inc/assets.php) */
  .js body:has(.hero__mobile):not(.mbar-ready) .mbar { transform: translateY(100%); visibility: hidden; }
  .hero__mobile .btn { justify-content: center; gap: 12px; }
  .hero__photo { display: none; }
  /* форма первого экрана — нижний лист */
  .js .fcard--hero, .js .tabs--hero { display: none; }
  body.sheet-open .fcard--hero, body.sheet-open .tabs--hero { background: #fff; display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 88vh; overflow-y: auto; box-shadow: 0 -8px 24px rgba(0,0,0,.25); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  body.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(22,22,22,.5); z-index: 65; }
  .row-2, .grid-form, .cols-2, .qa, .scheme__legend { grid-template-columns: 1fr; }
  .cols-3, .cols-4, .next { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .path { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--c-primary); row-gap: 24px; }
  .path li { padding: 0 0 0 24px; }
  .path li::before { top: 4px; left: -7px; }
  .stage { grid-template-columns: 1fr; gap: 8px; }
  .stage__n { font-size: 30px; }
  .stage__cols { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .opts { grid-template-columns: 1fr; }
  .quiz__nav { flex-wrap: wrap; }
  .quiz__skip { order: 3; width: 100%; margin: 0; }
  .calc { grid-template-columns: 1fr; }
  .calc > div { padding: 24px; }
  .forks a { grid-template-columns: 1fr 20px; }
  .forks a span:nth-child(2) { grid-column: 1; color: var(--c-ink-muted); }
  .forks .i { grid-row: 1 / span 2; grid-column: 2; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .model { min-height: 0; }
  .model__reg { margin-top: 12px; }
  .hero + .section { padding-top: 40px; }
  .section:not(.section--alt) + .section:not(.section--alt) > .container, .section--alt + .section--alt > .container { padding-top: 40px; }
  .hero .btn-row .btn { width: 100%; justify-content: center; gap: 12px; }
  .tabs--hero .tabs__list label { flex: 1; text-align: center; padding: 12px 4px; font-size: 13px; white-space: nowrap; }
  .tabs--hero .tabs__list { padding-right: 48px; }
  .hero__mobile a.small { display: flex; align-items: center; min-height: 48px; }
  .more summary, .btn--link { padding: 12px 0; }
  .btn.btn--sm { min-height: 44px; }
  .hero__flow { height: 56px; }
  body.sheet-open .hero--photo { isolation: auto; }
  .files button { min-width: 44px; min-height: 44px; }
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: 12px 16px; border-top: 1px solid var(--c-hairline); }
  .table--stack tbody tr:first-child { border-top: 0; }
  .table--stack td { display: block; border: 0; padding: 4px 0; }
  .table--stack td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); font-weight: 400; }
  .table--stack td:first-child { font-weight: 600; padding-bottom: 8px; }
  .table--stack td:first-child::before { display: none; }
  .table--stack tbody tr:hover td { background: none; }
  .fcard--wide { padding: 24px; }
}
@media (min-width: 768px) { .fcard__close { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; } }
.btn--sm { min-height: 32px; padding: 4px 8px; margin-left: 8px; gap: 6px; }
@media (min-width: 960px) and (max-width: 1199px) { .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; } .hero__grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ================= дополнения темы (договор, разд. 7–8) ================= */
:root { --c-partial: #8a6a10; --c-warn-bg: #fcf4d6; --c-warn-line: #b28600; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }

/* ---------- блоки содержимого вне vmsk/section — ширина контейнера ---------- */
#main > :not(section, article, nav, script, style, template, .section, .section--tight, .hero),
#main > section:not(.section, .section--tight, .hero) { max-width: var(--container); margin: 48px auto; padding: 0 var(--gutter); }

/* ---------- ритм простых блоков внутри секций (абзацы, списки, таблицы, кнопки ядра) ---------- */
/* :not() даёт специфичность класса — сильнее сброса p/ul { margin: 0 }; у .facts и .disclaimer свои отступы макета */
:where(.section .container, .section--tight .container, .split > div, .wp-block-column) > :not(h2, .h2, .section__head, .eyebrow) + :where(p, ul, ol, table:not(.facts), figure, details, .wp-block-table, .wp-block-image, .wp-block-gallery, .wp-block-buttons, .wp-block-details, .wp-block-columns, .note, .table-wrap, .faq, .qa, .tiles, .cards, .forks, .qlist, .scheme, .checklist, .prose) { margin-top: 16px; }
/* текст под списком вопросов или схемой — отступ макета */
.qlist + .prose, .scheme + .prose { margin-top: 24px; }
:where(.section .container, .split > div, .limits) > :where(ul, ol):not([class]) { padding-left: 22px; max-width: 72ch; }
:where(.section .container, .split > div, .limits) > :where(ul, ol):not([class]) > li + li { margin-top: 6px; }
:where(.section .container, .split > div) > :where(p):not([class]) { max-width: 72ch; }
/* мера строки, как у .prose: абзацы и списки ядра и вводный абзац прямо в секции (таблицы, сетки, формы, факты, шаги — во всю ширину) */
:where(.section .container, .section--tight .container) > :where(p.wp-block-paragraph, ul.wp-block-list, ol.wp-block-list) { max-width: 72ch; }
:where(.section .container, .section--tight .container) > .lead { max-width: 46rem; }
:where(.section .container, .split > div) > h3:not([class]) { font-size: 20px; line-height: 1.4; margin: 32px 0 8px; }
:where(.section .container, .split > div) > h4:not([class]), .prose h4 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.wp-block-table { overflow-x: auto; margin: 0 0 16px; }
.wp-block-table table, .prose table:not(.table):not(.facts) { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.43; }
.wp-block-table th, .prose table:not(.table):not(.facts) th { text-align: left; font-weight: 600; background: var(--c-surface-2); padding: 12px 16px; }
.wp-block-table td, .prose table:not(.table):not(.facts) td { padding: 12px 16px; border-top: 1px solid var(--c-hairline); vertical-align: top; }
.wp-block-table figcaption, .wp-block-image figcaption, .wp-block-gallery figcaption, .wp-element-caption { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); margin-top: 8px; }
.wp-block-image img { height: auto; }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 16px; font-size: 14px; line-height: 1.29; background: var(--c-primary); color: #fff; text-decoration: none; border: 1px solid transparent; border-radius: 0; }
.wp-block-button__link:hover { background: var(--c-primary-hover); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.is-style-outline .wp-block-button__link:hover { background: var(--c-primary); color: #fff; }
/* второстепенная кнопка ядра — как .btn--tertiary макета: контур и стрелка справа */
.is-style-outline .wp-block-button__link { justify-content: space-between; gap: 24px; border-width: 1px; border-radius: 0; padding: 12px 16px; }
.is-style-outline .wp-block-button__link::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
/* кнопки ядра в секции — на расстоянии .btn-row макета (32 px) от содержимого */
.section * + .wp-block-buttons { margin-top: 32px; }
.wp-block-separator { border: 0; border-top: 1px solid var(--c-hairline); margin: 32px 0; }
.wp-block-details summary, .prose details:not(.faq__item):not(.changelog) summary { cursor: pointer; color: var(--c-primary); }

/* ---------- компоненты внутри обёртки .prose: без отступов и ширины текста ---------- */
.prose .links { padding-left: 0; max-width: none; }
.prose .links li { margin: 0; }
.prose .sources { max-width: 900px; }
.prose .sources li { margin: 0; }
.prose .faq__a p { max-width: none; margin-bottom: 0; }

/* ---------- колонки ядра (core/columns) в раскладках макета: .split (5 : 7) и .cols-2 ---------- */
/* Ядро выводит .wp-block-columns { display: flex; align-items: normal !important } отдельным стилем после main.css,
   поэтому селекторы сильнее, а прижатие к верху — через align-self колонок. Колонка с классом prose — стили .prose. */
.section .wp-block-columns.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; margin-bottom: 0; align-items: start; }
.section .wp-block-columns.split > .wp-block-column { align-self: start; }
.section .wp-block-columns.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 0; }
@media (max-width: 1199px) { .section .wp-block-columns.split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 767px) { .section .wp-block-columns.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- первый экран: варианты ---------- */
@media (min-width: 1200px) { .hero__grid--even { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.btn-row--flush { margin-top: 0; }
.hero--contacts { padding-bottom: 64px; }
.nap--hero { margin-top: 24px; }
.lead--gap { margin: 16px 0 24px; }
.links--narrow { max-width: 760px; }
.hero .links { margin-top: 24px; }
.links a > span { flex: 1; }
.model--static { min-height: 0; }
.note--warn { background: var(--c-warn-bg); border-left: 3px solid var(--c-warn-line); margin-top: 24px; }
.note--warn .i { color: var(--c-ink); }
.section--crumbs { padding-bottom: 0; }
.section--article { padding-top: 0; }
.h3--spaced { margin-top: 32px; }
.map--lg { margin-top: 0; min-height: 360px; }
.contacts__how { margin-top: 16px; }
.split > .h2 + .facts, .split > .h2 + table.facts { margin-top: 0; }

/* ---------- «Спасибо» ---------- */
.thanks__h { margin-top: 32px; }
.thanks__h--lg { margin-top: 40px; }
.thanks__list { margin-top: 12px; }
.thanks__more { margin-top: 32px; }

/* ---------- таблица фактов (vmsk/facts-table, реквизиты) — как .facts макета ---------- */
table.facts { display: table; width: 100%; border-collapse: collapse; }
table.facts th, table.facts td { padding: 12px 0; border-bottom: 1px solid var(--c-hairline); font-size: 14px; line-height: 1.43; text-align: left; vertical-align: top; }
table.facts th { width: 200px; padding-right: 16px; font-weight: 400; color: var(--c-ink-muted); }

/* ---------- честные границы (vmsk/limits) ---------- */
.limits { max-width: 900px; border-left: 3px solid var(--c-ink-subtle); padding: 4px 0 4px 24px; }
* + .limits { margin-top: 48px; }
.limits .h2, .limits > h2 { font-size: 24px; line-height: 1.33; margin: 0 0 16px; }
.limits p + p, .limits p + ul, .limits ul + p { margin-top: 12px; }

/* ---------- FAQ: вопрос — h3 внутри summary без крупного стиля ---------- */
.faq__q { font-size: 16px; line-height: 1.5; font-weight: 400; letter-spacing: .16px; margin: 0; }
.prose .faq__q { font-size: 16px; margin: 0; }
.faq__item summary .i, .faq__chev { flex: none; margin-top: 2px; }
.faq__a > * + * { margin-top: 8px; }
.faq__a ul, .faq__a ol { padding-left: 22px; }

/* ---------- оглавление, дисклеймер, источники ---------- */
.toc a[aria-current="true"] { color: var(--c-ink); border-left-color: var(--c-primary); }
.disclaimer { max-width: 72ch; }
#istochniki { margin-top: 48px; }
.prose #istochniki .h2 { font-size: 28px; line-height: 1.29; margin: 0 0 16px; }
.sources .src { white-space: normal; }

/* ---------- факты: «частично подтверждено» — пунктир (класс выводится только вне production) ---------- */
.vmsk-fact--partial { border-bottom: 1px dashed var(--c-partial); cursor: help; }

/* ---------- чек-лист, карточка-призыв ---------- */
.checklist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cta-card { max-width: 480px; }

/* ---------- формы: статус отправки, ошибки, занятость ---------- */
.fstatus { margin: 12px 0 0; padding: 12px 16px; font-size: 14px; line-height: 1.43; background: var(--c-surface-1); border-left: 3px solid var(--c-primary); }
.fstatus.is-error { background: #fff1f1; border-left-color: var(--c-error); }
.fstatus a { font-weight: 600; }
.fcard__err { margin: 0 0 16px; padding: 12px 16px; background: #fff1f1; border-left: 3px solid var(--c-error); font-size: 14px; line-height: 1.43; }
.check.is-invalid input { outline: 2px solid var(--c-error); outline-offset: 1px; }
form[aria-busy="true"] [type="submit"] { opacity: .7; cursor: progress; }
.smart-captcha:empty { display: none; }
.calc-full { display: grid; gap: 24px; }
.calc-full > .fcard { max-width: 760px; }

/* ---------- шапка, мега-меню, подвал ---------- */
.mega__grid--1 { grid-template-columns: 1fr 360px; }
.mega__grid--3 { grid-template-columns: 1fr 1fr 1fr 360px; }
.mega__link[aria-current="page"] strong, .mmenu a[aria-current="page"] { color: var(--c-primary); }
.footer__link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; letter-spacing: .32px; color: var(--c-inverse-ink-muted); cursor: pointer; text-align: left; }
.footer__link:hover { color: #fff; text-decoration: underline; }

/* ---------- баннер файлов куки ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 3px solid var(--c-primary); box-shadow: 0 -8px 24px rgba(0, 0, 0, .16); padding: 16px 0; }
.consent__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.consent__text { max-width: 760px; }
.consent__title { font-weight: 600; margin-bottom: 4px; }
.consent__text .small { color: var(--c-ink-muted); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: none; }
.consent__actions .btn { justify-content: center; min-width: 140px; }
body.sheet-open .consent { display: none; }

@media (max-width: 1199px) {
  .consent { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .mbar--1 { grid-template-columns: 1fr; }
  .mega__grid--1, .mega__grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .consent__in { flex-direction: column; align-items: stretch; }
  .consent__actions .btn { min-width: 0; }
  table.facts, table.facts tbody, table.facts tr, table.facts th, table.facts td { display: block; width: auto; }
  table.facts th { border-bottom: 0; padding-bottom: 0; }
  .js .hero-sheet { display: none; }
  body.sheet-open .hero-sheet { background: #fff; display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 88vh; overflow-y: auto; box-shadow: 0 -8px 24px rgba(0, 0, 0, .25); padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); }
  .limits { padding-left: 16px; }
  .hero--contacts { padding-bottom: 48px; }
}

/* ---------- таблицы блока ядра: вид .table макета (убираем рамки ядра) ---------- */
.wp-block-table.table-wrap { margin: 0 0 16px; border: 1px solid var(--c-hairline); }
.wp-block-table table.table, .wp-block-table table.table th, .wp-block-table table.table td { border: 0; }
.wp-block-table table.table thead { border-bottom: 0; }
.wp-block-table table.table td { border-top: 1px solid var(--c-hairline); }
.wp-block-table table.table tbody tr:first-child td { border-top: 0; }
.wp-block-table table.table thead + tbody tr:first-child td { border-top: 1px solid var(--c-hairline); }
.wp-block-table figcaption { font-size: 12px; letter-spacing: .32px; color: var(--c-ink-muted); padding: 8px 16px; margin: 0; }

/* ---------- зона касания ссылок подвала ≥ 24 px (WCAG 2.5.8) ---------- */
.footer__co a { display: inline-block; min-height: 24px; line-height: 24px; }

/* ---------- таблица-стек блока ядра на телефоне: одна линия между строками, ячейки без отступов (как .table--stack макета) ---------- */
/* Специфичность равна правилам таблиц ядра выше — решает положение в конце файла. */
@media (max-width: 767px) {
  .wp-block-table table.table--stack td { border: 0; padding: 4px 0; }
  .wp-block-table table.table--stack td:first-child { padding-bottom: 8px; }
  .wp-block-table table.table--stack thead + tbody tr:first-child td { border-top: 0; }
}

/* ---------- две колонки, сложенные в одну на телефоне: заголовок и текст рядом (24 px), а не через 64–72 px ---------- */
/* После правил колонок ядра выше (та же специфичность) — поэтому в конце файла. */
@media (max-width: 767px) {
  .split, .section .wp-block-columns.split, .section .wp-block-columns.cols-2 { gap: 24px; }
  .split > .h2, .split > div > .h2:last-child, .split > div > .chips:last-child { margin-bottom: 0; }
  .wp-block-column > :where(h2, h3):first-child, .split > div > .facts:first-child { margin-top: 0; }
}

/* ================= движение (система движения Carbon; договор, §13 «Движение») ================= */
/* Токены — в :root. transition можно задавать без условия: при reduce их гасит правило выше (transition: none).
   animation, scroll-behavior, скрытые состояния и сдвиги без прямого действия посетителя (шапка при прокрутке) —
   только внутри @media screen and (prefers-reduced-motion: no-preference); сдвиги при наведении — только для мыши.
   Скрытые состояния — только под html.motion-ready + [data-reveal="wait"], их ставит assets/js/motion.js: без модуля,
   без main.css и при печати ничего не прячется. Анимируются transform и opacity (в SVG — stroke-dashoffset). */

/* ---------- переходы между страницами (кросс-фейд, шапка — отдельно); попадает в критический CSS ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: var(--motion-moderate-02); animation-timing-function: var(--ease-productive-standard); }
  .topbar { view-transition-name: topbar; }
}

/* critical:skip — до «critical:end» правила нужны только после загрузки main.css (наведение, раскрытие, появление), в критический CSS не идут */

/* ---------- плавная прокрутка к якорям внутри страницы: класс motion-smooth ставит motion.js после загрузки страницы
   (вход по ссылке с #якорем и восстановление позиции — сразу на место) ---------- */
@media screen and (prefers-reduced-motion: no-preference) { html.motion-smooth { scroll-behavior: smooth; } }

/* ---------- шапка после прокрутки компактнее (класс is-compact — motion.js): только transform, высота блока та же (CLS 0) ---------- */
.topbar { transition: transform var(--motion-moderate-02) var(--ease-productive-standard), border-color var(--motion-moderate-02) var(--ease-productive-standard); }
.topbar .logo, .nav__label, .topbar__actions { transition: transform var(--motion-moderate-02) var(--ease-productive-standard); }
.topbar .logo { transform-origin: 0 50%; }
.topbar.is-compact { border-bottom-color: var(--c-hairline-strong); }
@media screen and (min-width: 1200px) and (prefers-reduced-motion: no-preference) { /* при reduce — только линия снизу, без скачка */
  .topbar.is-compact { transform: translate3d(0, -8px, 0); }
  .topbar.is-compact .nav__label, .topbar.is-compact .topbar__actions { transform: translate3d(0, 4px, 0); }
  .topbar.is-compact .logo { transform: translate3d(0, 4px, 0) scale(.9); }
}

/* ---------- мега-меню и мобильное меню: открытие и закрытие (без @starting-style — мгновенно, как раньше) ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  .mega, .mmenu { transition: opacity var(--motion-moderate-01) var(--ease-productive-exit), transform var(--motion-moderate-01) var(--ease-productive-exit), display var(--motion-moderate-01) allow-discrete; }
  .mega:not([hidden]), .mmenu:not([hidden]) { transition-duration: var(--motion-moderate-02); transition-timing-function: var(--ease-productive-entrance); }
  .mega[hidden], .mmenu[hidden] { opacity: 0; transform: translate3d(0, -8px, 0); pointer-events: none; } /* гаснущая панель клики не принимает */
  @starting-style { .mega:not([hidden]), .mmenu:not([hidden]) { opacity: 0; transform: translate3d(0, -8px, 0); } }
  .nav:has(.mega:not([hidden])) .mega[hidden] { transition: none; } /* переключение между панелями — без наложения */
}

/* ---------- кнопки и строки-ссылки: смена фона fast-02, стрелка сдвигается на 4 px (только мышь: на сенсорных экранах :hover залипает) ---------- */
.btn > .i, .is-style-outline .wp-block-button__link::after, .tile__fact .i, .card__more .i, .links a .i, .svc .i, .forks .i, .mmenu__sit .i {
  transition: transform var(--motion-fast-02) var(--ease-productive-standard); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover > .i:last-child, .is-style-outline .wp-block-button__link:hover::after, a.tile:hover .tile__fact .i, a.card:hover .card__more .i,
  a.model:hover .card__more .i, .links a:hover .i, a.svc:hover .i, .forks a:hover .i, .mmenu__sit a:hover .i { transform: translate3d(4px, 0, 0); }
  .hero__mobile .btn:hover > .i, .btn[href^="tel:"]:hover > .i { transform: none; } /* значок перед текстом и телефон — на месте */
}
.wp-block-button__link, .nav__btn, .icon-btn, .mega__link, .forks a, .toc a, .tabs__list label, .qopt span, .chip, .drop, .faq__item summary, .links a, a.svc strong {
  transition: background-color var(--motion-fast-02) var(--ease-productive-standard), border-color var(--motion-fast-02) var(--ease-productive-standard), color var(--motion-fast-02) var(--ease-productive-standard); }

/* ---------- ссылки в тексте: подчёркивание плавно утолщается; в подвале — плавно проявляется ---------- */
main a:not([class]) { text-decoration-thickness: 1px; transition: color var(--motion-fast-02) var(--ease-productive-standard), text-decoration-thickness var(--motion-fast-02) var(--ease-productive-standard); }
main a:not([class]):hover { text-decoration-thickness: 2px; }
.footer a { text-decoration: underline transparent; text-underline-offset: 3px; transition: color var(--motion-fast-02) var(--ease-productive-standard), text-decoration-color var(--motion-fast-02) var(--ease-productive-standard); }
.footer a:hover { text-decoration-color: currentColor; }

/* ---------- карточки: подложка surface-1 и синяя линия сверху, вырастающая слева направо (наведение мышью и фокус) ---------- */
a.tile, a.model, a.card { transition: background-color var(--motion-fast-02) var(--ease-productive-standard); }
a.model, a.card { position: relative; }
a.tile::before, a.model::before, a.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--c-primary);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--motion-moderate-02) var(--ease-productive-standard); pointer-events: none; }
a.tile:focus-visible::before, a.model:focus-visible::before, a.card:focus-visible::before { transform: none; }
@media (hover: hover) and (pointer: fine) { a.tile:hover::before, a.model:hover::before, a.card:hover::before { transform: none; } }

/* ---------- поля: подложка при наведении, как в Carbon; рамка фокуса — мгновенная, прежняя ---------- */
.input { transition: background-color var(--motion-fast-02) var(--ease-productive-standard); }
.input:hover { background-color: var(--c-field-hover); }

/* ---------- FAQ и разделы мобильного меню: ответ раскрывается по высоте (только где есть interpolate-size; иначе — сразу).
   Открытие — moderate-02 / entrance, закрытие — moderate-01 / exit, как у меню; overflow-clip-margin — чтобы не срезать рамку фокуса ---------- */
@supports (interpolate-size: allow-keywords) {
  @media screen and (prefers-reduced-motion: no-preference) {
    .faq__item, .mmenu__acc { interpolate-size: allow-keywords; }
    .faq__item::details-content, .mmenu__acc::details-content { block-size: 0; overflow: clip; overflow-clip-margin: 4px;
      transition: block-size var(--motion-moderate-01) var(--ease-productive-exit), content-visibility var(--motion-moderate-01) allow-discrete; }
    .faq__item[open]::details-content, .mmenu__acc[open]::details-content { block-size: auto; transition-duration: var(--motion-moderate-02); transition-timing-function: var(--ease-productive-entrance); }
  }
}

/* ---------- появление при прокрутке: только блоки, целиком ниже первого экрана в момент запуска motion.js ---------- */
/* У плиток в общей сетке (.tiles — серые линии-зазоры) проявляется содержимое, а не сама клетка. Лесенка — --reveal-delay от motion.js. */
@media screen and (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal="wait"]:not(.path, .tiles > *), .motion-ready .tiles > [data-reveal="wait"] > * { opacity: 0; transform: translate3d(0, 16px, 0); }
  .motion-ready tr[data-reveal="wait"]:not(.path) { transform: translate3d(0, 8px, 0); }
  .motion-ready [data-reveal="in"]:not(.path, .tiles > *), .motion-ready .tiles > [data-reveal="in"] > * {
    transition: opacity var(--motion-slow-01) var(--ease-expressive-entrance) var(--reveal-delay, 0ms), transform var(--motion-slow-02) var(--ease-expressive-entrance) var(--reveal-delay, 0ms); }
  /* шкала шагов: линия прорисовывается слева направо (на телефоне — сверху вниз), шаги с точками — лесенкой по 60 мс.
     Линия — рамкой псевдоэлемента, а не фоном: в режиме высокой контрастности рамка остаётся видна */
  .motion-ready .path[data-reveal] { position: relative; border-top-color: transparent; }
  .motion-ready .path[data-reveal]::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; border-top: 2px solid var(--c-primary); transform-origin: 0 50%; }
  .motion-ready .path[data-reveal="wait"]::before { transform: scaleX(0); }
  .motion-ready .path[data-reveal="in"]::before { transition: transform var(--motion-slow-02) var(--ease-expressive-standard); }
  .motion-ready .path[data-reveal="wait"] > li { opacity: 0; transform: translate3d(0, 12px, 0); }
  .motion-ready .path[data-reveal="in"] > li { transition: opacity var(--motion-slow-01) var(--ease-expressive-entrance), transform var(--motion-slow-01) var(--ease-expressive-entrance); transition-delay: calc(var(--motion-fast-01) + var(--i, 0) * 60ms); }
  /* изображения ниже первого экрана — мягко после загрузки */
  .motion-ready img[data-img="wait"] { opacity: 0; }
  .motion-ready img[data-img="in"] { transition: opacity var(--motion-slow-01) var(--ease-expressive-entrance); }
}
@media screen and (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .path[data-reveal] { border-left-color: transparent; }
  .motion-ready .path[data-reveal]::before { top: 0; bottom: 0; left: -2px; right: auto; border-top: 0; border-left: 2px solid var(--c-primary); transform-origin: 50% 0; }
  .motion-ready .path[data-reveal="wait"]::before { transform: scaleY(0); }
}
@media print { [data-reveal], [data-reveal] > *, img[data-img] { opacity: 1 !important; transform: none !important; } }
/* critical:end */
