/* ==========================================================================
   SELL BY NET — сайт, каркас 19.09
   Источник правды: design/handoff-1909-sait/CLAUDE.md (цифры скримов,
   подложки, футера, логотипа — оттуда один в один).

   Три режима раскладки:
     M  — телефон            (до 599 px)          — база этого файла
     P  — планшет/портрет    (от 600 px)
     L  — ландшафт           (от 1200 px и ширина ≥ высоты)
   В режиме L всё меряется в единицах утверждённого кадра 1498 px:
     --u = ширина страницы / 1498  (1920 → ×1,282, 1200 → ×0,801)
   ========================================================================== */

:root {
  /* палитра CLAUDE.md — других цветов в вёрстке нет */
  --c-deep:   #011C31;
  --c-navy:   #023D67;
  --c-sea:    #03749C;
  --c-teal:   #0A96B7;
  --c-slate:  #48748C;
  --c-sky:    #5B94B3;
  --c-ice:    #7CC9F2;
  --c-rust:   #D44206;
  --c-amber:  #F17005;
  --c-orange: #FE8F33;
  --c-peach:  #FFBC84;
  --c-white:  #FFFFFF;
  /* два значения взяты из утверждённых карточек (не палитра, но эталон):
     текст на оранжевой кнопке (adaptiv-1709-*) и нижняя строка футера (futer-1709-*) */
  --c-on-orange: #3A1E00;
  --c-foot-muted: #C6D6E6;

  --deep-rgb: 1, 28, 49;           /* rgb(1,28,49) — цвет всех скримов */

  /* единица кадра 1498; считается на месте использования (cqw — от .page) */
  --u: calc(min(100cqw, 2247px) / 1498);

  --side: 20px;                    /* боковое поле: M 20, P 36, L 34·u */
  --radius: 10px;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-deep);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* фокус — двойное кольцо дизайн-системы: #7CC9F2 внутри, #011C31 снаружи */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--c-ice);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--c-deep);
  border-radius: 6px;
}

.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;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--c-orange); color: var(--c-on-orange);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* текст, которого пока нет: видно сразу, что это заготовка */
.ph {
  display: inline-block;
  padding: 0 .35em;
  border: 1px dashed currentColor;
  border-radius: 4px;
  font-weight: inherit;
  opacity: .9;
}

/* показ только в своём режиме */
.only-wide { display: none; }

.page {
  position: relative;
  container-type: inline-size;       /* даёт cqw для --u */
}

/* ==========================================================================
   Шапка (поверх первого экрана)
   ========================================================================== */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  height: 80px;
}
.topbar__logo {
  position: absolute; left: 20px; top: 19px;
  width: 207px; height: 61px;
  display: block; border-radius: 6px;
}
.topbar__logo svg { width: 100%; height: 100%; }
.topbar__nav { display: none; }
.topbar__cab { display: none; }
.burger {
  position: absolute; right: 10px; top: 15px;
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 4.5px;
  padding: 0; border: 0; border-radius: var(--radius);
  background: transparent; cursor: pointer;
}
.burger i { display: block; width: 24px; height: 2.5px; border-radius: 1.25px; background: var(--c-white); }

/* ==========================================================================
   Первый экран
   ========================================================================== */
.hero {
  position: relative;
  min-height: 640px;
  height: 100vh;
  height: 100svh;
  background: var(--c-navy);           /* подложка #023D67 */
  color: var(--c-white);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__mosaic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero__scrim { position: absolute; left: 0; top: 0; }
/* портрет и телефон: мозаика на весь кадр, скрим сверху вниз 0,80 → 0,72 (46 %) → 0,24 */
.hero__scrim--portrait {
  inset: 0;
  background: linear-gradient(180deg,
    rgba(var(--deep-rgb), .80) 0%,
    rgba(var(--deep-rgb), .72) 46%,
    rgba(var(--deep-rgb), .24) 100%);
}
.hero__scrim--side, .hero__scrim--top { display: none; }

.hero__body {
  position: relative; z-index: 2;
  padding: 169px var(--side) 48px;
}
.hero__title {
  font-size: 26px; line-height: 32px; font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 36.7px;
  font-size: 14px; line-height: 21px; font-weight: 400;
  color: var(--c-white);
  max-width: 34em;
}
.hero__actions {
  margin-top: 34.5px;
  display: flex; flex-direction: column; gap: 12px;
}
.hero--home .hero__lead { margin-top: 44.7px; }
.hero--home .hero__actions { margin-top: 35.5px; }
.hero__trio { display: none; }  /* трио — только в ландшафте */

/* кнопки первого экрана */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700; line-height: 1;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--c-orange); color: var(--c-on-orange); border: 0; }
.btn--primary:hover { background: var(--c-amber); }
.btn--ghost { background: transparent; color: var(--c-white); border: 1px solid var(--c-white); font-weight: 600; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--ghost-dark { background: transparent; color: var(--c-deep); border: 1px solid var(--c-sky); font-weight: 600; }
.btn--ghost-dark:hover { border-color: var(--c-navy); }
.hero .btn { width: 100%; }

/* ==========================================================================
   Сборка мозаики (механика «проявление по граням» — site.js)
   до старта граней не видно, чтобы не было вспышки собранного полотна
   ========================================================================== */
.anim-on .mosaic--anim path { opacity: 0; }

/* ==========================================================================
   Подвал — вариант Б: мозаика mosaic-1709-contacts, градиент 0,10 → 0,60 → 0,76
   ========================================================================== */
.footer {
  position: relative;
  background: var(--c-navy);            /* подложка #023D67 */
  color: var(--c-white);
  overflow: hidden;
}
.footer__bg { position: absolute; inset: 0; pointer-events: none; }
.footer__mosaic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.footer__grad {
  position: absolute; inset: 0;
  /* портрет и телефон: перелом сдвинут с 60 % на 34 % */
  background: linear-gradient(180deg,
    rgba(var(--deep-rgb), .10) 0%,
    rgba(var(--deep-rgb), .60) 34%,
    rgba(var(--deep-rgb), .76) 100%);
}
.footer__in {
  position: relative; z-index: 1;
  min-height: 700px;
  padding: 240px 20px 22px;
}
.footer__logo { position: absolute; left: 27px; top: 48px; width: 90px; height: 115px; border-radius: 6px; }
.footer__logo svg { width: 100%; height: 100%; }
.footer a { color: var(--c-white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.fcol { border-bottom: 1px solid var(--c-sky); }
.fcol__h { font-size: 15px; font-weight: 700; line-height: 1.2; }
.fcol__btn {
  width: 100%; min-height: 51px;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--c-white); text-align: left;
}
.fcol__btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.fcol__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.fcol__list { font-size: 12.5px; line-height: 22px; padding: 0 0 14px; }
.fcol__list a { display: inline-block; padding: 5px 0; }
.js .fcol:not(.is-open) .fcol__list { display: none; }

.fcontacts { margin-top: 8px; font-size: 12.5px; line-height: 28px; font-style: normal; }
.fcontacts li { display: flex; align-items: center; gap: 11px; }
.fcontacts li::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 2px; background: var(--c-orange); }
.footer .soc { margin-top: 24px; font-size: 12px; gap: 0; }
.footer .soc span { width: 44px; }
.footer__bottom {
  margin-top: 46px; padding-top: 12px;
  border-top: 1px solid var(--c-sky);
  font-size: 11.5px; line-height: 22px; color: var(--c-foot-muted);
  display: flex; flex-direction: column;
}

/* ==========================================================================
   P — планшет / портрет (от 600 px)
   ========================================================================== */
@media (min-width: 600px) {
  :root { --side: 36px; }
  .only-m { display: none; }
  .only-wide { display: revert; }

  .topbar { height: 100px; }
  .topbar__logo { left: 36px; top: 22px; }
  .topbar__cab {
    display: inline-flex; align-items: center;
    position: absolute; right: 120px; top: 30px; height: 36px; padding: 0 9px;
    font-size: 13px; font-weight: 600; color: var(--c-white); text-decoration: none;
    border-radius: 8px;
  }
  .topbar__cab:hover { text-decoration: underline; }
  .burger { right: 27px; top: 21px; gap: 5.5px; }
  .burger i { width: 26px; }

  .hero { min-height: 760px; }
  .hero__body { padding: 294px var(--side) 56px; }
  .hero__title { font-size: 40px; line-height: 46px; text-wrap: initial; }
  .hero__lead { margin-top: 55.5px; font-size: 16px; line-height: 24px; max-width: 27em; }
  .hero__actions { margin-top: 45px; flex-direction: row; gap: 14px; }
  .hero .btn { width: 260px; }
  .hero--home .hero__body { padding-top: 336px; }
  .hero--home .hero__title { font-size: 42px; line-height: 47px; }
  .hero--home .hero__lead { margin-top: 21.5px; }
  .hero--home .hero__actions { margin-top: 41px; }
  .hero--home .btn { width: 196px; height: 48px; }

  /* подвал 834 × 760: колонки две на две */
  .footer__in { min-height: 760px; padding: 273px 36px 18px; }
  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .fcol { border: 0; }
  .fcol__btn { display: none; }
  .fcol__h .only-wide { display: block; }
  .fcol__list { padding: 11px 0 0; }
  .fcol__list a { padding: 0; }
  .js .fcol:not(.is-open) .fcol__list { display: block; }
  .footer__meta { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .fcontacts { margin-top: 0; line-height: 26px; }
  .footer .soc { margin-top: 6px; }
  .footer__bottom { margin-top: 46px; padding-top: 16px; flex-direction: row; justify-content: space-between; gap: 20px; }
}

/* ==========================================================================
   L — ландшафт (от 1200 px, ширина ≥ высоты): утверждённый кадр 1498 × s
   ========================================================================== */
@media (min-width: 1200px) and (orientation: landscape) {
  :root { --side: 2.27%; }         /* 34 / 1498 ширины */

  .topbar { height: calc(152 * var(--u)); }
  .topbar__logo {
    left: calc(34 * var(--u)); top: calc(28 * var(--u));
    width: calc(258 * var(--u)); height: calc(76 * var(--u));
  }
  /* меню центрировано по ширине кадра; шаг = ширина пункта + просвет 44 px на 1920 */
  .topbar__nav {
    display: block;
    position: absolute; left: 50%; top: calc(79 * var(--u));
    transform: translate(-50%, -50%);
  }
  .topbar__nav ul { display: flex; gap: calc(34.3 * var(--u)); }
  .topbar__nav a {
    display: block; padding: calc(6 * var(--u)) 0;
    font-size: calc(14 * var(--u)); line-height: 1.2; font-weight: 500;
    color: var(--c-white); text-decoration: none; white-space: nowrap;
  }
  .topbar__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .topbar__nav a[aria-current="page"] { color: var(--c-orange); font-weight: 700; }
  .topbar__cab {
    right: calc(90.5 * var(--u)); top: calc(56.5 * var(--u));
    width: calc(91.33 * var(--u)); height: calc(45 * var(--u)); padding: 0;
    justify-content: center;
    border: 1px solid var(--c-white); border-radius: var(--radius);
    font-size: calc(14 * var(--u)); font-weight: 600;
  }
  .topbar__cab:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
  .burger {
    right: calc(34.5 * var(--u)); top: calc(56.5 * var(--u));
    width: calc(45 * var(--u)); height: calc(45 * var(--u));
    gap: calc(5 * var(--u));
    background: rgba(var(--deep-rgb), .35);
    border: 1px solid rgba(255, 255, 255, .55);
  }
  .burger i { width: calc(20 * var(--u)); height: calc(2 * var(--u)); min-height: 2px; border-radius: 1px; }

  .hero { min-height: calc(700 * var(--u)); }
  .hero__scrim--portrait { display: none; }
  /* скрим колонки текста: 880 · s, 0,66 → 0,60 (58 %) → 0 */
  .hero__scrim--side {
    display: block;
    width: calc(880 * var(--u)); height: 100%;
    background: linear-gradient(90deg,
      rgba(var(--deep-rgb), .66) 0%,
      rgba(var(--deep-rgb), .60) 58%,
      rgba(var(--deep-rgb), 0) 100%);
  }
  /* скрим шапки: 152 · s, 0,80 → 0,74 (70 %) → 0 */
  .hero__scrim--top {
    display: block;
    width: 100%; height: calc(152 * var(--u));
    background: linear-gradient(180deg,
      rgba(var(--deep-rgb), .80) 0%,
      rgba(var(--deep-rgb), .74) 70%,
      rgba(var(--deep-rgb), 0) 100%);
  }
  .hero__body,
  .hero--home .hero__body { padding: calc(170.5 * var(--u)) calc(34 * var(--u)) 0; }
  .hero__title,
  .hero--home .hero__title { font-size: calc(46 * var(--u)); line-height: calc(53.4 * var(--u)); }
  .hero__lead,
  .hero--home .hero__lead {
    margin-top: calc(18 * var(--u));
    font-size: calc(16.4 * var(--u)); line-height: calc(24.6 * var(--u));
    max-width: 29.5em;
  }
  .hero__actions,
  .hero--home .hero__actions { margin-top: calc(45.4 * var(--u)); gap: calc(14 * var(--u)); }
  .hero .btn,
  .hero--home .btn {
    width: calc(199.7 * var(--u)); height: calc(48.4 * var(--u)); padding: 0;
    font-size: calc(14 * var(--u));
  }
  /* трио: линия #5B94B3 на 92 · s от низа, шаг колонок 200 · s */
  .hero__trio {
    display: grid; grid-template-columns: repeat(3, calc(200 * var(--u)));
    position: absolute; z-index: 2;
    left: calc(34 * var(--u)); right: calc(34 * var(--u)); bottom: 0;
    height: calc(92 * var(--u));
    padding-top: calc(16.7 * var(--u));
    border-top: 1px solid var(--c-sky);
  }
  .hero__trio b { display: block; font-size: calc(14.8 * var(--u)); line-height: 1.2; font-weight: 700; }
  .hero__trio span { display: block; margin-top: calc(4.9 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: 1.2; color: var(--c-ice); }


  /* подвал: утверждённый кадр 1498 × 560, отмасштабированный целиком */
  .footer__grad {
    background: linear-gradient(180deg,
      rgba(var(--deep-rgb), .10) 0%,
      rgba(var(--deep-rgb), .60) 60%,
      rgba(var(--deep-rgb), .76) 100%);
  }
  .footer__in { height: calc(560 * var(--u)); min-height: 0; padding: 0; }
  .footer__logo {
    left: calc(34 * var(--u)); top: calc(60 * var(--u));
    width: calc(112 * var(--u)); height: calc(144 * var(--u));
  }
  .footer__cols {
    position: absolute; left: calc(352 * var(--u)); top: calc(134.5 * var(--u));
    grid-template-columns: repeat(2, calc(248 * var(--u)));
    grid-auto-rows: calc(150 * var(--u));
  }
  .fcol__h { font-size: calc(15 * var(--u)); }
  .fcol__list { padding-top: calc(11 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: calc(22 * var(--u)); }
  .footer__meta { display: block; position: absolute; left: calc(1100 * var(--u)); top: calc(131.6 * var(--u)); }
  .fcontacts { font-size: calc(12.5 * var(--u)); line-height: calc(26 * var(--u)); }
  .fcontacts li { gap: calc(11 * var(--u)); }
  .fcontacts li::before { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }
  .footer .soc { margin-top: calc(40 * var(--u)); font-size: calc(12 * var(--u)); }
  .footer .soc span { width: calc(44 * var(--u)); }
  .footer__bottom {
    position: absolute; left: calc(34 * var(--u)); right: calc(34 * var(--u)); top: calc(500 * var(--u));
    margin: 0; padding-top: calc(16 * var(--u));
    font-size: calc(11.5 * var(--u)); line-height: 1.2;
  }
}

/* ==========================================================================
   Без движения: мозаика сразу собрана, меню без выезда
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .anim-on .mosaic--anim path { opacity: 1; }
  .menu, .menu .menu__anim, .menu__chev, .fcol__btn svg, .btn { transition: none !important; }
  .menu .menu__anim { transform: none; }
}

/* ==========================================================================
   Документ (политика): короткая тёмная шапка без мозаики
   ========================================================================== */
.hero--doc { height: auto; min-height: 0; background: var(--c-deep); }
.hero--doc .hero__body { padding-top: 110px; padding-bottom: 40px; }
.hero--doc .hero__title { font-size: 26px; line-height: 1.2; }
.draft-flag {
  display: inline-block; margin-bottom: 18px;
  padding: 8px 14px; border-radius: 8px;
  background: var(--c-orange); color: var(--c-on-orange);
  font-size: 14px; font-weight: 800;
}
@media (min-width: 600px) {
  .hero--doc .hero__body { padding-top: 140px; }
  .hero--doc .hero__title { font-size: 40px; }
}
@media (min-width: 1200px) and (orientation: landscape) {
  .hero--doc .hero__body { padding-top: calc(190 * var(--u)); padding-bottom: calc(56 * var(--u)); }
  .hero--doc .hero__title { font-size: calc(46 * var(--u)); line-height: 1.16; }
}
.fcontacts a { white-space: nowrap; }

/* Плитки клиентов — пакет дизайна 19.09: однотонная заливка + белый логотип + подпись; при наведении/фокусе слой «ЗАДАЧА» */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); } /* 19.09 Павел: «уменьши в 2 раза», затем «6 в ряд» */
.client { position: relative; aspect-ratio: 1 / 1; overflow: hidden; outline: none; }
.client > svg { display: block; width: 100%; height: 100%; }
.client__hover { opacity: 0; transition: opacity .25s ease; }
.client:hover .client__hover, .client:focus-visible .client__hover, .client:focus-within .client__hover { opacity: 1; }
.client:focus-visible { box-shadow: inset 0 0 0 3px #7CC9F2; }
@media (max-width: 1100px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .clients { grid-template-columns: repeat(2, 1fr); max-width: none; } }
@media (prefers-reduced-motion: reduce) { .client__hover { transition: none; } }


/* ==========================================================================
   СЕРЕДИНА СТРАНИЦ — дизайн «Блоки сайта 19.09» (design/handoff-1909-bloki/,
   bloki-1909-*.html, forma-1909.html, общие стили — bloki-1909-parts.js).
   Павел 19.09: «давай пока так». Три кадра дизайна → три режима:
     390 — база (до 599 px), 834 — от 600 px, 1440 — от 1200 px.
   Поля: 20/44 · 40/56 · 64/80. Ритм: светлое — основа, тёмное на мозаике не чаще двух раз.
   ========================================================================== */

/* IBM Plex Mono (SIL OFL 1.1) — надзаголовки, заглушки, даты; хранится у нас, как Golos */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-mono-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-mono-600-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; }

:root {
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* нейтральные и служебные цвета — не палитра, заданы дизайнером в карточках 19.09
     (bloki-1909-parts.js и карточки страниц), взяты один в один */
  --ink:        #0C2438;   /* заголовки */
  --text:       #46586B;   /* основной текст */
  --text-doc:   #243C52;   /* текст статьи и документа */
  --link:       #02638C;   /* ссылки, надзаголовки */
  --link-deep:  #023D69;   /* крупные ссылки-контакты, цитата */
  --muted:      #5F7285;   /* подсказки, подписи */
  --muted-2:    #6C7F91;   /* адрес, текст светлого слота */
  --muted-3:    #7D8FA0;   /* плейсхолдер, дата */
  --line:       #E4EAF1;   /* рамка карточки */
  --line-2:     #D7E3EC;   /* рамка панели формы, таблицы */
  --line-in:    #B9CCDB;   /* рамка поля */
  --line-row:   #EDF2F7;   /* строки таблицы */
  --soft:       #EEF2F6;   /* фон блока soft, светлый слот */
  --soft-2:     #EEF4F9;   /* цитата, запасной путь, шапка таблицы */
  --soft-hov:   #EAF1F9;   /* наведение на контурную кнопку */
  --tag-bg:     #E7F1F8;   /* рубрика */
  --slot-dark:  #93A9BF;   /* текст слота на тёмном */
  --slot-line:  #C3D0DC;   /* рамка светлого слота */
  --err-text:   #A93604;   /* текст ошибки */
  --stub-text:  #8A3B08;   /* текст заглушки [ … ] */
  --btn-dis:    #FFD9BB;   /* неактивная кнопка */
  --btn-dis-t:  #9A6634;
  --case-bg:    #FFE7D2;   /* метка «кейс» */
  --ring: 0 0 0 3px var(--c-ice), 0 0 0 5px var(--c-deep);   /* фокус карточек */
}

[hidden] { display: none !important; }

/* ---------- блок ---------- */
.blk { position: relative; background: var(--c-white); color: var(--ink); }
.blk--soft { background: var(--soft); }
.blk--dark { background: var(--c-navy); color: var(--c-white); overflow: hidden; }
.blk__mz { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.blk__scrim { position: absolute; inset: 0; background: rgba(var(--deep-rgb), .86); pointer-events: none; }
.blk__in { position: relative; max-width: 1440px; margin: 0 auto; padding: 44px 20px; }

.eyebrow {
  margin: 0 0 12px;
  font: 600 10.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--link);
}
.blk--dark .eyebrow { color: var(--c-ice); }
.blk__title {
  margin: 0 0 12px; font-weight: 800; letter-spacing: -.015em; text-wrap: pretty;
  font-size: 25px; line-height: 1.2;
}
.blk__title--sub { font-size: 23px; }
.blk__title--solo { margin-bottom: 22px; }
.blk__lead { margin: 0 0 24px; max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.blk--dark .blk__lead { color: var(--c-foot-muted); }
.blk__after { margin-top: 22px; }

/* ---------- карточки ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.crd {
  background: var(--c-white); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 22px 24px; color: var(--ink);
}
.crd__title { margin: 0 0 8px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.crd__text { font-size: 14.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.crd__title:last-child { margin-bottom: 0; }
.crd--link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.crd--link:hover { border-color: var(--c-sky); box-shadow: 0 12px 26px -18px rgba(2, 30, 60, .45); }
.crd--link:focus-visible { outline: none; border-radius: 12px; box-shadow: var(--ring); }
.crd__more { margin-top: auto; padding-top: 14px; }
.crd--link .crd__text + .crd__more { margin-top: auto; }

.tag {
  display: inline-flex; align-items: center; width: max-content; height: 24px; padding: 0 9px; margin-bottom: 10px;
  border-radius: 6px; background: var(--tag-bg); color: var(--link);
  font-size: 11px; font-weight: 600; line-height: 1;
}
.tag--case { background: var(--case-bg); color: var(--err-text); }

/* ссылка со стрелкой */
.arrow {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  font-size: 14.5px; font-weight: 700; color: var(--link); text-decoration: none;
  transition: color .15s ease;
}
a.arrow:hover, .crd--link:hover .arrow { color: var(--c-rust); }
a.arrow:focus-visible { outline: 3px solid var(--c-ice); outline-offset: 4px; border-radius: 4px; box-shadow: none; }
.blk--dark .arrow { color: var(--c-ice); }
.blk--dark a.arrow:hover { color: var(--c-peach); }

/* заглушка [ … ] — видно, что это место под данные, а не текст сайта */
.stub {
  font-family: var(--mono); font-size: .92em;
  padding: 0 4px; border-radius: 3px;
  background: rgba(241, 112, 5, .16); border-bottom: 1px dashed rgba(212, 66, 6, .55);
  color: var(--stub-text);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* слот под снимок / карту / картинку */
.slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 14px; border-radius: 11px;
  border: 1px dashed rgba(124, 201, 242, .5); background: rgba(var(--deep-rgb), .5);
  color: var(--slot-dark); font: 500 12.5px/1.5 var(--mono);
}
.slot--light { background: var(--soft); border-color: var(--slot-line); color: var(--muted-2); }
.slot--shot { height: 150px; margin-bottom: 14px; }
.slot--canvas { height: 220px; }
.slot--map { height: 220px; }

/* снимки кабинета (главная) */
.shots { margin-bottom: 26px; }
.shot__title { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--c-white); }
.shot__text { font-size: 14.5px; line-height: 1.6; color: var(--c-foot-muted); }

/* ---------- кнопки середины (форма, призывы) ---------- */
.btn--fire {
  height: 52px; padding: 0 28px; gap: 10px; border: 0; border-radius: 9px;
  background: var(--c-amber); color: var(--c-white);
  font-size: 15.5px; font-weight: 700;
}
.btn--fire:hover { background: var(--c-rust); }
.btn--fire:focus-visible, .btn--line:focus-visible {
  outline: none; border-radius: 9px;
  box-shadow: 0 0 0 3px var(--c-white), 0 0 0 6px var(--link);
}
.btn--fire:disabled { background: var(--btn-dis); color: var(--btn-dis-t); cursor: not-allowed; }
.btn--line {
  height: 52px; padding: 0 28px; border-radius: 9px;
  background: transparent; border: 1px solid var(--line-in); color: var(--ink);
  font-size: 15.5px; font-weight: 700;
}
.btn--line:hover { background: var(--soft-hov); border-color: var(--link); color: var(--link-deep); }
.btn--on-dark { border-color: rgba(255, 255, 255, .4); color: var(--c-white); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .1); border-color: var(--c-white); color: var(--c-white); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btnrow { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.btnrow .btn { width: 100%; }

/* призыв на тёмном (работы, о компании) */
.callout { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.callout__text { max-width: 560px; }
.callout .blk__title { margin-bottom: 10px; }
.callout .blk__lead { margin: 0; }

/* ---------- услуга ---------- */
.win { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--c-white); }
.win__bar { background: var(--c-navy); color: var(--c-white); font-size: 14px; font-weight: 700; padding: 11px 15px; }
.win__body { padding: 14px 15px; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.win__gap { display: flex; gap: 7px; align-items: flex-start; margin-top: 10px; color: var(--err-text); font-weight: 600; }
.win__gap::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 6px; background: var(--c-rust); }

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.stp { display: flex; gap: 12px; align-items: flex-start; }
.stp__n {
  flex: none; width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-amber); color: var(--c-white); font-size: 13px; font-weight: 800;
}
.stp__title { margin: 2px 0 5px; font-size: 15.5px; line-height: 1.3; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.stp__text { font-size: 13.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }

.two-lists { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.two-lists .steps { margin-top: 22px; }
.two-lists__prose { margin: 18px 0 20px; }

/* ---------- блог ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.filter__btn {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--c-white); color: var(--ink);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.filter__btn:hover { background: var(--soft-hov); border-color: var(--link); }
.filter__btn[aria-pressed="true"] { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.filter__btn:focus-visible { outline: none; border-radius: 8px; box-shadow: var(--ring); }
.is-filtered-out { display: none !important; }

.art {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--c-white);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.art:hover { border-color: var(--c-sky); box-shadow: 0 12px 26px -18px rgba(2, 30, 60, .45); }
.art:focus-visible { outline: none; border-radius: 12px; box-shadow: var(--ring); }
.art__cover {
  display: flex; align-items: center; justify-content: center; height: 132px;
  background: var(--c-navy); color: var(--c-ice); border-bottom: 1px solid var(--line);
  font: 500 11.5px var(--mono);
}
.art__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.art__top { display: flex; align-items: center; gap: 10px; }
.art__top .tag { margin: 0; }
.art__date { font: 500 11.5px var(--mono); color: var(--muted-3); }
.art__title { margin: 0; font-size: 16.5px; line-height: 1.35; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.art__lead { font-size: 13.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }

/* ---------- статья ---------- */
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 8px; }
.art-meta .tag { margin: 0; }
.art-meta__info { font: 500 12.5px var(--mono); color: var(--muted-3); }
.art-lay { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }

/* оглавление сверху (уже 1200) — сворачивается, по умолчанию свёрнуто */
.toc-m { margin: 14px 0 22px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--c-white); overflow: hidden; }
.toc-m summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; min-height: 48px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary svg { flex: none; transform: rotate(-90deg); transition: transform .2s ease; }
.toc-m[open] summary svg { transform: none; }
.toc-m summary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--c-ice); border-radius: 11px; }
.toc-m__list { display: grid; gap: 9px; padding: 0 16px 16px; }
.toc-m__list a { font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; }
.toc-m__list a:hover { color: var(--c-rust); }

.txt { max-width: 720px; color: var(--text-doc); }
.txt p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.65; text-wrap: pretty; }
.txt h2 { margin: 30px 0 14px; font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; scroll-margin-top: 20px; }
.txt h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.txt ul { display: grid; gap: 11px; margin: 0 0 22px; padding: 0; list-style: none; }
.txt li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.txt li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; background: var(--c-amber); }
.quote { margin: 28px 0; padding: 22px 26px; background: var(--soft-2); border-left: 4px solid var(--c-amber); border-radius: 0 12px 12px 0; }
.txt .quote p { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 700; color: var(--link-deep); }
.tbl-wrap { margin: 26px 0; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.tbl-wrap:focus-visible { outline: none; box-shadow: var(--ring); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { padding: 11px 13px; text-align: left; background: var(--soft-2); color: var(--link-deep); font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 11px 13px; border-top: 1px solid var(--line-row); line-height: 1.55; vertical-align: top; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl__n { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--link-deep); }
.fig { margin: 28px 0; }
.fig__slot { height: 180px; }
.fig figcaption { margin-top: 9px; font-size: 13px; line-height: 1.55; color: var(--muted); }

.art-side { display: grid; gap: 22px; }
.art-side .toc { display: none; }         /* на 1440 — сбоку, уже — оглавление сверху */
.toc { display: grid; gap: 10px; }
.toc__cap, .anchors__cap { font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc a { font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--link); text-decoration: none; }
.toc a:hover, .anchors a:hover { color: var(--c-rust); }
.toc a[aria-current], .anchors a[aria-current] { color: var(--ink); border-left: 2px solid var(--c-amber); padding-left: 10px; margin-left: -12px; }
.ctacard { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--c-white); }
.ctacard__title { font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.ctacard__text { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.ctacard .btn { width: max-content; }

/* ---------- о компании ---------- */
.nums { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nums__n { display: block; margin-bottom: 8px; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--link-deep); }
.nums__l { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.person { display: flex; flex-direction: column; gap: 14px; }
.person__ava {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft-2); border: 1px dashed var(--line-in); color: var(--muted);
  font: 500 11px var(--mono);
}
.person__name { margin-bottom: 4px; }
.person__role { font-size: 13.5px; line-height: 1.5; color: var(--text); }

/* ---------- контакты ---------- */
.contacts { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.rows { display: grid; gap: 16px; margin: 0 0 26px; }
.rows__r { display: grid; gap: 4px; }
.rows dt { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rows dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.rows dd a, .direct a { color: var(--link-deep); text-decoration: none; border-bottom: 1px solid transparent; }
.rows dd a:hover, .direct a:hover { color: var(--c-rust); border-bottom-color: var(--c-rust); }
.req { display: grid; gap: 12px; max-width: 520px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--c-white); }
.req__cap { font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.req dl { display: grid; gap: 10px; margin: 0; }
.req__r { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-row); }
.req__r:last-child { padding-bottom: 0; border-bottom: 0; }
.req dt { font-size: 13px; color: var(--muted); }
.req dd { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); text-align: right; }

/* ---------- политика ---------- */
.doc-lay { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.doc { max-width: 760px; color: var(--text-doc); }
.doc h2 { margin: 34px 0 12px; font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--ink); scroll-margin-top: 20px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; text-wrap: pretty; }
.doc ul { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; }
.doc li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.65; }
.doc li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; background: var(--c-sky); }
.doc a { color: var(--link); }
.doc a:hover { color: var(--c-rust); }
.cl { margin-right: 8px; font: 500 12.5px var(--mono); color: var(--muted-3); }
.anchors { display: none; }
.anchors a { font-size: 13.5px; line-height: 1.4; font-weight: 600; color: var(--link); text-decoration: none; }

/* ==========================================================================
   Форма заявки — forma-1909.html. Светлый блок, белая панель, свои поля и тумблер.
   Состояния: пустая (кнопка неактивна) · фокус · ошибка поля · ошибка пары ·
   активна · отправляется (.is-sending) · спасибо (.lead-done) · ошибка сервера (.is-error)
   ========================================================================== */
.fsec { position: relative; background: var(--c-white); color: var(--ink); }
.fsec__in { position: relative; max-width: 1440px; margin: 0 auto; padding: 40px 20px; display: grid; gap: 26px; }
.fsec__title { margin: 0 0 14px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; text-wrap: pretty; }
.fsec__lead { margin: 0 0 26px; font-size: 15px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.direct { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.direct__label { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.direct a { width: max-content; font-size: 18px; font-weight: 700; }
.direct__addr { margin-top: 2px; font-size: 13px; color: var(--muted-2); }

.lead__box {
  position: relative; min-width: 0;
  background: var(--c-white); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 18px 40px -30px rgba(2, 30, 60, .45);
  padding: 20px 18px;
}
.lead-form { display: grid; gap: 18px; }
.lead-form__row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; min-width: 0; }
.field__label { margin: 0 0 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.field__req { color: var(--c-rust); }
.field__input {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1px solid var(--line-in); border-radius: 9px;
  background: var(--c-white); color: var(--ink);
  font: 400 16px/1.3 var(--font);     /* на телефоне 16 px: иначе iOS увеличивает страницу при фокусе */
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field__input::placeholder { color: var(--muted-3); opacity: 1; }
.field__input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(124, 201, 242, .45); }
.field__input--area { height: 106px; min-height: 106px; max-height: 320px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field__input[aria-invalid="true"],
.lead-form__pair:has(#lf-phone[aria-invalid="true"]:placeholder-shown) #lf-email {   /* пара пустая — обе рамки красные */
  border-color: var(--c-rust); background: rgba(212, 66, 6, .05);
}
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(212, 66, 6, .18); }
.field__err { display: flex; gap: 6px; align-items: flex-start; margin: 7px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--err-text); }
.field__err::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 5px; background: var(--c-rust); }
.field__hint { margin: 7px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.lead-form__pair .field__err:not([hidden]) ~ .field__hint { display: none; }
.lead-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* тумблер согласия — не галочка; по умолчанию выключен */
.consent { display: flex; align-items: flex-start; gap: 13px; padding-top: 2px; }
.switch {
  appearance: none; -webkit-appearance: none;
  flex: none; margin: 0; position: relative;
  width: 48px; height: 28px; border-radius: 14px;
  background: var(--c-slate); border: 1px solid var(--c-slate);
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--c-white);
  box-shadow: 0 1px 3px rgba(2, 30, 60, .3);
  transition: transform .18s ease;
}
.switch:checked { background: var(--c-amber); border-color: var(--c-amber); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: none; box-shadow: var(--ring); }
.consent__body { font-size: 13px; line-height: 1.5; color: var(--text); }
.consent__text { display: block; cursor: pointer; }
.consent__policy { display: block; }
.consent__policy a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.consent__policy a:hover { color: var(--c-rust); }

.lead-form__actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.lead-form__actions .btn { width: 100%; }
.lead-form__note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lead-form__ready, .lead-form__wait { display: none; }
.lead-form__submit:not(:disabled) ~ .lead-form__why { display: none; }
.lead-form__submit:not(:disabled) ~ .lead-form__ready { display: block; }
.lead-form.is-sending .lead-form__why, .lead-form.is-sending .lead-form__ready { display: none; }
.lead-form.is-sending .lead-form__wait { display: block; }
.lead-form.is-sending .lead-form__submit:disabled { background: var(--c-orange); color: var(--c-white); cursor: progress; }
.lead-form.is-sending .lead-form__submit::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--c-white);
  animation: lead-spin .8s linear infinite;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }

/* «Отправляем заявку…» — только для экранного диктора: на виду кнопка со спиннером */
.lead-form__status:empty { display: none; }
.lead-form__status.is-sending {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lead-form__retry { display: none; }
/* ошибка сервера: поля прячутся (значения сохраняются), на виду ответ и «Попробовать ещё раз» */
.lead-form__status.is-error { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lead-form:has(.lead-form__status.is-error) > :not(.lead-form__status):not(.lead-form__retry) { display: none; }
.lead-form:has(.lead-form__status.is-error) > .lead-form__retry { display: inline-flex; }

.lead-mark {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 10px; background: var(--c-amber);
}
.lead-mark--fail { background: var(--c-rust); }
.lead-done__title, .lead-fail__title { margin-top: 4px; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.lead-done__text, .lead-fail__text { font-size: 14.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.lead-fail__alt {
  align-self: stretch; display: grid; justify-items: start; gap: 10px;
  padding: 18px; border-radius: 11px; background: var(--soft-2); border: 1px solid var(--line-2);
}
.lead-fail__alt a {
  font-size: 17px; font-weight: 700; color: var(--link-deep); text-decoration: none;
  border-bottom: 1px solid var(--line-in);
}
.lead-fail__alt a:hover { color: var(--c-rust); border-bottom-color: var(--c-rust); }
.lead-done { display: flex; flex-direction: column; gap: 14px; }
.lead-done:focus { outline: none; }
.lead-done .btn { width: 100%; }

/* ==========================================================================
   Меню на весь экран — bloki-1909-menu.html
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--c-deep); color: var(--c-white);
  opacity: 0; transition: opacity .16s ease;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transition-duration: .22s; }
body.menu-open { overflow: hidden; }

.menu__close {
  position: absolute; top: 22px; right: 18px; z-index: 3;
  width: 40px; height: 40px; border-radius: 9px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .35); cursor: pointer;
  transition: border-color .15s ease;
}
.menu__close:hover { border-color: var(--c-orange); }
.menu__close svg { width: 17px; height: 17px; }

.menu__left {
  position: relative; z-index: 2; flex: 1 0 auto;
  background: var(--c-deep);
  padding: 24px 20px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.menu__logo { display: block; width: 104px; border-radius: 6px; }
.menu__logo svg { width: 100%; height: auto; }
.menu__contacts { display: grid; gap: 9px; font-style: normal; font-size: 14.5px; line-height: 1.5; color: var(--c-foot-muted); }
.menu__contacts a { width: max-content; color: var(--c-foot-muted); text-decoration: none; }
.menu__contacts a:hover { color: var(--c-peach); }

.menu__right { position: relative; flex: 1 0 auto; overflow: hidden; }
.menu__mosaic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.menu__veil { position: absolute; inset: 0; background: rgba(var(--deep-rgb), .72); }
.menu__nav { position: relative; z-index: 2; padding: 10px 20px 34px; }
.menu__big { display: flex; flex-direction: column; gap: 6px; }
.menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 7px 0;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em;
  color: var(--c-white); text-decoration: none; text-align: left;
  transition: color .15s ease;
}
.menu__item:hover { color: var(--c-peach); }
.menu__item[aria-expanded="true"], .menu__item--cab { color: var(--c-orange); }
.menu__item:focus-visible { outline: 3px solid var(--c-ice); outline-offset: 6px; border-radius: 5px; box-shadow: none; }
.menu__chev { flex: none; width: 18px; height: 11px; transition: transform .2s ease; }
.menu__item[aria-expanded="true"] .menu__chev { transform: rotate(180deg); }
.menu__sub {
  display: grid; gap: 6px;
  margin: 2px 0 6px; padding: 10px 0 12px 16px;
  border-left: 2px solid rgba(254, 143, 51, .55);
}
.menu__sub ul { display: grid; gap: 6px; }
.menu__sub a { display: block; font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--c-foot-muted); text-decoration: none; }
.menu__sub a:hover { color: var(--c-white); }
.menu__sub a[aria-current="page"] { color: var(--c-orange); }
.menu__gh { display: none; }
.menu__small { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.menu__small a { font-size: 15.5px; font-weight: 600; color: var(--c-foot-muted); text-decoration: none; }
.menu__small a:hover { color: var(--c-peach); }
.menu__small a[aria-current="page"] { color: var(--c-orange); }

/* пункты появляются по очереди (28 мс), закрытие — одним движением */
.menu .menu__anim { opacity: 0; transform: translateX(16px); transition: opacity .22s ease, transform .22s ease; }
.menu.is-open .menu__anim { opacity: 1; transform: none; }
.menu.is-open .menu__anim:nth-child(2) { transition-delay: .028s; }
.menu.is-open .menu__anim:nth-child(3) { transition-delay: .056s; }

/* ---------- 834: от 600 px ---------- */
@media (min-width: 600px) {
  .blk__in { padding: 56px 40px; }
  .blk__title { font-size: 30px; line-height: 1.16; }
  .blk__title--sub { font-size: 28px; }
  .blk__lead { margin-bottom: 30px; font-size: 16px; }
  .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot--shot { height: 200px; }
  .slot--canvas { height: 340px; }
  .slot--map { height: 360px; }
  .fig__slot { height: 300px; }
  .btnrow { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .btnrow .btn { width: auto; }
  .callout { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px; }
  .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .txt p { font-size: 16.5px; line-height: 1.7; }
  .txt h2 { margin-top: 38px; font-size: 25px; }
  .txt .quote p { font-size: 19px; }
  .art-lay { gap: 34px; }
  .nums { gap: 22px; }
  .nums__n { font-size: 40px; }

  .fsec__in { padding: 56px 40px; gap: 34px; }
  .fsec__title { font-size: 32px; line-height: 1.12; }
  .fsec__lead { font-size: 16px; }
  .lead__box { padding: 28px; }
  .lead-form__row { grid-template-columns: 1fr 1fr; }
  .field__input { font-size: 14.5px; }
  .lead-form__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .lead-form__actions .btn, .lead-done .btn { width: auto; }
  .lead-done > div { display: flex; }
  .lead-form:has(.lead-form__status.is-error) > .lead-form__retry { justify-self: start; }

  .menu { flex-direction: row; }
  .menu__left { flex: 0 0 300px; padding: 48px 32px; gap: 30px; }
  .menu__logo { width: 140px; }
  .menu__contacts { margin-top: auto; }
  .menu__right { flex: 1 1 auto; }
  .menu__nav { padding: 88px 40px 48px; }
  .menu__item { width: max-content; max-width: 100%; justify-content: flex-start; gap: 14px; padding: 6px 0; font-size: 34px; }
  .menu__sub { gap: 10px; margin: 4px 0 10px; padding: 14px 0 18px 20px; }
  .menu__sub a { font-size: 16px; line-height: 1.6; }
  .menu__small { gap: 26px; margin-top: 22px; }
  .menu__small a { font-size: 17px; }
  .menu__close { top: 24px; right: 24px; width: 46px; height: 46px; }
}

/* ---------- 1440: от 1200 px ---------- */
@media (min-width: 1200px) {
  .blk__in { padding: 80px 64px; }
  .blk__title { font-size: 34px; line-height: 1.14; }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slot--canvas { height: 430px; }
  .two-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contacts { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; }

  .toc-m { display: none; }
  .art-lay { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .art-side { position: sticky; top: 24px; }
  .art-side .toc { display: grid; }
  .doc-lay { grid-template-columns: minmax(0, 1fr) 260px; gap: 52px; }
  .anchors { display: grid; gap: 9px; position: sticky; top: 24px; }

  .fsec__in { grid-template-columns: 432px minmax(0, 1fr); gap: 80px; align-items: start; padding: 76px 64px; }
  .fsec__title { font-size: 38px; line-height: 1.1; }
  .lead__box { padding: 34px; }

  .menu__left { flex-basis: 520px; padding: 48px 44px; }
  .menu__logo { width: 172px; }
  .menu__nav { padding: 76px 64px; }
  .menu__item { font-size: 40px; }
  .menu__sub--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .menu__gh { display: block; margin-bottom: 8px; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-ice); }
  .menu__sub--cols ul { gap: 0; }
  .menu__close { top: 34px; right: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .menu .menu__anim, .menu__chev, .crd--link, .art, .filter__btn, .switch, .switch::after, .toc-m summary svg { transition: none !important; }
  .menu .menu__anim { transform: none; }
  .lead-form.is-sending .lead-form__submit::before { animation: none; border-top-color: rgba(255, 255, 255, .4); border-right-color: var(--c-white); }
}

/* Снимки кабинета (19.09, боевой кабинет, данные клиента размыты): кадр в рамке слота, клик — полный размер */
.shot__img { display: block; margin-bottom: 14px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; border: 1px solid rgba(124, 201, 242, .35); background: #FFFFFF; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .3s ease; }
.shot__img:hover img, .shot__img:focus-visible img { transform: scale(1.03); }
.shot__img:focus-visible { outline: 3px solid #7CC9F2; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .shot__img img { transition: none; } }

/* Снимок кабинета в тёмном блоке «Одно полотно» (услуга / BI / CRM, 19.09) — на месте slot--canvas */
.canvas-shot { display: block; margin-top: 8px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(124, 201, 242, .35); background: #FFFFFF; }
.canvas-shot img { display: block; width: 100%; height: auto; }
.canvas-shot:focus-visible { outline: 3px solid #7CC9F2; outline-offset: 3px; }

/* Увеличенный снимок кабинета поверх страницы (19.09) */
.zoom { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 56px 24px 24px; background: rgba(1, 28, 49, .92); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom__img { max-width: min(1600px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 10px; background: #FFFFFF; cursor: default; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.zoom__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; cursor: pointer; }
.zoom__close svg { width: 16px; height: 16px; }
.zoom__close:hover { border-color: #FE8F33; }
.zoom__close:focus-visible { outline: 3px solid #7CC9F2; outline-offset: 2px; }
.is-zoom, .is-zoom body { overflow: hidden; }
a[data-zoom] { cursor: zoom-in; }

/* 404: надпись на месте рассыпавшейся мозаики (идея Павла 19.09) */
.e404 { position: absolute; z-index: 2; right: 6%; top: 50%; margin: 0; transform: translateY(-40%) scale(.92);
  font-weight: 800; font-size: clamp(120px, 21vw, 380px); line-height: .9; letter-spacing: -.02em;
  color: #FFFFFF; opacity: 0; pointer-events: none;
  transition: opacity .6s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.e404.is-on { opacity: 1; transform: translateY(-50%) scale(1); }
.e404::after { content: ""; display: block; height: .06em; width: 38%; margin-top: .08em; background: #FE8F33; }
@media (max-width: 834px) {
  .e404 { right: auto; left: 24px; bottom: auto; transform: translateY(12px); font-size: clamp(88px, 30vw, 200px); } /* top — из site.js: под кнопками */
  .e404.is-on { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .e404 { transition: none; } }
