/* Diamond Air — главная lissantbel.by, версия 4 (правки клиента 13.10.2026).
   Цвета с сайтов клиента: #255384 (кристалл логотипа), #3baed4 (акцент lissantbel.by); тёмные фоны графитовые.
   Нежно-розовый по просьбе клиента только на ведущих разделах: автоматика, приточно-вытяжные установки, воздуховоды.
   Фирменная форма: скругление со срезанным углом, как грань кристалла. */

/* optional + preload в head: шрифт приходит до первой отрисовки; если на медленной сети при первом заходе не успел -
   страница остаётся на запасном с подогнанными метриками (ниже) без перестройки текста, со следующей - фирменный из кэша.
   swap подменял шрифт после отрисовки: переносы строк менялись, первый экран сдвигался до 30-50 px (CLS) */
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2.woff2") format("woff2"); font-weight: 600 800; font-display: optional; }
@font-face { font-family: "Onest"; src: url("../fonts/onest.woff2") format("woff2"); font-weight: 400 700; font-display: optional; }
/* запасные шрифты с метриками Exo 2 и Onest: пока фирменные грузятся, строки не меняют длину и макет не прыгает (CLS).
   Метрики сняты fontTools: средняя ширина букв Onest 0,560 / Exo 2 0,572 em против 0,534 у Arial */
@font-face { font-family: "Onest fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Roboto"); size-adjust: 104.8%; ascent-override: 92.6%; descent-override: 29.1%; line-gap-override: 0%; }
@font-face { font-family: "Exo 2 fallback"; src: local("Arial Bold"), local("Arial"), local("Helvetica Neue"), local("Roboto"); font-weight: 600 800; size-adjust: 107%; ascent-override: 93.4%; descent-override: 18.8%; line-gap-override: 0%; }

:root {
  --ink: #1b1e22;
  --graphite: #23272c;
  --graphite-2: #2d3238;
  --blue: #255384;
  --blue-h: #1c4470;
  --cyan: #3baed4;
  --sky: #edf2f7;
  --sky-2: #e0e8f0;
  --mist: #f4f6f8;
  --line: #dde2e7;
  --text: #1f2328;
  --muted: #59626c;
  --paper: #fff;
  --rose: #f8f0f2;     /* приглушённый розовый ведущих разделов (17.10: «не такими яркими») */
  --rose-2: #f1e4e8;
  --grey-1: #f5f6f7;   /* светло-серые плитки: подразделы, дерево, карточки заводов */
  --grey-2: #ebedef;
  --viber: #7360f2;
  --wa: #1c9a4f;
  --tg: #229ed9;

  --display: "Exo 2", "Exo 2 fallback", "Onest", system-ui, sans-serif;
  --body: "Onest", "Onest fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1360px;
  --gut: clamp(16px, 3vw, 40px);
  --edge: clamp(8px, 1vw, 14px);
  --r: 24px;
  --f: 24px;
  --sec: clamp(48px, 5.4vw, 84px);
  --hd: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* scrollbar-gutter: на Windows полоса прокрутки при открытии меню и окон (прокрутка страницы выключается) не исчезает - страница не прыгает вбок */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; scrollbar-gutter: stable; }
body {
  margin: 0; font: 400 1rem/1.6 var(--body); color: var(--text); background: var(--paper);
  font-variant-numeric: tabular-nums; caret-color: var(--blue); scrollbar-color: #a3acb5 transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: manual; }
p { text-wrap: pretty; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* атрибут hidden сильнее любых display в компонентах */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* Скругление карточек и фото. Срезанный угол остался только у кнопок (правка клиента 17.10) */
.facet { border-radius: var(--r); }

/* ---------- Кнопки ---------- */
.btn {
  --c: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 12px 26px;
  font: 600 1rem/1.2 var(--body); color: #fff; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; background-color: var(--blue);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background-color .2s, color .2s;
}
.btn i { width: 1em; text-align: center; transition: transform .25s var(--ease); }
.btn:hover { background-color: var(--blue-h); }
.btn:hover i { transform: translateX(4px); }
/* clip-path срезает внешний outline, поэтому фокус рисуем кольцом внутри кнопки */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--cyan), inset 0 0 0 5px #fff; }
.btn--light { background-color: #fff; color: var(--ink); }
.btn--light:hover { background-color: var(--sky-2); }
.btn--glass { background-color: rgba(255, 255, 255, .14); }
.btn--glass:hover { background-color: rgba(255, 255, 255, .24); }
.btn--sm { min-height: 46px; padding: 10px 18px; font-size: .9375rem; }
/* второстепенная кнопка на светлом фоне */
.btn--ghost { background-color: var(--sky); color: var(--blue); }
.btn--ghost:hover { background-color: var(--sky-2); }
.btn[disabled] { background-color: #6b7580; cursor: progress; }

.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link i { width: 1em; text-align: center; transition: transform .25s var(--ease); }
.link:hover span { text-decoration: underline; }
.link:hover i { transform: translateX(4px); }

/* Кнопки-стрелки каруселей */
.navs { display: flex; gap: 8px; }
.navs button {
  width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.navs button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.navs button:disabled { opacity: .35; cursor: default; background: var(--paper); color: var(--ink); border-color: var(--line); }
.rail-bar { display: none; height: 3px; margin-top: 18px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rail-bar span { display: block; height: 100%; width: 30%; background: var(--blue); border-radius: 2px; }

/* ---------- Шапка: плавающая плашка ---------- */
.hd {
  position: fixed; z-index: 70; left: 0; right: 0; top: calc(var(--edge) + 12px);
  padding-inline: calc(var(--edge) + 12px); pointer-events: none;
}
.hd__bar {
  pointer-events: auto; position: relative;
  max-width: calc(var(--maxw) - 2 * var(--gut) + 40px); margin-inline: auto;
  height: var(--hd); padding: 0 12px 0 22px;
  display: flex; align-items: center; gap: clamp(10px, .9vw, 12px);
  background: var(--paper); border-radius: 20px; transition: box-shadow .3s;
}
.hd.is-scrolled .hd__bar { box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .38); }
.hd__logo { flex: 0 0 auto; display: block; }
.hd__logo img { height: 40px; width: auto; max-width: none; }
.hd__cat { flex: 0 0 auto; min-height: 48px; padding: 10px 20px; }
.hd__cat .fa-xmark { display: none; }
.hd__cat[aria-expanded="true"] .fa-xmark { display: inline; }
.hd__cat[aria-expanded="true"] .fa-grip { display: none; }
.hd__nav { display: flex; gap: 2px; min-width: 0; }
.hd__nav a {
  display: block; padding: 10px clamp(8px, .9vw, 12px); border-radius: 12px;
  font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--text);
  transition: background-color .2s, color .2s;
}
.hd__nav a:hover { background: var(--sky); color: var(--blue); }
/* «Автоматика» в меню: оба раздела автоматики выпадающим списком */
.hd__drop { position: relative; }
.hd__drop-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px clamp(8px, .9vw, 12px); border: 0; border-radius: 12px;
  background: none; font-weight: 500; white-space: nowrap; color: var(--text); cursor: pointer; transition: background-color .2s, color .2s;
}
.hd__drop-btn i { font-size: .6875rem; transition: transform .25s var(--ease); }
.hd__drop-menu {
  position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); display: none; gap: 2px; width: max-content;
  padding: 8px; border-radius: 16px; background: var(--paper); box-shadow: 0 24px 48px -20px rgba(27, 30, 34, .45);
}
/* мостик над зазором, чтобы список не закрывался по пути курсора */
.hd__drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.hd__drop:hover .hd__drop-btn, .hd__drop-btn[aria-expanded="true"] { background: var(--sky); color: var(--blue); }
/* фокус держит список открытым только внутри ссылок, иначе кнопка не могла бы его закрыть */
.hd__drop:hover .hd__drop-menu, .hd__drop-menu:focus-within, .hd__drop-btn[aria-expanded="true"] + .hd__drop-menu { display: grid; }
.hd__drop:hover .hd__drop-btn i, .hd__drop-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.hd__drop-menu a { padding: 10px 14px; }
.hd__call { display: grid; justify-items: end; line-height: 1.25; }
.phone { font: 700 1.0625rem/1.25 var(--display); color: var(--ink); text-decoration: none; white-space: nowrap; }
.phone:hover { color: var(--blue); }
.hd__mail { font-size: .8125rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.hd__mail:hover { color: var(--blue); text-decoration: underline; }
.hd__msg { flex: 0 0 auto; display: flex; gap: 4px; }
.hd__msg a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--sky); font-size: 1.1875rem; text-decoration: none; transition: background-color .2s, color .2s;
}
.hd__msg-viber { color: var(--viber); }
.hd__msg-wa { color: var(--wa); }
.hd__msg-tg { color: var(--tg); }
.hd__msg a:hover { color: #fff; }
.hd__msg-viber:hover { background: var(--viber); }
.hd__msg-wa:hover { background: var(--wa); }
.hd__msg-tg:hover { background: var(--tg); }
.hd__cta { min-height: 48px; padding: 10px 20px; font-size: .9375rem; gap: 0; }
.hd__icon, .hd__burger {
  display: none; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: var(--sky); color: var(--ink); font-size: 1.125rem; text-decoration: none; cursor: pointer;
}

/* Поиск в шапке */
.hd__find-btn {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 14px;
  background: var(--sky); color: var(--ink); font-size: 1.0625rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.hd__find-btn:hover, .hd__find-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.hfind {
  pointer-events: auto; position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  max-width: 980px; margin-inline: auto; padding: 18px; border-radius: 22px; background: var(--paper);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4);
}
/* выпадающие панели шапки: плавно выезжают сверху и тают при закрытии (класс is-in ставит app.js) */
.hfind, .mega { opacity: 0; transform: translateY(-10px) scale(.99); transform-origin: 50% 0; transition: opacity .2s ease, transform .3s var(--ease); }
.hfind.is-in, .mega.is-in { opacity: 1; transform: none; }
.hfind:not(.is-in), .mega:not(.is-in) { pointer-events: none; }
/* подсказки и стартовый экран поиска сменяют друг друга без рывка */
.hfind__list:not(:empty), .hfind__start { animation: hf-fade .24s ease both; }
@keyframes hf-fade { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .hfind, .mega { transform: none; transition: none; }
  .hfind__list:not(:empty), .hfind__start { animation: none; }
}
.hfind__form { position: relative; display: flex; gap: 8px; }
.hfind__form > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hfind__form input {
  flex: 1; min-width: 0; min-height: 52px; padding: 10px 16px 10px 44px; border: 1px solid #c6ced6; border-radius: 14px;
  background: var(--mist); color: var(--text); font: inherit; transition: border-color .2s, background-color .2s;
}
.hfind__form input:focus { outline: none; border-color: var(--blue); background: var(--paper); }
.hfind__form input::-webkit-search-cancel-button { cursor: pointer; }
/* результаты: группы по типу, товары плиткой в две колонки */
.hfind__list { display: grid; gap: 14px; margin-top: 14px; max-height: min(calc(100svh - var(--hd) - 150px), 620px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.hfind__list:empty { display: none; }
.hfind__list:not(:empty) + .hfind__start { display: none; }
.hfind__gh { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px 10px; font: 700 .8125rem/1.3 var(--body); color: var(--ink); }
.hfind__gh small { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.hfind__items { display: grid; gap: 2px; }
.hfind__g--grid .hfind__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.hfind__it { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; text-decoration: none; transition: background-color .15s; }
.hfind__pic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--grey-1); overflow: hidden; color: var(--muted); }
.hfind__pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hfind__pic--cover img { object-fit: cover; mix-blend-mode: normal; }
.hfind__txt { display: grid; gap: 2px; min-width: 0; }
.hfind__txt b { font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hfind__txt small { font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hfind__it mark { background: var(--rose-2); color: inherit; border-radius: 3px; padding: 0 1px; }
.hfind__it:hover, .hfind__it[aria-selected="true"] { background: var(--grey-1); }
.hfind__it[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--line); }
.hfind__all { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--grey-1); color: var(--blue); font-weight: 600; text-decoration: none; }
.hfind__all i { font-size: .8125rem; transition: transform .25s var(--ease); }
.hfind__all:hover i, .hfind__all[aria-selected="true"] i { transform: translateX(4px); }
.hfind__all[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--blue); }
.hfind__fix { margin: 0 10px; font-size: .875rem; color: var(--muted); }
.hfind__none { margin: 4px 10px 0; color: var(--muted); }
.hfind__calc { justify-self: start; margin-left: 10px; }
/* пустое окно: недавние запросы, примеры, ведущие разделы */
.hfind__start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px 28px; margin-top: 16px; }
.hfind__chips { display: grid; gap: 14px; align-content: start; }
.hfind__cap { margin: 0 0 8px; font: 700 .8125rem/1.3 var(--body); color: var(--ink); }
.hfind__row { display: flex; flex-wrap: wrap; gap: 6px; }
.hfind__row button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; border-radius: 10px; background: var(--grey-1); color: var(--text); font: inherit; font-size: .875rem; cursor: pointer; transition: background-color .15s; }
.hfind__row button i { font-size: .75rem; color: var(--muted); }
.hfind__row button:hover { background: var(--grey-2); }
.hfind__secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.hfind__secs a { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 12px; font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.hfind__secs img { flex: 0 0 40px; height: 40px; border-radius: 9px; background: var(--grey-1); object-fit: contain; mix-blend-mode: multiply; }
.hfind__secs a:hover { background: var(--grey-1); }

/* Каталог в шапке */
.mega {
  pointer-events: auto; position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  max-width: calc(var(--maxw) - 2 * var(--gut) + 40px); margin-inline: auto;
  background: var(--paper); border-radius: 22px; padding: 24px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4);
  max-height: calc(100svh - var(--hd) - 60px); overflow-y: auto; overscroll-behavior: contain;
}
.mega__search { position: relative; display: flex; align-items: center; gap: 20px; margin: 0 4px 16px; }
.mega__search > i { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.mega__search input {
  flex: 1; min-width: 0; min-height: 50px; padding: 10px 16px 10px 44px; border: 1px solid #c6ced6; border-radius: 14px;
  background: var(--mist); color: var(--text); transition: border-color .2s, background-color .2s;
}
.mega__search input:focus { outline: none; border-color: var(--blue); background: var(--paper); }
.mega__search .link { white-space: nowrap; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mega__item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 14px; align-items: start;
  padding: 12px; border-radius: 16px; transition: background-color .2s;
}
.mega__item:hover { background: var(--sky); }
.mega__item--main { background: var(--rose); }
.mega__item--main:hover { background: var(--rose-2); }
.mega__item img { grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: contain; }
.mega__item h3 { font-size: .9375rem; font-weight: 700; line-height: 1.25; }
.mega__item h3 a { text-decoration: none; }
.mega__item h3 a:hover { color: var(--blue); }
.mega__item ul { display: grid; gap: 1px; }
.mega__item li a { font-size: .875rem; color: var(--muted); text-decoration: none; }
.mega__item li a:hover { color: var(--blue); text-decoration: underline; }
.mega__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 12px 0; border-top: 1px solid var(--line); }
.mega__foot p { color: var(--muted); font-size: .9375rem; }

/* Мобильная панель */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(27, 30, 34, .6); opacity: 0; transition: opacity .25s; }
.scrim.is-on { opacity: 1; }
.drawer {
  position: fixed; z-index: 95; top: 8px; right: 8px; bottom: 8px; width: min(420px, calc(100% - 16px));
  background: var(--paper); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 16px)); transition: transform .35s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.drawer__top img { height: 36px; width: auto; max-width: none; }
.drawer__close { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--sky); font-size: 1.25rem; cursor: pointer; color: var(--ink); }
.drawer__body { overflow-y: auto; padding: 14px 20px 28px; flex: 1; overscroll-behavior: contain; }
.drawer__h { margin: 24px 0 12px; font: 800 1.125rem/1.2 var(--display); color: var(--ink); }
.drawer__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__cats a {
  display: grid; gap: 6px; justify-items: center; text-align: center; padding: 10px 8px 12px;
  background: var(--sky); border-radius: 16px; text-decoration: none; font-size: .8125rem; font-weight: 600; line-height: 1.25;
}
.drawer__cats img { width: 64px; height: 64px; object-fit: contain; }
.drawer__cats a.is-main { background: var(--rose); }
.drawer__links { display: grid; }
.drawer__links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
.drawer__links a i { color: var(--muted); font-size: .875rem; }
.drawer__links a[aria-current="page"] { color: var(--blue); }
.drawer__links a[aria-current="page"] i { color: var(--blue); }
.drawer__contacts { padding-top: 20px; display: grid; gap: 6px; }
.drawer__contacts .phone { font-size: 1.25rem; }
.drawer__contacts p { color: var(--muted); font-size: .9375rem; }
.drawer__contacts .btn { margin-top: 12px; }
.drawer__mail { color: var(--blue); text-decoration: none; font-weight: 500; }
.drawer__msg { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.drawer__msg .msg { min-height: 44px; padding: 0 8px; font-size: .875rem; gap: 6px; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; margin: var(--edge); border-radius: 30px; overflow: hidden;
  /* clip, а не только hidden: кадры во время смены увеличены и сдвинуты, у hidden-блока появляется скрытая прокрутка,
     и фокус или прокрутка к вкладке сдвигали весь текст первого экрана на 4-9 px; clip прокрутить нельзя */
  overflow: clip;
  background: var(--ink); color: #fff; isolation: isolate;
  /* --vh0 - высота окна при загрузке (скрипт в head): панели Telegram и Safari прячутся при прокрутке, клавиатура в Android сжимает окно - первый экран не прыгает */
  min-height: min(880px, calc(var(--vh0, 1svh) * 100 - 2 * var(--edge)));
  display: flex; flex-direction: column;
}
/* слайдер листается перетаскиванием: по горизонтали жест наш, по вертикали прокрутка страницы */
.hero { cursor: grab; touch-action: pan-y; }
.hero a, .hero button { cursor: pointer; }
.hero.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.hero__tabs { touch-action: pan-x pan-y; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture { display: contents; }
/* кадры сменяет app.js: шторка со стороны листания и наезд камеры (Web Animations), здесь только видимость */
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform-origin: 50% 50%; }
.hero__bg img.is-on { opacity: 1; }
.hero.is-dragging .hero__bg img.is-on { will-change: transform, clip-path; }
/* главный объект кадра справа от текста */
.hero__bg img[data-slide="0"] { object-position: 70% 42%; }
.hero__bg img[data-slide="1"] { object-position: 56% 50%; }
.hero__bg img[data-slide="3"] { object-position: 76% 50%; }
.hero__bg img[data-slide="4"] { object-position: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 27, 31, .94) 0%, rgba(24, 27, 31, .78) 34%, rgba(24, 27, 31, .28) 66%, rgba(24, 27, 31, .1) 100%),
    linear-gradient(0deg, rgba(24, 27, 31, .9) 0%, rgba(24, 27, 31, 0) 38%);
}
.hero__in {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  width: 100%; padding-top: calc(var(--hd) + 12px + clamp(56px, 7vw, 110px)); padding-bottom: clamp(20px, 2.4vw, 32px);
}
.hero__copy { max-width: 56rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1rem + 3vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; }
/* три довода клиента под заголовком: аттестат, цены завода, гарантия результата */
.hero__facts { margin-top: clamp(22px, 2.4vw, 32px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 50rem; }
.hero__facts li { display: grid; gap: 4px; align-content: start; padding: 4px 22px 0 0; }
.hero__facts li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero__facts b { font: 700 1.0625rem/1.25 var(--display); color: #fff; }
.hero__facts span { font-size: .875rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.hero__acts { margin-top: clamp(24px, 2.6vw, 34px); display: flex; flex-wrap: wrap; gap: 12px; }
/* подписи всех направлений лежат в одной ячейке: высота - по самой длинной, первый экран не меняет высоту при смене слайда */
.hero__note { margin-top: 26px; max-width: 38em; font-size: .9375rem; color: rgba(255, 255, 255, .86); display: grid; }
.hero__note-text { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility 0s linear .5s; }
.hero__note-text.is-on { visibility: visible; opacity: 1; transition: opacity .6s ease .15s, visibility 0s; }
.hero__note b { color: #fff; font-weight: 600; }
.hero__note a { color: #fff; font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.hero__note a:hover { border-color: #fff; }
.hero__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.htab {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 2px 12px; align-items: center;
  min-height: 84px; padding: 12px 14px 12px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
  background: rgba(24, 27, 31, .66); color: #fff; text-align: left; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.htab img { grid-row: span 2; width: 58px; height: 58px; object-fit: contain; }
.htab b { font: 700 .9375rem/1.2 var(--display); }
.htab span { font-size: .8125rem; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.htab:hover { background: rgba(24, 27, 31, .86); border-color: rgba(255, 255, 255, .3); }
.htab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.htab[aria-selected="true"] span { color: var(--muted); }
.htab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue); }
.htab[aria-selected="true"]::after { animation: tabprogress var(--slide, 7s) linear forwards; }
.hero.is-paused .htab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes tabprogress { to { width: 100%; } }

/* ---------- Секции ---------- */
.sec { padding-block: var(--sec); }
.sec h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 3rem); font-weight: 800; line-height: 1.08; }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 20px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.4vw, 44px); }
.sec__head p { margin-top: 14px; max-width: 40em; font-size: 1.0625rem; color: var(--muted); }
.cat__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.dark { background: var(--graphite); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.boxed { margin-inline: var(--edge); border-radius: 30px; position: relative; overflow: hidden; isolation: isolate; }

/* ---------- Каталог ---------- */
/* Ведущие разделы: три крупные плитки первым рядом на нежно-розовом */
.cat__main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.mcard {
  --f: 26px; display: flex; flex-direction: column; padding: 14px 24px 22px; background: var(--rose); color: var(--ink);
  transition: background-color .3s var(--ease);
}
.mcard:hover { background: var(--rose-2); }
.mcard__img { display: block; aspect-ratio: 4 / 3; margin: 0 -8px; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--ease); }
.mcard:hover .mcard__img img { transform: scale(1.04); }
.mcard__body { display: flex; flex-direction: column; flex: 1; }
.mcard h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.5rem); font-weight: 800; line-height: 1.15; }
.mcard h3 a { text-decoration: none; }
.mcard h3 a:hover { color: var(--blue); }
.mcard p { margin-top: 8px; color: #5c4a50; font-size: .9375rem; line-height: 1.5; }
.mcard__subs { margin-top: auto; padding-top: 14px; display: grid; }
.mcard__subs a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0;
  border-top: 1px solid rgba(92, 46, 60, .12); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.mcard__subs a i { font-size: .75rem; color: var(--blue); transition: transform .25s var(--ease); }
.mcard__subs a:hover { color: var(--blue); }
.mcard__subs a:hover i { transform: translateX(4px); }
/* ведущий ряд из двух плиток (автоматика на главной - в большой плитке, правка 26.10): плитки делят ширину, на компьютере фото слева */
@media (min-width: 861px) {
  .cat__main:has(> .mcard:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .cat__main:has(> .mcard:nth-child(2):last-child) .mcard { flex-direction: row; align-items: center; gap: 28px; padding: 18px 28px 18px 12px; }
  .cat__main:has(> .mcard:nth-child(2):last-child) .mcard__img { flex: 0 0 44%; margin: 0; }
}
.cat__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ccard {
  --f: 22px;
  position: relative; display: flex; flex-direction: column; padding: 18px 18px 20px;
  background: var(--sky); color: var(--ink); text-decoration: none; transition: background-color .3s var(--ease), color .3s;
}
.ccard__img { aspect-ratio: 1; margin: -4px 0 6px; display: grid; place-items: center; }
.ccard__img img { width: 92%; height: auto; transition: transform .45s var(--ease); }
.ccard h3 { margin-top: 12px; font-size: 1.0625rem; font-weight: 700; line-height: 1.2; padding-right: 52px; color: inherit; }
.ccard__go {
  position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px; background: var(--paper); color: var(--blue); transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.ccard:hover { background: var(--blue); color: #fff; }
.ccard:hover .ccard__img img { transform: scale(1.06); }
.ccard:hover .ccard__go { background: var(--cyan); color: #fff; transform: translateX(2px); }
.ccard--lead {
  --f: 30px;
  grid-column: span 2; grid-row: span 2; padding: clamp(24px, 2.6vw, 36px);
  background: var(--blue); color: #fff; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 20px;
  grid-template-rows: auto auto 1fr auto; grid-template-areas: "title title" "text img" "subs img" "btn img";
}
.ccard--lead::before {
  content: ""; position: absolute; z-index: -1; right: -18%; top: -14%; width: 78%; aspect-ratio: 1;
  background: url("../img/crystal-white.svg") center / contain no-repeat; opacity: .1;
}
.ccard--lead:hover { background: var(--blue); }
.ccard--lead h3 { grid-area: title; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.375rem); padding-right: 0; color: #fff; margin: 0; }
.ccard--lead h3 a { color: inherit; text-decoration: none; }
.ccard--lead p { grid-area: text; margin-top: 10px; color: rgba(255, 255, 255, .86); }
.ccard--lead .ccard__subs { grid-area: subs; align-self: center; margin-top: 18px; }
.ccard--lead .ccard__img { grid-area: img; aspect-ratio: auto; margin: 0; align-self: end; justify-self: center; }
.ccard--lead .ccard__img img { width: auto; max-width: 100%; max-height: 470px; }
.ccard__subs { display: grid; gap: 2px; }
.ccard__subs a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.ccard__subs a i { font-size: .75rem; opacity: .7; transition: transform .25s var(--ease); }
.ccard__subs a:hover i { transform: translateX(4px); opacity: 1; }
.ccard--lead .btn { grid-area: btn; margin-top: 22px; justify-self: start; }
.cat__more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.cat__more span { color: var(--muted); margin-right: 6px; white-space: nowrap; }
.cat__more a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 12px;
  background: var(--mist); border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .9375rem; white-space: nowrap;
}
.cat__more a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Воздухоочистка ---------- */
.air::before {
  content: ""; position: absolute; z-index: -1; left: -12%; bottom: -30%; width: 46%; aspect-ratio: 1;
  background: url("../img/crystal-white.svg") center / contain no-repeat; opacity: .06;
}
.air__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.air__lead { margin-top: 18px; font-size: 1.0625rem; color: rgba(255, 255, 255, .84); }
.air__checks { margin-top: 24px; display: grid; gap: 12px; }
.air__checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: rgba(255, 255, 255, .92); }
.air__checks i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .8125rem; margin-top: -1px; }
.air__top .btn { margin-top: 30px; }
.air__photo { position: relative; }
.air__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.air__badge {
  position: absolute; left: clamp(-24px, -2vw, -12px); bottom: 24px; display: grid; gap: 2px; max-width: 250px;
  padding: 16px 18px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55);
}
.air__badge b { font: 700 1.625rem/1.1 var(--display); color: var(--blue); }
.air__badge span { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.air__tasks { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.air__tasks a {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; transition: background-color .25s, border-color .25s;
}
.air__tasks img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: #fff; }
.air__tasks b { display: block; font: 700 1rem/1.25 var(--display); }
.air__tasks span span { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.air__tasks i { color: rgba(255, 255, 255, .8); transition: transform .25s var(--ease); }
.air__tasks a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.air__tasks a:hover i { transform: translateX(4px); }
.air .rail-bar { background: rgba(255, 255, 255, .16); }
.air .rail-bar span { background: #fff; }

/* ---------- Аудит проекта (под шагами «Единого окна») ---------- */
.svc__audit {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 16px; min-height: 168px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: clamp(26px, 3vw, 40px); background: var(--blue); color: #fff;
}
/* фон - инженеры разбирают проект (то же фото, что на «О компании»), синий слева держит контраст текста */
.svc__audit::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22, 50, 82, .96) 0%, rgba(37, 83, 132, .9) 50%, rgba(37, 83, 132, .45) 100%), var(--ph) center 30% / cover no-repeat;
}
.svc__audit h3 { color: #fff; font-size: 1.375rem; font-weight: 700; }
.svc__audit p { margin-top: 6px; color: rgba(255, 255, 255, .86); max-width: 34em; }

/* ---------- Партнёры и клиенты ---------- */
.partners { padding-bottom: clamp(16px, 2vw, 28px); }
.partners__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(32px, 5vw, 80px); align-items: start; }
.partners h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); }
.partners__in > div > p { margin-top: 12px; color: var(--muted); }
.makers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.maker { display: grid; grid-template-rows: 76px auto; gap: 14px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.maker__logo { display: flex; align-items: center; }
.maker__logo img { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.maker__logo img.is-tall { height: 74px; }
.maker__logo img[src*="razvitie"] { height: 56px; }
.maker__logo b { font: 800 1.75rem/1 var(--display); color: var(--ink); letter-spacing: .02em; }
.maker p { font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.maker strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.maker em { display: block; font-style: normal; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.maker--main { border-color: var(--sky-2); background: var(--sky); }
.clients { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; padding: 22px 26px; border-radius: 20px; background: var(--mist); }
.clients span { font-weight: 600; color: var(--ink); }
.clients ul { display: flex; align-items: center; gap: 18px 52px; flex-wrap: wrap; }
.clients img { height: var(--h, 30px); width: auto; max-width: none; filter: grayscale(1); opacity: .75; transition: opacity .2s, filter .2s; }
.clients img:hover { filter: none; opacity: 1; }

/* ---------- Единое окно: четыре шага в ряд ---------- */
.steps { background: var(--mist); }
.steps__list { --pad: 26px; --num: 52px; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; isolation: isolate; }
/* соединительная линия на уровне номеров: видна в промежутках между карточками */
.steps__list::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(var(--pad) + var(--num) / 2 - 1px);
  height: 2px; background: var(--blue);
}
/* иконка этапа слева от названия, текст и метка на всю ширину карточки */
.step {
  display: grid; grid-template-columns: var(--num) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: center;
  padding: var(--pad); border-radius: 20px; background: var(--paper); border: 1px solid var(--line);
}
.step > p, .step > .step__tag { grid-column: 1 / -1; }
/* иконка этапа вместо номера: порядок задают линия и расположение слева направо */
.step__ico {
  width: var(--num); height: var(--num); display: grid; place-items: center; border-radius: 14px;
  background: var(--blue); color: #fff; font-size: 1.375rem;
}
.step h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.2; }
.step p { margin-top: 16px; font-size: .9375rem; color: var(--muted); line-height: 1.5; align-self: start; }
.step__tag {
  align-self: end; padding-top: 18px; display: flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; color: var(--blue);
}
.step__tag i { width: 1.1em; text-align: center; }
.step:last-child { background: var(--blue); border-color: var(--blue); }
.step:last-child .step__ico { background: #fff; color: var(--blue); }
.step:last-child h3, .step:last-child .step__tag { color: #fff; }
.step:last-child p { color: rgba(255, 255, 255, .86); }

/* ---------- Объекты ---------- */
.track {
  --pad: max(var(--gut), calc((100% - var(--maxw)) / 2 + var(--gut)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 24vw, 340px); gap: 16px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 4px var(--pad) 8px; margin: -4px 0 0; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.ocard { --f: 22px; position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); color: #fff; }
.ocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ocard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27, 30, 34, .92) 0%, rgba(27, 30, 34, .2) 46%, rgba(27, 30, 34, 0) 70%); }
.ocard { display: block; text-decoration: none; }
.ocard__cap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: grid; gap: 6px; }
.ocard__cap span { font-size: .8125rem; color: rgba(255, 255, 255, .78); }
.ocard__cap b { font: 700 1.125rem/1.35 var(--display); }
.ocard__go {
  position: absolute; z-index: 1; top: 18px; left: 18px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(255, 255, 255, .9); color: var(--ink);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease), background-color .3s, color .3s;
}
.ocard:hover img { transform: scale(1.05); }
.ocard:hover .ocard__go, .ocard:focus-visible .ocard__go { opacity: 1; transform: none; }
.ocard:hover .ocard__go { background: var(--blue); color: #fff; }
.ocard:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (hover: none) { .ocard__go { opacity: 1; transform: none; width: 38px; height: 38px; } }
.obj__foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.obj__foot p { color: var(--muted); }

/* ---------- Отзывы и документы ---------- */
.revs { background: var(--mist); }
.revs .track { grid-auto-columns: clamp(300px, 30vw, 420px); }
.rev {
  scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; gap: 16px;
  padding: 22px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line);
}
.rev__top { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.rev__scan { position: relative; display: block; width: 88px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); cursor: zoom-in; padding: 0; }
.rev__scan img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rev__top b { display: block; font: 700 1.125rem/1.2 var(--display); color: var(--ink); }
.rev__top span { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.rev blockquote { margin: 0; color: var(--text); font-size: .9375rem; line-height: 1.6; }
.rev .link { font-size: .9375rem; justify-self: start; }
.rev--doc { background: var(--sky); border-color: var(--sky); }

/* ---------- Вопросы ---------- */
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__head p { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.faq__card { margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--sky); display: grid; gap: 6px; justify-items: start; }
.faq__card span { font-size: .875rem; color: var(--muted); }
.faq__card .phone { font-size: 1.375rem; }
.faq__list { display: grid; gap: 10px; }
.acc { border-radius: 18px; background: var(--mist); border: 1px solid var(--line); transition: background-color .3s, border-color .3s; }
.acc[open] { background: var(--paper); border-color: var(--blue); }
.acc summary {
  display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 22px;
  cursor: pointer; list-style: none; font: 700 1.0625rem/1.35 var(--display); color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i {
  flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px;
  background: var(--paper); color: var(--blue); transition: transform .35s var(--ease), background-color .3s;
}
.acc[open] summary i { transform: rotate(45deg); background: var(--sky); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 22px 22px; color: var(--muted); }

/* ---------- Заявка с файлом проекта ---------- */
.cta { background: var(--blue); color: #fff; }
.cta::before {
  content: ""; position: absolute; z-index: -1; right: -8%; top: 50%; width: min(760px, 60vw); aspect-ratio: 1;
  transform: translateY(-50%); background: url("../img/crystal-white.svg") center / contain no-repeat; opacity: .09;
}
.cta__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 3vw, 40px); }
.cta h2 { color: #fff; }
.cta__head p { font-size: 1.0625rem; color: rgba(255, 255, 255, .86); }
.cta__form {
  --f: 28px; position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px;
  padding: 12px; background: var(--paper); color: var(--text);
}
.drop { display: grid; gap: 10px; align-content: start; }
.drop__zone {
  display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 236px; padding: 24px; text-align: center;
  border: 2px dashed #b3c3d3; border-radius: 18px; background: var(--mist); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.drop__zone i { font-size: 2.25rem; color: var(--blue); margin-bottom: 6px; transition: transform .3s var(--ease); }
.drop__zone b { font: 700 1.125rem/1.35 var(--display); color: var(--ink); max-width: 22em; }
.drop__or { color: var(--muted); }
.drop__touch { display: none; }
.drop__zone u { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.drop__zone small { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.drop__zone:hover, .drop.is-over .drop__zone { border-color: var(--blue); background: var(--sky); }
.drop.is-over .drop__zone i { transform: translateY(-4px); }
#c-file:focus-visible + .drop__zone { outline: 2px solid var(--cyan); outline-offset: 2px; }
.drop__files { display: grid; gap: 6px; }
.drop__files li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--sky); font-size: .9375rem; }
.drop__files li i { color: var(--blue); }
.drop__files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__files li small { color: var(--muted); font-size: .8125rem; }
.drop__files button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--paper); color: var(--muted); cursor: pointer; }
.drop__files button:hover { color: #b3261e; }
.cta__fields { display: grid; gap: 10px; align-content: start; padding: 12px 12px 8px; }
.cta__fields input[type="text"], .cta__fields input[type="tel"], .cta__fields input[type="email"] {
  width: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid #c6ced6; border-radius: 14px; background: var(--mist);
  color: var(--text); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.cta__fields input:hover { border-color: var(--muted); }
.cta__fields input:focus { outline: none; border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 3px rgba(37, 83, 132, .18); }
.cta__fields [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; line-height: 1.4; color: var(--muted); cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.check a { color: var(--blue); }
.cta__fields .check { margin: 4px 0; }
.cta__fields .btn { width: 100%; min-height: 58px; }
.cta__done { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; }
.cta__done i { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--sky); color: var(--blue); font-size: 1.5rem; }
.cta__done b { font: 800 1.625rem/1.2 var(--display); color: var(--ink); }
.cta__done p { color: var(--muted); }
.cta__alt { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: rgba(255, 255, 255, .8); }
.cta__alt a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.cta__alt a:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Подвал ---------- */
.ft { margin: var(--edge); border-radius: 30px; background: var(--ink); color: rgba(255, 255, 255, .76); font-size: .9375rem; overflow: hidden; }
.ft a { text-decoration: none; }
.ft__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding-block: clamp(36px, 4vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ft__brand { display: flex; align-items: center; gap: 28px; min-width: 0; }
.ft__brand a { display: block; flex: 0 0 auto; }
.ft__brand img { height: 52px; width: auto; max-width: none; }
.ft__brand p { max-width: 22em; min-width: 0; color: rgba(255, 255, 255, .66); }
.ft__call { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.ft__call .phone { color: #fff; font-size: 1.625rem; }
.ft__call small { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .56); }
.ft__msg { display: flex; gap: 8px; }
.ft__msg a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.25rem; transition: background-color .2s; }
.ft__msg a:hover { background: rgba(255, 255, 255, .2); }
.ft__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1.7fr) minmax(0, 2.5fr); gap: 32px 40px; padding-block: clamp(36px, 4vw, 52px); }
.ft__col summary { list-style: none; cursor: default; pointer-events: none; }
.ft__col summary::-webkit-details-marker { display: none; }
.ft__col summary i { display: none; }
.ft h3 { font: 700 1rem/1.3 var(--display); color: #fff; margin-bottom: 16px; }
.ft__col li + li { margin-top: 9px; }
.ft__col a:hover { color: #fff; text-decoration: underline; }
.ft__cat ul { columns: 2; column-gap: 24px; }
.ft__cat li { break-inside: avoid; }
.ft__contacts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.ft__contacts li + li { margin-top: 12px; }
.ft__contacts i { color: rgba(255, 255, 255, .5); margin-top: 4px; font-size: .875rem; }
.ft__contacts small { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .52); }
.ft__contacts a { color: #fff; white-space: nowrap; }
.ft__map { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; padding-bottom: clamp(36px, 4vw, 52px); }
.ft__frame { --f: 22px; position: relative; min-height: 320px; background: var(--graphite-2); }
.ft__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
.ft__frame-load {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; align-content: center;
  color: rgba(255, 255, 255, .78); background: transparent; border: 0; cursor: pointer; font-weight: 600;
}
.ft__frame-load i { font-size: 2rem; color: #fff; }
.ft__frame-load:hover { color: #fff; }
.ft__req { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: 22px; background: var(--graphite); }
.ft__req h3 { margin-bottom: 4px; }
.ft__req dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.ft__req dt { color: rgba(255, 255, 255, .52); }
.ft__req dd { color: #fff; }
.ft__req .btn { justify-self: start; margin-top: 6px; }
.ft__bottom { display: flex; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; padding-block: 20px 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; color: rgba(255, 255, 255, .56); }
.ft__bottom a:hover { color: #fff; }
.ft__copy { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ft__dev a { color: rgba(255, 255, 255, .86); text-decoration: underline; text-underline-offset: 3px; }
.ft__dev a:hover { color: #fff; }
.ft__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft__legal button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ft__legal button:hover { color: #fff; text-decoration: underline; }

/* ---------- Окно cookie: «Принять» и «Отклонить» равнозначные (разъяснения НЦЗПД РБ) ---------- */
.cookie {
  position: fixed; z-index: 85; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(760px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px 24px; padding: 16px 18px 16px 22px; border-radius: 20px;
  background: var(--ink); color: rgba(255, 255, 255, .86); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55); font-size: .875rem; line-height: 1.5;
}
.cookie a { color: #fff; }
.cookie__acts { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie__btn { min-height: 42px; padding: 8px 18px; background-color: rgba(255, 255, 255, .14); }
.cookie__btn:hover { background-color: rgba(255, 255, 255, .26); }

/* ---------- Переход между страницами: новая страница открывается срезом грани, как угол кристалла в логотипе ---------- */
@view-transition { navigation: auto; }
.hd__bar { view-transition-name: hd; }
.fab-msg { view-transition-name: fab-msg; }
::view-transition-old(root) { animation: vt-dim .55s cubic-bezier(.32, .72, 0, 1) both; }
::view-transition-new(root) { animation: vt-facet .6s cubic-bezier(.32, .72, 0, 1) both; }
@keyframes vt-facet {
  from { clip-path: polygon(100% 0, 100% 0, 100% 0); }
  to { clip-path: polygon(-100% 0, 100% 0, 100% 200%); }
}
@keyframes vt-dim { to { filter: brightness(.72); transform: scale(.985); } }
/* «назад» по истории: уходящая страница сворачивается в угол, открывая предыдущую */
html.vt-back::view-transition-old(root) { z-index: 2; animation: vt-facet-out .5s cubic-bezier(.32, .72, 0, 1) both; }
html.vt-back::view-transition-new(root) { animation: none; }
@keyframes vt-facet-out {
  from { clip-path: polygon(-100% 0, 100% 0, 100% 200%); }
  to { clip-path: polygon(100% 0, 100% 0, 100% 0); }
}

/* ---------- Плавающие кнопки ---------- */
.fab-msg {
  position: fixed; left: 20px; bottom: 20px; z-index: 50; width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 50%; background: var(--viber); color: #fff; font-size: 2.125rem; text-decoration: none;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .4); transition: background-color .2s, transform .25s var(--ease);
}
.fab-msg::before, .fab-msg::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--viber); pointer-events: none;
  animation: msgpulse 2.4s cubic-bezier(.2, .6, .4, 1) infinite;
}
.fab-msg::after { animation-delay: 1.2s; }
@keyframes msgpulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.fab-msg:hover { background-color: #5d4ad8; transform: scale(1.05); }
.fab-up {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease), background-color .2s;
}
.fab-up.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab-up:hover { background: var(--sky); }
.fab-up svg { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); }
.fab-up circle { fill: none; stroke-width: 3; }
.fab-up .fab-up__track { stroke: var(--line); }
.fab-up .fab-up__bar { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: 157; }
.fab-up i { font-size: 1.0625rem; }

/* ---------- Модальные окна ---------- */
.modal {
  width: min(420px, calc(100% - 24px)); max-width: none; max-height: calc(100svh - 24px); padding: 0; border: 0; overflow: visible;
  background: transparent; color: var(--text);
}
/* на телефоне фокус ставится на само окно (без клавиатуры) - рамка фокуса вокруг прозрачного окна не нужна */
.modal:focus { outline: none; }
.modal::backdrop { background: rgba(27, 30, 34, 0); transition: background-color .3s; }
.modal.is-open::backdrop { background: rgba(27, 30, 34, .62); }
.modal__box {
  --f: 22px; position: relative; max-height: calc(100svh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 32px 30px 30px; background: var(--paper);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); font-size: 1.125rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.modal__close:hover { background: var(--sky); color: var(--ink); }
.modal h2 { font-size: 1.625rem; font-weight: 800; line-height: 1.1; padding-right: 40px; }
.modal__sub { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.modal__topic { display: inline-flex; margin-top: 14px; padding: 5px 10px; border-radius: 8px; background: var(--sky); font-size: .8125rem; font-weight: 600; color: var(--blue); }
.form { margin-top: 20px; display: grid; gap: 10px; }
.form .check { margin: 4px 0 6px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #c6ced6; border-radius: 14px;
  background: var(--mist); color: var(--text); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form input:hover { border-color: var(--muted); }
.form input:focus { outline: none; border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 3px rgba(37, 83, 132, .18); }
.form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
.form__err { font-size: .875rem; color: #b3261e; }
.form .btn { width: 100%; }
/* связь в мессенджере под формой заявки */
.modal__alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal__alt p { font-size: .875rem; color: var(--muted); }
.modal__msg { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msg {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink);
  font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s;
}
.msg i { font-size: 1.25rem; }
.msg--viber i { color: var(--viber); }
.msg--tg i { color: var(--tg); }
.msg--wa i { color: var(--wa); }
.msg--wa:hover { border-color: var(--wa); background: rgba(28, 154, 79, .08); }
.msg--viber:hover { border-color: var(--viber); background: rgba(115, 96, 242, .08); }
.msg--tg:hover { border-color: var(--tg); background: rgba(34, 158, 217, .08); }
.msg:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.modal__done > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sky); color: var(--blue); font-size: 1.25rem; margin-bottom: 16px; }
.modal__done p { margin-top: 10px; color: var(--muted); }
.modal__done .btn { margin-top: 20px; width: 100%; }
.calcm { width: min(520px, calc(100% - 24px)); }
.drop--sm .drop__zone { min-height: 0; padding: 18px 16px; gap: 2px; }
.drop--sm .drop__zone i { font-size: 1.75rem; margin-bottom: 4px; }
.drop--sm .drop__zone b { font-size: 1rem; }
.calcm .form { gap: 10px; }
.objm { width: min(880px, calc(100% - 24px)); }
.objm .modal__box { padding: 0; }
.objm__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--mist); }
.objm__body { padding: 22px 26px 26px; }
.objm__meta { font-size: .875rem; color: var(--muted); }
.objm h2 { margin-top: 6px; padding-right: 0; }
.objm__acts { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.objm__nav { display: flex; gap: 8px; }
.objm__nav button { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.objm__nav button:hover { background: var(--ink); color: #fff; }
.objm .modal__close { background: rgba(255, 255, 255, .92); color: var(--ink); }
.viewer { width: min(860px, calc(100% - 24px)); }
.viewer .modal__box { padding: 18px; }
.viewer img { width: 100%; height: auto; max-height: calc(100svh - 120px); object-fit: contain; border-radius: 12px; background: var(--mist); }
.viewer figcaption { padding: 12px 56px 0 4px; font-weight: 600; color: var(--ink); }
.viewer .modal__close { top: 26px; right: 26px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1400px) {
  .hd__nav a { padding-inline: 8px; }
  .hd__cta { padding-inline: 16px; }
}
/* шапка без бургера до 1200 px: уплотняем зазоры, на самых узких короче надпись кнопки */
@media (max-width: 1320px) {
  .hd__bar { gap: 12px; padding-left: 18px; }
  .hd__nav a, .hd__drop-btn { padding-inline: 6px; }
  .hd__drop-menu a { padding-inline: 14px; }
  .hd__msg { gap: 2px; }
  .hd__msg a { width: 38px; height: 38px; }
  .hd__cta { padding-inline: 14px; font-size: .875rem; }
}
@media (max-width: 1260px) {
  .hd__cta-more { display: none; }
}
@media (max-width: 1200px) {
  .hd__nav { display: none; }
  .hd__cta { margin-left: 0; }
  .hd__burger { display: grid; }
  .hero__tabs {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 236px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 2px; scroll-padding-inline: var(--gut); scroll-snap-type: x mandatory;
  }
  .htab { scroll-snap-align: start; }
  .hero__tabs::-webkit-scrollbar { display: none; }
  .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft__cols { grid-template-columns: 1fr 1fr; }
  .ft__top { grid-template-columns: 1fr; }
  .hd__msg + .hd__cta { margin-left: 0; }
  .steps__list { --pad: 18px; gap: 12px; }
  .step h3 { font-size: 1.0625rem; min-height: 2.4em; }
  .step__tag { white-space: nowrap; }
}
/* планшет уже 900 px: телефон и почта текстом не помещаются, остаётся кнопка звонка */
@media (max-width: 899px) {
  .hd__call { display: none; }
  .hd__icon { display: grid; }
  .hd__msg { margin-left: 0; }
}
@media (max-width: 1024px) {
  .cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ccard--lead { grid-column: 1 / -1; grid-row: auto; }
  .faq__in, .partners__in { grid-template-columns: minmax(0, 1fr); }
  .air__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .mcard { padding-inline: 18px; }
  .mcard__subs a { font-size: .875rem; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__list::before { display: none; }
  .step h3 { min-height: 0; }
  .clients ul { gap: 18px 36px; }
  .clients img { height: calc(var(--h, 30px) * .85); }
  .air__badge { left: 16px; }
  .air__tasks { grid-template-columns: 1fr 1fr; }
  .ft__map { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .steps__list {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut);
  }
  .steps__list::-webkit-scrollbar { display: none; }
  .steps__list > .step { flex: 0 0 min(76%, 320px); scroll-snap-align: start; }
  /* ведущие разделы: в одну колонку, картинка слева */
  .cat__main { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mcard { flex-direction: row; gap: 18px; padding: 14px 18px 14px 10px; align-items: center; }
  .mcard__img { flex: 0 0 34%; margin: 0; aspect-ratio: 1; }
  .mcard__subs { padding-top: 10px; }
  .steps__list::before { display: none; }
  .step h3 { min-height: 0; }
  .steps__bar { display: block; }
  .air__top { grid-template-columns: minmax(0, 1fr); }
  .air__photo img { aspect-ratio: 16 / 10; }
  .cta__head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cta__head p { max-width: 40em; }
}
@media (max-width: 720px) {
  /* заявка: одна колонка, зона файла компактной строкой */
  .cta__head { margin-bottom: 24px; }
  .cta__head p { font-size: 1rem; }
  .cta__form { --f: 16px; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; }
  .drop__zone {
    grid-template-columns: 52px minmax(0, 1fr); justify-items: start; align-items: center; gap: 2px 14px;
    min-height: 0; padding: 14px 16px; text-align: left; border-radius: 14px;
  }
  .drop__zone i { grid-row: 1 / span 3; width: 52px; height: 52px; display: grid; place-items: center; margin: 0; border-radius: 14px; background: var(--paper); font-size: 1.5rem; }
  .drop__zone b { font-size: 1rem; }
  .drop__zone small { margin-top: 2px; }
  .cta__fields { padding: 8px 8px 10px; }
  .cta__alt { margin-top: 18px; }
  .cta__alt span { flex-basis: 100%; }
  .cta__alt a { flex: 1 1 28%; justify-content: center; padding-inline: 8px; }
  .cta__alt a:last-child { flex-basis: 100%; }
  :root { --hd: 64px; --r: 20px; }
  .hd { top: 8px; padding-inline: 8px; }
  .hd__bar { padding: 0 8px 0 14px; border-radius: 18px; gap: 8px; }
  .hd__logo img { height: 34px; }
  .hd__cat, .hd__cta { display: none; }
  .hd__icon { margin-left: 0; }
  .hero { border-radius: 22px; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(24, 27, 31, .5) 0%, rgba(24, 27, 31, .78) 45%, rgba(24, 27, 31, .95) 100%); }
  .hero__in { padding-top: calc(var(--hd) + 8px + 44px); gap: 28px; }
  .hero__acts .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .hero__tabs { grid-template-columns: repeat(5, 74%); margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scroll-snap-type: x mandatory; }
  .htab { scroll-snap-align: start; }
  .sec__head { margin-bottom: 24px; }
  .navs { display: none; }
  .cat__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ccard { padding: 12px 12px 16px; }
  .ccard h3 { font-size: .9375rem; padding-right: 0; }
  .ccard__go { display: none; }
  .air__top { grid-template-columns: minmax(0, 1fr); }
  /* первый экран: доводы списком */
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
  .hero__facts li, .hero__facts li + li { padding: 0 0 0 14px; border-left: 1px solid rgba(255, 255, 255, .3); }
  .hero__facts b { font-size: 1rem; }
  .hero__facts span { font-size: .8125rem; }
  .hero__note { display: none; }
  /* ведущие разделы на телефоне: картинка слева от заголовка, подразделы списком ниже */
  .mcard { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px 16px 14px 10px; }
  .mcard__body { display: contents; }
  .mcard__img { grid-row: 1 / span 2; width: 104px; aspect-ratio: 1; margin: 0; }
  .mcard h3 { grid-column: 2; align-self: end; font-size: 1.125rem; }
  .mcard p { grid-column: 2; align-self: start; margin-top: 4px; font-size: .8125rem; line-height: 1.4; }
  .mcard__subs { grid-column: 1 / -1; margin-top: 10px; padding-top: 0; }
  .mcard__subs a { padding: 8px 0; }
  .hd__msg a { width: 36px; height: 36px; border-radius: 11px; font-size: 1.0625rem; }
  .ccard--lead { grid-template-columns: 1fr; grid-template-areas: "title" "text" "img" "subs" "btn"; padding: 22px 20px 24px; }
  .ccard--lead h3 { font-size: 1.75rem; }
  .ccard--lead .ccard__img { margin: 12px auto 0; max-width: 220px; }
  .cat__more { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .cat__more::-webkit-scrollbar { display: none; }
  .boxed { border-radius: 22px; }
  /* карусели на телефоне: display важнее grid-раскладок блоков */
  .rail { display: flex !important; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; } /* min-width: Safari иначе раздувает карточку по картинке внутри */
  .rail-bar { display: block; }
  .air__tasks a { grid-template-columns: 64px minmax(0, 1fr); }
  .air__tasks a > i { display: none; }
  .air__tasks img { width: 64px; height: 64px; }
  .clients { padding: 18px; }
  .clients ul { gap: 18px 30px; }
  .clients img { height: calc(var(--h, 30px) * .8); }
  .track { grid-auto-columns: 78%; }
  .revs .track { grid-auto-columns: 86%; }
  .acc summary { font-size: 1rem; padding: 18px; }
  .acc__body p { padding: 0 18px 18px; }
  .ft__top { padding-block: 32px; grid-template-columns: 1fr; }
  .ft__brand { flex-wrap: wrap; gap: 16px; }
  .ft__brand img { height: 44px; }
  .ft__call .phone { font-size: 1.375rem; }
  .ft__cols { grid-template-columns: 1fr; gap: 0; padding-block: 12px 28px; }
  .ft__col { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .ft__col summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
  .ft__col summary i { display: block; color: rgba(255, 255, 255, .6); transition: transform .3s var(--ease); }
  .ft__col[open] summary i { transform: rotate(180deg); }
  .ft__col summary h3 { margin: 0; }
  .ft__col .acc__body > * { padding-bottom: 18px; }
  .ft__frame { min-height: 260px; }
  .fab-msg { left: 14px; bottom: 14px; width: 58px; height: 58px; font-size: 1.875rem; }
  .fab-up { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .modal { width: 100%; margin: auto 0 0; max-height: 92svh; }
  .modal__box { border-radius: 24px 24px 0 0; transform: translateY(40px); max-height: 92svh; }
}
@media (max-width: 1200px), (pointer: coarse) {
  .form input, .cta__fields input { font-size: 16px; }
}
/* на сенсорных экранах перетаскивать нечем: «прикрепите» вместо «перетащите» */
@media (pointer: coarse) {
  .drop__mouse, .drop__or { display: none; }
  .drop__touch { display: inline; }
}
@media (max-width: 720px) {
  .cookie { flex-direction: column; align-items: stretch; bottom: 8px; padding: 16px; }
  .cookie__acts > * { flex: 1; }
  .mega__search .link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  /* !important: глушим анимации всех компонентов разом */
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* плитки каталога на планшете: «противопожарные», «диспетчеризации» заезжали под стрелку */
@media (max-width: 1024px) and (min-width: 721px) {
  .ccard h3 { font-size: .9375rem; padding-right: 46px; }
}

/* поиск на телефоне: одна колонка */
@media (max-width: 720px) {
  .svc__audit::before { background: linear-gradient(180deg, rgba(22, 50, 82, .9) 0%, rgba(37, 83, 132, .94) 100%), var(--ph) center 30% / cover no-repeat; }
  .hfind__start { grid-template-columns: minmax(0, 1fr); }
  .hfind__g--grid .hfind__items { grid-template-columns: minmax(0, 1fr); }
  .hfind__list { max-height: calc(100svh - var(--hd) - 120px); }
}

/* узкий телефон: мессенджеры в шапке уступают место поиску (они есть в меню и в плавающей кнопке Viber) */
@media (max-width: 480px) {
  .hd .hd__msg { display: none; }
  .hfind { left: -8px; right: -8px; padding: 12px; border-radius: 18px; }
  .hfind__form .btn { display: none; }
  .hfind__secs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Сенсорные экраны (телефон, планшет, встроенный браузер Telegram) ---------- */
/* без серо-голубой вспышки при каждом касании ссылки и кнопки (Android, WebView) - отклик даёт :active ниже */
html { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  /* эффекты наведения срабатывали от касания и «залипали»: фото карточки оставалось увеличенным после возврата назад */
  .btn:hover i, .link:hover i, .hfind__all:hover i, .mcard__subs a:hover i, .ccard__subs a:hover i, .air__tasks a:hover i,
  .inds__list a:hover i, .dir:hover > i, .line:hover small i, .acard:hover .acard__go i, .dealer__lines a:hover i,
  .mcard:hover .mcard__img img, .ccard:hover .ccard__img img, .ocard:hover img, .subcard:hover img, .letter__scan:hover img,
  .acard:hover .acard__img img, .ctile:hover .ctile__img img, .pc:hover .pc__img img, .dealer:hover .dealer__pic,
  .ccard:hover .ccard__go, .fab-msg:hover { transform: none; }
  .rel:hover > i { transform: translateY(-50%); }
  /* отклик на нажатие вместо системной вспышки */
  .btn:active, .hd__burger:active, .hd__find-btn:active, .drawer__close:active, .modal__close:active, .fab-msg:active, .fab-up:active { transform: scale(.96); }
}

/* @fa-widths: build-fa-widths.py - ширина иконок до загрузки их шрифта (CLS) */
:where(.fa-solid.fa-chevron-right){width:0.625em;min-width:0.625em}
:where(.fa-solid.fa-arrow-up,.fa-solid.fa-droplet,.fa-solid.fa-file,.fa-solid.fa-file-lines,.fa-solid.fa-fire-flame-curved,.fa-solid.fa-fire-flame-simple,.fa-solid.fa-location-dot,.fa-solid.fa-xmark,.fa-regular.fa-file,.fa-regular.fa-file-lines){width:0.75em;min-width:0.75em}
:where(.fa-solid.fa-arrow-left,.fa-solid.fa-arrow-right,.fa-solid.fa-bars,.fa-solid.fa-bolt,.fa-solid.fa-check,.fa-solid.fa-grip,.fa-solid.fa-paperclip,.fa-solid.fa-plus,.fa-regular.fa-plus,.fa-brands.fa-plus,.fa-brands.fa-whatsapp){width:0.875em;min-width:0.875em}
:where(.fa-brands.fa-telegram){width:0.9688em;min-width:0.9688em}
:where(.fa-solid.fa-bars-staggered,.fa-solid.fa-certificate,.fa-solid.fa-chevron-down,.fa-solid.fa-circle-check,.fa-solid.fa-clock,.fa-solid.fa-clock-rotate-left,.fa-solid.fa-compass-drafting,.fa-solid.fa-envelope,.fa-solid.fa-fan,.fa-solid.fa-file-pdf,.fa-solid.fa-folder,.fa-solid.fa-list,.fa-solid.fa-magnifying-glass,.fa-solid.fa-microchip,.fa-solid.fa-phone,.fa-solid.fa-screwdriver-wrench,.fa-solid.fa-shield-halved,.fa-solid.fa-sliders,.fa-solid.fa-tags,.fa-solid.fa-wind,.fa-regular.fa-circle-check,.fa-regular.fa-clock,.fa-regular.fa-envelope,.fa-regular.fa-file-pdf,.fa-regular.fa-folder,.fa-brands.fa-viber){width:1em;min-width:1em}
:where(.fa-solid.fa-file-signature,.fa-solid.fa-helmet-safety,.fa-solid.fa-industry,.fa-solid.fa-map-location-dot){width:1.125em;min-width:1.125em}
:where(.fa-solid.fa-cloud-arrow-up,.fa-solid.fa-truck-fast){width:1.25em;min-width:1.25em}
/* /@fa-widths */
