/* =====================================================================
   INSIGHT — дизайн-система сайта (по макету design/homepage/handoff).
   Один файл: токены -> база -> раскладка -> компоненты -> секции -> утилиты.
   Классы BEM-подобные: .block, .block__elem, .block--mod.
   Разметку генерирует tools/build_pages.py из src/templates/.
   ===================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  /* цвета (палитра сайта; спека главной, раздел 8) */
  --c-ink: #0f2529;          /* темный фон, заголовки */
  --c-accent: #0d9488;       /* акцент, кнопки */
  --c-accent-h: #0b7d73;     /* hover акцента, акцентный текст на светлом */
  --c-text: #334155;         /* основной текст */
  --c-muted: #64748b;        /* вторичный текст, метки */
  --c-subtle: #94a3b8;       /* приглушенный */
  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;       /* светлый фон секций */
  --c-line: #e2e8f0;         /* границы */
  --c-line-2: #cbd5e1;       /* внутренняя рамка «чертежа» */
  --c-line-3: #94a3b8;       /* внешняя рамка «чертежа» */
  --c-on-dark: #ffffff;
  --c-on-dark-2: #e2e8f0;
  --c-on-dark-3: #cbd5dd;
  --c-line-dark: rgba(226, 232, 240, .18);
  --c-line-dark-2: rgba(226, 232, 240, .28);
  --c-grid-light: rgba(15, 37, 41, .045);
  --c-grid-dark: rgba(226, 232, 240, .07);

  /* шрифты */
  --f-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* типографика */
  --fs-body: 16px;
  --fs-lead: clamp(16px, 1.5vw, 19px);
  --fs-lg: 17px;
  --fs-sm: 15px;
  --fs-xs: 13px;
  --fs-label: 12px;
  --fs-micro: 11px;
  --fs-h1: clamp(30px, 4.6vw, 58px);
  --fs-h2: clamp(24px, 3vw, 36px);
  --fs-h3: 20px;
  --fs-stat: clamp(30px, 3.6vw, 44px);
  --lh: 1.6;
  --ls-label: .16em;
  --ls-num: .14em;

  /* раскладка */
  --wrap: 1200px;
  --gutter: clamp(16px, 3vw, 40px);
  --sec-pad: clamp(52px, 7vw, 104px);
  --gap: clamp(20px, 3vw, 40px);
  --grid-size: 72px;
  --radius: 2px;             /* спека: border-radius 2px */
  --header-h: 68px;
  --ease: .15s ease;
}

/* китайская версия: CJK-шрифты в стеке, заголовкам — воздух между строками и без сжатия */
html[lang="zh"] { --f-sans: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Segoe UI', Roboto, Arial, sans-serif; }
html[lang="zh"] .hero__title, html[lang="zh"] .sec-title { line-height: 1.3; letter-spacing: 0; max-width: none; }
html[lang="zh"] .hero__lead { line-height: 1.75; }
html[lang="zh"] .prose { line-height: 1.8; }

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: 400 var(--fs-body)/var(--lh) var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--ease), border-color var(--ease), background-color var(--ease); }
a:hover { color: var(--c-accent-h); }
h1, h2, h3, h4 { margin: 0; color: var(--c-ink); text-wrap: pretty; overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 640px) { h3 { hyphens: auto; } }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- 3. Раскладка ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- 4. Кнопки, метки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1.25 var(--f-sans); padding: 15px 28px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn--sm { font-size: 15px; padding: 11px 20px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-h); color: #fff; }
.btn--secondary { border-color: var(--c-line-3); color: var(--c-ink); background: transparent; }
.btn--secondary:hover { border-color: var(--c-accent); color: var(--c-accent-h); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn.t-btn_sending { opacity: .7; cursor: progress; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }

.chip {
  display: inline-block; font: 500 12px/1.4 var(--f-mono); color: var(--c-accent-h);
  border: 1px solid var(--c-accent); border-radius: var(--radius); padding: 4px 10px;
}
.chip--dark { color: var(--c-subtle); border-color: rgba(226, 232, 240, .2); letter-spacing: .08em; padding: 7px 12px; }
.chip--dark:hover { color: #fff; border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

/* ---------- 5. Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-line); }
.site-header__bar { min-height: var(--header-h); display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { width: 132px; height: auto; }
.site-header__panel { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); flex: 1; min-width: 0; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); margin-right: auto; }
.nav__link {
  color: var(--c-ink); font: 500 15px/1.3 var(--f-sans); white-space: nowrap;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__link.is-current { color: var(--c-accent-h); }
.nav__toggle::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.nav__group { position: relative; }
.nav__sub {
  display: none; position: absolute; top: 100%; left: -18px; min-width: 230px; z-index: 5;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 8px 0; box-shadow: 0 10px 30px rgba(15, 37, 41, .08);
}
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub, .nav__group.is-open .nav__sub { display: block; }
.nav__sublink { display: block; padding: 9px 18px; color: var(--c-ink); font-size: 15px; font-weight: 500; }
.nav__sublink:hover, .nav__sublink[aria-current="page"] { color: var(--c-accent-h); background: var(--c-bg-alt); }
.lang { display: flex; align-items: center; gap: 8px; font: 400 13px/1 var(--f-mono); white-space: nowrap; }
.lang__item { color: var(--c-muted); padding: 6px 0; }
.lang__item:hover { color: var(--c-accent-h); }
.lang__item.is-current { color: var(--c-ink); font-weight: 500; }
.lang__sep { color: var(--c-line); }
.site-header__cta { flex-shrink: 0; }
.site-header__burger { display: none; }

@media (max-width: 1080px) {
  .site-header__bar { gap: 12px; }
  .site-header__logo { margin-right: auto; }
  .site-header__burger {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--c-ink);
  }
  .site-header__burger span, .site-header__burger span::before, .site-header__burger span::after {
    display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform var(--ease), background var(--ease);
  }
  .site-header__burger span::before, .site-header__burger span::after { content: ""; position: absolute; left: 0; }
  .site-header__burger span::before { top: -7px; }
  .site-header__burger span::after { top: 7px; }
  .site-header.is-open .site-header__burger span { background: transparent; }
  .site-header.is-open .site-header__burger span::before { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .site-header__burger span::after { transform: translateY(-7px) rotate(-45deg); }
  .site-header__panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 16px 30px rgba(15, 37, 41, .08);
    padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.is-open .site-header__panel { display: flex; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav__link { display: block; width: 100%; text-align: left; padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--c-line); }
  .nav__toggle::after { display: none; }
  .nav__sub { display: block; position: static; border: 0; box-shadow: none; padding: 4px 0 8px 14px; min-width: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav__sublink { padding: 8px 0; }
  .nav__sublink:hover { background: none; }
  .lang { padding-top: 16px; font-size: 14px; gap: 12px; }
}
@media (max-width: 420px) {
  .site-header__logo img { width: 112px; }
  .site-header__cta { font-size: 14px; padding: 10px 14px; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; background: var(--c-ink); color: var(--c-on-dark-2); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; pointer-events: none; }
.hero__grid, .section__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--grid-c) 1px, transparent 1px), linear-gradient(var(--grid-c) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.hero__grid { --grid-c: var(--c-grid-dark); }
.hero__body { position: relative; padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero--facts .hero__body { padding-bottom: clamp(48px, 7vw, 88px); }
.hero--page .hero__body { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero__eyebrow { font: 400 var(--fs-label)/1.5 var(--f-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: #fff; margin-bottom: clamp(18px, 2.5vw, 28px); }
.hero__title { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; color: #fff; max-width: 20ch; }
.hero--page .hero__title { font-size: clamp(30px, 4vw, 50px); }
.hero__lead { margin-top: clamp(20px, 3vw, 28px); font-size: var(--fs-lead); color: var(--c-on-dark-2); max-width: 62ch; }
.hero__lead p + p { margin-top: 12px; }
.hero__lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero .actions { margin-top: clamp(28px, 4vw, 44px); }
.hero__band { position: relative; border-top: 1px solid var(--c-line-dark); }
.hero__facts-clip { overflow: hidden; }
.hero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0 0 0 calc(-1px - clamp(16px, 2vw, 28px)); }
.hero__fact { padding: 22px clamp(16px, 2vw, 28px) 24px; border-left: 1px solid var(--c-line-dark); margin: 0; }
.hero__fact dt { font: 400 var(--fs-micro)/1.4 var(--f-mono); letter-spacing: var(--ls-num); text-transform: uppercase; color: var(--c-subtle); margin-bottom: 8px; }
.hero__fact dd { margin: 0; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.35; }
.hero__note { padding: 0 0 20px; }
.hero__body .hero__note { padding: 24px 0 0; }
.hero__note .note { margin: 0; font-size: var(--fs-label); color: var(--c-subtle); border: 0; padding: 0; }

.hero__back { margin-bottom: clamp(12px, 1.6vw, 18px); }
.hero__back a { font: 400 var(--fs-label)/1.5 var(--f-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-on-dark-3); }
.hero__back a::before { content: "\2190\00a0"; }
.hero__back a:hover { color: #fff; }

/* ---------- 7. Секции ---------- */
.section { position: relative; border-bottom: 1px solid var(--c-line); }
.section--white { background: var(--c-bg); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-ink); color: var(--c-on-dark-3); border-bottom: 0; overflow: hidden; }
.section--grid .section__grid { --grid-c: var(--c-grid-light); }
.section--dark .section__grid { --grid-c: rgba(226, 232, 240, .06); }
.section--dark.section--t-dark-steps::before, .section--dark.section--t-steps::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(226, 232, 240, .06) 1px, transparent 1px), linear-gradient(rgba(226, 232, 240, .06) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.section__inner { position: relative; padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.section--sub .section__inner { padding-top: 0; }
.section--sub { margin-top: -1px; }

.sec-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(20px, 2.5vw, 28px); }
.sec-label__num { font: 400 var(--fs-label)/1.4 var(--f-mono); letter-spacing: var(--ls-num); color: var(--c-muted); }
.sec-label__text { font: 500 var(--fs-label)/1.4 var(--f-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-ink); }
.sec-label__rule { flex: 1; height: 1px; background: var(--c-line); align-self: center; }
.section--dark .sec-label__num { color: var(--c-subtle); }
.section--dark .sec-label__text { color: #fff; }
.section--dark .sec-label__rule { background: rgba(226, 232, 240, .2); }

.sec-title { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--c-ink); max-width: 24ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section--sub .sec-title { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: clamp(20px, 2.5vw, 28px); }
.section--dark .sec-title { color: #fff; }
.sec-lead { max-width: 72ch; margin: calc(-1 * clamp(8px, 2vw, 24px)) 0 clamp(28px, 4vw, 44px); font-size: var(--fs-lg); }
.sec-after { margin-top: clamp(24px, 3vw, 36px); max-width: 84ch; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 4vw, 64px); margin-bottom: clamp(32px, 4.5vw, 56px); }
.split .sec-title { max-width: 18ch; margin: 0; }

/* ---------- 8. Текстовый поток (prose) ---------- */
.prose { font-size: var(--fs-body); }
.prose--lg { font-size: var(--fs-lg); }
.prose--measure { max-width: 72ch; }
.prose > * + * { margin-top: 14px; }
.prose > .sub-title { margin-top: 32px; }
.prose > .sub-title + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 22px; }
.prose ul > li + li, .prose ol > li + li { margin-top: 8px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 1px solid var(--c-accent); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; padding-left: 30px; }
.prose ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .2em; font: 400 12px/1.5 var(--f-mono); color: var(--c-muted); }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--c-accent-h); text-decoration: underline; text-decoration-color: rgba(13, 148, 136, .35); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose code { font: 500 .88em var(--f-mono); color: var(--c-accent-h); }
.prose .actions { margin-top: clamp(24px, 3vw, 32px); }
.sub-title { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; color: var(--c-ink); }
.more-link a { font: 500 12px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; color: var(--c-accent-h) !important; }
.fig img { border: 1px solid var(--c-line); border-radius: var(--radius); }
.fig figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--c-muted); }
.note { font: 400 var(--fs-xs)/1.7 var(--f-mono); color: var(--c-muted); border-left: 1px solid var(--c-line-3); padding-left: 14px; }
.note p + p { margin-top: 8px; }
.note strong { color: var(--c-ink); font-weight: 500; }
.section--dark .prose, .section--dark .note { color: var(--c-on-dark-3); }
.section--dark .prose strong, .section--dark .note strong { color: #fff; }
.section--dark .note { border: 0; padding: 0; max-width: 84ch; }
.section--dark .prose a:not(.btn), .section--dark .note a { color: #fff; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }

/* документ (text variant=doc), жирные строки-заголовки */
.prose--doc { max-width: 78ch; font-size: var(--fs-sm); }
.prose--doc > * + * { margin-top: 10px; }
.prose--doc > .p-strong { margin-top: 30px; font-size: 17px; color: var(--c-ink); }
.prose--doc > .p-strong:first-child { margin-top: 0; }
.prose--doc > .p-strong + * { margin-top: 12px; }
.prose--doc > p > em:only-child { font-style: normal; font: 500 var(--fs-xs)/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.prose--doc > .more-link { margin-top: 32px; }

/* списки-перечни (type=list) */
.checklist { display: grid; gap: 0 !important; border-top: 1px solid var(--c-line); }
.checklist--c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); column-gap: clamp(20px, 3vw, 48px); border-top: 0; }
.checklist--c2 > li { border-top: 1px solid var(--c-line); }
.prose .checklist > li { margin: 0 !important; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--c-line); }
.prose .checklist > li::before { top: calc(16px + .62em); left: 4px; background: var(--c-accent); border-color: var(--c-accent); width: 6px; height: 6px; }
.prose .checklist--c2 > li { border-bottom: 0; }
.checklist--c2 { border-bottom: 1px solid var(--c-line); }

/* ---------- 9. Чертежная рамка ---------- */
.frame { border: 1px solid var(--c-line-3); border-radius: var(--radius); background: #fff; padding: 8px; }
.frame__inner { border: 1px solid var(--c-line-2); }
.frame__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--c-line-2); font: 400 var(--fs-micro)/1.4 var(--f-mono); letter-spacing: var(--ls-num); text-transform: uppercase;
}
.frame__name { color: var(--c-ink); font-weight: 500; }
.frame__sheet { color: var(--c-muted); white-space: nowrap; }
.frame--dark { background: transparent; border-color: rgba(226, 232, 240, .32); }
.frame--dark .frame__inner, .frame--dark .frame__head { border-color: rgba(226, 232, 240, .24); }
.frame--dark .frame__name { color: #fff; }
.frame--dark .frame__sheet { color: var(--c-subtle); }

/* сетка ячеек с внутренними линиями: лишние правые/нижние линии срезает .grid-clip */
.grid-clip { overflow: hidden; }
.frame-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin: 0 -1px -1px 0; }
.frame-card { padding: clamp(22px, 2.4vw, 28px); border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.frame-card__code { display: flex; justify-content: flex-end; font: 500 var(--fs-label)/1.4 var(--f-mono); color: var(--c-accent-h); margin-bottom: 14px; }
.frame-card__title { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; margin-bottom: 10px; }
.frame-card__text { font-size: var(--fs-sm); }
@media (max-width: 820px) { .frame-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 10. Этапы ---------- */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.steps--framed { border-top: 0; }
.step {
  display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 3vw, 40px); align-items: baseline;
  padding: clamp(16px, 2vw, 22px) 0; border-bottom: 1px solid var(--c-line);
}
.steps--framed .step { padding-left: clamp(16px, 2.2vw, 26px); padding-right: clamp(16px, 2.2vw, 26px); }
.steps--framed .step:last-child { border-bottom: 0; }
.step__head { flex: 0 1 300px; display: flex; align-items: baseline; gap: 16px; }
.step__num { font: 500 var(--fs-xs)/1 var(--f-mono); color: var(--c-muted); min-width: 2ch; }
.step__title { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--c-ink); }
.step__text { flex: 1 1 360px; font-size: var(--fs-sm); }
.section--dark .step { border-color: rgba(226, 232, 240, .14); }
.section--dark .step__num { color: var(--c-subtle); }
.section--dark .step__title { color: #fff; }
.section--dark .step__text { color: var(--c-on-dark-3); }

/* ---------- 11. Показатели ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 3vw, 44px); }
.stat__bracket { height: 10px; border: 1px solid var(--c-line-3); border-bottom: 0; margin-bottom: 16px; }
.stat__value { font: 500 var(--fs-stat)/1 var(--f-mono); color: var(--c-accent); letter-spacing: -.02em; }
.stat__caption { margin: 12px 0 10px; font-size: 18px; font-weight: 700; color: var(--c-ink); }
.stat__text { font-size: var(--fs-sm); }

/* ---------- 12. Акцентная плашка ---------- */
.accent { background: #fff; border: 1px solid var(--c-accent); border-radius: var(--radius); padding: clamp(20px, 2.8vw, 32px); }
.section--t-accent .sec-title { margin-bottom: clamp(20px, 2.5vw, 28px); }

/* ---------- 13. Логотипы ---------- */
.logos { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.logos__cell { display: flex; align-items: center; justify-content: center; padding: 28px 20px; min-height: 128px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: #fff; }
.logos__cell img { max-width: 140px; max-height: 72px; width: auto; filter: grayscale(1); opacity: .75; transition: opacity var(--ease); }
.logos__cell:hover img { opacity: 1; }
.section--t-logos .sec-label { margin-bottom: clamp(28px, 4vw, 44px); }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos__cell { min-height: 104px; padding: 20px 14px; } }

/* ---------- 14. Карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 1000px) { .cards:not(.cards--c1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards:not(.cards--c1) { grid-template-columns: minmax(0, 1fr); } }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: clamp(22px, 2.4vw, 28px); color: var(--c-text);
}
a.card:hover { border-color: var(--c-accent); color: var(--c-text); }
.section--white .card { background: #fff; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--c-line); margin-bottom: 18px; min-height: 30px; }
.card__head--bare { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; min-height: 0; justify-content: flex-end; }
.card__head--bare .card__code { color: var(--c-accent-h); font-weight: 500; font-size: var(--fs-label); }
.card__kicker { font: 400 var(--fs-micro)/1.4 var(--f-mono); letter-spacing: var(--ls-num); text-transform: uppercase; color: var(--c-accent-h); }
.card__kicker--plain { color: var(--c-muted); }
.card__code { font: 400 var(--fs-micro)/1.4 var(--f-mono); color: var(--c-muted); }
.card__img { margin-bottom: 18px; border-radius: var(--radius); }
.card__img--icon { width: 48px; height: 48px; object-fit: contain; }
.card__title { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; margin-bottom: 10px; }
.card__text { font-size: var(--fs-sm); }
.badge { align-self: flex-start; margin: 0 0 14px; font: 500 var(--fs-micro)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid; border-radius: var(--radius); padding: 3px 9px; }
.badge--accent { color: #fff; background: var(--c-accent); border-color: var(--c-accent); }
.badge--muted { color: var(--c-muted); background: transparent; border-color: var(--c-line-3); }
.card__text { flex: 1; display: flex; flex-direction: column; }
.card__text .p-strong { font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--c-ink); }
.card__text .p-strong strong { font-weight: 700; }
.card__text > .actions { margin-top: auto; padding-top: 22px; }
.card__more { margin-top: auto; padding-top: 20px; font: 500 var(--fs-label)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-h); }

/* колонки подразделов (type=text с ###) */
.subgrid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(24px, 3vw, 36px); }
.subgrid__item { border-top: 1px solid var(--c-line-3); padding-top: 18px; }
.subgrid__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.section--dark .subgrid__title { color: #fff; }
.section--dark .subgrid__item { border-color: rgba(226, 232, 240, .28); }
@media (max-width: 760px) { .subgrid { grid-template-columns: minmax(0, 1fr); } }

/* текст + картинка */
.media { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.media__fig { margin: 0; }
.media--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.media--photo .media__fig img { width: 100%; max-width: 420px; object-fit: cover; object-position: center top; border: 1px solid var(--c-line); }
.media__fig img { border-radius: var(--radius); margin-left: auto; }
@media (max-width: 820px) { .media, .media--photo { grid-template-columns: minmax(0, 1fr); } .media__fig img { margin: 0; max-height: 320px; width: auto; } .media--photo .media__fig img { max-height: none; width: 100%; max-width: 360px; } }
.media--photo .subgrid { margin-top: 0; }

/* ---------- 15. Таблицы ---------- */
.prose--tables { max-width: 980px; }
.prose--tables > .tbl + * , .prose--tables > * + .tbl { margin-top: 24px; }
.tbl { border: 1px solid var(--c-line-3); border-radius: var(--radius); padding: 6px; background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; border: 1px solid var(--c-line-2); font-size: var(--fs-sm); }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.tbl thead th { font: 500 var(--fs-micro)/1.45 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line-2); }
.tbl tbody th { font-weight: 500; color: var(--c-ink); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl__cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }  /* на телефоне — заголовок первого столбца */
.tbl tbody .num { font: 500 15px/1.45 var(--f-mono); color: var(--c-ink); }
.tbl th + th, .tbl td, .tbl tbody th + td { border-left: 1px solid var(--c-line); }
@media (max-width: 680px) {
  .tbl { padding: 0; border: 0; background: none; }
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl table { border: 0; }
  .tbl__cap { position: static; width: auto; height: auto; clip: auto; display: block; text-align: left; font: 500 var(--fs-micro)/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); padding: 0 0 10px; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tbody tr { border: 1px solid var(--c-line-2); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
  .tbl tbody th { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line-2); }
  .tbl tbody td { display: flex; justify-content: space-between; gap: 16px; border-left: 0 !important; text-align: right; }
  .tbl tbody td::before { content: attr(data-label); font: 400 var(--fs-micro)/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); text-align: left; }
  .tbl tbody tr > *:last-child { border-bottom: 0; }
}

/* ---------- 16. FAQ ---------- */
.faq { border-top: 1px solid var(--c-line); max-width: 920px; }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q { display: flex; align-items: baseline; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; color: var(--c-ink); font-weight: 600; font-size: 18px; line-height: 1.35; }
.faq__q::-webkit-details-marker { display: none; }
.faq__num { font: 400 var(--fs-label)/1 var(--f-mono); color: var(--c-muted); flex-shrink: 0; min-width: 3ch; }
.faq__text { flex: 1; }
.faq__icon { position: relative; flex-shrink: 0; width: 14px; height: 14px; align-self: center; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--c-accent); transition: transform var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__q:hover { color: var(--c-accent-h); }
.faq__a { padding: 0 30px 24px calc(3ch + 16px); max-width: 80ch; }
@media (max-width: 640px) { .faq__a { padding-left: 0; padding-right: 0; } .faq__q { font-size: 17px; } }

/* ---------- 17. Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery--one { grid-template-columns: minmax(0, 300px) !important; }
.gallery__item { margin: 0; }
.gallery__link { display: block; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; padding: 8px; }
.gallery__link:hover { border-color: var(--c-accent); }
.gallery__link img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; }
.gallery__cap { margin-top: 10px; font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.5; }

/* ---------- 18. CTA, цитата, факты, контакты ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; border: 1px solid var(--c-line-3); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); background: #fff; }
.cta__text { flex: 1 1 480px; }
.cta .sec-title { margin-bottom: 14px; }
.cta .actions { margin-top: 0; }
.section--dark .cta { background: transparent; border-color: rgba(226, 232, 240, .32); }

.quote { margin: 0; display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.quote__photo { width: 100%; object-fit: cover; object-position: center top; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-bg-alt); }
.quote__text { margin: 0; padding-left: clamp(16px, 2vw, 28px); border-left: 2px solid var(--c-accent); color: var(--c-ink); font-size: clamp(17px, 1.6vw, 20px); }
.quote__who { margin-top: 24px; display: grid; gap: 4px; }
.quote__name { font-weight: 700; color: var(--c-ink); font-size: 18px; }
.quote__role { font-size: var(--fs-sm); color: var(--c-muted); }
@media (min-width: 721px) { .quote--plain { grid-template-columns: minmax(0, 1fr); max-width: 900px; } }
@media (max-width: 720px) { .quote { grid-template-columns: minmax(0, 1fr); } .quote__photo { max-width: 220px; } }

.facts { margin: 0; border-top: 1px solid var(--c-line); }
.facts__row { display: grid; grid-template-columns: minmax(120px, 240px) minmax(0, 1fr); gap: 8px clamp(16px, 3vw, 40px); padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.facts__key { font: 400 var(--fs-micro)/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); padding-top: 3px; }
.facts__val { margin: 0; color: var(--c-ink); }
@media (max-width: 640px) { .facts__row { grid-template-columns: minmax(0, 1fr); } }

.contact { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid var(--c-line); }
.contact__item { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.contact__key { font: 400 var(--fs-micro)/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.contact__val { margin: 0; font-size: 18px; font-weight: 600; color: var(--c-ink); line-height: 1.4; }
.contact__val a { color: var(--c-ink); text-decoration: none; }
.contact__val a:hover { color: var(--c-accent-h); }

/* ---------- 19. Форма заявки ---------- */
.order { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.order .sec-title { max-width: 20ch; margin-bottom: clamp(18px, 2.4vw, 24px); }
.order__lead { font-size: 18px; max-width: 44ch; }
.order__lead > * + * { margin-top: 4px; }
.order__steps { list-style: none; margin: 24px 0 0; max-width: 52ch; border-top: 1px solid var(--c-line); }
.order__steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-body); }
.order__n { font: 400 var(--fs-label)/1 var(--f-mono); color: var(--c-muted); padding-top: 5px; }
.order__contacts { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.order__contacts a { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.01em; color: var(--c-ink); }
.order__contacts a:hover { color: var(--c-accent-h); }

.form-card { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); }
.form-card__title { font: 400 var(--fs-micro)/1.4 var(--f-mono); letter-spacing: var(--ls-num); text-transform: uppercase; color: var(--c-text); padding-bottom: 14px; border-bottom: 1px dashed var(--c-line); margin-bottom: 18px; }
.form-card__body { display: grid; gap: 12px; }
.field { display: block; }
.field__input {
  width: 100%; font: 400 16px/1.4 var(--f-sans); color: var(--c-text); background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: 13px 14px; transition: border-color var(--ease);
}
.field__input::placeholder { color: var(--c-muted); opacity: 1; }
.field__input:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.field__input--area { resize: vertical; min-height: 96px; }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); margin-top: -6px; line-height: 1.5; }
.field__hint .note { font: inherit; color: inherit; border: 0; padding: 0; }
.form-card__consent { font-size: var(--fs-xs); color: var(--c-text); line-height: 1.55; }
.form-card__consent a { color: var(--c-accent-h); }
.form-card__error { border: 1px solid #f1b5b5; background: #fff5f5; color: #9b1c1c; border-radius: var(--radius); padding: 10px 14px; font-size: 14px; }
.form-card__success { display: grid; gap: 12px; justify-items: start; padding: 12px 0; }
.form-card__success-title { font-size: 20px; font-weight: 700; color: var(--c-ink); }
.form-card .cf-turnstile { max-width: 100%; overflow: hidden; }

/* виджет загрузки файлов (разметку строит /js/insight-forms.js, классы — как у t-upwidget Тильды) */
.form-card__upload { position: relative; }
.t-upwidget-container__button {
  display: flex; align-items: center; gap: 14px; width: 100%; cursor: pointer;
  border: 1px dashed var(--c-line-3); border-radius: var(--radius); padding: 14px;
  font: 500 var(--fs-label)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-h);
  background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-upwidget-container__button::before {
  content: ""; flex-shrink: 0; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
}
.t-upwidget-container__button:hover { border-color: var(--c-accent); }
.t-upwidget-container__button_fileholder { color: var(--c-ink); }
.t-upwidget-container__button_error { color: #b42318; border-color: #f1b5b5; white-space: normal; text-transform: none; letter-spacing: 0; font-family: var(--f-sans); }
.t-upwidget-container__data { display: none; margin-top: 8px; }
.t-upwidget-container__data_table { width: 100%; border-collapse: collapse; font-size: 14px; border-bottom: 1px solid var(--c-line); }
.t-upwidget-container__data_table td { padding: 8px 6px; vertical-align: middle; }
.t-upwidget-container__data_table_image { width: 36px; }
.t-upwidget-container__data_table_image svg polygon, .t-upwidget-container__data_table_image svg polyline { stroke: var(--c-muted) !important; }
.t-upwidget-container__data_filename { color: var(--c-ink); word-break: break-all; }
.t-upwidget-container__data_filesize { font: 400 12px/1.4 var(--f-mono); color: var(--c-muted); }
.t-upwidget-container__data_table_actions_remove { width: 28px; text-align: right; }
.t-upwidget-container__data_progress { height: 3px; background: var(--c-line); }
.t-upwidget-container__data_progress_back { height: 3px; width: 0; background: var(--c-accent); transition: width .2s; }
.t-upwidget-container__button-indiv {
  display: inline-block; margin-top: 8px; cursor: pointer; font: 500 var(--fs-label)/1.4 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-h); padding: 6px 0;
}

/* ---------- 20. Подвал ---------- */
.site-footer { background: var(--c-ink); color: var(--c-on-dark-3); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(28px, 3.5vw, 48px); padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(28px, 3vw, 40px); }
.site-footer__brand img { width: 132px; margin-bottom: 20px; }
.site-footer__blurb { font-size: 14px; color: var(--c-subtle); max-width: 34ch; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer__title { font: 500 var(--fs-micro)/1.4 var(--f-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer__list { list-style: none; display: grid; gap: 10px; }
.site-footer__list a { font-size: var(--fs-sm); color: var(--c-on-dark-3); }
.site-footer__list a:hover { color: #fff; }
.site-footer__list span { font-size: var(--fs-sm); color: var(--c-subtle); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(226, 232, 240, .12); font-size: var(--fs-xs); color: var(--c-subtle); }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-footer__legal a { color: var(--c-on-dark-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(203, 213, 221, .4); }
.site-footer__legal a:hover { color: #fff; }

/* ---------- 21. Доступность и печать ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .hero__bg, .hero__grid, .section__grid, .form-card, .site-footer__social { display: none !important; }
  .hero, .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
  .hero__title, .section--dark .sec-title, .section--dark .step__title { color: #000 !important; }
}
