:root {
  --color-bg: #ffffff;
  --color-text: #1c2530;
  --color-muted: #5b6877;
  --color-primary: #f5a623;
  --color-primary-dark: #d98e0b;
  --color-dark: #16202c;
  --color-dark-2: #1f2c3a;
  --color-border: #e3e8ee;
  --radius: 10px;
  --container: 1180px;
  --header-h: 72px;
  /* Шрифтовая пара: дисплейный (заголовки) + текстовый (тело/таблицы) */
  --font-display: "Saira", "Segoe UI", system-ui, sans-serif;
  --font-text: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Доступно скринридерам и поисковикам, скрыто визуально */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-link: первый таб переносит на основной контент (доступность с клавиатуры) */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 300;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #1a130a;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(8, 14, 22, .4);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; outline: none; }

/* Единое заметное кольцо фокуса для интерактивных элементов на тёмном/стеклянном фоне */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav__link:focus-visible,
.product--link:focus-visible,
.tr-menu__item:focus-visible,
.hotspot-menu__item:focus-visible,
.msg-fab__item:focus-visible,
.msg-fab__toggle:focus-visible,
.file-field:focus-within {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  color: var(--color-text);
  line-height: 1.55;
  /* Прижимаем подвал к низу окна на коротких страницах (О нас и др.) */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .site-footer { margin-top: auto; }

/* Заголовки и акцентные элементы — дисплейный шрифт Saira (технический характер) */
.logo,
.hero__title,
.section__title,
.page-top h1,
.card__title,
.product__title,
.info-col h3,
.feature__num {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Единственный сквозной фон-подстанция: всегда виден сквозь стекло на всех секциях */
/* Интерактив: смещается вслед за курсором (параллакс). Запас по краям (inset -50px) */
body::before {
  content: "";
  position: fixed;
  inset: -50px;
  /* 30.08.2026, решение пользователя «подстанцию в центр»: кадр 1920x823 держит
     объект на 69% высоты, то есть в нижней трети экрана. Поднимаем его к центру
     зумом: высота фона 160% экрана, прижата к низу (position-y 100%) — при любой
     высоте окна подстанция оказывается ровно на середине. cover тут не годится:
     он масштабирует по высоте без обрезки, и position-y ни на что не влияет. */
  /* 09.10.2026: на всех страницах тот же рендер площадки, что на главной (images/hero/) */
  background: url("../images/hero/hero_p1_day.jpg") 50% 60% / cover no-repeat;
  transform: translate3d(var(--bgx, 0px), var(--bgy, 0px), 0) scale(1.06);
  will-change: transform;
  z-index: -2;
}
/* На узких экранах смещаем кадр (совпадает с POSX в main.js) и грузим облегчённую версию фото
   (139 КБ вместо 1.06 МБ) — на мобильной сети это устраняет долгий белый экран до прогрузки фона */
@media (max-width: 760px) {
  body::before {
    background-image: url("../images/hero/hero_p1_day.jpg");
    /* Размер возвращаем к cover: зум из десктопного правила на узком экране
       оставил бы от подстанции фрагмент оборудования (портретный экран и без
       того показывает лишь ~22% ширины кадра). Мобильная версия не меняется —
       отказы на смартфонах 17% против 81% на ПК, ломать там нечего. */
    background-size: cover;
    background-position: 55% 62%;
  }
}
/* 30.08.2026: WebP для фона. Базовые правила выше отдают JPG — их видят браузеры
   без поддержки формата. Ниже, только если браузер умеет image-set с указанием
   типа (Chrome 113+, Safari 14+, Firefox 89+), тот же кадр берётся в WebP:
   десктоп 298 -> 207 КБ, мобильный 136 -> 109 КБ. Переопределяется лишь
   background-image, поэтому позиция и cover из сокращённой записи сохраняются. */
@supports (background-image: image-set(url("../images/hero/hero_p1_day_s.webp") type("image/webp"))) {
  body::before {
    background-image: image-set(url("../images/hero/hero_p1_day_s.webp") type("image/webp"));
  }
  @media (max-width: 760px) {
    body::before {
      background-image: image-set(url("../images/hero/hero_p2_day_s.webp") type("image/webp"));
      background-position: 50% 60%;
    }
  }
  /* 09.10.2026: ночью (класс ставит main.js, 20:00–6:00) — ночной кадр, как на главной */
  html.is-night body::before {
    background-image: image-set(url("../images/hero/hero_p1_night_s.webp") type("image/webp"));
  }
  @media (max-width: 760px) {
    html.is-night body::before {
      background-image: image-set(url("../images/hero/hero_p2_night_s.webp") type("image/webp"));
    }
  }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 34, 0.30);
  z-index: -1;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Прелоадер (заставка до загрузки фона) ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #121b25;
  transition: opacity .55s ease, visibility .55s;
}
.splash.is-hidden { opacity: 0; visibility: hidden; }
.splash__logo {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(41, 169, 235, 0.5));
  animation: splash-pulse 1.4s ease-in-out infinite;
}
.splash__spin {
  position: relative;
  width: 160px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.splash__spin::before {
  content: "";
  position: absolute;
  top: 0; left: -45%;
  width: 45%; height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #2ad4ff, #1aa6e0);
  animation: splash-load 1.1s ease-in-out infinite;
}
@keyframes splash-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes splash-load { 0% { left: -45%; } 100% { left: 100%; } }

/* ---------- Header (airglass) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(22, 32, 44, 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 24px rgba(8, 14, 22, 0.18);
  z-index: 50;
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 800; letter-spacing: 0.5px; color: #fff; }
.logo__img { height: 54px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(8,14,22,.55)) drop-shadow(0 0 10px rgba(0,217,255,.35)); }
.logo--light { color: #fff; margin-bottom: 8px; }
.logo--light .logo__img { height: 48px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav__link { color: #d7dee6; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav__link:hover, .nav__link--active { color: var(--color-primary); }
.header__phone { margin-left: auto; color: #fff; font-weight: 600; white-space: nowrap; }

/* 13.08.2026. Иконки в шапке: Telegram, MAX и телефон.
   Плавающая кнопка внизу справа ведёт в личку менеджера — это «написать сейчас».
   Здесь другое: подписка на канал с анонсами статей и новостями поставок.
   Плитки (рамка + стеклянная подложка) убраны у всех трёх — в ряду остаются
   только сами значки одного размера, 34px, в области нажатия 40x40.
   Отступы держим на самих иконках, чтобы ряд справа не зависел от gap контейнера. */
.header__soc {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border: 0; background: none;
  opacity: .92;
  transition: opacity .2s ease, transform .15s ease;
}
.header__soc:hover { opacity: 1; transform: translateY(-1px); }
.header__soc:active { transform: scale(.94); }
.header__soc img { width: 34px; height: 34px; display: block; }
/* Логотип уступает место кнопкам, а не выдавливает их за край экрана */
.header__inner > .logo { min-width: 0; }
/* Пункты меню и логотип не переносятся на вторую строку: если всё не влезает,
   шапка переполняется и main.js сворачивает меню в бургер (03.10.2026 —
   «О нас» и «КТП-РУ.РФ» ломались в две строки на средней ширине). */
.nav__link, .logo { white-space: nowrap; }
@media (min-width: 861px) { .header__inner > .logo, .nav { flex-shrink: 0; } }
/* Название в логотипе показываем только целиком: не влезает рядом со значками —
   main.js ставит .header--tight и остаётся одна иконка (03.10.2026). */
.header__inner > .logo { overflow: hidden; }
.header--tight .logo { font-size: 0; gap: 0; }
/* Поля и сетки никогда не шире доступной области (сайт целиком) */
input, select, textarea { max-width: 100%; box-sizing: border-box; }
.form__field, .ql__field, .ql__check { min-width: 0; }
/* На широких экранах контейнер шапки разводит элементы на 28px — между двумя
   значками каналов это выглядит разреженно. Поджимаем их друг к другу до тех же
   10px, что стоят между трубкой и кнопкой меню на узких экранах. */
@media (min-width: 861px) {
  .header__soc + .header__soc { margin-left: -18px; }
}
/* Ниже 861px телефон-текст скрыт, и вправо ряд отжимает первая иконка группы,
   а не кнопка звонка: иначе перед трубкой зияет пустое место, а значки каналов
   стоят вплотную. Так все интервалы в ряду одинаковые. */
@media (max-width: 860px) {
  /* Именно соседний селектор: :first-of-type поймал бы логотип — он тоже <a> */
  .header__phone + .header__soc { margin-left: auto; }
}
.header--overflow .header__phone + .header__soc { margin-left: auto; }
.burger {
  display: none; margin-left: auto; width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
/* Универсальный режим (см. JS): включается на любом разрешении, если nav физически не помещается */
.header--overflow .nav, .header--overflow .header__phone { display: none; }
.header--overflow .burger { display: flex; }
/* Та же плавающая airglass-шапка и выпадающее меню, что и в @media ниже, — но по классу, а не по ширине */
.site-header.header--overflow {
  top: 10px; left: 10px; right: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(8, 14, 22, 0.3);
}
.site-header.header--overflow .container { padding: 0 16px; }
.site-header.header--overflow .nav.is-open {
  display: flex;
  position: fixed;
  top: calc(10px + var(--header-h) + 8px);
  left: 10px; right: 10px;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(13, 20, 30, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 44px rgba(8, 14, 22, 0.5);
  animation: nav-drop .22s ease;
}
.site-header.header--overflow .nav.is-open .nav__link {
  padding: 13px 16px;
  border-radius: 12px;
  border-bottom: 0;
  transition: background .2s, color .2s;
}
.site-header.header--overflow .nav.is-open .nav__link:hover,
.site-header.header--overflow .nav.is-open .nav__link--active { background: rgba(255, 255, 255, 0.09); }
body:has(.site-header.header--overflow) .page-top { margin-top: calc(var(--header-h) + 26px); }

/* ---------- HERO (без отдельной картинки — показывает сквозной фон) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--header-h) 0 40px;
}
.hero__content {
  position: relative;
  z-index: 7; /* выше слоя подсветки зданий (z-index:6): за текстом выбор зданий неактивен */
  color: #fff;
  max-width: 660px;
  padding: 38px 40px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(8, 14, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero__title { font-size: clamp(28px, 5vw, 52px); font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.hero__subtitle { font-size: clamp(15px, 2vw, 19px); color: #e4e9ef; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Краткий заголовок вверху hero (под панелью меню) ---------- */
.hero__lead {
  position: absolute;
  top: calc(var(--header-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  margin: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  text-align: center;
  width: min(94vw, 720px);
  max-width: 94vw;
  filter: drop-shadow(0 2px 10px rgba(8, 14, 22, 0.5));
}
/* Общий мягкий градиент для всего заголовка */
.hero__lead-brand,
.hero__lead-desc {
  background: linear-gradient(100deg, #f4fbff 0%, #cdeeff 55%, #a6dff2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* «Поставщик» — на ширину мобильного окна, адаптивный размер */
.hero__lead-brand {
  display: block;
  width: 100%;
  font-size: clamp(38px, 13vw, 84px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.02;
}
/* Описание — в 2 ряда под «Поставщик» */
.hero__lead-desc {
  font-weight: 800;
  font-size: clamp(15px, 4vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- Подсказка «прокрутите вниз» с анимированными полосами ---------- */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  animation: scrollcue-in .6s ease .3s both;
  transition: opacity .5s ease, transform .5s ease;
}
.scroll-cue__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 5px 14px;
  border-radius: 12px;
  white-space: nowrap;
  background: rgba(22, 32, 44, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.scroll-cue__bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
/* Каждая «полоса» — шеврон вниз из двух наклонных линий */
.scroll-cue__bars i {
  width: 44px;
  height: 12px;
  position: relative;
  opacity: 0;
  animation: scrollcue-bar 1.6s ease-in-out infinite;
}
.scroll-cue__bars i::before,
.scroll-cue__bars i::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-primary, #00d9ff);
  box-shadow: 0 0 10px rgba(0, 217, 255, .7);
}
.scroll-cue__bars i::before { left: 1px;  transform: rotate(45deg); }
.scroll-cue__bars i::after  { right: 1px; transform: rotate(-45deg); }
.scroll-cue__bars i:nth-child(1) { animation-delay: 0s; }
.scroll-cue__bars i:nth-child(2) { animation-delay: .2s; }
.scroll-cue__bars i:nth-child(3) { animation-delay: .4s; }
.scroll-cue:hover .scroll-cue__bars i { animation-duration: 1s; }
.scroll-cue--hide { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }

@keyframes scrollcue-bar {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(6px); }
  100% { opacity: 0; }
}
@keyframes scrollcue-in {
  from { transform: translateX(-50%) translateY(14px); }
  to   { transform: translateX(-50%) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue, .scroll-cue__bars i { animation: none; }
  .scroll-cue__bars i { opacity: .9; }
}

/* ---------- Подсказка: объекты на фото кликабельны ---------- */
.fx-hint {
  position: absolute;
  left: 50%;
  bottom: 130px;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: rgba(22, 32, 44, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(8, 14, 22, 0.4);
  animation: fxhint-in .5s ease, fxhint-pulse 2.6s ease-in-out .6s infinite;
  transition: opacity .5s ease, transform .5s ease;
}
.fx-hint svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-primary); }
.fx-hint--hide { opacity: 0; transform: translateX(-50%) translateY(10px); pointer-events: none; }
@keyframes fxhint-in { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes fxhint-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(8, 14, 22, .4); }
  50%      { box-shadow: 0 10px 28px rgba(8, 14, 22, .4), 0 0 18px rgba(0, 217, 255, .55); }
}
@media (prefers-reduced-motion: reduce) { .fx-hint { animation: fxhint-in .5s ease; } }
@media (max-width: 560px) {
  .fx-hint { white-space: normal; max-width: 84%; text-align: center; font-size: 13px; bottom: 170px; }
}

/* ---------- Неоновая подсветка здания ---------- */
.building-fx {
  position: fixed;
  inset: -50px;
  z-index: 6;
  pointer-events: none; /* кликабельна только зона наведения внутри */
  transform: translate3d(var(--bgx, 0px), var(--bgy, 0px), 0) scale(1.06);
  /* opacity управляется скроллом из JS — без transition, чтобы шло в такт прокрутке */
}
.building-fx svg { width: 100%; height: 100%; display: block; overflow: visible; }
.building-fx__hit { fill: rgba(0,0,0,0); pointer-events: all; cursor: pointer; }
.building-fx__outline {
  fill: rgba(34, 190, 255, 0.04);
  stroke: #62c2e6;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px #3fc0ee) drop-shadow(0 0 6px #1aa6e0);
  opacity: .32;                 /* ровная тусклая подсветка (без «дыхания») */
  transition: opacity .35s ease;
}
/* Мягкий пульс-намёк в покое (чуть светлее) */
@keyframes fx-hint {
  0%, 100% { opacity: .24; }
  50%      { opacity: .44; }
}
/* Провод ЛЭП: сплошная светящаяся линия + бегущий импульс с «пилообразным» хвостом */
.wire-base {
  fill: none;
  stroke: #6fe4ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .5;
  filter: drop-shadow(0 0 3px #3fdcff) drop-shadow(0 0 7px #1aa6e0);
}
/* Бегущий импульс собран из 3 слоёв: яркая голова + затухающий хвост (эффект пилы).
   У всех период = 1000 (pathLength), поэтому слои движутся синхронно. */
.wire-pulse, .wire-pulse--mid, .wire-pulse--tail {
  fill: none;
  stroke: #cffaff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dashoffset: 1000;
  /* reverse: импульс идёт от дальнего конца провода К ПОДСТАНЦИИ (энергия приходит на станцию) */
  animation: wire-flow 3.8s linear infinite reverse;
}
/* Короткие очень тонкие импульсы: тонкое гало + яркое тонкое ядро, мягко тающие концы.
   27.08.2026: убраны blur() и цепочки drop-shadow() — SVG-фильтры на 36 анимированных
   штрихах перерисовывались каждый кадр и вешали слабые десктопы (отказы на главной:
   ПК 81% против 17% на телефонах, где эти слои и так выключены). Свечение теперь
   имитируют сами полупрозрачные широкие штрихи + один дешёвый drop-shadow у ядра. */
.wire-pulse--tail { stroke-width: 8;   stroke-dasharray: 110 890; opacity: .14; }
.wire-pulse--mid  { stroke-width: 3.8; stroke-dasharray: 84 916; opacity: .38;
  stroke: #7fe4ff; }
.wire-pulse       { stroke-width: 1.6; stroke-dasharray: 52 948; stroke: #eaffff;
  filter: drop-shadow(0 0 5px #2ad4ff); }
@keyframes wire-flow {
  to { stroke-dashoffset: 0; } /* импульс пробегает весь провод, бесшовно */
}

/* Подсветка каждого объекта независимо: при наведении (desktop) или тапе (touch) */
.fxobj:hover .building-fx__outline,
.fxobj.is-lit .building-fx__outline {
  opacity: 1;
  animation: none;
  stroke: #2bc4ff;
  stroke-width: 3;
  filter: drop-shadow(0 0 3px #6fe6ff) drop-shadow(0 0 9px #2bc4ff) drop-shadow(0 0 20px #1aa6e0);
}
.fxobj[data-menu] .building-fx__hit,
.fxobj[data-href] .building-fx__hit { cursor: pointer; }

/* Всплывающий ярлык с названием объекта */
.fx-label {
  position: fixed;
  z-index: 85;
  transform: translate(-50%, -100%);
  padding: 7px 14px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  color: #fff;
  background: rgba(22, 32, 44, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(8, 14, 22, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.fx-label.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -100%); }
/* Всплытие ярлыка слева от объекта (для объектов у правого края фото) */
.fx-label--left { transform: translate(-100%, -50%); }
.fx-label--left.is-open { transform: translate(-100%, -50%); }

/* Постоянные плашки названий над объектами: серый air-glass по умолчанию, тёмно-синий при наведении */
.fx-label { display: none; } /* старый одиночный ярлык не нужен — заменён постоянными плашками */
.fx-plate { pointer-events: none; }
.fx-plate-bg {
  fill: rgba(44, 52, 64, 0.40);            /* серый «стеклянный» фон */
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: fill .25s ease, stroke .25s ease;
}
.fx-plate-text {
  fill: rgba(255, 255, 255, 0.7);          /* бледный текст */
  font-family: var(--font-display, "Saira", sans-serif);
  font-weight: 700;
  font-size: 30px;
  text-anchor: middle;
  transition: fill .25s ease;
}
.fxobj:hover .fx-plate-bg,
.fxobj.is-lit .fx-plate-bg { fill: rgba(22, 32, 44, 0.90); stroke: rgba(43, 196, 255, 0.5); }
.fxobj:hover .fx-plate-text,
.fxobj.is-lit .fx-plate-text { fill: #ffffff; }
/* Прозрачность слоя задаётся скроллом (inline в JS) — плавно гаснет за текстом */
.building-fx.is-hidden .building-fx__hit { pointer-events: none; }
/* Выбор зданий отключается, как только под слой заходит контентная секция */
.building-fx.fx-locked .building-fx__hit { pointer-events: none; cursor: default; }
/* Когда слой почти не виден — стопим все анимации внутри (экономия) */
.building-fx.is-hidden * { animation-play-state: paused !important; }

/* Меню силовых трансформаторов (позиционируется по клику через JS) */
.tr-menu {
  position: fixed;
  z-index: 85;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 14px;
  background: rgba(22, 32, 44, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 44px rgba(8, 14, 22, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.tr-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.tr-menu__item { padding: 12px 16px; border-radius: 9px; color: #fff; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.tr-menu__item:hover { background: rgba(245, 166, 35, 0.9); color: #1a130a; }

/* ---------- Интерактивная зона на трансформаторах ---------- */
.hotspot {
  position: absolute;
  left: 49%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: clamp(90px, 12vw, 200px);
  height: clamp(60px, 8vw, 130px);
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 5;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.hotspot:hover, .hotspot:focus-visible, .hotspot.is-open {
  outline: none;
  border-color: rgba(245, 166, 35, 0.95);
  background: rgba(245, 166, 35, 0.10);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25), 0 0 26px rgba(245, 166, 35, 0.55);
}
.hotspot__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 18px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(22, 32, 44, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(8, 14, 22, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label,
.hotspot.is-open .hotspot__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hotspot-menu {
  position: absolute;
  left: 49%;
  top: calc(60% + clamp(45px, 5vw, 80px));
  transform: translateX(-50%) translateY(8px);
  z-index: 6;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 16px;
  background: rgba(22, 32, 44, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 44px rgba(8, 14, 22, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.hotspot-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.hotspot-menu__item {
  display: block;
  padding: 13px 18px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.hotspot-menu__item:hover { background: rgba(245, 166, 35, 0.9); color: #1a130a; }

/* ---------- Buttons (airglass) ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(8, 14, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .18s ease, background .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(8, 14, 22, 0.28); }
.btn--primary { background: linear-gradient(135deg, rgba(245, 166, 35, 0.85), rgba(217, 142, 11, 0.85)); color: #1a130a; }
.btn--primary:hover { background: linear-gradient(135deg, rgba(245, 166, 35, 1), rgba(217, 142, 11, 1)); }

/* Пара кнопок «действие + подбор» (30.07.2026). Раньше кнопки стояли подряд
   с inline-отступом: в узкой карточке вторая переносилась на две строки и
   становилась выше первой. Теперь это группа с общим выравниванием — высота
   одинаковая при любой длине надписи. */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
/* 08.08.2026. Было flex: 1 1 auto — ширина по длине надписи, поэтому
   «Рассчитать стоимость аренды» и «Позвонить» в одной паре выглядели
   как кнопки разного класса. Нулевая база делит строку поровну. */
/* 09.08.2026. Нужны одновременно два свойства, которые тянут в разные стороны:
   равная ширина кнопок в паре (решение от 08.08, flex-basis: 0) и отсутствие
   переноса надписи (иначе «Подобрать за 4 шага» ломается на две строки).
   Комбинация: базис 0 делит строку поровну, nowrap запрещает перенос,
   min-width: max-content не даёт кнопке стать уже собственного текста.
   Если места на всех не хватает, flex-wrap на .btn-row переносит кнопку
   целиком на новую строку — горизонтального скролла не возникает. */
.btn-row .btn {
  flex: 1 1 0;
  min-width: max-content;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; min-height: 48px; margin-left: 0 !important;
  white-space: nowrap;
}
.product .btn-row { margin-top: 14px; }

/* ---------- Кнопка отправки: прогресс и результат прямо на ней (30.07.2026) ----------
   Отдельная полоса загрузки и строка статуса под формой убраны: пользователь
   следил за тремя точками сразу. Теперь кнопка сама заливается по мере отправки
   (переменная --p), а по завершении становится зелёной с текстом результата. */
/* Цвет текста НЕ анимируем: переход по color на слабых устройствах и в WebView
   успевает показать нечитаемое промежуточное состояние. Плавно меняем только фон. */
.btn--sending,
.btn--done,
.btn--fail { position: relative; overflow: hidden; transition: background .3s ease; }

/* Заливка прогресса — поверх фона кнопки, под её текстом */
.btn--sending::before {
  content: "";
  position: absolute; inset: 0;
  width: var(--p, 0%);
  background: rgba(255, 255, 255, .38);
  transition: width .2s ease;
  pointer-events: none;
}
.btn--sending { cursor: progress; }
.btn--sending > * { position: relative; z-index: 1; }

/* Успех: кнопка зеленеет и держит сообщение */
.btn--done {
  /* Зелёный взят глубже (#35895a вместо #3f9d63): с белым текстом контраст
     поднимается до нормы, надпись читается и на солнце, и на телефоне. */
  background: linear-gradient(135deg, #35895a, #266b44) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.4);
  cursor: default;
  opacity: 1;
}
.btn--done::after {
  content: "✓";
  margin-left: 10px;
  font-weight: 700;
}
/* Сбой: кратковременная красная подсветка, кнопка снова активна */
.btn--fail {
  background: linear-gradient(135deg, #b4544f, #9a4440) !important;
  color: #fff !important;
}
/* Кнопка в состоянии отправки не должна выглядеть «выключенной» */
.btn--sending[disabled],
.btn--done[disabled] { opacity: 1; }
.btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }
/* Мелкая кнопка: сохраняем компактный вид, но держим тач-таргет ≥ 40px по высоте */
.btn--sm { padding: 10px 16px; font-size: 13px; border-radius: 10px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Price table ---------- */
.price-table-wrap { overflow-x: auto; border-radius: 16px; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}
.price-table th, .price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}
/* Моноширинные цифры: цены/мощности выравниваются по разрядам, не «прыгают» */
.price-table td { font-variant-numeric: tabular-nums; }
.price-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(8, 14, 22, 0.25);
}
.price-table tbody tr:hover { background: rgba(255, 255, 255, 0.08); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:nth-child(4) { font-weight: 700; color: var(--color-primary); }
/* Все ячейки с ценой — одного цвета (для многоколоночных таблиц КТП) */
.price-table td.price { font-weight: 700; color: var(--color-primary); }
/* 09.08.2026. Единый вид всей колонки цен: «по запросу» оформляется так же,
   как цифры — тот же акцентный цвет и начертание. Приглушённый вариант от
   08.08 отменён по решению владельца: разнобой в одной колонке заметнее,
   чем перевес внимания на строки без цены. */
.price-table td.price--ask { font-weight: 700; color: var(--color-primary); }
.price-note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
/* Кнопка под ценовой таблицей — для широких таблиц (КТПН), где столбец с кнопкой
   уехал бы за горизонтальный скролл на телефоне. */
.price-cta { margin-top: 18px; }

/* ---------- Sections (airglass over сквозной фон) ---------- */
.section { padding: 80px 0; }
.section--accent {
  background: rgba(16, 24, 34, 0.30);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
/* 30.07.2026. Тёмная секция перекрашивала только заголовок, а абзацы наследовали
   от body тёмно-синий #1c2530 — на затемнённом фоне текст был почти не виден
   (контраст 1.15 при норме 4.5). Задаём светлый цвет всему содержимому секции. */
.section--accent { color: rgba(255,255,255,.92); }
.section--accent p,
.section--accent li,
.section--accent dd,
.section--accent .section__lead { color: rgba(255,255,255,.86); }
.section--accent a:not(.btn) { color: var(--color-primary); }
.section__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 36px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(8,14,22,.5);
}
.section__title--light { color: #fff; text-align: left; margin-bottom: 8px; }

/* 08.08.2026. Плитки были разной высоты, а в блоках с 4 карточками жёсткое
   repeat(5, 1fr) оставляло пустую колонку справа. auto-fit раскладывает любое
   количество карточек на всю ширину, stretch выравнивает их по высоте ряда. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 22px;
  align-items: stretch;
}
.card {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 0;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 12px 34px rgba(8,14,22,.22);
  transition: box-shadow .2s, transform .2s, background .2s;
  /* Колонка на всю высоту ячейки — иначе плитки с коротким текстом
     оказываются ниже соседних и ряд выглядит рваным. */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); box-shadow: 0 18px 44px rgba(8,14,22,.3); }
.card__title { font-size: 19px; margin-bottom: 10px; color: #fff; }
.card__text { color: rgba(255,255,255,.82); font-size: 15px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta__text { color: rgba(255,255,255,.8); }

/* ---------- Бесшовная страница: без панелей и стыков ---------- */
/* Панели и рамки убраны — швов между секциями нет. Но полностью прозрачный
   фон клал текст прямо на фотографию: на светлых участках снимка читать тяжело.
   13.08.2026 возвращаем очень мягкую вуаль — вертикальный градиент, который
   у краёв секции почти прозрачен, а к середине чуть плотнее. Пейзаж по-прежнему
   виден насквозь, стыков не появляется, а текст получает подложку. */
.page-seamless .page-top,
.page-seamless .section,
.page-seamless .section--accent {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
}
/* Вместо посекционных вуалей — одно сплошное стекло на весь вьюпорт:
   body::after уже лежит фиксированным слоем над фото, усиливаем его
   и добавляем блюр. Стыков нет в принципе — слой один. */
body.page-seamless::after {
  background: rgba(11, 17, 25, 0.42);
  -webkit-backdrop-filter: blur(3px) saturate(115%);
  backdrop-filter: blur(3px) saturate(115%);
}
.page-seamless .page-top { padding-bottom: 40px; }
.page-seamless .section { padding-top: 40px; }

/* ---------- Catalog / generic page ---------- */
.page-top {
  margin-top: var(--header-h);
  background: rgba(16, 24, 34, 0.30);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-top h1 { font-size: clamp(26px, 4vw, 40px); text-shadow: 0 2px 12px rgba(8,14,22,.5); }
.page-top p { color: rgba(255,255,255,.82); margin-top: 10px; }

/* ---------- Хлебные крошки (внутри панели page-top) ---------- */
.breadcrumbs { margin-bottom: 14px; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}
.breadcrumbs__list a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs__list a:hover { color: var(--color-primary); }
.breadcrumbs__sep { color: rgba(255,255,255,.45); }
.breadcrumbs__list [aria-current="page"] { color: #fff; font-weight: 600; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.product {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(8,14,22,.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); box-shadow: 0 18px 44px rgba(8,14,22,.3); }
.product--link { cursor: pointer; }
.product__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product__title { font-size: 18px; margin-bottom: 8px; color: #fff; }
.product__text { color: rgba(255,255,255,.82); font-size: 14px; flex: 1; }
.product__price { font-weight: 700; color: var(--color-primary); margin: 14px 0; }

/* Структурированные блоки на страницах продуктов */
.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 26px; }
.info-col h3 { font-size: 17px; color: #fff; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(8,14,22,.4); }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.info-list li { position: relative; padding-left: 22px; color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.45; }
.info-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--color-primary); box-shadow: 0 0 8px rgba(245,166,35,.55); }

/* Абзацы внутри колонок: без этого наследуют тёмный цвет и тонут в фоновом фото */
.info-col p { color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.5; margin-bottom: 12px; text-shadow: 0 1px 8px rgba(8,14,22,.45); }
.info-col .info-list + p { margin-top: 14px; }
.info-col p a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.info-col p a:hover { color: #fff; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: rgba(255,255,255,.88); margin-bottom: 16px; text-shadow: 0 1px 8px rgba(8,14,22,.4); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; margin-top: 30px; }
.feature {
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}
.feature p { color: rgba(255,255,255,.85); }
.feature__num { font-size: 34px; font-weight: 800; color: var(--color-primary); }
/* Для длинного словесного значения вместо числа — меньше шрифт, чтобы не вылезало */
.feature__num--sm { font-size: 20px; line-height: 1.25; word-break: break-word; }

/* ---------- Contact form (airglass) ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(8,14,22,.25);
}
.form { display: flex; flex-direction: column; gap: 16px; }
/* Видимые подписи полей (вместо плейсхолдера-как-подписи) */
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(8,14,22,.4); }
.form__label .req { color: var(--color-primary); margin-left: 2px; }
/* 31.07.2026. Форма заявки и подводка к ней ограничены по ширине (640px), но
   не были отцентрованы — на широком мониторе блок прижимался к левому краю, а
   справа оставалась пустая половина секции. Центруем сам блок; текст внутри
   остаётся выключенным по левому краю, так читать удобнее. */
.section .form,
.section--accent .form,
.section--accent > .container > p,
.section--accent .section__title { margin-inline: auto; }
/* 31.07.2026. Ограничение ширины перенесено сюда из инлайновых style="" на
   страницах: в articles.php его забыли проставить, и форма заявки под статьями
   растягивалась на всю секцию (~930px) — поля вчетверо шире, чем на главной.
   В CSS правило действует на все страницы сразу, включая раздел «Блог». */
.section .form,
.section--accent .form,
.section--accent > .container > p { width: 100%; max-width: 640px; }

.form__hint { font-size: 13px; color: rgba(255,255,255,.7); }
/* SVG-иконка скрепки в поле загрузки (вместо эмодзи) */
.file-field__icon { display: inline-flex; flex-shrink: 0; }
.file-field__icon svg { width: 20px; height: 20px; display: block; }
.form input, .form textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  color: #fff;
  font: inherit;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.65); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--color-primary); border-color: transparent; background: rgba(255,255,255,.2); }
.file-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px dashed rgba(255,255,255,.4);
  border-radius: 12px;
  cursor: pointer;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  transition: border-color .2s, background .2s, color .2s;
}
.file-field:hover { border-color: var(--color-primary); background: rgba(245,166,35,.12); }
.file-field input[type="file"] { display: none; }
.file-field__icon { font-size: 18px; }
.file-field__text { line-height: 1.3; }
.file-field--filled { border-style: solid; border-color: var(--color-primary); color: #fff; }
/* Отдельная полоса загрузки больше не используется — прогресс показывает сама
   кнопка (.btn--sending). Правила оставлены на случай отката, но блок скрыт. */
.upload-progress {
  display: none !important;
  height: 9px;
  border-radius: 6px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}
.upload-progress__bar {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #f5a623, #d98e0b);
  transition: width .15s ease;
}
/* ---------- Юридическая страница (политика) ---------- */
.legal {
  max-width: 860px;
  background: rgba(13, 20, 30, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 30px 34px;
  box-shadow: 0 16px 44px rgba(8, 14, 22, 0.32);
}
@media (max-width: 560px) {
  .legal { padding: 20px 18px; border-radius: 14px; }
}
.legal__meta { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 24px; }
.legal__h {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 22px);
  color: #fff;
  margin: 28px 0 10px;
  text-shadow: 0 2px 10px rgba(8,14,22,.4);
}
.legal p { color: rgba(255,255,255,.88); margin-bottom: 12px; }
.legal strong { color: #fff; }
.legal__list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.legal__list li { position: relative; padding-left: 22px; color: rgba(255,255,255,.85); line-height: 1.5; }
.legal__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--color-primary); box-shadow: 0 0 8px rgba(245,166,35,.5); }
.legal a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal__note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.35);
  color: #fff !important;
  font-size: 14px;
}

/* Блок цели обработки в политике */
.legal-purpose { margin: 12px 0; padding: 14px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.06); }
.legal-purpose h3 { font-family: var(--font-display); font-size: 16px; color: #fff; margin-bottom: 8px; }
.legal-purpose p { margin-bottom: 6px; font-size: 14px; }

/* ---------- Чекбокс согласия в форме ---------- */
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.45; cursor: pointer; }
.form__consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--color-primary); cursor: pointer; }
.form__consent a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

/* Honeypot: полностью скрыт от людей, но доступен ботам-автозаполнителям */
.form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Подсветка ошибок валидации формы */
.form .is-invalid,
.form input.is-invalid,
.form textarea.is-invalid { border-color: #e0574f !important; box-shadow: 0 0 0 2px rgba(224,87,79,.18); }
.form__consent.is-invalid { color: #ffb4b4; }
.field-error { display: block; margin-top: 6px; font-size: 12px; color: #ffb4b4; line-height: 1.35; }

/* Яндекс SmartCaptcha: контейнер под виджет (сам виджет рисует свой iframe-UI) */
.captcha-field { display: none; }
.captcha-field.is-active { display: block; }

/* Встроенная простая капча (вопрос) */
.form__captcha .captcha-row { display: flex; gap: 8px; align-items: stretch; }
.form__captcha .captcha-row input { flex: 1; }
.captcha-refresh { flex: 0 0 auto; width: 44px; border: 1px solid var(--color-border, rgba(255,255,255,.18));
  background: rgba(255,255,255,.05); color: inherit; border-radius: 10px; cursor: pointer;
  font-size: 18px; line-height: 1; transition: .15s; }
.captcha-refresh:hover { background: rgba(255,255,255,.12); }
.form__captcha b { font-variant-numeric: tabular-nums; }

/* ---------- Ссылка в футере ---------- */
/* Полное название: обе строки выключены по ширине нижней строки (равная ширина) */
.footer__fullname {
  font-size: 12px;
  color: #9aa6b2;
  margin: 2px 0 8px;
  width: 186px;
  max-width: 100%;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
  -ms-text-justify: distribute-all-lines;
}
.footer__link { color: #cbd4dd; text-decoration: underline; text-underline-offset: 2px; }
.footer__link:hover { color: var(--color-primary); }

.contact-info p { margin-bottom: 14px; color: rgba(255,255,255,.82); }
.contact-info strong { color: #fff; }
.contact-info .section__title { text-shadow: 0 2px 12px rgba(8,14,22,.5); }

/* ---------- Footer (airglass) ---------- */
.site-footer {
  background: rgba(16, 24, 34, 0.40);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,.12);
  color: #cdd6df;
  padding: 50px 0 30px;
}
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.footer__text { font-size: 14px; color: #cbd4dd; margin-bottom: 6px; }
.footer__cta { border-left: 2px solid var(--color-primary); padding-left: 16px; }
.footer__cta-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #eaf6ff; margin-bottom: 8px; }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 14px; font-size: 13px; color: #aab4bf; }

/* ---------- Cookie banner (airglass) ---------- */
.cookie-banner {
  /* Вариант «Б» (17.09.2026): компактная плашка в левом нижнем углу — не закрывает кнопки первого экрана */
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 80;
  width: 300px;
  max-width: calc(100% - 124px);   /* справа остаётся место под кнопку мессенджеров (60px + отступы) */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(14, 22, 32, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(8, 14, 22, 0.35);
  color: #fff;
  animation: cookie-in .35s ease;
}
.cookie-banner__text { font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.9); flex: 1; margin: 0; }
.cookie-banner__actions { flex-shrink: 0; }
.cookie-banner__btn { padding: 6px 14px; font-size: 12.5px; }
.cookie-banner--hide { opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s; pointer-events: none; }

/* ---------- Кнопка «Куки» (постоянный доступ к настройкам cookie) ---------- */
.cookie-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: rgba(22, 32, 44, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(8, 14, 22, 0.35);
  transition: transform .2s ease, background .2s ease;
}
.cookie-fab:hover { transform: translateY(-2px); background: rgba(22, 32, 44, 0.72); }
.cookie-fab svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .cookie-fab { padding: 9px 12px; font-size: 13px; left: 16px; bottom: 16px; }
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* Пока плашка открыта, кнопка «Куки» под ней не нужна */
body.cookie-open .cookie-fab { display: none; }



/* ---------- Плавающая кнопка мессенджеров ---------- */
.msg-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.msg-fab__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.msg-fab__item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(8, 14, 22, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.7);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.msg-fab__item svg { width: 28px; height: 28px; }
/* Скачанные SVG-иконки (моно) делаем белыми поверх цветных кружков */
.msg-fab__img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.msg-fab__item--wa { background: #25d366; }
.msg-fab__item--tg { background: #29a9eb; }
.msg-fab__item--vk { background: linear-gradient(135deg, #00E4FF, #0077FF); }
.msg-fab__item--vk svg { width: 40px; height: 40px; }
.msg-fab__item--max { background: transparent; box-shadow: 0 8px 22px rgba(8, 14, 22, 0.3); }
/* Полноцветный логотип MAX — без белого фильтра, заполняет кружок */
.msg-fab__item--max .msg-fab__img { width: 100%; height: 100%; filter: none; border-radius: 50%; }
.msg-fab__item:hover { transform: translateY(0) scale(1.08); }

.msg-fab.is-open .msg-fab__item {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.msg-fab.is-open .msg-fab__item:nth-child(1) { transition-delay: .08s; }
.msg-fab.is-open .msg-fab__item:nth-child(2) { transition-delay: .04s; }
.msg-fab.is-open .msg-fab__item:nth-child(3) { transition-delay: 0s; }

.msg-fab__toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #5a7184;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(8, 14, 22, 0.4);
  transition: background .14s ease, transform .14s ease;
}
.msg-fab__toggle:hover { transform: scale(1.06); }
.msg-fab__toggle svg { width: 28px; height: 28px; position: absolute; transition: opacity .12s ease, transform .14s ease; }
.msg-fab__ic-close { opacity: 0; transform: rotate(-90deg); }
.msg-fab.is-open .msg-fab__toggle { background: #16202c; }
.msg-fab.is-open .msg-fab__ic-chat { opacity: 0; transform: rotate(90deg); }
.msg-fab.is-open .msg-fab__ic-close { opacity: 1; transform: rotate(0); }

/* ---------- Облегчение SVG-анимации на мобильных/тач (тяжёлые фильтры тормозят) ---------- */
@media (hover: none), (max-width: 760px) {
  /* Лёгкая графика: один тонкий бегущий импульс без тяжёлого blur (оставляем только drop-shadow) */
  .wire-pulse--tail, .wire-pulse--mid { display: none; }
  .wire-pulse { stroke-width: 2; stroke-dasharray: 40 960; opacity: .9; filter: drop-shadow(0 0 4px #2ad4ff); }
  .wire-base { filter: none; opacity: .45; }
  /* Контуры объектов: лёгкое свечение + мягкое «дыхание» (анимация прозрачности — дёшево для GPU) */
  .building-fx__outline { filter: drop-shadow(0 0 3px #3fc0ee); }
  .fxobj:hover .building-fx__outline,
  .fxobj.is-lit .building-fx__outline { opacity: 1; stroke: #2bc4ff; stroke-width: 3; filter: drop-shadow(0 0 4px #2bc4ff); }
  .building-fx { will-change: auto; }
  /* Подсказка — без постоянной пульсации */
  .fx-hint { animation: fxhint-in .4s ease; }
  /* Меньше размытия стекла — backdrop-filter тяжёл для мобильных GPU */
  .card, .product, .feature, .section--accent, .page-top {
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    backdrop-filter: blur(8px) saturate(115%);
  }
}

/* Уважаем системную настройку «уменьшить движение» — полностью гасим анимацию проводов/контуров */
@media (prefers-reduced-motion: reduce) {
  .wire-pulse, .wire-pulse--mid, .wire-pulse--tail, .building-fx__outline { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }
  /* Плавающая airglass-шапка со скруглёнными углами (как у кнопок) */
  .site-header {
    top: 10px; left: 10px; right: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 32px rgba(8, 14, 22, 0.3);
  }
  .site-header .container { padding: 0 16px; }

  /* Выпадающее меню — стеклянная карточка со скруглёнными углами */
  .nav.is-open {
    display: flex;
    position: fixed;
    top: calc(10px + var(--header-h) + 8px);
    left: 10px; right: 10px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(13, 20, 30, 0.94);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 44px rgba(8, 14, 22, 0.5);
    animation: nav-drop .22s ease;
  }
  .nav.is-open .nav__link {
    padding: 13px 16px;
    border-radius: 12px;
    border-bottom: 0;
    transition: background .2s, color .2s;
  }
  .nav.is-open .nav__link:hover,
  .nav.is-open .nav__link--active { background: rgba(255, 255, 255, 0.09); }
  @keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

  /* Контент под плавающей шапкой */
  .page-top { margin-top: calc(var(--header-h) + 26px); }

  .contact-wrap { grid-template-columns: 1fr; gap: 28px; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Первый экран посадочных: цена, кнопки, факты (02.08.2026) ---------- */
.hero-price { margin-top: 14px; font-size: clamp(19px, 2.6vw, 26px); font-weight: 700; color: #f5a623; text-shadow: 0 2px 10px rgba(8,14,22,.5); }
.hero-price__note { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.65); }
.hero-cta { justify-content: center; margin-top: 18px; }
.hero-facts { list-style: none; display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin: 16px 0 0; padding: 0; }
.hero-facts li { color: rgba(255,255,255,.72); font-size: 14px; }
.hero-facts li::before { content: "\2713 "; color: #f5a623; }

/* ---------- Липкая панель звонка/расчёта на мобильных ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px max(12px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom)); background: rgba(14, 20, 28, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.14); }
.sticky-cta.is-on { display: flex; }
.sticky-cta .btn { flex: 1; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 10px; font-size: 15px; white-space: nowrap; }
body.has-sticky-cta { padding-bottom: 70px; }
@media (min-width: 761px) { .sticky-cta { display: none !important; } body.has-sticky-cta { padding-bottom: 0; } }

/* ---------- Прайс-таблицы без горизонтального скролла (03.08.2026) ----------
   Десктоп: длинные названия переносятся (nowrap остаётся только на цифрах).
   Телефон: строка таблицы становится карточкой, подписи колонок рисует
   ::before из data-label (проставляет js/main.js по заголовкам thead).
   Без JS остаётся прежний скролл в .price-table-wrap — ничего не ломается. */
.price-table td:first-child { white-space: normal; }
@media (max-width: 760px) {
  body.pt-cards .price-table-wrap { overflow-x: visible; border-radius: 0; }
  body.pt-cards .price-table { background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.pt-cards .price-table thead { display: none; }
  body.pt-cards .price-table tbody, body.pt-cards .price-table tr, body.pt-cards .price-table td { display: block; width: 100%; }
  body.pt-cards .price-table tr {
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
  }
  body.pt-cards .price-table td {
    border: 0;
    padding: 5px 0;
    white-space: normal;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    text-align: right;
  }
  body.pt-cards .price-table td:first-child { font-weight: 600; text-align: left; justify-content: flex-start; }
  body.pt-cards .price-table td::before {
    content: attr(data-label);
    color: rgba(255, 255, 255, 0.62);
    font-size: 12.5px;
    text-align: left;
    flex-shrink: 0;
  }
  body.pt-cards .price-table td:first-child::before,
  body.pt-cards .price-table td[data-label=""]::before { content: none; }
  body.pt-cards .price-table td:last-child:has(.btn) { justify-content: flex-end; padding-top: 10px; }
  body.pt-cards .price-table .btn--sm { min-height: 40px; }
}

/* Блок «Смежное оборудование» — перекрёстные ссылки между разделами.
   Добавлен 06.08.2026: продуктовые страницы ссылались только на главную и
   каталог, из-за чего ukrm/ugp/kpp/opu почти не получали внутренних ссылок
   и не попадали в индекс. */
/* 08.08.2026. Блок висел прямо на фоновой фотографии и не читался.
   Фон секции здесь не помогает: .page-seamless намеренно обнуляет его
   у всех секций, включая --accent. Поэтому подложку даём самому списку —
   той же полупрозрачной панелью, что у карточек и прайс-таблиц. */
.related-list {
  list-style: none;
  display: grid;
  gap: 12px 28px;
  /* 09.08.2026. Было minmax(min(280px, 100%), 1fr): на экранах уже ~330px колонка
     оставалась 280px при более узком контейнере и вылезала за край,
     давая горизонтальный скролл всей странице. min(280px, 100%)
     позволяет колонке сжаться до ширины контейнера. */
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 12px 34px rgba(8,14,22,.22);
}
.related-list li { position: relative; padding-left: 20px; line-height: 1.5; }
.related-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
/* 08.08.2026. Ссылки красились тёмным --color-text и на фоновой фотографии
   были почти не видны. В затемнённой секции берём светлый цвет. */
.related-list a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.section--accent .related-list a {
  color: rgba(255,255,255,.92);
  border-bottom-color: rgba(255,255,255,.28);
}
.section--accent .related-list a:hover,
.section--accent .related-list a:focus-visible {
  color: #fff;
  border-bottom-color: currentColor;
}
.section--accent .muted-note { color: rgba(255,255,255,.7); }
.related-list a:hover,
.related-list a:focus-visible { color: var(--color-primary-dark); border-bottom-color: currentColor; }
.muted-note { margin-top: 14px; font-size: 14px; color: var(--color-muted); }

/* Вводный абзац секции — под заголовком, перед карточками.
   Добавлен 06.08.2026 вместе с блоком аренды на главной. */
.section__lead {
  max-width: 780px;
  margin: -18px 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- FAQ на посадочных (09.08.2026) ----------
   Нативные <details>: раскрываются без JS, доступны с клавиатуры и читаются
   скринридером. Микроразметка FAQPage идёт отдельным JSON-LD в <head> —
   тексты в разметке и на странице совпадают дословно, иначе поисковик
   считает это несоответствием и сниппет не показывает. */
.faq { max-width: 860px; margin-inline: auto; }
/* Фон плотный тёмный, а не полупрозрачный белый: секция идёт поверх фотографии,
   и на светлых участках снимка текст в блоках терял читаемость (09.08.2026). */
.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(12, 20, 30, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq__item summary {
  padding: 16px 52px 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  /* Цвет задан явно: без него summary наследовал тёмный текст body и на
     тёмном блоке становился нечитаемым. */
  color: #fff;
  list-style: none;
  position: relative;
  transition: background .2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item summary:hover { background: rgba(255, 255, 255, 0.06); }
.faq__item summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.faq__a {
  padding: 0 20px 18px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}
.faq__a p { margin: 0 0 10px; }
.faq__a p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .faq__item summary { font-size: 15px; padding: 14px 46px 14px 16px; }
  .faq__a { padding: 0 16px 16px; font-size: 15px; }
}

/* ---------- Кнопка звонка в шапке на узких экранах (09.08.2026) ----------
   На ширине ≤860px меню и телефон скрывались, оставался только бургер: чтобы
   позвонить, нужно было открыть меню или доскроллить до формы. Для B2B, где
   заявки приходят звонком, это прямая потеря обращений. Иконка занимает 40px
   рядом с бургером и ведёт на tel: (href подставляет js/main.js).
   На десктопе не нужна — там номер виден текстом. */
.header__call { display: none; }
@media (max-width: 860px) {
  /* 13.08.2026. Плитка снята: в ряду с иконками каналов она выбивалась рамкой
     и подложкой. Остаётся сама трубка того же размера, что и соседние значки. */
  .header__call {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    margin-left: 0;
    color: var(--color-primary);
    border: 0;
    background: none;
    transition: opacity .2s ease, transform .15s ease;
  }
  .header__call svg { width: 34px; height: 34px; }
  .header__call:active { transform: scale(.94); }
  .header__call + .burger { margin-left: 8px; }
}
.header--overflow .header__call {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin-left: 0;
  color: var(--color-primary);
  border: 0;
  background: none;
}
.header--overflow .header__call svg { width: 34px; height: 34px; }
.header--overflow .header__call + .burger { margin-left: 8px; }

/* 09.08.2026. На узких экранах контейнер шапки давал gap 28px, и после
   появления кнопки звонка логотипу не хватало ширины — «КТП-РУ.РФ»
   переносилось на вторую строку (высота 68px вместо 35). Уменьшаем зазоры
   и запрещаем перенос названия: место освобождается ровно для логотипа. */
@media (max-width: 860px) {
  .header__inner { gap: 6px; }
  .header__call + .burger { margin-left: 0; }
  .logo { white-space: nowrap; gap: 5px; font-size: 19px; letter-spacing: 0.2px; }
  .logo__img { height: 40px; }
  .site-header .container { padding: 0 12px; }
  /* 22.08.2026. На телефонах (см. скриншот юзера) значки каналов наезжали на
     название: три иконки + трубка + бургер по 40px съедали всю ширину. Ужимаем
     области нажатия до 34px, сами значки до 28px, и ставим их вплотную. */
  .header__soc { width: 34px; height: 34px; }
  .header__soc img { width: 28px; height: 28px; }
  .header__soc + .header__soc, .header__soc + .header__call { margin-left: -2px; }
  .header__call { width: 34px; height: 34px; }
  .header__call svg, .header--overflow .header__call svg { width: 28px; height: 28px; }
  .burger { width: 34px; }
}

/* ---------- Страница 404 (10.08.2026) ----------
   До этого на несуществующий адрес reg.ru отдавал собственную заглушку на
   769 КБ со ссылкой на панель хостера — человек видел страницу хостера
   вместо сайта. Своя 404 держит посетителя внутри: разделы каталога и
   телефон вместо тупика. Карточки-ссылки те же .card, только без подчёркивания. */
/* Селектор с .page-top намеренно: одиночный .err-code проигрывает по
   специфичности правилу .page-top p и цифры красились в белый текст абзаца. */
.page-top .err-code {
  font-family: 'Saira', 'Inter', sans-serif;
  font-size: clamp(56px, 12vw, 104px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--color-primary);
  letter-spacing: .02em;
}
a.card { text-decoration: none; }
.err-more { margin-top: 26px; text-align: center; }

/* 10.08.2026. Заголовки внутри .prose наследовали тёмный --color-text от body
   и на фоновой фотографии были не видны совсем (пользователь прислал скриншот
   calc.html: «Как считается мощность для СНТ» тёмно-синим по светлой траве).
   Абзацам светлый цвет задали ещё в июле, а до заголовков руки не дошли —
   потому что на прежних страницах заголовки размечены как .section__title,
   а голые h2/h3 в прозе появились только сейчас. */
.prose h2,
.prose h3,
.prose h4 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(8,14,22,.5);
}
.prose h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 30px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; }
.prose li { color: rgba(255,255,255,.88); text-shadow: 0 1px 8px rgba(8,14,22,.4); }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 6px; }

/* 10.08.2026. Поля в сетках калькулятора и опросного листа «плавали»: подпись
   в одну строку («Электроплиты») и в две («Разрешённая мощность на участок,
   кВт») давали разную высоту, и соседние поля стояли на разных уровнях.
   Прижимаем подпись к низу отведённого ей места — тогда сами поля выстраиваются
   в одну линию независимо от длины надписи. */
.calc__field label,
.ql__field label {
  line-height: 1.35;
  min-height: 2.7em;          /* ровно две строки: однострочные подписи занимают столько же */
  display: flex;
  align-items: flex-end;
}

/* 13.08.2026. Кнопки врезки красились в жёлтый и сливались с фоном.
   Виновато правило .article-body a { color: var(--color-primary) } — у него
   специфичность выше, чем у .btn--primary, и текст кнопки становился жёлтым
   на жёлтом градиенте. Возвращаем родные цвета кнопок явным правилом. */
.article-body .article-cta-inline .btn--primary { color: #1a130a; }
.article-body .article-cta-inline .btn--ghost { color: #fff; }

/* 12.08.2026. Врезка с расчётом внутри статьи.
   Статьи блога дают ~536 визитов из поиска в месяц и ноль заявок: человек читает
   60–80 секунд, получает ответ и уходит, а единственное предложение действия стоит
   под текстом и под блоком FAQ, куда почти никто не доскроливает. Ставим короткую
   врезку примерно на трети текста — вставляется в articles.php функцией art_insert_cta. */
.article-cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 20px 22px;
  border: 1px solid rgba(245, 166, 35, .35);
  border-left: 3px solid var(--color-primary);
  border-radius: 12px;
  background: rgba(245, 166, 35, .07);
}
.article-cta-inline b {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.article-cta-inline span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .72);
  max-width: 52ch;
}
.article-cta-inline .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .article-cta-inline { padding: 16px; margin: 24px 0; gap: 14px; }
  /* Три кнопки в столбик съедали пол-экрана. Общее правило .btn-row .btn запрещает
     переносить надписи, поэтому на узком экране укорачиваем сами подписи: у кнопки
     калькулятора прячем слово «мощности», а ссылку на прайс убираем — она есть
     в конце статьи и в меню. Две оставшиеся кнопки встают в один ряд. */
  .article-cta-inline .btn-row { width: 100%; gap: 8px; }
  .article-cta-inline .btn { padding: 10px 12px; font-size: 14px; min-height: 42px; }
  .article-cta-inline .wide-only,
  .article-cta-inline .wide-only-btn { display: none; }
  .article-cta-inline span { font-size: 13px; }
}


/* 13.08.2026. Совсем узкие экраны: в ряду справа стоят две иконки каналов,
   кнопка звонка и бургер. При 40px на каждую они выдавливают логотип, поэтому
   ниже 420px ужимаем иконки каналов — сами значки остаются читаемыми. */
@media (max-width: 420px) {
  .logo { font-size: 17px; }
  .logo__img { height: 36px; }
  .header__soc { width: 32px; height: 32px; }
  .header__soc img,
  .header__call svg,
  .header--overflow .header__call svg { width: 26px; height: 26px; }
  .header__call { width: 32px; height: 32px; }
}
@media (max-width: 340px) {
  .header__soc { width: 32px; height: 32px; }
  .header__soc img,
  .header__call svg,
  .header--overflow .header__call svg { width: 26px; height: 26px; }
  .header__call { width: 32px; height: 32px; }
}

/* ---------- Первый экран ktp.html (22.08.2026): заголовок по центру, три плитки с ценой
   и быстрая форма в один ряд. Плитки и заголовок берут цены из прайса страницы (см. скрипт в ktp.html). */
#ktpHero .container { text-align: center; }
.khero__q { font-size: 13px; color: #c9d4e0; margin: 6px 0 4px; }
.khero__q b { color: #fff; }
#ktpHero h1 { margin: 0 0 10px; }
.khero__lead { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.55; }
.khero__row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: stretch; margin-top: 22px; text-align: left; }
.khero__offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.koffer { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 14px 12px;
  background: rgba(16,21,29,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s; }
.koffer.is-hit { border-color: #f5a623; box-shadow: 0 0 0 1px rgba(245,166,35,.35); }
.koffer__name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.koffer__spec { font-size: 12.5px; color: #b8c4d2; line-height: 1.45; margin-bottom: 10px; }
.koffer__price { font-family: 'Saira', 'Inter', sans-serif; font-size: 20px; font-weight: 700; color: #f5a623; margin-bottom: 2px; }
.koffer__note { font-size: 12px; color: #b8c4d2; margin-bottom: 12px; }
.koffer__btn { margin-top: auto; width: 100%; justify-content: center; }
.kquick { display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 18px;
  background: rgba(16,21,29,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kquick__title { font-size: 18px; margin: 0 0 4px; }
.kquick__text { font-size: 13px; color: #b8c4d2; margin: 0 0 12px; }
.kquick .form__field { margin-bottom: 10px; }
.kquick .form__label { font-size: 12px; }
.kquick input, .kquick select { width: 100%; min-height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; padding: 0 12px; font: inherit; }
.kquick select option { color: #10151d; }
.kquick__consent { font-size: 12px; margin: 2px 0 10px; }
.kquick__btns { gap: 8px; }
.kquick__btns .btn { flex: 1; justify-content: center; }
.kquick__call { display: none; }
.kquick__status { font-size: 13px; min-height: 1.2em; margin: 8px 0 0; }
.kquick__alt { font-size: 11.5px; color: #b8c4d2; margin: 6px 0 0; line-height: 1.4; }
.khero__trust { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin: 16px 0 0; padding: 0; font-size: 13px; color: #c9d4e0; }
.khero__trust b { color: #fff; }
@media (max-width: 860px) {
  .khero__row { grid-template-columns: 1fr; }
  .khero__offers { grid-template-columns: 1fr; gap: 8px; }
  .koffer { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; }
  .koffer__spec { grid-column: 1 / 3; margin-bottom: 4px; }
  .koffer__price { grid-row: 1; grid-column: 2; margin: 0; font-size: 18px; }
  .koffer__note { grid-column: 1 / 3; margin-bottom: 8px; }
  .koffer__btn { grid-column: 1 / 3; margin-top: 0; }
  .kquick__call { display: inline-flex; }
  .khero__lead { font-size: 15px; }
  .khero__trust { gap: 10px 16px; }
}
/* уточнения к первому экрану КТП (после рендера 22.08) */
.kquick { padding: 16px 18px; }
.kquick .form__field { margin-bottom: 8px; }
.kquick__consent { display: flex; align-items: flex-start; gap: 8px; grid-template-columns: none; }
.kquick__consent input { margin-top: 3px; flex: 0 0 auto; }
.kquick__consent span { flex: 1 1 auto; line-height: 1.35; }
.kquick__btns .kquick__call { display: none; }
@media (max-width: 860px) { .kquick__btns .kquick__call { display: inline-flex; } }
.kquick__consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #c9d4e0; margin: 2px 0 10px; cursor: pointer; }
.kquick__consent input { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 16px; accent-color: #f5a623; }
.kquick__consent a { color: #f5a623; }

/* 04.10.2026: 3D-модель товара на первом экране раздела (вариант A).
   Десктоп — текст слева, модель справа; телефон — модель под заголовком. */
.hero-model { display: block; width: min(86%, 420px); height: auto; margin: 14px auto 0; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); }
@media (min-width: 1000px) {
  .page-top--model .container { position: relative; }
  .page-top--model .container > :not(.khero__row):not(.khero__trust):not(.hero-model) { max-width: 56%; margin-left: 0; margin-right: 0; text-align: left; }
  .page-top--model .hero-cta, .page-top--model .hero-facts { justify-content: flex-start; }
  .page-top--model .hero-model { position: absolute; right: 0; top: 40px; width: 41%; max-height: 420px; object-fit: contain; margin: 0; }
  .page-top--model .container:not(:has(.khero__row)) { min-height: 440px; }
  .page-top--model .container:has(.khero__row) .hero-model { width: auto; max-width: 41%; max-height: 290px; right: 2%; }
  .page-top--model .breadcrumbs__list { justify-content: flex-start; }
}

/* Карточки каталога с 3D-фоном */
.product--bg{position:relative;overflow:hidden;isolation:isolate}
.product--bg::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--bg) no-repeat var(--pos,center)/var(--size,contain);opacity:.95;transition:opacity .25s,transform .25s}
.product--bg::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,rgba(22,32,44,.85) 0%,rgba(22,32,44,.55) 50%,rgba(22,32,44,.1) 100%)}
.product--bg:hover::before{opacity:.8;transform:scale(1.03)}
