/* ---------- Палитра ---------- */
:root {
  --c-main: #2B2F33;     /* основной */
  --c-accent: #FFC107;   /* акцент */
  --c-second: #3A5A78;   /* вторичный */
  --c-bg: #F5F5F5;       /* фон */
  --c-white: #FFFFFF;    /* белый */
  --c-dark: #081428;     /* тёмный фон блоков */
  --c-logo-blue: #80DFFA; /* голубой из логотипа — только для знака */

  --c-text: #2B2F33;
  --c-muted: #5f666d;
  --c-line: #e2e3e5;

  --radius: 16px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-track: -0.02em;           /* межбуквенный интервал заголовков */
  --font-desc: var(--font);         /* шрифт описаний под заголовками */
  --desc-weight: 400;
  --head-weight: 500;              /* насыщенность заголовков */
  --num-font: var(--font);          /* крупные цифры */
  --num-weight: 800;
  --body-weight: 400;               /* основной текст */
  --font-head: "Manrope", var(--font);
}

/* Варианты шрифта заголовков — переключаются атрибутом data-font у <html>:
   1 — Onest (исходный), 2 — Manrope, 3 — IBM Plex Sans, 4 — Montserrat,
   5 — Manrope в заголовках (плотнее) + Manrope Light в описаниях,
   6 — Manrope Light 300 (заголовки), ExtraLight 200 (цифры), Onest Light 300 (текст) */
[data-font="1"] { --font-head: var(--font); }
[data-font="2"] { --font-head: "Manrope", var(--font); }
[data-font="3"] { --font-head: "IBM Plex Sans", var(--font); }
[data-font="4"] { --font-head: "Montserrat", var(--font); }
[data-font="5"] {
  --font-head: "Manrope", var(--font);
  --head-track: -0.035em;
  --font-desc: "Manrope", var(--font);
  --desc-weight: 300;
}
[data-font="6"] {
  --font-head: "Manrope", var(--font);
  --head-track: -0.03em;
  --head-weight: 300;
  --num-font: "Manrope", var(--font);
  --num-weight: 200;
  --font-desc: var(--font);
  --desc-weight: 300;
  --body-weight: 300;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--body-weight);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.15; letter-spacing: var(--head-track); }
p { margin: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 1. Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  color: var(--c-white);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--c-dark);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* по бокам — тот же отступ, что у содержимого первого экрана (макс. 1280px),
     чтобы логотип стоял на одной линии с заголовком; 1px — рамка шапки */
  --side: 28px;
  padding: 14px max(var(--side), calc((100% - 1280px) / 2 + var(--side)));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(8,20,40,.7);
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo__mark { width: 26px; height: 38px; fill: currentColor; flex: none; }
.logo__mark .logo__top { fill: var(--c-logo-blue); }
.logo__text { display: flex; flex-direction: column; gap: 4px; }
.logo__name {
  font-family: "Unbounded", var(--font);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
}
.logo__tag {
  font-family: "Jost", var(--font);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .8;
}

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 16px;
  opacity: .85;
  transition: opacity .2s, color .2s;
}
.nav a:hover { opacity: 1; color: var(--c-accent); }

.header__cta {
  flex: none;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
  border-radius: 10px;
  transition: background .2s, color .2s;
}
/* Бургер и кнопка заявки внутри меню — только на телефонах */
.burger, .nav__cta { display: none; }
.burger {
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0 10px;
  margin-left: auto;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.header.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header__cta:hover,
.header__cta:focus-visible { background: var(--c-accent); color: var(--c-dark); outline: none; }

.hero__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 32px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 29px;               /* = боковой отступ шапки + её рамка */
}
.hero__visual img { display: block; width: 100%; height: auto; }
/* Вариант со зданием в перспективе: весь блок ровно в высоту экрана, здание занимает оставшееся место */
@media (min-width: 901px) {
  .hero--tower { height: 100svh; min-height: 560px; }
  .hero--tower .hero__body { min-height: 0; grid-template-rows: minmax(0, 1fr); padding-top: 20px; padding-bottom: 4px; }
  .hero--tower .hero__visual { align-self: stretch; min-height: 0; display: flex; justify-content: flex-end; }
  .hero--tower .hero__visual img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: right center; }
}

.hero h1 { font-size: clamp(36px, 6vw, 72px); font-weight: var(--head-weight); max-width: 14ch; }
.hero__content p { margin-top: 20px; font-size: 20px; opacity: .75; }

/* ---------- 2. Краткое описание ---------- */
.about { padding: 120px 0; }

.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ---------- 1б. Первый экран с чертежом ---------- */
.plan {
  --plan-bg: #070D18;               /* очень тёмный синий */
  --sys-vent: #80DFFA;
  --sys-electro: #FFC107;
  --sys-fire: #FF6B57;
  --sys-security: #3DDC97;
  --sys-water: #6C9BFF;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 170px 24px 110px;      /* сверху — шапка, снизу — список систем */
  background: var(--plan-bg);
  color: var(--c-white);
}
.plan__svg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
}
/* Слои чертежа: тусклый фон, яркая копия в пятне света, отдельные системы для списка */
.plan__layer--base { color: rgba(128,223,250,.16); opacity: .2; }
.plan__layer--lit { color: rgba(205,242,255,.95); }
/* скрытые слои не рисуются вовсе (visibility), чтобы их поток не нагружал страницу */
.plan__layer--sys { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.plan[data-active="vent"] .plan__layer--sys[data-sys="vent"],
.plan[data-active="electro"] .plan__layer--sys[data-sys="electro"],
.plan[data-active="fire"] .plan__layer--sys[data-sys="fire"],
.plan[data-active="security"] .plan__layer--sys[data-sys="security"],
.plan[data-active="water"] .plan__layer--sys[data-sys="water"] { opacity: 1; visibility: visible; transition: opacity .5s ease; }

/* Фонарь: круг с яркой копией чертежа; JS двигает круг и встречно — чертёж внутри,
   поэтому картинка стоит на месте, а «луч» мгновенно следует за курсором */
.plan__torch,
.plan__glow {
  --r: 370px;                       /* радиус «фонаря» */
  position: absolute;
  top: 0; left: 0;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  will-change: transform;
}
.plan__torch {
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, rgba(0,0,0,.6) 65%, transparent);
  mask-image: radial-gradient(closest-side, #000 35%, rgba(0,0,0,.6) 65%, transparent);
}
.plan__torch-img {
  position: absolute;
  top: 0; left: 0;
  display: block;
  max-width: none;
  width: var(--pw, 100vw); height: var(--ph, 100vh);
  will-change: transform;
}
.plan__glow {
  --r: 480px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(128,223,250,.12), transparent);
}
.plan.is-lit .plan__torch,
.plan.is-lit .plan__glow { opacity: 1; }
/* Свет на WebGL: прозрачный холст поверх тусклого чертежа */
.plan__gl {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  display: none;
}
.plan--gl .plan__gl { display: block; }
.plan--gl .plan__torch,
.plan--gl .plan__glow { display: none; }
.plan__content, .plan__legend { z-index: 1; }
/* Шапка с логотипом и меню — как на первом варианте первого экрана */
.plan__header {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  z-index: 2;
  color: var(--c-white);
  /* % здесь считаются от ширины всего блока, а не от ширины минус поля — поправка на 16px */
  padding-left: max(var(--side), calc((100% - 1280px) / 2 + var(--side) - 16px));
  padding-right: max(var(--side), calc((100% - 1280px) / 2 + var(--side) - 16px));
}
.plan__content { position: relative; }

/* Затемнение: края экрана и полоса под текстом */
.plan__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36% 30% at 50% 46%, rgba(7,13,24,.7), rgba(7,13,24,0) 100%),
    linear-gradient(to bottom, rgba(7,13,24,.9), rgba(7,13,24,0) 20%, rgba(7,13,24,0) 72%, rgba(7,13,24,.95)),
    radial-gradient(ellipse at center, rgba(7,13,24,0) 55%, rgba(7,13,24,.7) 100%);
}

.plan__content { max-width: 860px; text-align: center; }
.plan__eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-logo-blue);
}
.plan__title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; }
.plan__text {
  max-width: 560px;
  margin: 24px auto 0;
  font-family: var(--font-desc);
  font-weight: var(--desc-weight);
  font-size: 19px;
  color: rgba(255,255,255,.72);
}
/* Список систем внизу: наведение подсвечивает систему, полоса — таймер автосмены */
.plan__legend {
  position: absolute;
  left: 50%; bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px 32px;
  width: max-content;
  max-width: calc(100% - 48px);
  flex-wrap: wrap;
  justify-content: center;
}
.plan__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font: inherit;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .3s;
}
.plan__item i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c);
  opacity: .5;
  transition: opacity .3s, box-shadow .3s;
}
.plan__item::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
}
.plan__item.is-active { color: var(--c-white); }
.plan__item.is-active i { opacity: 1; box-shadow: 0 0 10px var(--c); }
.plan__item.is-active::after { transform: scaleX(1); transition: transform .4s ease; }

@media (max-width: 720px) {
  .plan { padding: 150px 16px 190px; }
  .plan__text { font-size: 17px; }
  .plan__legend { gap: 0 20px; bottom: 24px; }
  .plan__item { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan__glow { transition: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-second);
}
.eyebrow::before {
  content: "";
  width: 32px; height: 3px;
  border-radius: 2px;
  background: var(--c-accent);
}

.about h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: var(--head-weight); }
.mark {
  background: linear-gradient(transparent 62%, var(--c-accent) 62%, var(--c-accent) 92%, transparent 92%);
  padding: 0 2px;
}

.about__text > p { margin-top: 20px; color: var(--c-muted); }
.about__text > .about__lead { margin-top: 28px; font-size: 20px; color: var(--c-text); }

.about__text > .about__lead b { font-weight: 700; }

/* Цифры */
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Плашки в виде шильдиков: скошенные углы, болты крепления, размерные линии */
.stat {
  --cut: 30px;                      /* размер скоса */
  --edge: var(--c-dark);            /* цвет контура */
  --fill: var(--c-white);           /* цвет заливки */
  --bolt: #c3c8ce;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 200px;
  padding: 28px 30px;
  color: inherit;
  text-decoration: none;
  background: var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .3s ease;
}
.stat::before {                     /* заливка внутри контура толщиной 1px */
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(calc(var(--cut) - .4px) 0, 100% 0, 100% calc(100% - var(--cut) + .4px), calc(100% - var(--cut) + .4px) 100%, 0 100%, 0 calc(var(--cut) - .4px));
}
.stat::after {                      /* болты в двух нескошенных углах */
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--bolt) 0 2.5px, transparent 3px 4px, var(--bolt) 4.5px 5.5px, transparent 6px) top right / 14px 14px no-repeat,
    radial-gradient(circle, var(--bolt) 0 2.5px, transparent 3px 4px, var(--bolt) 4.5px 5.5px, transparent 6px) bottom left / 14px 14px no-repeat;
}
.stat:hover { transform: translateY(-4px); }

.stat b {
  position: relative;
  align-self: flex-start;
  font-size: clamp(40px, 4.4vw, 56px);
  font-family: var(--num-font);
  font-weight: var(--num-weight);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;   /* цифры одной ширины — счётчик не «прыгает» */
}
.stat b i { font-style: normal; color: var(--c-accent); }
/* Размерная линия под числом: засечки по краям и линия между ними */
.stat b::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -16px;
  height: 9px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: .35;
}
.stat > span { color: var(--c-muted); font-size: 15px; line-height: 1.4; }

.stat--dark {
  --edge: rgba(128,223,250,.3);
  --fill: var(--c-dark);
  --bolt: rgba(128,223,250,.45);
  color: var(--c-white);
}
.stat--dark b { color: var(--c-accent); }
.stat--dark > span { color: rgba(255,255,255,.7); }

.stat--blue {                       /* тёмная, как остальные блоки сайта, с жёлтым контуром */
  --edge: rgba(255,193,7,.55);
  --fill: var(--c-dark);
  --bolt: rgba(255,193,7,.5);
  color: var(--c-white);
}
.stat--blue b { font-size: clamp(26px, 2.6vw, 34px); }
.stat--blue b::after { content: none; }

.stat--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 0;
}
/* Значок в шестиграннике, как гайка */
.stat__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px; height: 72px;
  background: var(--c-accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.stat__badge::before {
  content: "";
  grid-area: 1 / 1;
  width: 62px; height: 70px;
  background: var(--c-dark);
  clip-path: inherit;
}
.stat__icon {
  grid-area: 1 / 1;
  position: relative;
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat .stat__label { display: flex; flex-direction: column; gap: 6px; color: var(--c-white); }
.stat__label b { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); }
.stat__label span { font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.75); }
.stat__arrow {
  flex: none;
  width: 26px; height: 26px;
  margin-left: auto;
  margin-right: 14px;
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}
.stat--wide:hover .stat__arrow { transform: translateX(5px); }

/* Описания под заголовками и в карточках — шрифт зависит от варианта data-font */
.hero__content p,
.about__text > p:not(.about__lead):not(.eyebrow),
.lead__text p,
.projects__head p,
.contact__head > p:last-child,
.licenses__head > p:last-child,
.doc p,
.service p,
.trust__card p,
.project__desc {
  font-family: var(--font-desc);
  font-weight: var(--desc-weight);
}

/* Появление при прокрутке */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .stat, .stat__arrow { transition: none; }
}

/* ---------- 3. Наши услуги ---------- */
.services {
  padding: 120px 0;
  background: var(--c-dark);
  color: var(--c-white);
}
.services__title {
  text-align: center;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: var(--head-weight);
}

/* Дерево-соединитель от заголовка к колонкам */
.tree {
  position: relative;
  height: 96px;
  margin: 28px 0 24px;
  --line: 2px dotted rgba(255,255,255,.35);
}
.tree::before {             /* вертикаль от заголовка */
  content: "";
  position: absolute;
  left: 50%; top: 0;
  height: 40px;
  border-left: var(--line);
}
.tree::after {              /* горизонталь + крайние спуски */
  content: "";
  position: absolute;
  top: 40px; height: 44px;
  left: calc(12.5% - 7.5px);
  right: calc(12.5% - 7.5px);
  border: var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}
.tree__drop {
  position: absolute;
  top: 40px; left: var(--x);
  height: 44px;
  border-left: var(--line);
}
.tree__dot {
  position: absolute;
  top: 84px; left: var(--x);
  width: 9px; height: 9px;
  background: var(--c-accent);
  transform: translate(-50%, 0) rotate(45deg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  transition: border-color .25s, transform .25s, background .25s;
}
.service:hover {
  border-color: rgba(255,193,7,.6);
  background: rgba(255,255,255,.06);
  transform: translateY(-4px);
}

.service__img {
  height: 112px;
  padding: 24px 24px 0;
}
.service__img img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  opacity: .9;
  transition: opacity .3s ease;
}
.service:hover .service__img img { opacity: 1; }
.service__img picture { display: block; height: 100%; }

.service__body {
  flex: 1;
  padding: 24px 24px 28px;
}
.service h3 { font-size: 18px; font-weight: var(--head-weight); }
.service p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.7);
}

.services__grid .reveal:nth-child(4n+2) { transition-delay: .08s; }
.services__grid .reveal:nth-child(4n+3) { transition-delay: .16s; }
.services__grid .reveal:nth-child(4n+4) { transition-delay: .24s; }

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .tree { display: none; }
  .services__title { margin-bottom: 48px; }
}
@media (max-width: 600px) {
  .services { padding: 80px 0; }
  .services__grid { grid-template-columns: 1fr; }
}

/* ---------- 4. Заявка ---------- */
.lead { padding: 96px 0; }

.lead__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px;
  border-radius: 24px;
  background: var(--c-dark);
  color: var(--c-white);
}
.lead__mark {
  position: absolute;
  right: -30px; bottom: -70px;
  width: 280px;
  fill: var(--c-white);
  opacity: .16;
  pointer-events: none;
}
.lead__mark .lead__mark-top { fill: var(--c-logo-blue); opacity: 1; }
.lead__mark path:not(.lead__mark-top) { opacity: .7; }

.lead__text h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: var(--head-weight); }
.lead__text p { margin-top: 18px; font-size: 19px; color: rgba(255,255,255,.75); }

.lead__form { position: relative; display: grid; gap: 14px; }

.input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  font: inherit;
  color: var(--c-text);
  background: var(--c-white);
  border: 2px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s;
}
.input::placeholder { color: #8a9097; }
.input:focus { border-color: var(--c-accent); }
.input.is-invalid { border-color: #E5484D; }

.phone {
  position: relative;
  display: flex;
  border-radius: 10px;
  background: var(--c-white);
}
.phone__code {
  flex: none;
  height: 60px;
  padding: 0 14px;
  font: inherit;
  color: var(--c-text);
  background: #eef0f2;
  border: 0;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
}
.phone__input { border-radius: 0 10px 10px 0; }
.phone__req {
  position: absolute;
  top: 12px; right: 16px;
  color: #E5484D;
  font-weight: 700;
}

.btn-outline {
  height: 60px;
  margin-top: 6px;
  font: inherit;
  font-weight: 600;
  color: var(--c-accent);
  background: transparent;
  border: 2px solid var(--c-accent);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover,
.btn-outline:focus-visible { background: var(--c-accent); color: var(--c-dark); outline: none; }

.lead__note { font-size: 13px; color: rgba(255,255,255,.5); }
.lead__status:empty { display: none; }
.lead__status { font-weight: 600; color: var(--c-logo-blue); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .lead__panel { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
}
@media (max-width: 480px) {
  .lead { padding: 64px 0; }
  .lead__panel { padding: 32px 20px; border-radius: 18px; }
}

/* ---------- 5. Реализованные проекты ---------- */
.projects { padding: 40px 0 120px; }

.projects__head h2 { font-size: clamp(32px, 4vw, 52px); font-weight: var(--head-weight); }
.projects__head p { margin-top: 14px; font-size: 19px; color: var(--c-muted); }

/* Фильтр */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 28px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.filter span {
  min-width: 22px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-muted);
}
.filter:hover { border-color: var(--c-dark); }
.filter.is-active { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-white); }
.filter.is-active span { background: var(--c-accent); color: var(--c-dark); }

/* Мозаика */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 16px;
}
.project--big  { grid-column: span 2; grid-row: span 2; }
.project--tall { grid-row: span 2; }
.project--wide { grid-column: span 2; }

.project {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--c-dark);
  color: var(--c-white);
  outline: none;
  isolation: isolate;
  animation: project-in .45s ease both;
}
.project[hidden] { display: none; }
@keyframes project-in { from { opacity: 0; transform: scale(.97); } }

.project img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s ease;
}
.project::after {             /* затемнение для читаемости текста */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8,20,40,.92) 0%, rgba(8,20,40,.55) 38%, rgba(8,20,40,0) 70%);
  transition: background .35s ease;
}

.project__num {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: 999px;
  background: rgba(8,20,40,.55);
  backdrop-filter: blur(6px);
}

.project__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
}
.project h3 { font-size: 18px; font-weight: var(--head-weight); line-height: 1.25; }
.project--big h3 { font-size: clamp(22px, 2.4vw, 30px); }
.project--wide h3, .project--tall h3 { font-size: 22px; }

.project__big { margin-bottom: 8px; font-size: 15px; color: rgba(255,255,255,.8); }
.project__big b { display: block; font-size: 44px; line-height: 1; font-family: var(--num-font); font-weight: var(--num-weight); color: var(--c-accent); }

/* Описание раскрывается при наведении */
.project__desc {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
}
.project:hover img,
.project:focus-visible img { transform: scale(1.06); }
.project:hover::after,
.project:focus-visible::after { background: linear-gradient(to top, rgba(8,20,40,.95) 0%, rgba(8,20,40,.8) 60%, rgba(8,20,40,.45) 100%); }
.project:hover .project__desc,
.project:focus-visible .project__desc { max-height: 160px; margin-top: 10px; opacity: 1; }
.project:focus-visible { box-shadow: 0 0 0 3px var(--c-accent); }

/* На телефонах и сенсорных экранах описание видно сразу */
@media (hover: none), (max-width: 600px) {
  .project__desc { max-height: none; margin-top: 12px; opacity: 1; }
  .project::after { background: linear-gradient(to top, rgba(8,20,40,.95) 0%, rgba(8,20,40,.7) 55%, rgba(8,20,40,.1) 100%); }
}

@media (max-width: 1024px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
}
@media (max-width: 600px) {
  .projects { padding: 24px 0 80px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .filter { flex: none; }
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .project, .project--big, .project--tall, .project--wide { grid-column: auto; grid-row: auto; min-height: 0; aspect-ratio: 11 / 8; }
  /* карточка ниже, почти в пропорцию фото — подписи компактнее */
  .project__num { top: 12px; left: 12px; padding: 3px 9px; font-size: 12px; }
  .project__info { padding: 14px 16px 16px; }
  .project h3, .project--big h3, .project--wide h3, .project--tall h3 { font-size: 18px; }
  .project__desc { margin-top: 6px; font-size: 13px; line-height: 1.4; }
  .project__big { margin-bottom: 4px; font-size: 13px; }
  .project__big b { font-size: 32px; }
}
/* Кнопка «Смотреть больше» — только на телефонах */
.projects__more { display: none; }
@media (max-width: 600px) {
  .projects__grid:not(.is-expanded):not(.is-filtered) .project--extra { display: none; }
  .projects__grid:not(.is-filtered) .project--extra { order: 1; }   /* раскрытые — после основных */
  .projects__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    margin-top: 16px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-dark);
    background: transparent;
    border: 1.5px solid var(--c-dark);
    border-radius: 12px;
    cursor: pointer;
  }
  .projects__more svg { width: 20px; height: 20px; fill: none; stroke: var(--c-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .projects__more:active { background: var(--c-dark); color: var(--c-white); }
  .projects__grid.is-expanded ~ .projects__more,
  .projects__grid.is-filtered ~ .projects__more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project { animation: none; }
}

/* ---------- 6. Почему нам доверяют ---------- */
.trust {
  position: relative;
  padding-top: 120px;
  background: var(--c-dark);
  color: var(--c-white);
  overflow: clip;
}
.trust__head { position: relative; z-index: 2; text-align: center; }
.trust__eyebrow {
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.trust__eyebrow span { margin-right: 6px; font-size: 18px; color: var(--c-accent); }
.trust__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: var(--head-weight);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Сцена: высота задаёт длину «прокрутки» анимации */
.trust__stage { position: relative; margin-top: -18vh; }

.trust__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  z-index: 0;
  pointer-events: none;
}
.trust__logo {
  --s: 1; --y: 0px;
  position: relative;
  width: var(--logo-size, 150px);
  aspect-ratio: 426 / 619;
  transform: translateY(var(--y)) scale(var(--s));
  will-change: transform;
}
.trust__glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(128,223,250,.35), rgba(58,90,120,.15) 55%, transparent 75%);
  filter: blur(20px);
}

/* Объёмный логотип: слои по оси Z, лёгкое покачивание */
.logo3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: logo-spin 9s linear infinite;
}
.logo3d__layer {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: translateZ(var(--z, 0px));
}
.logo3d__layer--side .p1 { fill: #2C7FA3; }
.logo3d__layer--side .p2 { fill: #4A5866; }
.logo3d__layer--back .p1 { fill: #80DFFA; }
.logo3d__layer--back .p2 { fill: #C9D3DE; }
@keyframes logo-spin {
  from { transform: perspective(900px) rotateY(0deg); }
  to   { transform: perspective(900px) rotateY(360deg); }
}

/* Стеклянные карточки проезжают поверх логотипа */
.trust__cards {
  position: relative;
  z-index: 1;
  list-style: none;
  margin-top: -100vh;
  padding-top: 115vh;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.trust__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 355px;
  padding: 22px 22px 26px;
  background: rgba(16, 28, 48, .55);
  border: 1px solid rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}
/* Шахматная раскладка в 2 ряда: второй ряд сдвинут на полкарточки */
.trust__card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
.trust__card:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
.trust__card:nth-child(3) { grid-column: 5 / span 2; grid-row: 1; }
.trust__card:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
.trust__card:nth-child(5) { grid-column: 4 / span 2; grid-row: 2; }
.trust__card:nth-child(6) { grid-column: 6 / span 2; grid-row: 2; }

.trust__card-top { display: flex; justify-content: space-between; gap: 16px; }
.trust__card h3 { font-size: 22px; font-weight: var(--head-weight); line-height: 1.2; }
.trust__num { flex: none; font-size: 13px; font-weight: 600; color: var(--c-accent); }
.trust__card p { font-size: 15px; line-height: 1.55; color: #8C97A3; }

@media (max-width: 1100px) {
  .trust__cards { grid-template-columns: repeat(2, 1fr); }
  .trust__card:nth-child(odd) { grid-column: 1; }
  .trust__card:nth-child(even) { grid-column: 2; }
  .trust__card:nth-child(1) { grid-row: 1; }
  .trust__card:nth-child(2) { grid-row: 2; }
  .trust__card:nth-child(3) { grid-row: 3; }
  .trust__card:nth-child(4) { grid-row: 4; }
  .trust__card:nth-child(5) { grid-row: 5; }
  .trust__card:nth-child(6) { grid-row: 6; }
  .trust__card { min-height: 300px; }
}
@media (max-width: 600px) {
  .trust { padding-top: 80px; }
  .trust__cards { grid-template-columns: 1fr; padding-top: 95vh; padding-bottom: 80px; }
  .trust__card:nth-child(n) { grid-column: 1; grid-row: auto; }
  .trust__card { min-height: 220px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo3d { animation: none; transform: perspective(900px) rotateY(-20deg); }
}

/* Заглушки следующих блоков */
/* ---------- Лицензии ---------- */
.licenses { padding: 120px 0; }
.licenses__head { max-width: 640px; }
.licenses__head h2 { font-size: clamp(32px, 4vw, 52px); }
.licenses__head > p:last-child { margin-top: 16px; font-size: 19px; color: var(--c-muted); }

.licenses__grid {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Документ: лист с загнутым углом, рамкой по ГОСТ и синей печатью */
.doc {
  --fold: 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 34px 30px 30px 44px;
  background: var(--c-white);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
  filter: drop-shadow(0 14px 24px rgba(8,20,40,.08));
  transition: transform .35s ease;
}
.doc::before {                      /* рамка листа с полем для подшивки слева */
  content: "";
  position: absolute;
  inset: 12px 12px 12px 26px;
  border: 1px solid var(--c-line);
  pointer-events: none;
}
.doc::after {                       /* загнутый уголок */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: var(--fold); height: var(--fold);
  background: linear-gradient(225deg, transparent 50%, #e4e7eb 50%);
  box-shadow: -2px 2px 6px rgba(8,20,40,.08);
}
.doc:hover { transform: translateY(-6px); }

.doc__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--c-accent);
}
.doc__title {
  margin-top: 8px;
  padding-right: 20px;
  font-size: 24px;
  line-height: 1.2;
}
.doc p {
  margin: 16px 0 0;
  padding-right: 70px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
}

.doc__seal {
  position: absolute;
  right: 20px; bottom: 20px;
  width: 108px; height: 108px;
  color: #2D5C8F;
  opacity: .7;
  transform: rotate(-14deg);
  transition: transform .35s ease, opacity .35s ease;
}
.doc:hover .doc__seal { opacity: .95; transform: rotate(-14deg) scale(.94); }

.licenses__grid .reveal:nth-child(2) { transition-delay: .1s; }
.licenses__grid .reveal:nth-child(3) { transition-delay: .2s; }

@media (max-width: 960px) {
  .licenses__grid { grid-template-columns: 1fr; gap: 20px; }
  .doc { min-height: 0; padding-bottom: 120px; }
  .doc p { padding-right: 0; }
}
@media (max-width: 600px) {
  .licenses { padding: 80px 0; }
  .licenses__grid { margin-top: 36px; gap: 14px; }
  /* компактные листы: печать меньше и стоит справа от текста, а не под ним */
  .doc { --fold: 24px; padding: 24px 20px 22px 36px; }
  .doc::before { inset: 8px 8px 8px 20px; }
  .doc__title { margin-top: 4px; font-size: 20px; }
  .doc p { margin-top: 10px; padding-right: 0; font-size: 14px; line-height: 1.45; }
  /* текст на всю ширину; печать — под текстом в правом нижнем углу, внутри рамки листа */
  .doc { padding-bottom: 82px; }
  .doc__seal { right: 18px; bottom: 16px; width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc, .doc__seal { transition: none; }
}

/* ---------- Обсудим ваш проект ---------- */
.contact {
  padding: 120px 0;
  background: var(--c-dark);
  color: var(--c-white);
}
.contact .eyebrow { color: rgba(255,255,255,.6); }
.contact__head h2 { font-size: clamp(32px, 4vw, 52px); }
.contact__head > p:last-child { margin-top: 16px; font-size: 19px; color: rgba(255,255,255,.75); }

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 14px;
  margin-top: 48px;
}
.contact__note,
.contact__form .lead__status { grid-column: 1 / -1; margin: 0; }
.contact__note { font-size: 13px; color: rgba(255,255,255,.5); }

.btn-accent {
  height: 60px;
  padding: 0 40px;
  font: inherit;
  font-weight: 600;
  color: var(--c-dark);
  background: var(--c-accent);
  border: 2px solid var(--c-accent);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-accent:hover,
.btn-accent:focus-visible { background: transparent; color: var(--c-accent); outline: none; }

@media (max-width: 900px) {
  .contact__form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact { padding: 80px 0; }
}

/* ---------- Подвал ---------- */
.footer {
  overflow: hidden;
  padding-top: 72px;
  background: var(--c-dark);
  color: var(--c-white);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--c-accent); }

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.2fr;
  gap: 48px;
}
.footer__legal { margin: 28px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer__label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 16px; color: rgba(255,255,255,.8); }

.footer__phone {
  display: inline-block;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.footer__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.footer__list li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.footer__list svg {
  flex: none;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--c-logo-blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__line {
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Огромное название и слоган: по буквам медленно проходит полоса света.
   Градиент на общем родителе, поэтому полоса идёт через оба текста */
.footer__mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4vw;
  margin-top: 40px;
  padding: 0 24px 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  user-select: none;
  color: transparent;
  background: linear-gradient(100deg,
      #0F2244 0%, #0F2244 38%,
      #2C7FA3 45%, #80DFFA 50%, #2C7FA3 55%,
      #0F2244 62%, #0F2244 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: footer-shine 5s linear infinite paused;
}
.footer__mark.is-shining { animation-play-state: running; }
.footer__word {
  font-family: "Unbounded", var(--font);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer__tagline {
  font-family: "Jost", var(--font);
  font-size: clamp(11px, 1.3vw, 18px);
  line-height: 1.6;
  letter-spacing: .22em;
  text-transform: uppercase;
}
/* 93% → 7%: полоса входит слева сразу и уходит вправо без «тёмной» паузы */
@keyframes footer-shine {
  from { background-position: 93% 0; }
  to   { background-position: 7% 0; }
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer { padding-top: 56px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__line { margin-top: 40px; }
  .footer__mark { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; padding: 0 16px 32px; }
  .footer__word { font-size: 22vw; }
  .footer__tagline { font-size: 11px; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__mark { animation: none; background-position: 50% 0; }
}

.section-stub {
  padding: 64px 0;
  border-top: 1px dashed #cfd1d4;
  color: #9aa0a6;
  font-weight: 600;
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .about { padding: 80px 0 72px; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .hero__body { grid-template-columns: 1fr; padding-top: 40px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header { --side: 18px; padding-top: 12px; padding-bottom: 12px; }
  .hero__body { padding-left: 19px; padding-right: 19px; }
  .header__cta { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 520px) {
  .header__cta { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stat { min-height: 160px; padding: 20px; gap: 20px; }
  .about__text > .about__lead { font-size: 18px; }
}

/* Первый экран — здание в перспективе на всех устройствах.
   Изометрическое здание (блок .hero без --tower) пока скрыто, разметка оставлена про запас */
.hero:not(.hero--tower) { display: none; }
.hero__visual picture { display: contents; }   /* картинка ведёт себя как прямой потомок — размеры не меняются */

/* Телефоны и планшеты: заголовок и текст по центру, подпись мельче */
@media (max-width: 900px) {
  .hero--tower .hero__content { text-align: center; }
  .hero--tower h1 { margin-inline: auto; }
  .hero--tower .hero__content p { max-width: 34ch; margin-inline: auto; font-size: 16px; line-height: 1.5; text-wrap: balance; }
  .hero--tower .hero__content p { color: #9AA9BC; opacity: 1; }   /* описание приглушённое — не сливается с заголовком */
  .hero--tower .hero__body { gap: 24px; }
  /* заголовок ровно в 3 строки: «Инженерные системы / и безопасность / объектов» */
  .hero--tower h1 { max-width: none; font-size: clamp(28px, 8.2vw, 52px); }
  .hero--tower .hero__line { display: block; }
  /* заголовок подчёркнут фирменным жёлтым — каждая строка */
  .hero--tower h1 {
    text-decoration: underline;
    text-decoration-color: var(--c-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
    text-decoration-skip-ink: none;
  }
}

/* Телефоны: шапка без плашки, логотип меньше, меню — в бургере */
@media (max-width: 720px) {
  .hero--tower .header {
    position: relative;
    padding: 6px 4px;
    border: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero--tower .logo { gap: 10px; }
  .hero--tower .logo__mark { width: 20px; height: 29px; }
  .hero--tower .logo__name { font-size: 17px; }
  .hero--tower .logo__tag { font-size: 7px; }
  .hero--tower .header__cta { display: none; }
  .hero--tower .burger { display: flex; }
  .hero--tower .header.is-open .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    background: rgba(8,20,40,.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .hero--tower .header.is-open .nav a { padding: 12px 10px; font-size: 18px; }
  .hero--tower .header.is-open .nav__cta {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--c-accent);
    border: 2px solid var(--c-accent);
    border-radius: 10px;
    opacity: 1;
  }
}


/* Телефоны: плашки с цифрами компактнее и проще — без болтов и размерных линий */
@media (max-width: 720px) {
  .about__stats { gap: 10px; }
  .stat { --cut: 14px; min-height: 0; padding: 16px 18px; gap: 6px; justify-content: flex-start; }
  .stat::after, .stat b::after { content: none; }
  .stat:hover { transform: none; }
  .stat b { font-size: 36px; }
  .stat > span { font-size: 14px; }
  .stat--wide { gap: 14px; padding: 14px 18px; }
  .stat__badge { width: 40px; height: 46px; }
  .stat__badge::before { width: 38px; height: 44px; }
  .stat__icon { width: 20px; height: 20px; }
  .stat--blue b { font-size: 20px; }
  .stat .stat__label { gap: 3px; }
  .stat__label span { font-size: 13px; line-height: 1.35; }
  .stat__arrow { width: 20px; height: 20px; margin-right: 0; }
}

/* Телефоны: «Почему нам доверяют» — сначала растёт логотип, потом наезжают карточки, как на компьютере.
   Две классовые части, чтобы общий отступ .container не обнулял запас прокрутки сверху */
@media (max-width: 600px) {
  .trust .trust__cards { padding-top: 110vh; padding-bottom: 80px; }
  .trust__sticky { padding-bottom: 14vh; }   /* логотип немного выше центра экрана */
}

/* «Обсудим ваш проект»: внизу тонкий силуэт города —
   здания с огнями в окнах, по крышам проходит инженерная сеть.
   На компьютере — широкий вариант рисунка целиком по ширине экрана, пропорционально */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  padding-bottom: max(220px, calc(100vw * 150 / 1600 + 60px));   /* под рисунком всегда есть место */
  background:
    radial-gradient(70% 40% at 100% 0%, rgba(58,110,165,.22), transparent 70%),
    var(--c-dark);
}
.contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0; right: 0; bottom: 0;
  aspect-ratio: 1600 / 150;
  background: url("../assets/contact-skyline-wide.svg") no-repeat center bottom / 100% 100%;
  pointer-events: none;
}
@media (max-width: 600px) {
  .contact { padding-bottom: 150px; }
  .contact::after {
    height: 110px;
    aspect-ratio: auto;   /* иначе ширина считается от высоты и рисунок растягивается */
    background: url("../assets/contact-skyline.svg?v=2") no-repeat center bottom / 100% 100%;
  }

  /* Огромное «ФОКУС» внизу целиком помещается в ширину экрана */
  .footer__word { font-size: 19vw; }
}

/* Первый экран: кнопка «Оставить заявку» под картинкой — только на телефонах.
   Синий фон просто становится выше, размеры заголовка и здания не меняются */
.hero__cta { display: none; }
@media (max-width: 720px) {
  .hero--tower .hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
  }
  .hero--tower .hero__body { padding-bottom: 32px; }
}

/* Переносы строк только для телефонов */
.br-m { display: none; }
@media (max-width: 720px) {
  .br-m { display: inline; }
}

/* Номера карточек (01, 02… и /01, /02…) скрыты на всех устройствах */
.project__num, .trust__num, .doc__num { display: none !important; }
