/* ==========================================================================
   Dinesco — общая таблица стилей
   Один файл на весь сайт. Порядок: токены → база → шапка → hero → секции →
   компоненты → страницы → подвал → модалка → cookie → адаптив.

   Светлый холст, белые карточки, пунктирные разделители, пилюли-кнопки,
   курсив как выделение в заголовках. Имена классов не менялись — разметка
   страниц осталась прежней.
   ========================================================================== */

/* ── Токены ── */
:root {
  --accent: #FC4C00;
  --accent-dark: #E34400;
  --ink: #0F0F0F;
  --body: #4A4A4A;
  --muted: #8A8A8E;
  --line: #E7E7EA;
  --canvas: #F4F4F5;
  --card: #FFFFFF;
  --warm: #FFF0E8;
  --stone: #E4E4E7;

  --hair: rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hi: 0 10px 30px rgba(0, 0, 0, 0.08);

  --r: 22px;      /* карточка обычная */
  --rc: 26px;     /* карточка крупная */
  --rb: 32px;     /* блок-панель (форма, калькулятор) */
  --pill: 40px;

  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* совместимость со старыми правилами */
  --card-bg: #FAFAFA;
  --tint-soft: var(--warm);
  --tint-line: rgba(252, 76, 0, 0.16);
  --tint-strong: rgba(252, 76, 0, 0.22);
  --radius: var(--r);
}

/* ── База ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--canvas); overflow-x: hidden; }
body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 400;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
/* Картинки отдаются через <picture> (webp + резервный jpg). display:contents
   убирает обёртку из потока, иначе <picture> становится элементом сетки
   вместо самой картинки и правила вида «.audience-card img» ломаются. */
picture { display: contents; }
/* <source> при display:contents у родителя становится элементом сетки и
   занимает клетку — картинка уезжает в следующую строку. Гасим явно. */
picture > source { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
h2 { font-size: clamp(23px, 2.7vw, 35px); line-height: 1.16; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
h3 { font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: -0.022em; color: var(--ink); }

/* курсив как выделение в заголовке — настоящий, на два веса легче основного */
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; letter-spacing: -0.02em; }
.hero h1 em { color: var(--accent); }

/* выделение внутри абзаца */
.mark {
  display: inline-flex; align-items: center;
  background: var(--warm); color: var(--accent);
  font-size: 0.82em; font-weight: 600; padding: 2px 10px; border-radius: 6px; white-space: nowrap;
}

/* пунктирные разделители */
.dashed {
  height: 1px; background-repeat: repeat-x; background-size: 6px 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.11) 2px, transparent 2px);
}
.dashed-v {
  position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px;
  background-size: 1px 6px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 2px, transparent 2px);
}

/* ── Кнопки-пилюли ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-stack); font-size: 15px; font-weight: 500; line-height: 1;
  border: none; cursor: pointer; border-radius: var(--pill);
  padding: 16px 26px; min-height: 46px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--accent); color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(252, 76, 0, 0.24);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(252, 76, 0, 0.3); }
.btn-ghost {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--hair); box-shadow: var(--shadow);
}
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); color: var(--ink); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid rgba(252, 76, 0, 0.35); box-shadow: none; }
.btn-outline:hover { background: var(--warm); }
.arrow { color: inherit; font-weight: 500; }
.btn-ghost .arrow { color: var(--accent); }

/* ── Шапка ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 245, 0.86); backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 34px; height: 80px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo img { width: 30px; height: 30px; display: block; }
.logo-img { height: 30px; width: auto; display: block; }
.logo-word { font-size: 18px; font-weight: 800; letter-spacing: 0.05em; color: var(--ink); }
.nav { display: flex; gap: 26px; flex: 1; margin-left: 8px; }
.nav > a, .nav-item > a {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 6px 0; border-bottom: 1.5px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav > a:hover, .nav-item > a:hover, .nav a.active { color: var(--accent); border-color: var(--accent); }
.header-cta { padding: 14px 22px; min-height: 44px; font-size: 14.5px; white-space: nowrap; }

/* Выпадающий каталог услуг */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret {
  width: 6px; height: 6px; flex: none; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s;
}
.megamenu {
  position: absolute; top: 100%; left: -20px; z-index: 60;
  min-width: 640px; padding: 20px;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.nav-item:hover .megamenu,
.nav-item:focus-within .megamenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item:hover .nav-caret { transform: rotate(225deg); margin-top: 3px; }
.megamenu a {
  display: block; padding: 11px 14px; border-radius: 14px;
  font-size: 14.5px; font-weight: 500; color: var(--ink); border: 0;
  transition: background 0.15s, color 0.15s;
}
.megamenu a span { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.megamenu a:hover { background: var(--warm); color: var(--accent); border-color: transparent; }
.megamenu a:hover span { color: var(--body); }
.megamenu-all {
  grid-column: 1 / -1; margin-top: 6px; padding-top: 12px; position: relative;
}
.megamenu-all::before {
  content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.11) 2px, transparent 2px);
}
.megamenu-all a { color: var(--accent); font-weight: 500; }

/* ── Первый экран главной: по центру ── */
.hero { position: relative; }
.hero-bg, .hero-shade { display: none; }
.hero-inner {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 56px 0 64px;
}
.hero-eyebrow { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.hero h1 { max-width: 24ch; margin-bottom: 22px; }
.hero-sub { font-size: 15.5px; color: var(--body); line-height: 1.7; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.hero-trust {
  display: inline-flex; align-items: center; gap: 14px; text-align: left;
  border-radius: var(--pill); padding: 6px 20px 6px 6px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--hair); backdrop-filter: blur(8px);
}
.stackrow { display: flex; flex: none; }
.stackrow span {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink);
  border: 2px solid var(--canvas); display: flex; align-items: center; justify-content: center; margin-left: -8px;
}
.stackrow span:first-child { margin-left: 0; }
.stackrow img { width: 14px; height: 14px; object-fit: contain; }
.hero-trust div { line-height: 1.3; }
.hero-trust strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.hero-trust small { font-size: 12px; color: var(--muted); }

/* ── Полоса фактов главной ── */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04); overflow: hidden;
}
.num { position: relative; padding: 38px 32px; }
.num b { display: block; color: var(--ink); line-height: 1; font-size: 46px; font-weight: 500; letter-spacing: -0.05em; }
.num b sup { font-size: 22px; font-weight: 500; vertical-align: super; margin-left: 2px; letter-spacing: -0.02em; }
.num span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; max-width: 210px; }

/* ── Первый экран внутренних страниц: по левому краю ── */
.page-hero { position: relative; }
.page-hero-bg, .page-hero-shade { display: none; }
.page-hero > .container { position: relative; padding-top: 26px; padding-bottom: 0; }
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  background: var(--warm); color: var(--accent); border-radius: var(--pill);
  padding: 7px 17px 7px 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.page-hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.page-hero h1 { max-width: 22ch; margin-bottom: 20px; }
.page-hero-sub { font-size: 15.5px; line-height: 1.7; color: var(--body); max-width: 68ch; }
.page-hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }

/* факты первого экрана — одна белая карточка с пунктирными делителями */
.page-hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 54px; padding: 0; border: 1px solid var(--hair); border-radius: var(--r);
  background: var(--card); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04); overflow: hidden;
}
.page-hero-fact { position: relative; display: block; padding: 28px 30px 30px; }
.page-hero-fact + .page-hero-fact::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px;
  background-size: 1px 6px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 2px, transparent 2px);
}
.pf-value {
  display: block; font-size: 18px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.025em; line-height: 1.3; margin-bottom: 10px;
}
.pf-label { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── Хлебные крошки ── */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep, .breadcrumb-sep { color: rgba(0, 0, 0, 0.18); }

/* ── Секции ── */
section.block { padding: 96px 0; }
section.block.infra-work { background: transparent; }
/* пунктирный разделитель ровно по границе между секциями */
section.block + section.block > .container { position: relative; }
section.block + section.block > .container::before {
  content: ""; position: absolute; left: 0; right: 0; top: -48px; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.11) 2px, transparent 2px);
}
.section-head { margin-bottom: 60px; }
.section-head h2 { max-width: 24ch; }
.h2-row { display: flex; align-items: baseline; gap: 14px; }
.h2-dot { display: none; }
.section-intro { max-width: 72ch; margin: -40px 0 52px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.infra-intro { max-width: 72ch; margin: -40px 0 52px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 60px; flex-wrap: wrap; }
.section-head-row .h2-row h2 { max-width: 24ch; }
/* короткое пояснение справа от заголовка, по нижнему краю */
.sec-lede { color: var(--muted); font-size: 15px; line-height: 1.62; max-width: 44ch; padding-bottom: 4px; }
.link-more, .more-link { font-size: 14.5px; font-weight: 500; color: var(--accent); }
.link-more:hover, .more-link:hover { text-decoration: underline; }
.eyebrow { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--accent); }

/* ── Карточки: что входит / из чего состоит ── */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.infra-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc);
  padding: 30px 32px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.infra-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.infra-card h3 { margin-bottom: 12px; }
.infra-card p { font-size: 15px; line-height: 1.72; color: var(--body); }
.infra-card .fit {
  position: relative; margin-top: auto; padding-top: 20px;
  font-size: 14px; line-height: 1.55; color: var(--ink);
}
.infra-card .fit::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}
.infra-work .infra-card { gap: 0; }
.infra-work .infra-card p:not(.fit) { flex: 0 1 auto; }

/* Акценты карточек внутри бенто — те же, что на главной.
   Правило одинаковое на всех страницах: первая карточка ведущая,
   четвёртая тёплая, последняя серая. */
.bento > .infra-card, .bento > .solution-card { margin: 0; }
.infra-card.lead::before, .solution-card.lead::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent);
}
.infra-card.warm { background: var(--warm); border-color: rgba(252, 76, 0, 0.1); }
.infra-card.stone { background: var(--stone); border-color: rgba(0, 0, 0, 0.05); }
.infra-card.warm .fit::before, .infra-card.stone .fit::before {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.16) 2px, transparent 2px);
}
.solution-card { position: relative; overflow: hidden; }
.solution-card.warm { background: var(--warm); }
.solution-card.stone { background: var(--stone); border-color: rgba(0, 0, 0, 0.05); }
/* в бенто карточка решения не обязана быть тёплой — тёплые задаёт модификатор */
.bento > .solution-card:not(.warm):not(.stone) { background: var(--card); border-color: var(--hair); }

/* маркированные списки внутри карточек */
.infra-card ul, .solution-card ul, .check-grid, .model-card ul, .service-card ul, .sc-list, .scheme-card ul { list-style: none; }
.infra-card li, .solution-card li, .check-grid li, .model-card li, .scheme-card li {
  position: relative; padding-left: 19px; font-size: 14.5px; line-height: 1.6; margin-top: 9px;
}
.infra-card li::before, .solution-card li::before, .check-grid li::before,
.model-card li::before, .scheme-card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 28px; }
.check-grid li { color: var(--ink); font-size: 15px; }

.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.solution-card {
  border-radius: var(--rc); padding: 36px; background: var(--warm);
  border: 1px solid rgba(252, 76, 0, 0.1); box-shadow: var(--shadow);
}
.solution-card h3 { font-size: 24px; margin-bottom: 14px; }
.solution-card p { margin-bottom: 18px; font-size: 15px; line-height: 1.72; }

/* тёмная врезка-переход */
.bridge {
  background: var(--ink); color: rgba(255, 255, 255, 0.6); border-radius: var(--rc);
  padding: 48px 52px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center;
}
.bridge h2 { color: #fff; }
.bridge p { font-size: 15.5px; line-height: 1.72; }
.bridge p + p { margin-top: 14px; }

/* ── Плитки услуг ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc);
  padding: 32px 32px 30px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
a.service-card { color: inherit; }
.service-head { display: flex; align-items: center; gap: 16px; }
/* линейные SVG-иконки услуг в тёплой оправе */
.service-icon { width: 54px; height: 54px; flex: none; display: block; padding: 13px;
  border-radius: 16px; background: var(--warm); object-fit: contain; }
.service-iconbox {
  width: 54px; height: 54px; flex: none; border-radius: 16px;
  background: var(--warm); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 20px; }
.service-card p { font-size: 15px; line-height: 1.72; }
.service-card ul { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; position: relative; }
.service-card ul::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}
.service-card li { position: relative; padding-left: 19px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.service-card .card-link { margin-top: auto; font-size: 14.5px; font-weight: 500; color: var(--accent); }
a.service-card:hover .card-link { text-decoration: underline; }

/* CTA-плитка внутри сетки услуг */
.service-cta {
  grid-column: 1 / -1; background: var(--accent); border: none; color: #FFFFFF;
  border-radius: var(--rc); padding: 32px 44px; box-shadow: 0 10px 30px rgba(252, 76, 0, 0.22);
  display: flex; flex-direction: row; align-items: center; gap: 44px; justify-content: flex-start;
}
.service-cta:hover { transform: none; box-shadow: 0 10px 30px rgba(252, 76, 0, 0.22); }
.service-cta h3 { color: #FFFFFF; font-size: 22px; }
.service-cta p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.service-cta .btn { background: #FFFFFF; color: var(--accent); flex-shrink: 0; box-shadow: none; }
.service-cta .btn:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }

/* ── Сервисный центр / плитки с иконками ── */
.servicecenter { background: transparent; }
.sc-wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.sc-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  background: var(--warm); color: var(--accent); border-radius: var(--pill); padding: 7px 17px 7px 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.sc-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.sc-wrap h2 { margin-bottom: 16px; }
.sc-wrap > div > p { max-width: 46ch; font-size: 15.5px; line-height: 1.72; }
.sc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sc-list li {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
}
.sc-ico { width: 56px; height: 56px; padding: 14px; border-radius: 16px;
  background: var(--warm); object-fit: contain; margin-bottom: 8px; display: block; }
.sc-title { font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
.sc-sub { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ── Процесс: горизонтальная шахматка вокруг линии ──
   100 колонок, карточка шириной 28, шаг 18 (старт 1,19,37,55,73).
   Шаг меньше ширины, поэтому нижняя карточка заходит в просвет между
   верхними — зигзаг читается слева направо, а не как ряд из трёх.
   Строки 1fr: в сетке с неопределённой высотой обе получают высоту
   самой высокой карточки, поэтому все пять карточек одинаковые. */
.process { background: transparent; }
.process-grid {
  display: grid; grid-template-columns: repeat(100, 1fr);
  grid-template-rows: 1fr 84px 1fr; position: relative;
}
.process-grid::before {
  content: ""; grid-row: 2; grid-column: 1 / -1; align-self: center; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.14) 2px, transparent 2px);
}
.step {
  position: relative; grid-column: var(--c) / span 28; margin: 0 10px; align-self: stretch;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc);
  box-shadow: var(--shadow); padding: 26px 28px; min-height: 210px;
  display: flex; flex-direction: column; gap: 0;
}
.step:nth-child(1) { --c: 1;  grid-row: 1; }
.step:nth-child(2) { --c: 19; grid-row: 3; }
.step:nth-child(3) { --c: 37; grid-row: 1; }
.step:nth-child(4) { --c: 55; grid-row: 3; }
.step:nth-child(5) { --c: 73; grid-row: 1; }
.step:nth-child(even) { z-index: 1; }
/* волосок справа от номера */
.step::before {
  content: ""; position: absolute; left: 68px; right: 28px; top: 40px; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(252, 76, 0, 0.3) 2px, transparent 2px);
}
.step-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; margin-bottom: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
/* усик от карточки к точке на линии */
.step-track {
  position: absolute; left: 50%; width: 1px; height: 42px; margin: 0; display: block;
  background-size: 1px 6px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 2px, transparent 2px);
}
.step:nth-child(odd) .step-track { bottom: -42px; }
.step:nth-child(even) .step-track { top: -42px; }
.step-dot {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px var(--canvas), 0 0 0 6px rgba(252, 76, 0, 0.22);
}
.step:nth-child(odd) .step-dot { top: 100%; }
.step:nth-child(even) .step-dot { top: 0; }
.step-line, .step-arrow { display: none; }
.step-label {
  font-size: 19px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.024em; line-height: 1.25; padding: 0; margin-bottom: 11px;
}
.step-note { font-size: 15px; line-height: 1.72; color: var(--body); padding: 0; margin: 0; }
/* «На выходе» — что остаётся у клиента после этапа */
.step-meta { position: relative; margin-top: auto; padding-top: 20px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.step-meta::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}
.step-meta i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }

/* ── Аудитории ── */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.audience-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc);
  overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.audience-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.audience-body { padding: 30px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.audience-head { display: flex; align-items: center; gap: 14px; }
.audience-icon {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--warm); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.audience-card h3 { font-size: 20px; }
.audience-card p { font-size: 15px; line-height: 1.72; color: var(--body); flex: 1; }
.audience-card img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block; }

/* ── О компании ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.about-lead { font-size: 21px; line-height: 1.5; font-weight: 400; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 22px; }
.about-text p { max-width: 60ch; font-size: 15.5px; line-height: 1.75; }
.about-text p + p { margin-top: 16px; }
.about-facts {
  list-style: none; background: var(--card); border: 1px solid var(--hair);
  border-radius: var(--rc); box-shadow: var(--shadow); padding: 8px 30px;
}
.about-facts li { display: flex; flex-direction: column; gap: 5px; padding: 22px 0; position: relative; }
.about-facts li + li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}
.fact-title { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.fact-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.fact-sub { font-size: 13.5px; color: var(--muted); padding-left: 17px; line-height: 1.6; }

/* ── Кейсы ── */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
/* пропорция вместо фиксированной высоты: карточка теперь во всю половину
   ряда, и снимок должен расти вместе с ней, а не растягиваться в полосу */
/* height: auto обязателен — у <img> есть атрибут height, он считается
   заданной высотой и без сброса перебивает aspect-ratio */
.case-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; display: block; object-fit: cover; object-position: center top; }
.case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; flex: 1; }
.case-cat, .case-date, .case-date-badge { font-size: 13px; color: var(--muted); }
.case-body h3 { font-size: 20px; }
.case-status { font-size: 12.5px; font-weight: 500; padding: 5px 14px; border-radius: var(--pill); }
.case-status.is-live, .is-live { background: #E4F4E8; color: #1E7A44; }
.case-status.is-dev, .is-dev { background: #FAF1CC; color: #86720F; }
.case-desc { font-size: 15px; line-height: 1.72; color: var(--body); flex: 1; }
.cases-section { padding: 40px 0 96px; }
.case-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.case-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s; }
.case-card:hover .case-img-wrap img { transform: scale(1.03); }
.case-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.case-img-initial { font-size: 80px; font-weight: 800; color: rgba(255, 255, 255, 0.1); letter-spacing: -0.03em; user-select: none; line-height: 1; }
.case-meta { display: flex; align-items: center; gap: 10px; }
.case-cat-badge {
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--accent); background: var(--warm); border-radius: 7px; padding: 5px 11px;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink);
  background: rgba(0, 0, 0, 0.05); border-radius: 7px; padding: 6px 13px;
}
.case-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; margin-top: 4px; gap: 16px; flex-wrap: wrap; position: relative; width: 100%;
}
.case-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}
.case-result { display: flex; gap: 32px; }
.result-val { font-size: 26px; font-weight: 500; color: var(--ink); letter-spacing: -0.035em; display: block; line-height: 1; }
.result-label { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; }
.case-link { font-size: 14.5px; font-weight: 500; color: var(--accent); }
.case-link:hover { text-decoration: underline; }
.cta-section { padding: 56px 0 96px; }
.cta-left h2 { margin-bottom: 18px; }

/* ── Две модели работы: аренда / внедрение ── */
.models-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.model-card {
  border-radius: var(--rc); padding: 36px; border: 1px solid var(--hair); background: var(--card);
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow);
}
.model-card.is-accent { background: var(--warm); border-color: rgba(252, 76, 0, 0.1); }
.model-badge {
  align-self: flex-start; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--card); border: 1px solid rgba(252, 76, 0, 0.16);
  border-radius: var(--pill); padding: 6px 15px;
}
.model-card h3 { font-size: 24px; }
.model-card > p { font-size: 15.5px; line-height: 1.72; }
.model-card ul { margin-top: auto; padding-top: 20px; position: relative; }
.model-card ul::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}
.model-fit { font-size: 14px; color: var(--muted); }

/* ── Сравнительная таблица ── */
.compare-wrap {
  overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--rc);
  background: var(--card); box-shadow: var(--shadow);
}
.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
.compare th, .compare td {
  text-align: left; padding: 18px 22px; font-size: 15px; line-height: 1.6; vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.compare thead th {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); font-weight: 500; background: #FAFAFB;
}
.compare tbody th { font-weight: 500; color: var(--ink); width: 26%; letter-spacing: -0.01em; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare td.is-yes { color: var(--ink); }

/* ── Типовые архитектуры ──
   Карточки идут в столбик: текст слева, схема справа. Три штуки в ряд
   были нечитаемы — моноширинная схема не помещалась в треть ширины. */
.scheme-grid { display: flex; flex-direction: column; gap: 22px; }
.scheme-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc);
  box-shadow: var(--shadow); padding: 38px 40px;
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: auto auto auto 1fr; column-gap: 48px;
}
.scheme-size {
  grid-column: 1; grid-row: 1; justify-self: start;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--warm); color: var(--accent); border-radius: var(--pill);
  padding: 6px 15px 6px 12px; font-size: 12.5px; font-weight: 500;
}
.scheme-size::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.scheme-card h3 { grid-column: 1; grid-row: 2; font-size: 21px; color: var(--ink); margin-top: 16px; }
.scheme-card > p { grid-column: 1; grid-row: 3; font-size: 15px; line-height: 1.72; color: var(--body); margin-top: 11px; }
.scheme-card ul { grid-column: 1; grid-row: 4; align-self: end; margin-top: 24px; padding-top: 20px; position: relative; }
.scheme-card ul::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}
.scheme-card li { color: var(--body); }
.scheme {
  grid-column: 2; grid-row: 1 / -1; align-self: start;
  margin: 0; overflow-x: auto; padding: 26px 28px;
  background: var(--ink); border-radius: 18px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  color: rgba(255, 255, 255, 0.82); white-space: pre;
}
.scheme b { color: var(--accent); font-weight: 600; }

/* ── Предупреждение (черновик документа и т.п.) ── */
.notice {
  background: var(--warm); border: 1px solid rgba(252, 76, 0, 0.12);
  border-radius: var(--r); padding: 22px 26px; margin-bottom: 32px;
  font-size: 15px; line-height: 1.7; color: var(--body);
}
.notice strong { color: var(--accent); font-weight: 600; }

/* ── Юридический документ ── */
.legal { max-width: 78ch; }
.legal h2 { font-size: 23px; margin: 44px 0 16px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin-bottom: 15px; font-size: 15.5px; line-height: 1.78; }
.legal ul, .legal ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.legal li { position: relative; padding-left: 21px; margin-top: 9px; font-size: 15.5px; line-height: 1.7; }
.legal li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* заглушки в черновике документа: длинные подсказки должны переноситься */
.legal .fill { background: #FFF3CD; color: #7A5B00; border-radius: 5px; padding: 1px 8px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-meta {
  font-size: 14px; color: var(--muted); padding-top: 26px; margin-top: 36px; position: relative;
}
.legal-meta::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.11) 2px, transparent 2px);
}

/* ── Калькулятор конфигурации ── */
.calc {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rb);
  padding: 48px; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}
.calc-fields { display: flex; flex-direction: column; gap: 24px; }
.calc-field { display: flex; flex-direction: column; gap: 10px; }
.calc-label { font-size: 14px; font-weight: 500; color: var(--ink); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc-label span { font-size: 13px; font-weight: 400; color: var(--muted); }
.calc-hint { font-size: 13px; color: var(--muted); line-height: 1.55; }
.calc-range { width: 100%; accent-color: var(--accent); height: 24px; cursor: pointer; }
.calc-out { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; font-size: 15px; }
.calc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-opt {
  border: 1px solid var(--hair); background: var(--canvas); border-radius: var(--pill);
  padding: 12px 19px; min-height: 44px;
  font-family: var(--font-stack); font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.calc-opt:hover { border-color: rgba(252, 76, 0, 0.3); }
.calc-opt.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc-result {
  background: var(--warm); border: 1px solid rgba(252, 76, 0, 0.1); border-radius: var(--rc);
  padding: 30px; display: flex; flex-direction: column; gap: 14px; align-self: start;
  position: sticky; top: 100px;
}
.calc-result h3 { font-size: 18px; }
.calc-spec { list-style: none; display: flex; flex-direction: column; }
.calc-spec li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; font-size: 14.5px; position: relative;
}
.calc-spec li + li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(252, 76, 0, 0.22) 2px, transparent 2px);
}
.calc-spec .k { color: var(--muted); }
.calc-spec .v { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 13px; line-height: 1.55; color: var(--muted); }
.calc-result .btn { width: 100%; }

/* ── SEO-текст / развёрнутое описание ── */
.longread { max-width: 78ch; position: relative; }
/* Свёрнутое состояние ставит скрипт: без JS текст виден целиком,
   в разметке он присутствует всегда — прячется только визуально. */
.longread.is-clamped { max-height: 400px; overflow: hidden; }
.longread.is-clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: linear-gradient(to bottom, rgba(244, 244, 245, 0) 0%, var(--canvas) 82%);
  pointer-events: none;
}
.longread-actions { max-width: 78ch; margin-top: 24px; }
.longread-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-stack); font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--pill);
  padding: 13px 24px; min-height: 44px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.longread-more:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.longread-more::after {
  content: ""; width: 7px; height: 7px; flex: none; margin-top: -4px;
  border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.22s, margin-top 0.22s;
}
.longread-more[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
.longread h2 { margin-bottom: 22px; }
.longread h3 { margin: 34px 0 12px; font-size: 19px; }
.longread p { margin-bottom: 16px; font-size: 15.5px; line-height: 1.78; letter-spacing: 0.005em; }
.longread ul { list-style: none; margin: 0 0 18px; }
.longread li { position: relative; padding-left: 21px; margin-top: 9px; font-size: 15.5px; line-height: 1.7; }
.longread li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.longread a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── Форма-панель в конце страницы ── */
.cta-wrap {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rb);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04); padding: 64px 64px 58px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 68px;
}
.cta-wrap h2 { margin-bottom: 18px; }
.cta-text { margin-bottom: 34px; max-width: 40ch; font-size: 15.5px; line-height: 1.75; }
.cta-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.cta-list li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.check {
  width: 23px; height: 23px; border-radius: 50%; background: var(--accent); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex: none;
}
.cta-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form input[type="text"], .cta-form input[type="email"], .cta-form input[type="tel"],
.cta-form textarea, .form-select {
  font-family: var(--font-stack); font-size: 15px; line-height: 1.4; color: var(--ink);
  background: var(--canvas); border: 1px solid transparent; border-radius: 12px;
  padding: 15px 17px; outline: none; width: 100%; appearance: none;
  transition: border-color 0.15s, background 0.15s;
}
.form-select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.cta-form input:focus, .cta-form textarea:focus, .form-select:focus {
  border-color: var(--accent); background: var(--card); outline: none;
}
.cta-form ::placeholder { color: var(--muted); opacity: 1; }
.cta-form textarea { min-height: 110px; resize: vertical; }
.cta-form .btn { align-self: flex-start; padding: 16px 32px; }
.form-policy { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.form-policy input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 3px; flex: none; }
.form-policy a { color: var(--accent); text-decoration: underline; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; line-height: 1.5; }
.form-status.is-ok { color: #1E7A44; }
.form-status.is-err { color: #C0392B; }
.cta-contacts {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 40px;
  margin-top: 6px; padding-top: 28px; position: relative;
}
.cta-contacts::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.11) 2px, transparent 2px);
}
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); font-weight: 500; }
.contact-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ── Вопросы и ответы ── */
#faq .h2-row, #faq .section-head { justify-content: center; text-align: center; }
#faq .section-head h2 { max-width: 100%; }
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 920px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px 30px; font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--warm); position: relative; transform: none; margin: 0;
  transition: transform 0.22s;
}
.faq-chev::before, .faq-chev::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
}
.faq-chev::before { width: 11px; height: 1.4px; }
.faq-chev::after { width: 1.4px; height: 11px; }
.faq-item[open] .faq-chev { transform: rotate(45deg); }
.faq-answer { padding: 0 30px 28px; font-size: 15.5px; line-height: 1.78; letter-spacing: 0.005em; color: var(--body); max-width: 74ch; }
.faq-answer a { color: var(--accent); text-decoration: underline; }
.faq-answer p + p { margin-top: 12px; }

/* ── Технологии и инструменты: спецификация по слоям ──
   Слева слой, справа чипы с монохромными логотипами. Брендовые цвета
   намеренно убраны: пятнадцать разноцветных квадратов ломали палитру. */
.stack {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rb);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04); padding: 8px 40px;
}
.stack-row {
  display: grid; grid-template-columns: 210px 1fr; gap: 32px;
  align-items: start; padding: 28px 0; position: relative;
}
.stack-row + .stack-row::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}
.stack-layer {
  font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3;
}
.stack-layer span { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--canvas); border: 1px solid transparent; border-radius: var(--pill);
  padding: 8px 15px; font-size: 14px; font-weight: 500; color: var(--ink);
  transition: border-color 0.18s, background 0.18s;
}
.chip:hover { background: var(--card); border-color: rgba(252, 76, 0, 0.28); }
.chip img { width: 18px; height: 18px; flex: none; opacity: 0.78; }

/* ── Страница «Контакты» ── */
.contacts-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding: 72px 0 96px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc);
  padding: 28px 30px; display: flex; align-items: flex-start; gap: 18px;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.cc-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--warm); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.cc-label { font-size: 13px; color: var(--muted); margin-bottom: 5px; display: block; }
.cc-value { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; display: block; margin-bottom: 3px; }
.cc-hint { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.hours-card {
  background: var(--warm); border: 1px solid rgba(252, 76, 0, 0.1);
  border-radius: var(--rc); padding: 28px 30px;
}
.hours-card h3 { margin-bottom: 14px; }
.hours-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 15px; gap: 16px; position: relative; }
.hours-row + .hours-row::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-size: 6px 1px; background-repeat: repeat-x;
  background-image: linear-gradient(to right, rgba(252, 76, 0, 0.22) 2px, transparent 2px);
}
.hours-day { color: var(--ink); font-weight: 500; }
.hours-time { color: var(--body); white-space: nowrap; }
.hours-time.closed { color: var(--muted); }
.form-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--rb);
  padding: 48px 48px 52px; position: sticky; top: 104px; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}
.form-eyebrow { margin-bottom: 14px; }
.form-card h2 { margin-bottom: 10px; }
.form-card > p { color: var(--muted); margin-bottom: 32px; font-size: 15px; line-height: 1.7; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input:not([type="checkbox"]), .contact-form textarea, .contact-form select {
  font-family: var(--font-stack); font-size: 15px; line-height: 1.4; color: var(--ink);
  background: var(--canvas); border: 1px solid transparent; border-radius: 12px;
  padding: 15px 17px; outline: none; width: 100%; appearance: none;
  transition: border-color 0.15s, background 0.15s;
}
.contact-form input:not([type="checkbox"]):focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--accent); background: var(--card);
}
.contact-form ::placeholder { color: var(--muted); opacity: 1; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 40px 20px; }
.form-success.visible { display: flex; }
.success-icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--warm);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.form-success h3 { font-size: 22px; }
.form-success p { color: var(--muted); font-size: 15px; max-width: 30ch; }
.map-section { padding: 0 0 96px; }
.map-wrap {
  border-radius: var(--rb); overflow: hidden; border: 1px solid var(--hair);
  height: 380px; background: #EFEFF1; position: relative;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.map-placeholder { text-align: center; color: var(--muted); }
.map-placeholder svg { opacity: 0.35; margin-bottom: 12px; display: block; margin-inline: auto; }
.map-placeholder p { font-size: 15px; }
.map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); }
.map-pin-dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px rgba(252, 76, 0, 0.2); margin: 0 auto 8px;
}
.map-pin-label {
  background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 9px 15px;
  font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.city-svg { position: absolute; bottom: 0; left: 0; right: 0; opacity: 0.1; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 26px; max-width: 76ch; line-height: 1.7; }

/* ── Подвал ── */
.site-footer { background: var(--ink); margin-top: 90px; border-radius: 30px 30px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; padding: 58px 0 46px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-img { filter: brightness(0) invert(1); }
.footer-brand .logo-word { color: #fff; }
.footer-tagline { font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.5); max-width: 26ch; }
.footer-col-title { font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 14px; color: rgba(255, 255, 255, 0.6); transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-contacts { display: flex; flex-direction: column; gap: 13px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.footer-contact-item a, .footer-contact-item span { font-size: 14px; color: rgba(255, 255, 255, 0.6); transition: color 0.15s; line-height: 1.5; }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 26px; gap: 16px; border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.32); }
.footer-policy a { font-size: 13px; color: rgba(255, 255, 255, 0.32); transition: color 0.15s; }
.footer-policy a:hover { color: rgba(255, 255, 255, 0.6); }

/* ── Модалка заявки ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 15, 15, 0.5); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--card); border-radius: var(--rb); padding: 44px 46px 46px;
  width: 100%; max-width: 520px; position: relative;
  transform: translateY(16px) scale(0.98); transition: transform 0.22s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  appearance: none; border: none; background: var(--canvas); color: var(--muted);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--stone); color: var(--ink); }
.modal-service-label {
  display: inline-block; font-size: 13px; font-weight: 500;
  color: var(--accent); background: var(--warm); border-radius: var(--pill);
  padding: 6px 14px; margin-bottom: 16px;
}
.modal-card h3 { font-size: 25px; margin-bottom: 8px; }
.modal-card > p { font-size: 15px; color: var(--muted); margin-bottom: 26px; line-height: 1.7; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input, .modal-form textarea {
  font-family: var(--font-stack); font-size: 15px; line-height: 1.4; color: var(--ink);
  background: var(--canvas); border: 1px solid transparent; border-radius: 12px;
  padding: 15px 17px; outline: none; width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.modal-form input:focus, .modal-form textarea:focus { border-color: var(--accent); background: var(--card); }
.modal-form ::placeholder { color: var(--muted); opacity: 1; }
.modal-form textarea { min-height: 100px; resize: vertical; }
.modal-policy { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.modal-policy input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 3px; flex: none; }
.modal-policy a { color: var(--accent); text-decoration: underline; }
.modal-success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 20px 0 8px; }
.modal-success.visible { display: flex; }
.modal-success-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--warm);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.modal-success h3 { font-size: 22px; }
.modal-success p { color: var(--muted); font-size: 15px; max-width: 30ch; }

/* ── Гамбургер ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 10px; border-radius: 10px; margin-left: auto; min-width: 44px; min-height: 44px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.22s, opacity 0.22s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Cookie ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: rgba(15, 15, 15, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 0;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 240px; font-size: 14px; color: rgba(255, 255, 255, 0.55); line-height: 1.55; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--accent); color: #fff; font-family: var(--font-stack); font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; border-radius: var(--pill); padding: 12px 24px; min-height: 44px;
  transition: background 0.15s; white-space: nowrap;
}
.btn-cookie-accept:hover { background: var(--accent-dark); }
.btn-cookie-decline {
  font-family: var(--font-stack); font-size: 14px; color: rgba(255, 255, 255, 0.4);
  background: transparent; border: none; cursor: pointer; padding: 12px 4px; min-height: 44px;
  transition: color 0.15s; white-space: nowrap;
}
.btn-cookie-decline:hover { color: rgba(255, 255, 255, 0.7); }

/* ── Бенто-сетка главной ── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.b {
  position: relative; background: var(--card); border: 1px solid var(--hair); border-radius: var(--rc);
  padding: 38px 36px 34px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.b:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.b h3 { margin-bottom: 13px; }
.b p { font-size: 15px; line-height: 1.72; color: var(--body); }
.b .more { margin-top: auto; padding-top: 30px; font-size: 14.5px; font-weight: 500; color: var(--accent); }
/* Акценты-модификаторы. Работают на любой карточке — и в бенто главной,
   и на карточках страниц услуг, чтобы ритм был один и тот же. */
.warm { background: var(--warm); border-color: rgba(252, 76, 0, 0.1); }
.stone { background: var(--stone); border-color: rgba(0, 0, 0, 0.06); }
.dark { background: var(--ink); border-color: rgba(255, 255, 255, 0.08); }
.dark h3, .dark h4 { color: #fff; }
.dark p, .dark li { color: rgba(255, 255, 255, 0.6); }
.dark .tag { background: rgba(255, 255, 255, 0.1); color: #fff; }
.dark .fit { color: rgba(255, 255, 255, 0.75); }
.dark .fit::before { background-image: linear-gradient(to right, rgba(255, 255, 255, 0.18) 2px, transparent 2px); }
/* тонкая акцентная полоса сверху у ведущей карточки */
.lead { position: relative; overflow: hidden; }
.lead::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); z-index: 1; }
.warm .fit::before, .warm ul::before {
  background-image: linear-gradient(to right, rgba(252, 76, 0, 0.22) 2px, transparent 2px);
}
.stone .fit::before, .stone ul::before {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.14) 2px, transparent 2px);
}
.b-ico { width: 54px; height: 54px; padding: 13px; border-radius: 16px;
  background: var(--warm); object-fit: contain; margin-bottom: 24px; }
.warm .b-ico, .warm .service-icon { background: var(--card); }
.stone .b-ico, .stone .service-icon { background: var(--card); }
.dark .b-ico, .dark .service-icon { background: rgba(255, 255, 255, 0.08); }
.b-shot { margin: 30px -36px -34px; overflow: hidden; }
.b-shot img { width: 100%; height: 210px; object-fit: cover; object-position: left top; display: block; }
/* схема в подвале карточки услуги: выходит под срез, отрицательные
   отступы подогнаны под padding самой .infra-card */
.infra-card .card-shot { margin: 24px -32px -28px; overflow: hidden; }
.infra-card .card-shot img { width: 100%; height: 158px; object-fit: cover; display: block; }
/* Схематичные абстракции. contain, а не cover: чертёж нельзя обрезать,
   иначе теряется половина смысла. */
.abstract { object-fit: contain !important; display: block; }
.infra-card .card-shot .abstract { width: 100%; height: 158px; }
/* План помещения квадратный. Без заданной пропорции слот при одной колонке
   вытягивается в полосу 3:1 и чертёж тонет в пустых полях. */
.audience-card .abstract {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  max-width: 300px; max-height: none;   /* снимаем max-height от фотографий */
  justify-self: center; align-self: center; padding: 8px;
}
.b .abstract { width: 100%; height: 100%; min-height: 230px; }
.tags { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1200px) {
  .megamenu { min-width: 540px; left: -16px; }
}

@media (max-width: 1100px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) .dashed-v { display: none; }
  .c4, .c5, .c6, .c7, .c8 { grid-column: span 6; }

  /* шахматка разворачивается в вертикальную линию слева */
  .process-grid { grid-template-columns: 22px 1fr; grid-template-rows: none; row-gap: 18px; column-gap: 22px; }
  .process-grid::before {
    position: absolute; grid-row: auto; grid-column: auto; align-self: auto;
    left: 11px; top: 12px; bottom: 12px; width: 1px; height: auto;
    background-size: 1px 6px; background-repeat: repeat-y;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 2px, transparent 2px);
  }
  .step, .step:nth-child(n) { grid-row: auto; grid-column: 2; margin: 0; min-height: 0; }
  .step-track { left: -33px; top: 40px; bottom: auto; height: 1px; width: 22px;
    background-size: 6px 1px; background-repeat: repeat-x;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.14) 2px, transparent 2px); }
  .step:nth-child(even) .step-track { top: 40px; }
  .step-dot, .step:nth-child(n) .step-dot { top: 50%; left: 0; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  /* схема уходит под текст */
  .scheme-card { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 0; padding: 30px 32px; }
  .scheme-size, .scheme-card h3, .scheme-card > p, .scheme-card ul, .scheme {
    grid-column: 1; grid-row: auto; align-self: auto;
  }
  .scheme { margin-top: 26px; }
  .about-grid { gap: 40px; }
  .audience-card img { min-height: 180px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 44px; }
  .calc { grid-template-columns: 1fr; padding: 34px; }
  .calc-result { position: static; }
  .models-grid { grid-template-columns: 1fr; }
  .cta-wrap { padding: 48px 44px 44px; gap: 44px; }
}

/* Мобильное меню включаем раньше 768px: каталог услуг + CTA не помещаются в строку */
@media (max-width: 900px) {
  .header-inner { gap: 12px; flex-wrap: wrap; position: relative; }
  .nav {
    display: none; flex-direction: column; gap: 0; margin-left: 0;
    position: absolute; top: 80px; left: 0; right: 0; z-index: 100;
    background: rgba(244, 244, 245, 0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav-item > a {
    padding: 13px 0; font-size: 16px; display: block;
    border-bottom: 1px solid var(--line); border-top: 0;
  }
  .nav > a:hover, .nav-item > a:hover, .nav a.active { border-color: var(--line); }
  .nav > a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  /* Каталог услуг в мобильном меню — раскрытый список */
  .nav-item { display: block; }
  .nav-caret { display: none; }
  .megamenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; grid-template-columns: 1fr; gap: 0;
    border: none; box-shadow: none; padding: 4px 0 8px; margin: 0; background: transparent;
  }
  .megamenu a { padding: 10px 12px; font-size: 15px; }
  .megamenu a span { display: none; }
  .megamenu-all { margin-top: 2px; padding-top: 8px; }
  .megamenu-all::before { left: 12px; right: 12px; }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  section.block { padding: 60px 0; }
  section.block + section.block > .container::before { top: -30px; }
  .section-head { margin-bottom: 40px; }
  .section-intro, .infra-intro { margin: -26px 0 34px; }
  .section-head-row { margin-bottom: 40px; gap: 18px; }

  /* Первый экран */
  .hero-inner { padding: 40px 0 52px; }
  .hero-sub { max-width: 100%; }
  .hero-actions { gap: 12px; }
  .page-hero > .container { padding-top: 18px; }
  .page-hero h1, .page-hero-sub { max-width: 100%; }
  .page-hero-facts { grid-template-columns: 1fr; margin-top: 36px; }
  .page-hero-fact { padding: 22px 24px; }
  .page-hero-fact + .page-hero-fact::before {
    left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px;
    background-size: 6px 1px; background-repeat: repeat-x;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.12) 2px, transparent 2px);
  }

  .infra-grid, .solution-grid, .check-grid { grid-template-columns: 1fr; }
  .bridge { grid-template-columns: 1fr; padding: 32px 26px; gap: 22px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-cta { flex-direction: column; padding: 30px 26px; gap: 16px; align-items: flex-start; }

  .sc-wrap { grid-template-columns: 1fr; gap: 32px; }
  .sc-list { grid-template-columns: 1fr 1fr; }

  .audience-grid, .audience-card { grid-template-columns: 1fr; }
  .audience-card img { min-height: 180px; max-height: 220px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-text p { max-width: 100%; }

  /* мобильный — одна карточка в ряд */
  .cases-grid { grid-template-columns: 1fr; }
  .cases-section { padding: 28px 0 56px; }
  .cta-section { padding: 36px 0 60px; }
  .case-result { gap: 24px; }

  /* слой уходит над чипами, иначе на узком экране им остаётся полоска */
  .stack { padding: 4px 24px; }
  .stack-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }

  .cta-wrap { grid-template-columns: 1fr; padding: 34px 26px 30px; gap: 32px; }
  .cta-contacts { flex-direction: column; gap: 13px; }
  .form-row { grid-template-columns: 1fr; }
  .faq-item summary { padding: 22px 24px; font-size: 16px; gap: 16px; }
  .faq-answer { padding: 0 24px 24px; }

  .site-footer { margin-top: 56px; border-radius: 24px 24px 0 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 32px; padding: 44px 0 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 0 22px; gap: 8px; }

  .contacts-layout { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 56px; }
  .form-card { position: static; top: auto; padding: 32px 26px 34px; }
  .map-section { padding: 0 0 56px; }
  .map-wrap { height: 280px; }

  .b { padding: 30px 26px 28px; }
  .b-shot { margin: 24px -26px -28px; }
}

@media (max-width: 600px) {
  .cookie-inner { gap: 12px; }
  .cookie-actions { width: 100%; }
  .btn-cookie-accept { flex: 1; text-align: center; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  section.block { padding: 48px 0; }
  section.block + section.block > .container::before { top: -24px; }
  .numbers { grid-template-columns: 1fr; }
  .num .dashed-v { display: none; }
  .num { padding: 28px 24px; position: relative; }
  .num + .num::before {
    content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
    background-size: 6px 1px; background-repeat: repeat-x;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.12) 2px, transparent 2px);
  }
  .num b { font-size: 38px; }
  .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .sc-list { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .cta-wrap { padding: 26px 20px 24px; gap: 26px; }
  .service-card, .infra-card, .model-card, .solution-card { padding: 24px 22px; }
  .step { padding: 22px 24px; }
  .step::before { left: 64px; right: 24px; top: 36px; }
  /* меньше внутренний отступ — точка на линии опускается вместе с номером */
  .step-track, .step:nth-child(even) .step-track { top: 36px; }
  .modal-card { padding: 30px 22px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .contact-card, .hours-card { padding: 20px 18px; }
  .form-card { padding: 24px 18px 26px; }
  .case-img-initial { font-size: 60px; }
  .calc { padding: 24px 20px; border-radius: var(--rc); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
