/* === fonts.css === */
/* Сгенерировано tools/self-host-fonts.js — не править вручную */

/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin.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;
}

/* cyrillic */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/geologica-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/geologica-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/geologica-latin.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;
}

/* === tokens.css === */
/* ПРОФГРУП — токены дизайн-системы.
   Цвет бренда взят из логотипа (#0054A4 + сталь #939598), а не «синий по умолчанию» #2563EB старого сайта:
   так сайт и логотип одного цвета, а синий остаётся узнаваемым. */
:root {
  /* Бренд */
  --c-brand: #0054A4;          /* кнопки, ссылки, акценты — 7,5:1 на белом */
  --c-brand-hover: #00447F;
  --c-brand-active: #003566;
  --c-brand-soft: #E6EEF8;     /* фон бейджей, выделенных строк */
  --c-brand-tint: #F2F6FB;     /* светлый фон секций */
  --c-brand-on-dark: #8CC4FF;  /* ссылки и акценты на тёмном фоне — 9:1 на --c-ink */
  --c-steel: #939598;          /* сталь из логотипа — только декор, не для текста */

  /* Тёмный: шапка-полоса, тёмные секции, подвал */
  --c-ink: #0B1B33;
  --c-ink-2: #13284A;
  --c-ink-line: #24395C;

  /* Текст */
  --c-text: #0F1B2D;           /* 17:1 на белом */
  --c-text-muted: #556070;     /* 6,4:1 на белом */
  --c-text-on-dark: #FFFFFF;
  --c-text-on-dark-muted: #A9B6C8; /* 8,4:1 на --c-ink */

  /* Фоны и линии */
  --c-bg: #FFFFFF;
  --c-bg-alt: #F3F6FA;
  --c-line: #D9E1EB;           /* разделители, рамки карточек */
  --c-line-strong: #7A8799;    /* рамки полей — 3,6:1 на белом (WCAG 1.4.11) */
  --c-grid: #E3EAF3;           /* «чертёжная» сетка фона */

  /* Состояния */
  --c-success: #15803D;
  --c-success-soft: #E8F5EC;
  --c-error: #B42318;
  --c-error-soft: #FDECEA;
  --c-rating: #C77700;         /* звёзды — 3,5:1 на белом */
  --c-signal: #F5B83D;         /* сигнальный (срочно, аварийный) — только на тёмном фоне */
  --c-focus: #0054A4;

  /* Шрифты */
  --f-head: 'Geologica', 'Manrope', system-ui, sans-serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Шкала размеров: телефон → 1440 px */
  --fs-display: clamp(2rem, 1.35rem + 2.8vw, 3.5rem);    /* 32 → 56, H1 первого экрана */
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);      /* 26 → 40 */
  --fs-h3: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);    /* 19 → 22 */
  --fs-h4: 1.0625rem;                                    /* 17 */
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);   /* 17 → 19 */
  --fs-body: 1rem;                                       /* 16 */
  --fs-small: .875rem;                                   /* 14 */
  --fs-caption: .8125rem;                                /* 13, надзаголовки */
  --fs-stat: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);    /* цифры */

  --lh-tight: 1.12;
  --lh-head: 1.2;
  --lh-text: 1.6;

  /* Отступы: шаг 4 px */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(56px, 4rem + 4vw, 112px);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 1rem + .6vw, 24px);

  /* Формы */
  --r-sm: 6px;   /* кнопки, поля */
  --r-md: 10px;  /* карточки */
  --r-lg: 16px;  /* крупные панели, форма первого экрана */
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(11, 27, 51, .06);
  --sh-2: 0 1px 2px rgba(11, 27, 51, .05), 0 10px 28px -12px rgba(11, 27, 51, .18);
  --sh-3: 0 2px 4px rgba(11, 27, 51, .06), 0 24px 48px -20px rgba(11, 27, 51, .28);

  --control-h: 52px;     /* высота кнопок и полей */
  --control-h-sm: 40px;
  --tap: 44px;           /* минимальная зона нажатия на телефоне */
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .15s;
  --t: .25s;
}

/* === base.css === */
/* ПРОФГРУП — база и компоненты. Подключать после fonts.css и tokens.css. */

/* ---------- Сброс и основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* своя реакция на нажатие — ниже */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);   /* якоря и фокус не под липкой шапкой */
  scroll-padding-bottom: 88px;                         /* и не под нижней панелью на телефоне */
}
body {
  margin: 0;
  font: 500 var(--fs-body)/var(--lh-text) var(--f-text);
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: 'pnum' 1, 'lnum' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;   /* слово шире колонки (крупный текст, WCAG 1.4.4) переносится, а не наезжает на соседнюю */
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4 {
  margin: 0 0 .5em;
  font-family: var(--f-head);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: -.02em;
  color: var(--c-text);
  text-wrap: balance;        /* ровные строки заголовков, без висящих слов */
  hyphens: manual;           /* никаких автопереносов внутри слов */
  overflow-wrap: break-word; /* только если слово не влезает в строку целиком — иначе оно наедет на соседнюю колонку */
}
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -.03em; }
h1, .h1 { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -.03em; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; }
.accent { color: var(--c-brand); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-text-muted); text-wrap: pretty; }
.small { font-size: var(--fs-small); }
.muted { color: var(--c-text-muted); }
.overline {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font: 700 var(--fs-caption)/1.3 var(--f-text);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-brand);
}
.overline::before { content: ''; width: 20px; height: 2px; background: currentColor; }
.num { font-family: var(--f-head); font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }

a { color: var(--c-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--c-brand-hover); text-decoration-thickness: 2px; }

/* ---------- Фокус и нажатие ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark { --c-focus: var(--c-brand-on-dark); }
@media (hover: none) {
  a:active, .tap:active { opacity: .7; }
}

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--ink { background: var(--c-ink); color: var(--c-text-on-dark); }
.section--ink :is(h1, h2, h3, h4) { color: var(--c-text-on-dark); }
.section--ink .lead, .section--ink .muted { color: var(--c-text-on-dark-muted); }
.section--ink .overline { color: var(--c-brand-on-dark); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: clamp(28px, 2rem + 1vw, 48px); }
.section__head > :first-child { max-width: 760px; }
.section__head h2 { margin: 0; }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26.25rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.75rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.stack > * + * { margin-top: var(--s-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* «Чертёжная» сетка — фирменный фон первого экрана (была на старом сайте, сделана тоньше) */
.blueprint {
  background-color: var(--c-brand-tint);
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

/* ---------- Иконки ---------- */
.i { width: 24px; height: 24px; flex: none; }
.i--sm { width: 18px; height: 18px; }
.i--lg { width: 32px; height: 32px; }
.icon-box {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--c-brand-soft); color: var(--c-brand);
}
.section--ink .icon-box, .on-dark .icon-box { background: var(--c-ink-2); color: var(--c-brand-on-dark); }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--c-brand); --btn-fg: #fff; --btn-bd: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--control-h); padding: 0 var(--s-5);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1.2 var(--f-text); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; text-align: center;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.btn:hover, .btn.is-hover { --btn-bg: var(--c-brand-hover); --btn-bd: var(--c-brand-hover); color: var(--btn-fg); text-decoration: none; }
.btn:active, .btn.is-active { --btn-bg: var(--c-brand-active); --btn-bd: var(--c-brand-active); transform: scale(.97); }
.btn.is-focus { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.btn .i { width: 20px; height: 20px; }

.btn--secondary { --btn-bg: transparent; --btn-fg: var(--c-brand); --btn-bd: var(--c-brand); }
.btn--secondary:hover, .btn--secondary.is-hover { --btn-bg: var(--c-brand-soft); --btn-fg: var(--c-brand-hover); --btn-bd: var(--c-brand-hover); }
.btn--secondary:active, .btn--secondary.is-active { --btn-bg: #D5E2F2; --btn-fg: var(--c-brand-active); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--c-brand); --btn-bd: #fff; }
.btn--light:hover, .btn--light.is-hover { --btn-bg: var(--c-brand-soft); --btn-fg: var(--c-brand-hover); --btn-bd: var(--c-brand-soft); }
.btn--light:active, .btn--light.is-active { --btn-bg: #D5E2F2; --btn-bd: #D5E2F2; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .55); }
.btn--outline-light:hover, .btn--outline-light.is-hover { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: #fff; }

.btn--sm { min-height: var(--control-h-sm); padding: 0 var(--s-4); font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--icon { width: var(--control-h); padding: 0; }
.btn--icon.btn--sm { width: var(--control-h-sm); }

.btn:disabled, .btn[aria-disabled='true'] { --btn-bg: #E4E9F0; --btn-fg: #5F6B7B; --btn-bd: #E4E9F0; cursor: not-allowed; transform: none; }
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--btn-fg); border-right-color: transparent; color: var(--btn-fg);
  animation: spin .8s linear infinite;
}
.btn--primary.is-loading::after, .btn.is-loading:not(.btn--secondary):not(.btn--light)::after { border-color: #fff; border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Текстовая ссылка-действие: «Все услуги →» */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap);
  font-weight: 700; color: var(--c-brand); text-decoration: none;
}
.link-arrow .i { width: 20px; height: 20px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: .25em; }
.link-arrow:hover .i { transform: translateX(3px); }

/* Мессенджеры: значок + подпись (подпись можно скрыть визуально, но не для чтения с экрана) */
.msgr { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.msgr__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-3);
  border: 1.5px solid var(--c-line); border-radius: var(--r-sm); background: #fff;
  color: var(--c-text); font-weight: 700; font-size: var(--fs-small); text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.msgr__btn:hover { border-color: var(--c-brand); color: var(--c-brand); text-decoration: none; }
.msgr__btn:active { transform: scale(.97); }
.msgr__btn--tg .i { color: #1C83C8; }
.msgr__btn--wa .i { color: #168A47; }
/* MAX: фирменный знак с max.ru («пузырь-кольцо»), залит фирменным градиентом через маску */
.i-max {
  display: inline-block;
  background: linear-gradient(45deg, #19BAFF 0%, #2D2DFF 55%, #8315FF 100%);
  -webkit-mask: url("img/max-mark.svg") center / 90% no-repeat;
  mask: url("img/max-mark.svg") center / 90% no-repeat;
}
.on-dark .i-max, .section--brand .i-max { background: #fff; }
.on-dark .msgr__btn, .section--ink .msgr__btn { background: transparent; border-color: var(--c-ink-line); color: #fff; }
.on-dark .msgr__btn:hover, .section--ink .msgr__btn:hover { border-color: var(--c-brand-on-dark); color: #fff; }
.on-dark .msgr__btn--tg .i, .on-dark .msgr__btn--wa .i { color: #fff; }

/* ---------- Бейджи и метки ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 32px; padding: 4px 12px;
  border-radius: var(--r-pill); background: var(--c-brand-soft); color: var(--c-brand-active);
  font-size: var(--fs-small); font-weight: 600; line-height: 1.3;
}
.chip .i { width: 16px; height: 16px; }
.chip--outline { background: #fff; border: 1px solid var(--c-line); color: var(--c-text); }
.chip--signal { background: var(--c-signal); color: var(--c-ink); }
.chip--dark { background: var(--c-ink-2); color: #fff; }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }

/* ---------- Поля формы ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-small); font-weight: 700; color: var(--c-text); }
.field__label .req { color: var(--c-error); }
.field__hint { font-size: var(--fs-small); color: var(--c-text-muted); }
.field__error { display: none; align-items: start; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--c-error); }
.field__error .i { width: 18px; height: 18px; margin-top: 1px; }
.field.is-error .field__error { display: flex; }

.input {
  width: 100%; min-height: var(--control-h); padding: 12px 14px;
  border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--c-text);
  font-weight: 500; font-size: 1rem; line-height: 1.4;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.input::placeholder { color: #6B7686; opacity: 1; }
.input:hover, .input.is-hover { border-color: var(--c-text-muted); }
.input:focus-visible, .input:focus, .input.is-focus {
  outline: none; border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(0, 84, 164, .28);
}
.field.is-error .input, .input[aria-invalid='true'] { border-color: var(--c-error); background: #FFFBFA; }
.field.is-error .input:focus, .input[aria-invalid='true']:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .22); }
.input:disabled { background: #EEF1F5; border-color: #C5CED9; color: #5F6B7B; cursor: not-allowed; }
textarea.input { min-height: 112px; resize: vertical; }

/* Свой выпадающий список (combobox + listbox по WAI-ARIA APG); нативный <select> остаётся в форме скрытым */
.dd { position: relative; }
.dd__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  text-align: left; cursor: pointer;
}
.dd__btn .i { width: 20px; height: 20px; color: var(--c-text-muted); transition: transform var(--t-fast) var(--ease); }
.dd__btn[aria-expanded='true'] { border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(0, 84, 164, .28); }
.dd__btn[aria-expanded='true'] .i { transform: rotate(180deg); }
.dd__value.is-placeholder { color: #6B7686; }
.dd__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  max-height: min(320px, 60vh); overflow: auto; padding: 6px; margin: 0;
  list-style: none; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-3);
}
.dd__list[hidden] { display: none; }
.dd.is-up .dd__list { top: auto; bottom: calc(100% + 6px); }
.dd__opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: var(--tap); padding: 10px 12px; border-radius: var(--r-sm);
  cursor: pointer; font-weight: 500; line-height: 1.35;
}
.dd__opt .i { width: 18px; height: 18px; color: var(--c-brand); visibility: hidden; }
.dd__opt:hover { background: var(--c-bg-alt); }
.dd__opt.is-active { background: var(--c-brand-soft); outline: 2px solid var(--c-brand); outline-offset: -2px; }
.dd__opt[aria-selected='true'] { font-weight: 700; color: var(--c-brand-active); }
.dd__opt[aria-selected='true'] .i { visibility: visible; }
.dd__group { padding: 10px 12px 4px; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); }

/* Файл: ТЗ, смета */
.file {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  min-height: var(--control-h); padding: 10px 14px;
  border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-sm); background: #fff;
  color: var(--c-text-muted); font-size: var(--fs-small); cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.file:hover { border-color: var(--c-brand); background: var(--c-brand-tint); color: var(--c-text); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(0, 84, 164, .28); }
.file .i { color: var(--c-brand); }
.file__name { font-weight: 700; color: var(--c-text); }

/* Галочка согласия */
.check { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-small); line-height: 1.45; color: var(--c-text-muted); cursor: pointer; }
.check input {
  flex: none; width: 22px; height: 22px; margin: 0; appearance: none; cursor: pointer;
  border: 1.5px solid var(--c-line-strong); border-radius: 5px; background: #fff center / 16px no-repeat;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.check input:checked {
  background-color: var(--c-brand); border-color: var(--c-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6.5 9.5 17 4 11.5'/%3E%3C/svg%3E");
}
.check input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.field.is-error .check input { border-color: var(--c-error); }
.check a { color: inherit; }

/* Ответ формы: успех и ошибка (объявляются через aria-live) */
.notice { display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); font-size: var(--fs-small); line-height: 1.5; }
.notice .i { margin-top: 1px; }
.notice strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.notice--success { background: var(--c-success-soft); color: #0E4F27; }
.notice--success .i { color: var(--c-success); }
.notice--error { background: var(--c-error-soft); color: #7A1810; }
.notice--error .i { color: var(--c-error); }
.notice a { color: inherit; font-weight: 700; }

/* Скрытое поле-ловушка для ботов */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Карточки ---------- */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.card--pad { padding: clamp(20px, 1rem + 1vw, 32px); }

/* Цифра */
.stat { display: grid; gap: .25em; } /* в em: при крупном тексте цифра не касается подписи */
.stat__num { font: 700 var(--fs-stat)/1 var(--f-head); letter-spacing: -.03em; color: var(--c-brand); font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: .5em; line-height: 0; vertical-align: .7em; margin-left: 2px; }
.stat__num small { font-size: .42em; margin-left: 6px; letter-spacing: 0; font-weight: 600; }
.stat__label { font-size: var(--fs-small); color: var(--c-text-muted); line-height: 1.4; }
.section--ink .stat__num, .on-dark .stat__num { color: #fff; }

/* Направление (ведёт на посадочную) */
.dir {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t) var(--ease);
}
.dir__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-alt); }
.dir__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.dir__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); flex: 1; }
.dir__title { margin: 0; font-size: var(--fs-h3); }
.dir__title a { color: inherit; text-decoration: none; }
.dir__title a::after { content: ''; position: absolute; inset: 0; } /* вся карточка — ссылка */
.dir__title a:focus-visible { outline: none; }
.dir:has(a:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
/* Safari < 15.4 без :has() — рамка внутри карточки на слое ссылки (снаружи её обрезал бы overflow: hidden) */
@supports not selector(:has(*)) {
  .dir__title a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--c-focus); border-radius: var(--r-md); }
}
.dir__text { margin: 0; color: var(--c-text-muted); font-size: var(--fs-small); }
.dir__objects { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); list-style: none; }
.dir__objects li { padding: 2px 10px; border-radius: var(--r-pill); background: var(--c-bg-alt); font-size: var(--fs-caption); font-weight: 600; color: var(--c-text-muted); }
.dir__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-3); font-weight: 700; font-size: var(--fs-small); color: var(--c-brand); }
.dir__more .i { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.dir:hover, .dir.is-hover { border-color: #B7C6D9; box-shadow: var(--sh-2); transform: translateY(-2px); }
.dir:hover .dir__media img, .dir.is-hover .dir__media img { transform: scale(1.04); }
.dir:hover .dir__more .i, .dir.is-hover .dir__more .i { transform: translateX(3px); }
@media (hover: none) { .dir:active { background: var(--c-bg-alt); transform: scale(.99); } }

/* Доверие: СРО, допуск, договор */
.trust { display: flex; gap: var(--s-4); align-items: flex-start; }
.trust__title { margin: 0 0 4px; font: 600 var(--fs-h4)/1.3 var(--f-head); }
.trust__text { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); }
.trust__id { display: inline-block; margin-top: 6px; font-size: var(--fs-caption); font-weight: 700; color: var(--c-text); font-variant-numeric: tabular-nums; }

/* Объект / кейс */
.case { display: grid; overflow: hidden; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.case__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__media .chip { position: absolute; left: 12px; top: 12px; }
.case__body { padding: var(--s-5); }
.case__title { margin: 0 0 var(--s-3); font-size: var(--fs-h3); }
.case__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.case__facts dt { font-size: var(--fs-caption); color: var(--c-text-muted); }
.case__facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Отзыв */
.review { display: flex; flex-direction: column; gap: var(--s-4); padding: clamp(20px, 1rem + 1vw, 28px); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.review__stars { display: flex; gap: 2px; color: var(--c-rating); }
.review__stars .i { width: 18px; height: 18px; }
.review__text { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.review__who { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.review__logo { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--c-brand-soft); color: var(--c-brand); font: 700 .875rem/1 var(--f-head); }
.review__org { font-weight: 700; line-height: 1.3; }
.review__person { font-size: var(--fs-small); color: var(--c-text-muted); }
.review__doc { font-size: var(--fs-small); font-weight: 700; }

/* Шаг работы */
.step { position: relative; padding-top: var(--s-5); border-top: 2px solid var(--c-line); }
.step::before { content: ''; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--c-brand); }
.step__num { display: block; margin-bottom: var(--s-3); font: 700 .9375rem/1 var(--f-head); color: var(--c-brand); font-variant-numeric: tabular-nums; }
.step__title { margin: 0 0 6px; font-size: var(--fs-h4); }
.step__text { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); }

/* Вопрос-ответ (details/summary — работает без JS) */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font: 600 var(--fs-h4)/1.35 var(--f-head);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .i { flex: none; width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand); transition: transform var(--t) var(--ease); }
.faq__item[open] .faq__q .i { transform: rotate(45deg); }
.faq__q:hover { color: var(--c-brand); }
.faq__a { padding: 0 0 var(--s-5); max-width: 760px; color: var(--c-text-muted); }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Длинное значение списка — в одну строку с многоточием; полный текст читается программой чтения с экрана */
.dd__btn { min-width: 0; }
.dd__value { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; } /* длинное название услуги переносится, а не обрезается */
/* Короткая подпись на узком экране: .hide-sm прячется, .show-sm показывается */
.show-sm { display: none; }
@media (max-width: 24.9375em) { .hide-sm { display: none; } .show-sm { display: inline; } }
.field { min-width: 0; grid-template-columns: minmax(0, 1fr); align-content: start; } /* поле в сетке не раздвигает колонку длинным текстом */
.review__doc { display: inline-flex; align-items: center; align-self: flex-start; min-height: 28px; }

/* === layout.css === */
/* ПРОФГРУП — шапка, меню, нижняя панель на телефоне, подвал. */

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 50; background: #fff; } /* верхняя полоса уезжает, строка с меню остаётся */
:root { --topbar-h: 40px; }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--c-line), 0 8px 24px -16px rgba(11, 27, 51, .25); }

/* Верхняя полоса: адрес, часы, почта, мессенджеры — то, что раньше теснило меню */
.hdr__top { background: var(--c-ink); color: var(--c-text-on-dark-muted); font-size: var(--fs-small); }
.hdr__top .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--topbar-h); }
.hdr__facts { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-5); min-width: 0; overflow: hidden; list-style: none; } /* полоса всегда в одну строку */
.hdr__facts li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hdr__facts .i { width: 16px; height: 16px; color: var(--c-brand-on-dark); }
.hdr__top a { color: #fff; text-decoration: none; }
.hdr__top a:hover { text-decoration: underline; }
.hdr__b2b { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; white-space: nowrap; }
.hdr__b2b .i { width: 16px; height: 16px; color: var(--c-signal); }
/* Выписка из реестра СРО: заказчики часто спрашивают — всегда на виду, на телефоне полоса только с этой ссылкой */
.hdr__sro { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 600; white-space: nowrap; text-underline-offset: 3px; }
.hdr__top a.hdr__sro { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.hdr__top a.hdr__sro:hover { text-decoration-color: #fff; }
.hdr__sro .i { width: 16px; height: 16px; color: var(--c-signal); }
.drawer__sro { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); margin-top: var(--s-3); font-weight: 600; }
.drawer__sro .i { flex: none; width: 20px; height: 20px; }

.hdr__main .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); min-height: var(--header-h); } /* wrap — при крупном тексте кнопка уходит на строку ниже, а не за край */
.hdr__logo { display: block; flex: none; width: 168px; }
.hdr__logo img { width: 100%; height: auto; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 12px;
  border-radius: var(--r-sm); color: var(--c-text); font-weight: 600; font-size: .9375rem;
  text-decoration: none; white-space: nowrap;   /* пункты меню не переносятся */
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover, .nav__link.is-hover { color: var(--c-brand); background: var(--c-brand-tint); text-decoration: none; }
.nav__link[aria-current='page'] { color: var(--c-brand); box-shadow: inset 0 -2px 0 var(--c-brand); border-radius: 0; }
.nav__link .i { width: 16px; height: 16px; }

.hdr__contacts { display: grid; row-gap: .125em; justify-items: end; flex: none; line-height: 1.25; }
.hdr__phone { font: 700 1.125rem/1.2 var(--f-head); color: var(--c-text); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.hdr__phone:hover { color: var(--c-brand); text-decoration: none; }
.hdr__phone2 { font-size: var(--fs-small); font-weight: 600; color: var(--c-text-muted); text-decoration: none; white-space: nowrap; }
.hdr__phone2:hover { color: var(--c-brand); }
.hdr__cta { flex: none; }
.hdr__burger, .hdr__call { display: none; }

/* 1024–1239: меню прячется в бургер, телефон и кнопка остаются */
@media (max-width: 77.4375em) {
  .nav { display: none; }
  .hdr__contacts { margin-left: auto; }
  .hdr__burger { display: inline-flex; }
}
/* Узкие экраны: лишнее из полосы прячем, а не переносим. Адрес и часы есть в подвале и блоке заявки */
@media (max-width: 77.4375em) { .hdr__top .hdr__facts li:nth-child(3) { display: none; } }
@media (max-width: 66.1875em) { .hdr__top .hdr__facts li:nth-child(n+2) { display: none; } }
@media (max-width: 56.1875em) { .hdr__top .hdr__b2b { display: none; } }
/* Телефон: шапка — логотип, кнопка «Позвонить», меню */
@media (max-width: 47.9375em) {
  :root { --header-h: 64px; --topbar-h: 44px; }
  .hdr__top .container { justify-content: center; }
  .hdr__top .hdr__facts, .hdr__top .hdr__b2b { display: none; }
  .hdr__top a.hdr__sro { margin: 0; min-height: 44px; }
  .hdr__main .container { gap: var(--s-2); }
  .hdr__logo { width: 136px; margin-right: auto; }
  .hdr__contacts, .hdr__cta { display: none; }
  .hdr__call { display: inline-flex; }
}

/* Выезжающее меню */
.drawer { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: rgba(11, 27, 51, .5); }
.drawer[hidden] { display: none; }
.drawer__panel { display: flex; flex-direction: column; width: min(420px, 100%); height: 100%; overflow: auto; background: #fff; padding: var(--s-4) var(--gutter) var(--s-6); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: var(--s-4); }
.drawer__nav { list-style: none; border-top: 1px solid var(--c-line); }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--c-line); color: var(--c-text); font: 600 1.125rem/1.3 var(--f-head); text-decoration: none; }
.drawer__nav a:active { background: var(--c-bg-alt); }
.drawer__contacts { display: grid; gap: var(--s-3); margin-top: var(--s-5); }

/* Нижняя панель на телефоне: «Позвонить» всегда под рукой */
.mbar { display: none; }
@media (max-width: 47.9375em) {
  .mbar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-2);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    box-shadow: 0 -1px 0 var(--c-line), 0 -8px 24px -16px rgba(11, 27, 51, .3);
  }
  body.has-mbar { padding-bottom: 76px; }
}

/* ---------- Подвал ---------- */
.ftr { background: var(--c-ink); color: var(--c-text-on-dark-muted); font-size: var(--fs-small); }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__grid { display: grid; gap: var(--s-6) var(--gap); grid-template-columns: 1.4fr repeat(3, 1fr); padding-block: var(--s-8) var(--s-6); }
.ftr__logo { width: 168px; margin-bottom: var(--s-4); }
.ftr__title { margin: 0 0 var(--s-3); font: 700 var(--fs-caption)/1.3 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.ftr__list { display: grid; gap: 6px; list-style: none; }
.ftr__list a { display: inline-block; padding-block: 3px; }
.ftr__phone { font: 700 1.25rem/1.3 var(--f-head); }
.ftr__legal { display: grid; gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--c-ink-line); grid-template-columns: 1fr auto; align-items: start; }
.ftr__req { display: flex; flex-wrap: wrap; gap: 4px var(--s-5); list-style: none; }
@media (max-width: 63.9375em) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 37.4375em) { .ftr__grid, .ftr__legal { grid-template-columns: 1fr; } }
.ftr__meta { display: grid; gap: 4px; justify-items: end; text-align: right; }
@media (max-width: 37.4375em) { .ftr__meta { justify-items: start; text-align: left; } }

/* Ссылка «к содержанию» — видна только с клавиатуры */
.skip { position: absolute; z-index: 100; left: 16px; top: -100px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--c-ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.ftr__meta a { text-decoration: underline; text-underline-offset: .2em; } /* ссылка внутри текста — с подчёркиванием */
.hdr__phone, .hdr__phone2 { display: inline-flex; align-items: center; min-height: 26px; } /* зона нажатия ≥ 24 px */

/* ---------- Переключатель вариантов (только в макете) ---------- */
.variant {
  position: fixed; z-index: 70; left: 16px; bottom: 16px; display: flex; gap: 4px; padding: 4px;
  border-radius: var(--r-pill); background: rgba(11, 27, 51, .92); box-shadow: var(--sh-3);
  font-size: var(--fs-small); font-weight: 700;
}
.variant a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); color: #fff; text-decoration: none; }
.variant a[aria-current] { background: #fff; color: var(--c-brand-active); }
@media (max-width: 47.9375em) { .variant { display: none; } }
.ftr__meta > a { display: inline-flex; align-items: center; min-height: 28px; }
.hdr__top a { display: inline-flex; align-items: center; min-height: 28px; }
/* Нижняя панель: кнопка «Позвонить» сжимается, а не выталкивает соседние */
.mbar { grid-template-columns: minmax(0, 1fr) auto auto; }
.mbar .btn:not(.btn--icon) { min-width: 0; padding-inline: var(--s-4); }

/* === home.css === */
/* ПРОФГРУП — блоки главной страницы. */

/* ---------- Форма заявки ---------- */
.lead-form { --c-focus: var(--c-brand); padding: clamp(20px, 1rem + 1.5vw, 32px); border-radius: var(--r-lg); background: #fff; color: var(--c-text); box-shadow: var(--sh-3); border: 1px solid var(--c-line); }
.section--ink .lead-form .lead-form__title { color: var(--c-text); } /* белая форма на тёмном блоке */
.lead-form__title { margin: 0 0 4px; font-size: var(--fs-h3); }
.lead-form__sub { margin: 0 0 var(--s-5); font-size: var(--fs-small); color: var(--c-text-muted); }
.lead-form__fields { display: grid; gap: var(--s-4); }
.lead-form__row { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.lead-form__alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-text-muted); }
.lead-form__phone { font: 700 1.125rem/1.2 var(--f-head); color: var(--c-text); text-decoration: none; white-space: nowrap; }
.lead-form__phone:hover { color: var(--c-brand); }
.lead-form__status:empty { display: none; }
.lead-form__status { margin-top: var(--s-4); }
.lead-form.is-sent .lead-form__fields, .lead-form.is-sent .lead-form__sub { display: none; }
.lead-form.is-sent .lead-form__status { margin-top: 0; }

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(32px, 1.5rem + 3vw, 72px) clamp(40px, 2rem + 3vw, 80px); border-bottom: 1px solid var(--c-line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .85fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.hero__title { margin-bottom: var(--s-5); }
.hero__lead { max-width: 640px; margin-bottom: var(--s-5); }
.hero__objects { margin-bottom: var(--s-6); }
.hero__objects .chip { background: #fff; border: 1px solid var(--c-line); color: var(--c-text); }
.hero__objects .chip .i { color: var(--c-brand); }
.hero__trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); padding: var(--s-5) 0; border-block: 1px solid var(--c-line); list-style: none; }
.hero__trust li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); line-height: 1.4; color: var(--c-text-muted); }
.hero__trust b { display: block; color: var(--c-text); font-size: .9375rem; }
.hero__trust .i { color: var(--c-brand); margin-top: 1px; }
.hero__contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.hero__phone { display: grid; row-gap: .125em; line-height: 1.2; }
.hero__phone a { font: 700 clamp(1.375rem, 1.2rem + .6vw, 1.625rem)/1.2 var(--f-head); color: var(--c-text); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.hero__phone a:hover { color: var(--c-brand); }
.hero__phone span { font-size: var(--fs-small); color: var(--c-text-muted); }
.hero__form { position: relative; }
@media (max-width: 63.9375em) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__form { max-width: 640px; }
}
@media (max-width: 47.9375em) {
  .hero__trust { grid-template-columns: 1fr; padding: var(--s-4) 0; }
  .hero__contact { display: none; }   /* на телефоне звонок — в нижней панели */
}

/* Фото бригады и цифры */
.proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); margin-top: clamp(40px, 2rem + 3vw, 72px); }
.proof__photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--c-ink); aspect-ratio: 16 / 10; }
.proof__photo img { width: 100%; height: 100%; object-fit: cover; }
.proof__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content; max-width: calc(100% - 32px);
  padding: 8px 14px; border-radius: var(--r-sm); background: rgba(11, 27, 51, .82); color: #fff;
  font-size: var(--fs-small); font-weight: 600; line-height: 1.4;
}
.proof__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); align-content: center; padding: clamp(24px, 1rem + 2vw, 44px); border-radius: var(--r-lg); background: var(--c-ink); color: #fff; }
.proof__stats .stat__label { color: var(--c-text-on-dark-muted); }
@media (max-width: 63.9375em) { .proof { grid-template-columns: 1fr; } .proof__photo { aspect-ratio: 16 / 9; } }
.proof__more { grid-column: 1 / -1; padding-top: var(--s-5); border-top: 1px solid var(--c-ink-line); }
.proof__more .link-arrow { color: var(--c-brand-on-dark); }
@media (max-width: 26.25em) { .proof__stats { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); } }

/* ---------- Нам доверяют ---------- */
.clients { padding-block: var(--s-6); border-bottom: 1px solid var(--c-line); }
.clients .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }
.clients__title { margin: 0; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-muted); }
.clients__list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); list-style: none; flex: 1; }
.clients__list li { font: 600 1.0625rem/1.3 var(--f-head); color: var(--c-text); letter-spacing: -.01em; white-space: nowrap; }
.clients__list small { font: 500 var(--fs-small)/1 var(--f-text); color: var(--c-text-muted); letter-spacing: 0; }

/* ---------- Направления ---------- */
.dirs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dir__media--plan { display: grid; place-items: center; }
.dir__media--plan .i { width: 64px; height: 64px; color: var(--c-brand); stroke-width: 1.25; }
.dir--other { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.dir--other .dir__body { padding: var(--s-6) var(--s-5); }
.dir--other .dir__title { color: #fff; }
.dir--other .dir__text { color: var(--c-text-on-dark-muted); }
.dir--other ul { display: grid; gap: 2px; margin: var(--s-3) 0 var(--s-4); list-style: none; }
.dir--other ul a { display: flex; align-items: center; min-height: 36px; color: #fff; text-decoration: none; font-weight: 600; font-size: var(--fs-small); border-bottom: 1px solid var(--c-ink-line); }
.dir--other ul a:hover { color: var(--c-brand-on-dark); text-decoration: underline; }
.dir--other .link-arrow { color: var(--c-brand-on-dark); }
.dir--other:hover { transform: none; box-shadow: none; border-color: var(--c-ink); }
@media (max-width: 74.9375em) { .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Телефон: компактные карточки — фото слева, текст справа */
@media (max-width: 37.4375em) {
  .dirs { grid-template-columns: 1fr; gap: var(--s-3); }
  .dir:not(.dir--other) { flex-direction: row; }
  .dir:not(.dir--other) .dir__media { flex: none; width: 112px; aspect-ratio: auto; }
  .dir:not(.dir--other) .dir__media--plan .i { width: 40px; height: 40px; }
  .dir:not(.dir--other) .dir__body { padding: var(--s-4); gap: 4px; }
  .dir:not(.dir--other) .dir__title { font-size: 1.0625rem; }
  .dir:not(.dir--other) .dir__objects, .dir:not(.dir--other) .dir__more { display: none; }
}

/* ---------- Почему мы (тёмный блок) ---------- */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.why__photo { margin: var(--s-6) 0 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--gap); list-style: none; }
.why__list li { display: grid; gap: var(--s-3); align-content: start; justify-items: start; padding-top: var(--s-5); border-top: 1px solid var(--c-ink-line); }
.why__list h3 { margin: 0; font-size: var(--fs-h4); }
.why__list p { margin: 0; font-size: var(--fs-small); color: var(--c-text-on-dark-muted); }
@media (max-width: 63.9375em) { .why { grid-template-columns: 1fr; } .why__photo { display: none; } }
@media (max-width: 37.4375em) { .why__list { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- Объект ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: stretch; }
.feature__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.feature__gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.feature__gallery .is-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.feature__gallery .is-small { aspect-ratio: 4 / 3; }
.feature__body { display: flex; flex-direction: column; gap: var(--s-4); padding: clamp(24px, 1rem + 1.5vw, 40px); border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; }
.feature__body h3 { margin: 0; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.feature__body p { margin: 0; color: var(--c-text-muted); }
.feature__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin: 0; padding-block: var(--s-4); border-block: 1px solid var(--c-line); }
.feature__facts dt { font-size: var(--fs-caption); color: var(--c-text-muted); }
.feature__facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.35; }
.feature__works { display: grid; gap: 8px; list-style: none; font-size: var(--fs-small); }
.feature__works li { display: flex; gap: 8px; align-items: flex-start; }
.feature__works .i { width: 18px; height: 18px; color: var(--c-success); margin-top: 2px; }
.feature__body .link-arrow { margin-top: auto; }
@media (max-width: 63.9375em) { .feature { grid-template-columns: 1fr; } }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); list-style: none; }
@media (max-width: 68.6875em) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 43.6875em) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 26.1875em) { .steps { grid-template-columns: 1fr; } }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 47.9375em) {
  /* Лента с прокруткой пальцем; с клавиатуры — Tab по ссылкам, лента прокручивается сама */
  .reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s-4); }
  .reviews > * { flex: 0 0 min(86%, 360px); scroll-snap-align: start; }
}

/* ---------- Вопросы ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.faq-wrap .section__head { margin-bottom: var(--s-6); }
.ask { padding: var(--s-5); border-radius: var(--r-md); background: var(--c-brand-tint); border: 1px solid var(--c-line); }
.ask p { margin: 0 0 var(--s-4); font-size: var(--fs-small); color: var(--c-text-muted); }
.ask .h4 { margin-bottom: 6px; }
.ask .msgr { margin-top: var(--s-3); }
@media (max-width: 63.9375em) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Заявка внизу ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.cta__contacts { display: grid; gap: var(--s-4); margin-top: var(--s-6); list-style: none; }
.cta__contacts li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--c-text-on-dark-muted); font-size: var(--fs-small); }
.cta__contacts .i { color: var(--c-brand-on-dark); margin-top: 1px; }
.cta__contacts a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; }
.cta__contacts a:hover { text-decoration: underline; }
.cta__contacts .big { font: 700 1.5rem/1.2 var(--f-head); }
@media (max-width: 63.9375em) { .cta { grid-template-columns: 1fr; } }
@media (max-width: 47.9375em) {
  .clients .container { flex-direction: column; align-items: flex-start; }
  .clients__list { gap: var(--s-2) var(--s-5); }
}
/* Телефон: форма сразу после заголовка и вводного текста, метки и доводы — ниже */
@media (max-width: 47.9375em) {
  .hero__grid { row-gap: 0; }
  .hero__grid > div:first-child { display: contents; }
  .hero__form { order: 1; margin-bottom: var(--s-6); }
  .hero__objects, .hero__trust { order: 2; }
  .hero__trust { margin-bottom: 0; }
}
.cta__contacts a { display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 37.4375em) {
  .dir:not(.dir--other) .dir__body { min-width: 0; }
  .dir:not(.dir--other) .dir__text { hyphens: auto; }
}
@media (max-width: 22.4375em) { .dir:not(.dir--other) .dir__media { width: 84px; } }
.lead-form__phone { display: inline-flex; align-items: center; min-height: 32px; }
/* Ошибка под одним полем не растягивает соседнее */
.lead-form__row { align-items: start; }

/* ---------- Квиз (pgQuiz, quiz.js) ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.quiz__intro h2 { margin: 0 0 var(--s-4); }
.quiz__intro .lead { margin: 0 0 var(--s-6); }
.quiz__next { display: grid; gap: var(--s-3); margin: 0 0 var(--s-6); list-style: none; }
.quiz__next li { display: flex; gap: var(--s-3); align-items: center; font-weight: 600; }
.quiz__next .i { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: var(--r-md); background: #fff; color: var(--c-brand); box-shadow: var(--sh-card); }
.quiz__call { margin: 0; color: var(--c-text-muted); }
.quiz__call a { font-weight: 800; color: var(--c-text); white-space: nowrap; }
.quiz__call a:hover { color: var(--c-brand); }
.quiz__form { min-height: 100%; }
.quiz__progress { display: grid; gap: 8px; margin-bottom: var(--s-5); font-size: var(--fs-small); font-weight: 700; color: var(--c-text-muted); }
.quiz__progress[hidden], .quiz__nav[hidden] { display: none; }
.quiz__bar { display: block; height: 6px; border-radius: var(--r-pill); background: var(--c-brand-soft); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c-brand); transition: width .3s var(--ease); }
.quiz__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz__step + .quiz__step { margin-top: var(--s-6); } /* без JS — все шаги подряд */
.is-steps .quiz__step + .quiz__step { margin-top: 0; }
.quiz__step[hidden] { display: none; }
.quiz__q { display: block; width: 100%; margin: 0 0 var(--s-4); padding: 0; font: 700 var(--fs-h3)/1.3 var(--f-head); color: var(--c-text); }
.quiz__q:focus { outline: none; } /* фокус ставит скрипт при смене шага; с клавиатуры вопрос не выбирается */
.quiz__q:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 4px; border-radius: 4px; }
.quiz__num { display: block; margin-bottom: 6px; font: 700 var(--fs-caption)/1.3 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--c-brand); }
.is-steps .quiz__num { display: none; } /* номер вопроса уже в полосе прогресса */
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.375rem), 1fr)); gap: var(--s-3); }
.quiz__opt { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 12px 16px; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: #fff; font-weight: 600; line-height: 1.35; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
/* поле — на всю карточку (зона нажатия), кружок рисует .quiz__dot */
.quiz__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.quiz__dot { flex: none; display: grid; place-content: center; width: 22px; height: 22px; border: 2px solid var(--c-line-strong); border-radius: 50%; background: #fff; }
.quiz__dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c-brand); transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.quiz__opt input:checked + .quiz__dot { border-color: var(--c-brand); }
.quiz__opt input:checked + .quiz__dot::before { transform: scale(1); }
.quiz__opt:hover { border-color: var(--c-brand); background: var(--c-brand-tint); }
.quiz__opt:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); }
.quiz__opt:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
/* Safari < 15.4 без :has() — та же рамка вокруг карточки от кружка (его ::after позиционируется по карточке) */
@supports not selector(:has(*)) {
  .quiz__opt input:focus-visible + .quiz__dot::after { content: ''; position: absolute; inset: -5px; border: 3px solid var(--c-focus); border-radius: calc(var(--r-md) + 5px); pointer-events: none; }
}
.quiz__opt:active { transform: scale(.98); }
.quiz__step.is-error .quiz__opt { border-color: var(--c-error); }
.quiz__step.is-error .field__error { display: flex; margin-top: var(--s-3); }
.quiz__step .lead-form__row, .quiz__step > .field { margin-bottom: var(--s-4); }
.quiz__nav { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.quiz__nav .js-quiz-next { margin-left: auto; }
.quiz__nav [hidden] { display: none; }
.quiz__nav--last { margin-top: var(--s-4); }
.quiz__back-i { transform: rotate(180deg); }
@media (max-width: 63.9375em) { .quiz { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 29.9375em) { .quiz__nav .btn { flex: 1 1 0; } }
@media (prefers-reduced-motion: reduce) { .quiz__bar span, .quiz__opt, .quiz__dot::before { transition: none; } .quiz__opt:active { transform: none; } }
.quiz__urgent { margin: 0 0 var(--s-4); max-width: none; }
.quiz__urgent[hidden] { display: none; }
@media (max-width: 47.9375em) { .quiz__next { display: none; } .quiz__intro .lead { margin-bottom: var(--s-4); } } /* на телефоне форма — ближе к заголовку */

/* === theme-b.css === */
/* ПРОФГРУП — вариант Б главной: меньше серого, больше воздуха.
   Подключается после home.css. Серые фоны блоков заменены белым и светло-синим,
   графитовые блоки — синим бренда, серый второстепенный текст — тёмно-синим. */
:root {
  --c-text-muted: #45566D;     /* 7:1 на белом, синеватый вместо серого */
  --c-bg-alt: #F2F7FF;         /* светло-синий вместо серого */
  --c-line: #DDE8F6;
  --c-line-strong: #7C8DA6;    /* рамки полей 3,4:1 */
  --c-grid: #D9E7FA;
  --c-ink: #0A2A55;            /* тёмно-синий вместо графита: шапка-полоса, подвал */
  --c-ink-2: #12386C;
  --c-ink-line: #2A5288;
  --c-text-on-dark-muted: #B8CBE6;

  --c-brand-dark: #003F7D;
  --c-on-brand: #FFFFFF;
  --c-on-brand-muted: #DCEAFB; /* 6:1 на синем бренда */

  --fs-body: 1.0625rem;        /* 17 px — читается свободнее */
  --section-y: clamp(72px, 4.5rem + 5vw, 152px);
  --gap: clamp(20px, 1rem + 1.2vw, 32px);
  --gutter: clamp(20px, 5vw, 56px);

  --sh-card: 0 1px 2px rgba(0, 84, 164, .05), 0 14px 36px -20px rgba(0, 84, 164, .28);
  --sh-card-hover: 0 2px 4px rgba(0, 84, 164, .06), 0 24px 48px -20px rgba(0, 84, 164, .36);
}

/* ---------- Синие блоки вместо тёмных ---------- */
.section--brand {
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-dark) 100%);
  color: var(--c-on-brand);
  --c-focus: #FFFFFF;
}
.section--brand :is(h1, h2, h3, h4) { color: var(--c-on-brand); }
.section--brand .lead, .section--brand .muted { color: var(--c-on-brand-muted); }
.section--brand .overline { color: #CFE3FF; }
.section--brand .icon-box { background: rgba(255, 255, 255, .14); color: #fff; }
.section--brand .link-arrow { color: #fff; }
.section--brand .msgr__btn { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.section--brand .msgr__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.section--brand .msgr__btn .i { color: #fff; }
.section--brand .lead-form { --c-focus: var(--c-brand); }
.section--brand .lead-form .lead-form__title { color: var(--c-text); }

/* ---------- Карточки: тень вместо серой рамки ---------- */
.card, .dir, .review, .case, .feature__body, .lead-form { border-color: #E3ECF8; box-shadow: var(--sh-card); }
.dir:hover, .dir.is-hover { border-color: #C9DAF2; box-shadow: var(--sh-card-hover); transform: translateY(-4px); }
.dir__body { padding: 28px; gap: 10px; }
.dir__objects li { background: var(--c-brand-soft); color: var(--c-brand-active); }

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(48px, 3rem + 4vw, 112px) clamp(56px, 3rem + 4vw, 112px); border-bottom: 0; }
.hero.blueprint {
  background-color: #F2F7FF;
  background-image:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(0, 84, 164, .10), transparent 70%),
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.hero__title { margin-bottom: var(--s-6); }
.hero__lead { line-height: 1.65; margin-bottom: var(--s-6); }
.hero__objects { margin-bottom: var(--s-7); }
.hero__objects .chip { border-color: transparent; background: #fff; box-shadow: 0 1px 2px rgba(0, 84, 164, .08); }
.hero__trust { border: 0; padding: 0; gap: var(--s-5); margin-bottom: var(--s-7); }
.hero__trust .i { width: 28px; height: 28px; }
.proof { margin-top: clamp(56px, 3rem + 4vw, 104px); }
.proof__stats { background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-dark) 100%); gap: var(--s-7) var(--s-6); }
.proof__stats .stat__label { color: var(--c-on-brand-muted); }
.proof__more { border-top-color: rgba(255, 255, 255, .25); }
.proof__more .link-arrow { color: #fff; }

/* ---------- Нам доверяют ---------- */
.clients { padding-block: var(--s-7); border-bottom: 0; }
.clients__title { color: var(--c-brand); }
.clients__list li { color: var(--c-brand-active); }

/* ---------- Заголовки блоков ---------- */
.section__head { margin-bottom: clamp(36px, 2rem + 2vw, 64px); }

/* ---------- Направления: 3 колонки, крупнее и свободнее ---------- */
.dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dir--other { grid-column: span 2; background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-2) 100%); }
.dir--other .dir__body { padding: clamp(28px, 1.5rem + 1vw, 40px); }
.dir--other ul { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
@media (max-width: 68.6875em) {
  .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir--other { grid-column: auto; }
  .dir--other ul { grid-template-columns: 1fr; }
}
@media (max-width: 37.4375em) { .dirs { grid-template-columns: 1fr; gap: var(--s-4); } .dir:not(.dir--other) .dir__body { padding: var(--s-4); } }

/* ---------- Почему мы ---------- */
.why__list { gap: var(--s-7) clamp(24px, 3vw, 48px); }
.why__list li { border-top-color: rgba(255, 255, 255, .22); padding-top: var(--s-6); }
.why__list p { color: var(--c-on-brand-muted); font-size: 1rem; line-height: 1.55; }

/* ---------- Объект ---------- */
.feature { gap: clamp(24px, 3vw, 48px); }
.feature__gallery { gap: var(--s-4); }
.feature__facts { border-color: var(--c-line); }

/* ---------- Шаги: номера в кругах на пунктирной линии ---------- */
.steps { position: relative; gap: var(--s-6) var(--gap); }
.step { border-top: 0; padding-top: 0; }
.step::before { display: none; }
.step__num {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: var(--s-5); border-radius: 50%;
  background: var(--c-brand); color: #fff; font-size: 1rem;
  box-shadow: 0 0 0 8px #fff;
}
.step__title { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.step__text { font-size: 1rem; line-height: 1.55; }
@media (min-width: 68.75em) {
  /* Пунктир — отрезками от круга к кругу следующего этапа: одна линия на весь список обрывалась в воздухе,
     если этапы не помещались в ряд (6 и 9 на посадочных). Последний в ряду и последний вообще — без отрезка.
     Число колонок и концы рядов считает pgService: --cols-md / step--end-md до 1279 px, --cols / step--end шире */
  .steps.steps--auto { grid-template-columns: repeat(var(--cols-md, 5), minmax(0, 1fr)); }
  .step:not(:last-child)::after {
    content: ''; position: absolute; top: 25px; left: 26px; right: calc(-1 * var(--gap) - 26px); height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-brand) 0 8px, transparent 8px 16px); opacity: .35;
  }
  .step.step--end-md::after { display: none; }
}
@media (min-width: 80em) {
  .steps.steps--auto { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
  .step.step--end-md::after { display: block; }
  .step.step--end:not(:last-child)::after { display: none; }
}

/* ---------- Отзывы ---------- */
.reviews { gap: var(--gap); }
.review { padding: clamp(24px, 1rem + 1.5vw, 36px); }
.review__text { font-size: 1.125rem; }
.review__who { border-top-color: var(--c-line); }

/* ---------- Вопросы ---------- */
.faq, .faq__item { border-color: var(--c-line); }
.faq__q { min-height: 72px; padding-block: var(--s-5); }
.ask { background: var(--c-bg-alt); border-color: transparent; padding: var(--s-6); }

/* ---------- Заявка внизу ---------- */
.cta__contacts li { color: var(--c-on-brand-muted); }
.cta__contacts .i { color: #fff; }

/* ---------- Плавное появление при прокрутке ----------
   Класс .js ставится в <head>: без JS всё видно сразу. При «уменьшить движение» — без анимации. */
/* translate/scale — отдельные свойства, не мешают transform при наведении на карточки.
   После появления reveal.js снимает атрибут, и элемент возвращается к своим стилям. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal='fade'] { translate: none; }
.js [data-reveal='zoom'] { translate: none; scale: .96; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; scale: none; transition: none; }
}
@media print { .js [data-reveal] { opacity: 1; translate: none; scale: none; } }

/* ---------- Ритм блоков: белый ↔ светло-синий, без лишней пустоты ---------- */
:root { --section-y: clamp(64px, 4rem + 4vw, 128px); }
.section--tint { background: var(--c-bg-alt); }
.section--tint .step__num { box-shadow: 0 0 0 8px var(--c-bg-alt); }
.section--tint .ask { background: #fff; box-shadow: var(--sh-card); }

/* «Другие работы»: призыв внизу карточки */
.dir__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--c-ink-line); }
.dir__cta p { margin: 0; max-width: 420px; color: var(--c-text-on-dark-muted); font-size: 1rem; }
.dir--other .link-arrow { margin-bottom: var(--s-5); }

/* === pages.css === */
/* ПРОФГРУП — внутренние страницы: первый экран, крошки, услуга, цены, каталог, о компании, объекты,
   отзывы, контакты, текст, 404. Токены и компоненты — из tokens/base/layout/theme-b. */

/* ---------- Крошки ---------- */
.crumbs { margin-bottom: var(--s-5); font-size: var(--fs-small); color: var(--c-text-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; color: var(--c-text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--c-text); font-weight: 600; }

/* ---------- Первый экран внутренней страницы ---------- */
/* Страница без первого экрана (отзывы): крошки и h1 сразу под шапкой */
.section--top { padding-top: clamp(28px, 1.5rem + 2vw, 56px); }
.section--top h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.phero { padding-block: clamp(28px, 1.5rem + 2vw, 56px) clamp(40px, 2rem + 3vw, 88px); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.phero__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.phero h1 { margin-bottom: var(--s-5); font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.phero__lead { max-width: 640px; margin-bottom: var(--s-6); }
.phero__stats { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); list-style: none; }
.phero__stats li { display: grid; gap: .125em; min-width: min(8.25rem, 100%); padding: 14px 18px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); }
.phero__stats b { font: 700 1.5rem/1.1 var(--f-head); color: var(--c-brand); letter-spacing: -.02em; white-space: nowrap; }
.phero__stats span { font-size: var(--fs-small); color: var(--c-text-muted); line-height: 1.35; }
.phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.phero__phone { display: grid; row-gap: .125em; line-height: 1.25; }
.phero__phone a { display: inline-flex; align-items: center; min-height: 32px; font: 700 1.25rem/1.2 var(--f-head); color: var(--c-text); text-decoration: none; white-space: nowrap; }
.phero__phone a:hover { color: var(--c-brand); }
.phero__phone span { font-size: var(--fs-small); color: var(--c-text-muted); }
.phero__media { margin: 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--c-bg-alt); box-shadow: var(--sh-card); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 63.9375em) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 37.4375em) {
  .phero__stats li { min-width: 0; flex: 1 1 calc(50% - var(--s-3)); }
  .phero__actions .btn { width: 100%; }
}

/* ---------- Что входит ---------- */
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.75rem), 1fr)); gap: var(--s-3) var(--gap); list-style: none; }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); font-weight: 600; line-height: 1.45; }
.checklist .i { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand); }
.section--tint .checklist li { background: #fff; }

/* ---------- Таблица цен ---------- */
.ptable-wrap { overflow-x: auto; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); }
.ptable { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ptable th, .ptable td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--c-line); }
.ptable thead th { font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); background: var(--c-bg-alt); }
.ptable td:last-child, .ptable th:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--c-brand-active); }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: var(--c-brand-tint); }
.ptable-note { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--c-text-muted); }
@media (max-width: 29.9375em) {
  .ptable th, .ptable td { padding: 14px; }
  .ptable td:last-child { white-space: normal; }
}

/* Вкладки разделов на странице цен */
.ptabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.ptabs [role='tab'] { min-height: var(--tap); padding: 0 var(--s-4); border: 1.5px solid var(--c-line); border-radius: var(--r-pill); background: #fff; font-weight: 700; font-size: .9375rem; color: var(--c-text); }
.ptabs [role='tab']:hover { border-color: var(--c-brand); color: var(--c-brand); }
.ptabs [role='tab'][aria-selected='true'] { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.ptabs [role='tab']:active { transform: scale(.97); }
[role='tabpanel'][hidden] { display: none; }

/* ---------- Подразделы и «смотрите также» ---------- */
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: var(--s-3) var(--gap); list-style: none; }
.subs a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: 100%;
  min-height: 64px; padding: 16px 20px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card);
  color: var(--c-text); font-weight: 700; text-decoration: none; line-height: 1.35;
  transition: box-shadow var(--t), transform var(--t) var(--ease), color var(--t-fast);
}
.subs a .i { flex: none; width: 20px; height: 20px; color: var(--c-brand); transition: transform var(--t-fast) var(--ease); }
.subs a:hover { color: var(--c-brand); box-shadow: var(--sh-card-hover); transform: translateY(-2px); }
.subs a:hover .i { transform: translateX(3px); }
.subs a small { display: block; margin-top: 2px; font-weight: 600; font-size: var(--fs-small); color: var(--c-brand-active); }
@media (hover: none) { .subs a:active { background: var(--c-bg-alt); } }
.see-also { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.see-also a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-card); color: var(--c-text); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.see-also a:hover { color: var(--c-brand); }

/* ---------- Почему мы на странице услуги ---------- */
.whyp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.whyp__media { margin: 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; }
.whyp__media img { width: 100%; height: 100%; object-fit: cover; }
.whyp__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--gap); list-style: none; margin-top: var(--s-6); }
.whyp__list li { display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.whyp__list h3 { margin: 0; font-size: var(--fs-h4); }
.whyp__list p { margin: 0; font-size: 1rem; color: var(--c-text-muted); line-height: 1.55; }
@media (max-width: 63.9375em) { .whyp { grid-template-columns: 1fr; } .whyp__media { aspect-ratio: 16 / 9; } }
@media (max-width: 37.4375em) { .whyp__list { grid-template-columns: 1fr; } }

/* ---------- Текст (SEO-статья, политика, вакансии) ---------- */
.prose { max-width: 800px; font-size: 1.0625rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.6em 0 .6em; font-size: var(--fs-h3); }
.prose h3 { margin: 1.4em 0 .5em; font-size: var(--fs-h4); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 1rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
@media (max-width: 37.4375em) {
  /* таблица в тексте на телефоне — строками-карточками: три столбца в 320–599 px не помещались, страница уходила вбок */
  .prose th, .prose td { overflow-wrap: break-word; hyphens: auto; }
  .prose table.is-stack, .prose .is-stack tbody, .prose .is-stack tr, .prose .is-stack td { display: block; width: auto; }
  .prose .is-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose .is-stack tr { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .prose .is-stack tr:first-child { border-top: 1px solid var(--c-line); }
  .prose .is-stack td { padding: 0; border: 0; }
  .prose .is-stack td + td { margin-top: 10px; }
  .prose .is-stack td::before { content: attr(data-label); content: attr(data-label) / ''; display: block; margin-bottom: 2px; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-muted); }
}
.prose img { border-radius: var(--r-md); }
.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.prose-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-bg-alt); }
.prose-aside .h4 { margin: 0; }
.prose-aside p { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); }
@media (max-width: 63.9375em) { .prose-wrap { grid-template-columns: 1fr; } .prose-aside { position: static; } }

/* ---------- Каталог услуг ---------- */
.dir__price { font-weight: 700; color: var(--c-brand-active); font-size: var(--fs-small); }
.dir__kids { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-2) 0 0; list-style: none; position: relative; z-index: 1; }
.dir__kids a { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--c-bg-alt); color: var(--c-text); font-size: var(--fs-caption); font-weight: 600; text-decoration: none; }
.dir__kids a:hover { background: var(--c-brand-soft); color: var(--c-brand-active); }

/* ---------- О компании: история и документы ---------- */
.tl { position: relative; display: grid; gap: var(--s-6); list-style: none; max-width: 880px; }
.tl::before { content: ''; position: absolute; left: 39px; top: 8px; bottom: 8px; width: 2px; background: var(--c-brand-soft); }
.tl li { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.tl__year { position: relative; z-index: 1; display: grid; place-items: center; width: 80px; height: 40px; border-radius: var(--r-pill); background: var(--c-brand); color: #fff; font: 700 1rem/1 var(--f-head); }
.tl h3 { margin: 8px 0 6px; font-size: var(--fs-h4); }
.tl p { margin: 0; color: var(--c-text-muted); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.25rem), 1fr)); gap: var(--gap); list-style: none; }
.docs li { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-5); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); font-weight: 600; line-height: 1.4; }

/* ---------- Объекты ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); list-style: none; }
.work { position: relative; overflow: hidden; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); }
.work__media { aspect-ratio: 4 / 3; overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work:hover .work__media img { transform: scale(1.04); }
.work__body { padding: var(--s-5); }
.work__body h3 { margin: 0 0 4px; font-size: var(--fs-h4); }
.work__body p { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); }
.work .chip { position: absolute; left: 12px; top: 12px; }
.work__body .work__note { margin-top: 6px; font-size: var(--fs-caption); font-style: italic; }
@media (max-width: 63.9375em) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 37.4375em) { .works { grid-template-columns: 1fr; } }

/* ---------- Отзывы: страница ---------- */
.reviews--page { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21.25rem), 1fr)); }
@media (max-width: 47.9375em) { .reviews--page { display: grid; overflow: visible; margin: 0; padding: 0; } .reviews--page > * { flex: none; } }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: stretch; }
.contacts__card { display: grid; gap: var(--s-5); align-content: start; padding: clamp(24px, 1rem + 1.5vw, 40px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-card); }
.contacts__row { display: flex; gap: var(--s-4); align-items: flex-start; }
.contacts__list { display: grid; gap: var(--s-5); margin: 0; list-style: none; }
.contacts__label { margin: 0; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); }
.contacts__val { margin: 4px 0 0; font-weight: 600; line-height: 1.5; }
.contacts__val a { display: inline-flex; align-items: center; min-height: 28px; color: var(--c-text); text-decoration: none; }
.contacts__val a:hover { color: var(--c-brand); text-decoration: underline; }
.contacts__row .big { font: 700 1.375rem/1.2 var(--f-head); }
.contacts__map { position: relative; min-height: 420px; overflow: hidden; border-radius: var(--r-lg); background: var(--c-bg-alt); }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.req-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.req-table th, .req-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.req-table th { width: 38%; font-weight: 600; color: var(--c-text-muted); }
@media (max-width: 63.9375em) { .contacts { grid-template-columns: 1fr; } .contacts__map { min-height: 320px; } }
@media (max-width: 29.9375em) { .req-table th, .req-table td { display: block; width: auto; padding: 4px 0; border: 0; } .req-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--c-line); } }

/* ---------- 404 ---------- */
.e404 { padding-block: clamp(64px, 4rem + 6vw, 160px); text-align: center; }
.e404__code { font: 800 clamp(4.5rem, 3rem + 8vw, 9rem)/1 var(--f-head); color: var(--c-brand); letter-spacing: -.04em; }
.e404 .lead { max-width: 560px; margin: var(--s-4) auto var(--s-6); }
.e404 .see-also { justify-content: center; }

/* ---------- Окно cookies (стандарт студии: одна кнопка «Принять») ---------- */
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4);
  padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-ink); color: #fff;
  box-shadow: var(--sh-3); font-size: var(--fs-small); line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 260px; margin: 0; }
.cookie a { color: #fff; }
@media (max-width: 47.9375em) { .cookie { bottom: 88px; } } /* над нижней панелью «Позвонить» */

/* Раздел меню, внутри которого страница */
.nav__link[aria-current='true'] { color: var(--c-brand); }
.drawer__nav a[aria-current] { color: var(--c-brand); }

/* ---------- Узкие экраны: ничего не раздвигает страницу ---------- */
@media (max-width: 63.9375em) {
  .phero__grid, .feature, .whyp, .contacts, .prose-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 37.4375em) {
  .phero h1, .section h2, .e404 h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; } /* длинные слова вроде «металлоконструкций» */
  .section__head > div { min-width: 0; }
  .phero__stats b { white-space: normal; }
  .phero__stats li { flex: 1 1 8.75rem; } /* в rem: при крупном тексте плашки встают по одной в строку */
}
.btn--wrap { white-space: normal; height: auto; min-height: var(--control-h); padding-block: 12px; text-align: left; }

/* ---------- Вакансии ---------- */
.vacs { display: grid; gap: var(--s-3); list-style: none; }
.vac { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-6); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); }
.vac > div { flex: 1 1 320px; }
.vac h3 { margin: 0 0 4px; font-size: var(--fs-h4); }
.vac p { margin: 0; color: var(--c-text-muted); }
.work__link { color: inherit; text-decoration: none; }
.work__link::after { content: ''; position: absolute; inset: 0; }
.work:has(.work__link:hover) .work__link { color: var(--c-brand); }

/* ---------- Посадочные (направления для рекламы) ---------- */
/* Отсечка в первом экране: для кого и на каких условиях */
.phero__markers { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-5); list-style: none; }
.phero__markers li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px 4px 8px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-line); font-size: var(--fs-small); font-weight: 700; line-height: 1.3; color: var(--c-text); }
.phero__markers .i { width: 18px; height: 18px; color: var(--c-brand); }
/* Аварийная строка — тёмная плашка, сигнальный цвет только на тёмном */
.phero__alert { display: flex; gap: var(--s-3); align-items: flex-start; max-width: 640px; margin: var(--s-5) 0 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--c-ink); color: #fff; font-size: var(--fs-small); font-weight: 600; line-height: 1.5; }
.phero__alert .i { color: var(--c-signal); margin-top: 1px; }
.phero__alert a { color: #fff; font-weight: 800; white-space: nowrap; text-underline-offset: 3px; }
.phero__alert a:hover { color: var(--c-brand-on-dark); }
.phero__alert a:focus-visible { outline-color: var(--c-brand-on-dark); }

/* Типы объектов */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.625rem), 1fr)); gap: var(--gap); list-style: none; }
.tcard { display: grid; gap: var(--s-3); align-content: start; justify-items: start; padding: var(--s-5); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); }
.tcard h3 { margin: 0; font-size: var(--fs-h4); }
.tcard p { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); line-height: 1.55; }

/* Смета: что присылаем и что нужно */
.smeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr)); gap: var(--gap); list-style: none; }
@media (min-width: 45em) { .smeta--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 77.5em) { .smeta--4 { grid-template-columns: repeat(4, 1fr); } }
.smeta li { padding: var(--s-5); border-radius: var(--r-md); background: #fff; border: 1px solid var(--c-line); border-top: 3px solid var(--c-brand); }
.smeta h3 { margin: 0 0 6px; font-size: var(--fs-h4); }
.smeta p { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); line-height: 1.55; }
.smeta__num { display: block; margin-bottom: var(--s-3); font: 700 .9375rem/1 var(--f-head); color: var(--c-brand); font-variant-numeric: tabular-nums; }
.block-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 37.4375em) { .block-actions .btn { width: 100%; } }

/* Этапы — сколько бы их ни было */
.steps--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.75rem), 1fr)); }

/* Отдельные задачи */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr)); gap: var(--gap); list-style: none; }
.note { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6) var(--s-5); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); scroll-margin-top: 120px; }
.note h3 { margin: 0; font-size: var(--fs-h3); }
.note p { margin: 0; color: var(--c-text-muted); line-height: 1.6; }
.note .link-arrow { margin-top: auto; }

/* Документы — три в ряд */
.whyp__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 63.9375em) { .whyp__list--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 37.4375em) { .whyp__list--3 { grid-template-columns: 1fr; } }

/* === letters.css === */
/* ПРОФГРУП — рекомендательные письма: сетка превью (сниппет pgLetters) и окно «письмо крупно» (letters.js). */

/* ---------- Сетка ---------- */
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.375rem), 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.letter { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.letter__open { position: relative; display: block; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--c-line), var(--sh-2); overflow: hidden; transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.letter__open img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 679; object-fit: cover; object-position: top; }
.letter__zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand); color: #fff; box-shadow: var(--sh-2); transition: transform var(--t) var(--ease); }
.letter__zoom .i { width: 22px; height: 22px; }
.letter__open:hover { box-shadow: 0 0 0 1px var(--c-brand), var(--sh-3); transform: translateY(-2px); }
.letter__open:hover .letter__zoom { transform: scale(1.08); }
.letter__open:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.letter__open:active { transform: scale(.98); }
.letter__body { display: grid; gap: 4px; }
.letter__kind { margin: 0; font-size: var(--fs-caption); font-weight: 600; letter-spacing: .02em; color: var(--c-text-muted); }
.letter__org { margin: 0; font-size: var(--fs-h4); line-height: 1.3; }
.letter__text { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--c-text-muted); }

/* Главная: четыре в ряд, на телефоне — лента с прокруткой пальцем */
.letters--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 63.9375em) { .letters--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 37.4375em) {
  .letters--row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s-4); }
  .letters--row > * { flex: 0 0 min(72%, 260px); scroll-snap-align: start; }
}

/* Страницы документа (выписка из реестра СРО): подпись — только номер страницы */
.letters--pages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.letters--pages .letter { gap: var(--s-2); }
.letters--pages .letter__zoom { width: 36px; height: 36px; right: 8px; bottom: 8px; }
.letters--pages .letter__zoom .i { width: 18px; height: 18px; }
@media (max-width: 63.9375em) { .letters--pages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 37.4375em) { .letters--pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-6); }
.doc-card { margin-top: var(--s-7); padding: clamp(20px, 1rem + 1.5vw, 40px); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-card); }
.doc-card h2 { margin: 0 0 var(--s-4); font-size: var(--fs-h3); }
.doc-note { margin: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--c-text-muted); }
.docs a { display: inline-block; padding-block: 4px; }
.hero__trust-link { color: inherit; text-decoration: none; }
.hero__trust-link b { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }
.hero__trust-link:hover b { text-decoration-thickness: 2px; }

/* ---------- Окно «письмо крупно» ---------- */
.lb { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(11, 27, 51, .88); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lb__bar { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--gutter); background: var(--c-ink); }
.lb__title { flex: 1; min-width: 0; margin: 0; font: 600 var(--fs-small)/1.35 var(--f-text); }
.lb__count { flex: none; font-size: var(--fs-small); color: var(--c-text-on-dark-muted); white-space: nowrap; }
.lb__btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-ink-line); border-radius: var(--r-sm); background: var(--c-ink-2); color: #fff; cursor: pointer; transition: background var(--t-fast); }
.lb__btn .i { width: 22px; height: 22px; }
.lb__btn:hover { background: var(--c-ink-line); }
.lb__btn:focus-visible { outline: 3px solid var(--c-brand-on-dark); outline-offset: 2px; }
.lb__btn:active { transform: scale(.95); }
.lb__btn[disabled] { opacity: .4; cursor: default; }
.lb__view { overflow: auto; overscroll-behavior: contain; padding: var(--s-5) var(--gutter) var(--s-7); }
.lb__view:focus-visible { outline: 3px solid var(--c-brand-on-dark); outline-offset: -3px; }
.lb__img { display: block; width: min(100%, 980px); height: auto; margin: 0 auto; background: #fff; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.lb__full { display: block; width: fit-content; margin: var(--s-4) auto 0; padding: 10px 4px; color: var(--c-brand-on-dark); font-size: var(--fs-small); font-weight: 600; }
.lb__full:focus-visible { outline: 3px solid var(--c-brand-on-dark); outline-offset: 2px; }
@media (max-width: 37.4375em) {
  .lb__bar { flex-wrap: wrap; row-gap: 6px; }
  .lb__title { order: -2; flex-basis: calc(100% - 56px); }
  .lb__close { order: -1; }
  .lb__count { margin-right: auto; }
  .lb__view { padding-inline: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lb[open] .lb__img { animation: lb-in .22s var(--ease); }
  @keyframes lb-in { from { opacity: 0; transform: translateY(8px); } }
}
html.lb-lock { overflow: hidden; }
