/* ============================================================
   Электрохаб — фирменные стили по брендбуку 2026
   Палитра: тёмно-синий #02142B, светло-синий #063D83, белый #F0F0F0
   Шрифт: Montserrat (AKONY убран 16.07 — не используется с 05.07)
   ============================================================ */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.00ab09ef1497.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.6b7768ff3252.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.6cafc8f273bc.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.bb8879980a91.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --dark: #02142B;
  --blue: #063D83;
  --blue-hover: #0a4da0;
  --light: #F0F0F0;
  --white: #FFFFFF;
  --text: #02142B;
  /* вторичный текст: тёмный с холодным оттенком — иерархия сохраняется, читаемость выше */
  --text-muted: #2e3a4c;
  --radius: 20px;
  --radius-sm: 12px;
  /* AKONY не используется на сайте (решение 05.07.2026) */
  --font-accent: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* полоса прокрутки не влияет на центровку — меню не «прыгает» между страницами */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  /* короткие страницы: футер прижат к низу экрана */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 2K-мониторы (2560×1440, 27"): как было — юзеру нравится, НЕ трогаем */
@media (min-width: 1700px) {
  body { font-size: 17px; }
  .container { max-width: 1560px; }
  .ymap { height: 460px; }
  .ymap-large { height: 640px; }
  .section-text .richtext, .news-article { max-width: 880px; }
}
@media (min-width: 2400px) {
  body { font-size: 19px; }
  .container { max-width: 1920px; }
  .hubs-grid, .news-grid, .features-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
  .ymap-large { height: 760px; }
  .section-text .richtext, .news-article { max-width: 980px; }
}
/* Только настоящие 4K/5K (≥3000px): пропорциональный zoom ≈ вьюпорт/2560, чтобы
   большой экран выглядел как «идеальный 2K», увеличенный (2560 и 27" не затрагиваются —
   zoom их не касается, т.к. медиазапросы читают реальный вьюпорт). */
@media (min-width: 3000px) { :root { zoom: 1.2; } }
@media (min-width: 3400px) { :root { zoom: 1.35; } }
@media (min-width: 3800px) { :root { zoom: 1.5; } }
@media (min-width: 4600px) { :root { zoom: 1.8; } }
@media (min-width: 5000px) { :root { zoom: 2; } }

.section { padding: 64px 0; }
/* Паттерны по ролям (тихие тон-в-тон версии утверждённых мотивов):
   счётчики — П2 «Полосы», контентные тёмные секции — П151/163 «Плетение»,
   титулы страниц — П71 «Пины», калькулятор — П142 «Вертикаль»,
   контакты — П110 «Плазма» (свечение), футер — П148 «Констелляция».
   Смежные тёмные секции разделяет тонкий светлый шов. */
.section-dark {
  /* сплошной тёмный (плетение удалено 06.07); узор — только модификаторами */
  background: var(--dark);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.section-dark .section-title { color: var(--white); }
/* Сохранённые фоны Ф-библиотеки (применять к любой секции, не только футеру):
   тёмные — вместе с .section-dark, светлый — к обычной .section */
.bg-speedometer { /* Ф31: веер лучей из нижнего угла, чистый CSS */
  background-image: repeating-conic-gradient(from 285deg at -4% 106%, rgba(15, 58, 110, 0.55) 0 1.6deg, transparent 1.6deg 11deg);
}
.bg-chevrons { /* Ф39: синие шевроны на светлом */
  background-image: url("../img/pattern-chevrons-light.75fbe9ac8a47.svg");
}
.bg-searchlight { /* Ф46: два диагональных луча света (тёмные секции) */
  background-image: linear-gradient(115deg, transparent 0 16%, rgba(18, 65, 122, 0.34) 16% 30%, transparent 30% 54%, rgba(15, 58, 110, 0.26) 54% 63%, transparent 63%);
}
.bg-searchlight-light { /* Ф86: лучи на белом (светлые секции) */
  background-image: linear-gradient(115deg, transparent 0 16%, rgba(6, 61, 131, 0.08) 16% 30%, transparent 30% 54%, rgba(6, 61, 131, 0.06) 54% 63%, transparent 63%);
}
.bg-bolt-giant { /* Ф157: гигантская молния-силуэт у правого края (тёмные секции) */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 2 4 14h6l-1 8 9-12h-6l1-8Z" fill="%230a2140"/></svg>');
  background-repeat: no-repeat;
  background-position: 110% 46%;
  background-size: auto 230%;
}
.bg-bolt-giant-light { /* Ф193: гигантская молния на белом (светлые секции) */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 2 4 14h6l-1 8 9-12h-6l1-8Z" fill="%23063D83" opacity=".07"/></svg>');
  background-repeat: no-repeat;
  background-position: 110% 46%;
  background-size: auto 230%;
}
.bg-bolt-poster { /* Ф250: почти белая молния — постерный контраст (тёмные секции) */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 2 4 14h6l-1 8 9-12h-6l1-8Z" fill="%23F0F0F0" opacity=".92"/></svg>');
  background-repeat: no-repeat;
  background-position: 106% 50%;
  background-size: auto 150%;
}
.bg-bolt-poster-light { /* Ф252: инверсия Ф250 — чернильная молния на светлом */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 2 4 14h6l-1 8 9-12h-6l1-8Z" fill="%2302142B" opacity=".9"/></svg>');
  background-repeat: no-repeat;
  background-position: 106% 50%;
  background-size: auto 150%;
}
.bg-wedge-light { /* Ф278: тёмный клин на светлой секции, белый знак на клине */
  background-image:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 2 4 14h6l-1 8 9-12h-6l1-8Z" fill="%23F0F0F0" opacity=".92"/></svg>'),
    linear-gradient(64deg, transparent 0 55%, #02142B 55%);
  background-repeat: no-repeat, no-repeat;
  background-position: 88% 62%, center;
  background-size: auto 74%, cover;
}
.bg-speedometer-light { /* Ф289: спидометр-негатив — лучи синим по белому */
  background-image: repeating-conic-gradient(from 285deg at -4% 106%, rgba(6, 61, 131, 0.14) 0 1.6deg, transparent 1.6deg 11deg);
}
/* Ф46 «Прожекторы» на главной: Сервис 24/7 и Новости */
.page-home .features-section,
.page-home .service-comfort,
.page-home .ti-dark {
  background-image: linear-gradient(115deg, transparent 0 16%, rgba(18, 65, 122, 0.34) 16% 30%, transparent 30% 54%, rgba(15, 58, 110, 0.26) 54% 63%, transparent 63%);
}
/* на тёмной секции ссылка «Все новости» — светлым */
.section-dark .section-more { color: #8ab9f1; }
.bg-brackets-orange { /* Ф291: два оранжевых уголка кадрируют тёмную секцию */
  background-image:
    linear-gradient(#FF6B4A 0 4px, transparent 4px),
    linear-gradient(90deg, #FF6B4A 0 4px, transparent 4px),
    linear-gradient(0deg, transparent calc(100% - 4px), #FF6B4A calc(100% - 4px)),
    linear-gradient(90deg, transparent calc(100% - 4px), #FF6B4A calc(100% - 4px));
  background-size: 12% 12%, 12% 12%, 12% 12%, 12% 12%;
  background-position: 8% 12%, 8% 12%, 92% 88%, 92% 88%;
  background-repeat: no-repeat;
}

.section-title {
  /* П1: обычный регистр, плотный Montserrat 800 — капс только малым лейблам */
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 32px;
  letter-spacing: -0.015em;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 24px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  /* hairline вместо тени — дороже и чище */
  border: 1px solid #e5eaf1;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
/* К1.4 «Ритм»: CTA чернильные, синий остаётся ссылкам и мелочам */
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: #0c2747; }
.btn-light { background: var(--white); color: var(--dark); }
.btn-light:hover { background: var(--light); }

/* ---------- Шапка ---------- */
/* a11y: ссылка «к содержимому» — видна только при фокусе с клавиатуры */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--dark); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--blue-lt); }
main:focus { outline: none; }
/* аффорданс скролла: на мобиле у скролл-таблиц/табов правый край плавно гаснет — видно, что листается */
@media (max-width: 720px) {
  .brand-matrix-wrap, .hub-anchors-in {
    -webkit-mask-image: linear-gradient(90deg, #000 87%, transparent);
    mask-image: linear-gradient(90deg, #000 87%, transparent);
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}
/* фон шапки отдельным слоем: до скролла — сплошной фирменный тёмно-синий, при скролле
   включается лёгкое стекло 10% + блюр (backdrop-filter на самой sticky-шапке ломает липкость в Chrome) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #02142B;
  transition: background 0.3s ease, -webkit-backdrop-filter 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34); }
.site-header.scrolled::before {
  background: rgba(2, 20, 43, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
/* полоса прогресса чтения по нижней кромке шапки */
.header-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #8fb8f2, #7fe3b6); z-index: 2;
  transition: width 0.08s linear;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
  transition: height 0.3s ease;
}
.logo img { height: 60px; width: auto; transition: height 0.3s ease; }
/* конденсация при скролле: шапка ужимается, логотип меньше, подпись 24/7 прячется */
.site-header.scrolled .header-inner { height: 60px; }
.site-header.scrolled .logo img { height: 42px; }
.header-support .hs-caption { overflow: hidden; max-height: 16px; transition: opacity 0.25s ease, max-height 0.3s ease; }
.site-header.scrolled .header-support .hs-caption { opacity: 0; max-height: 0; }
.main-nav {
  /* меню растягивается между лого и телефоном, пункты распределяются равномерно */
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  gap: 12px;
  min-width: 0;
}
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  opacity: 0.9;
}
.main-nav a:hover { opacity: 1; }
/* «Медиа»-группа и телефон-кнопка — только в мобильной панели */
.nav-media-group, .nav-phone { display: none; }
/* Поддержка в шапке: телефон с подписью 24/7 + иконки MAX и Telegram */
.header-support { display: flex; align-items: center; gap: 12px; }
.hs-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.hs-caption {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7f95b5;
}
.hs-ic {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.15s, border-color 0.15s;
}
.hs-ic:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.nav-support { display: none; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------- Первый экран (паттерн П2, как у тёмных секций) ---------- */
.hero {
  background: var(--white);
  color: var(--dark);
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}
/* на белом хиро кнопка — чернильная */
.hero .btn-light { background: var(--dark); color: var(--white); }
.hero .btn-light:hover { background: #0c2747; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
/* грид-дети не раздувают трек своим min-content: чип живого тарифа (width:max-content)
   на узких экранах делал колонку шире вьюпорта — контент срезался справа (баг с Pixel) */
.hero-inner > *, .hub-hero-inner > * { min-width: 0; }
/* с видео текст занимает ~третъ, медиа — остальное.
   Текстовый блок центрирован по вертикали плеера, ровный вертикальный ритм */
.hero--video .hero-inner {
  grid-template-columns: minmax(300px, 1fr) 2fr;
  align-items: center;
}
.hero--video .hero-subtitle { margin-bottom: 28px; }
.hero-title {
  /* исключение из П1: слоган хиро главной — капсом (правка юзера 05.07) */
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 29px);
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-photo { border-radius: var(--radius); }
.hero-media { position: relative; }
.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: #000;
  cursor: pointer;
}
.hero-video.is-paused { opacity: 0.85; }
/* кнопка play: стеклянный сквиркл (вариант В3, блюр умеренный) */
.hero-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(2, 20, 43, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
  z-index: 2;
}
.hero-video-play svg { margin-left: 3px; }
.hero-video-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(255, 255, 255, 0.28);
}
.hero-video-play.is-hidden { opacity: 0; pointer-events: none; }
.hero-video-fs {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(2, 20, 43, 0.65);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.hero-video-fs:hover { background: rgba(2, 20, 43, 0.9); }

/* ---------- Заголовок внутренней страницы ---------- */
.page-hero {
  background: var(--dark);
  color: var(--white);
  /* Ф46 «Прожекторы» — диагональные лучи на титулах разделов */
  background-image: linear-gradient(115deg, transparent 0 16%, rgba(18, 65, 122, 0.34) 16% 30%, transparent 30% 54%, rgba(15, 58, 110, 0.26) 54% 63%, transparent 63%);
  /* компактный титул (правка 06.07) */
  padding: 34px 0 30px;
}
/* Правило ритма (13.07): оглавление разделов — тёмным текстом по БЕЛОМУ с фоном
   Ф289 «Спидометр-негатив». Шапка тёмная → это светлый блок → дальше чередование.
   Герои страниц хабов с 28.07 светлые — см. .hub-hero--light (гибрид В6). */
.page-hero--light {
  background: var(--white);
  color: var(--dark);
  background-image: repeating-conic-gradient(from 285deg at -4% 106%, rgba(6, 61, 131, 0.14) 0 1.6deg, transparent 1.6deg 11deg);
}
.page-hero--light .page-title { color: var(--dark); }
.page-hero--light .page-intro { opacity: 1; color: var(--text-muted); }
.page-hero--light .page-intro--aside { border-left-color: #d2dae6; color: var(--text-muted); }
.page-title {
  /* длинные заголовки страниц — Montserrat, AKONY не тянет длинные строки */
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.2;
}
.page-intro { margin-top: 16px; opacity: 0.85; max-width: 640px; }
/* В2 «С чертой»: доп-текст правее заголовка на компактном титуле */
.page-hero-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.page-intro--aside {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 28px;
}
.page-intro--aside p { margin: 0; }
@media (max-width: 760px) {
  .page-intro--aside { border-left: 0; padding-left: 0; }
}

/* ---------- Счётчики ---------- */
.stats-section {
  /* Ф5 «Дуотон» (борд 📸 29.07, правка юзера — без слэшей): живое фото рядов
     стоек под чернильной вуалью, просто затемнённое изображение */
  background: var(--dark);
  background-image:
    linear-gradient(180deg, rgba(7, 10, 14, 0.6), rgba(4, 6, 9, 0.7)),
    url("../img/stats-bg.0b0ffd1ba9f7.jpg");
  background-size: auto, cover;
  background-position: center, center 50%;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  /* именно clip, а не hidden: hidden делает секцию скролл-контейнером, и тогда
     view()-таймлайн свечения мерит прогресс относительно неё же — анимация замирает */
  overflow: clip;
}
/* свечение логотипа: слой — тот же кадр с вырезанной маркой (всё прозрачно,
   кроме логотипа) и теми же background-size/position, что у фото. Совпадение по
   контуру — от геометрии, а не от подгонки. Ореол даёт drop-shadow по альфе,
   поэтому свет идёт ровно по форме марки. Прозрачность ведёт scroll-driven
   анимация — считает композитор, JS-слушателей скролла нет. */
.stats-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("../img/stats-logo.602b34dac3d3.png");
  background-size: cover;
  background-position: center 50%;
  mix-blend-mode: screen;
  /* пик подсветки поднят на ~10% (правка юзера): и сама марка, и ореол вокруг неё */
  filter: brightness(1.1) drop-shadow(0 0 11px rgba(150, 200, 255, 0.61));
  opacity: 0;
}
@supports (animation-timeline: view()) {
  .stats-glow {
    animation: stats-glow linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  @keyframes stats-glow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .stats-glow { animation: none; opacity: 0; }
}
.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.stat-card { color: var(--white); text-align: center; }
/* В1: иконка над числом — ритм икона → число → подпись */
.stat-icon { display: block; width: 26px; height: 26px; margin: 0 auto 10px; }
.stat-icon svg { width: 100%; height: 100%; display: block; }
.stat-value {
  /* цифры набираем Montserrat: AKONY плохо читается в числах */
  display: block;
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1;
}
.stat-label { display: block; margin-top: 8px; opacity: 0.85; }
/* точки в больших числах — белые (правка юзера 05.07) */
.stat-dot { color: var(--white); }

/* ---------- Карточки хабов ---------- */
.hubs-grid, .news-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.hub-card { position: relative; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.hub-card:hover { transform: translateY(-3px); border-color: #cfdae8; box-shadow: 0 8px 20px rgba(2,20,43,.08); }
/* «растянутая ссылка»: клик по всей карточке ведёт на страницу хаба, но кнопки
   карусели (z-index выше) остаются доступны — без вложенных <button> в <a> (#15) */
.hub-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hub-card-link:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; border-radius: var(--radius); }
.hub-card img, .hub-card-placeholder { aspect-ratio: 8/5; object-fit: cover; width: 100%; }
.hub-card-placeholder {
  position: relative;
  background: var(--dark) url("../img/icon-white.7a3c194744cf.svg") center/64px no-repeat;
}

/* листаемая мини-галерея на карточке хаба */
.hub-card-media, .page-carousel { position: relative; overflow: hidden; }
.hub-card-media .hc-slide, .page-carousel .hc-slide {
  display: none;
}
.hub-card-media .hc-slide.is-active, .page-carousel .hc-slide.is-active { display: block; }
/* большая карусель на страницах хаба и новостей */
.page-carousel { border-radius: var(--radius); margin: 8px 0 24px; }
.hub-hero-carousel { margin: 0; }
.page-carousel .hc-slide { width: 100%; }
.page-carousel .hc-arrow { opacity: 1; }
.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(2, 20, 43, 0.55);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  /* глифы ‹ › оптически выше центра — прижимаем к середине круга */
  padding: 0 0 5px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.hc-prev { left: 10px; }
.hc-next { right: 10px; }
.hub-card:hover .hc-arrow { opacity: 1; }
.hc-arrow:hover { background: rgba(2, 20, 43, 0.85); }
@media (hover: none) {
  .hc-arrow { opacity: 1; } /* на тач-устройствах стрелки видны всегда */
}
.hc-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.hc-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.hc-dots span.is-active { background: var(--white); }
.hub-card-body { padding: 20px; }
/* название всегда в 2 строки (бренд + «Имя») — элементы карточек выравниваются */
.hub-card h3 { font-size: 20px; font-weight: 700; margin: 10px 0 8px; line-height: 1.3; min-height: 2.6em; }

/* чипы под фото: город слева, статус справа */
.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* город — просто слово, по той же сетке (левой кромке), что и название */
.hub-tag-city {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* рейтинг Яндекса под названием */
.hub-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 10px;
  min-height: 19px;
}
/* хабы без рейтинга: спокойная подпись на той же строке */
.hub-rate--alt { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.hub-rate-star { color: #F2B705; font-size: 15px; line-height: 1; }
.hub-rate b { font-weight: 700; }
.hub-rate-count { color: var(--text-muted); }

.hub-card-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}
.hub-card-meta { color: var(--text-muted); margin-bottom: 6px; }
.hub-card-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.75;
}

.hub-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--light);
  color: var(--text-muted);
}
/* на карточках статус с большой буквы, не капсом */
.hub-card .hub-status { text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.hub-status--operating { background: #e0f2e9; color: #16794c; }
.hub-status--construction { background: #fdf1dc; color: #9a6b15; }
.hub-status--project { background: #e2ecfb; color: var(--blue); }

/* ---------- Страница хаба ---------- */
.hub-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}
.hub-hero-text .hub-status { margin-bottom: 16px; }
.hub-intro { margin-top: 16px; opacity: 0.85; }
.hub-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.hub-facts > div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.hub-facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 2px;
}
.hub-facts dt svg { width: 15px; height: 15px; flex-shrink: 0; }
.hub-facts dd { font-weight: 700; font-size: 17px; }
.hub-fact-wide { grid-column: 1 / -1; }

/* ---------- Рейтинг и тарифы хаба ---------- */
.hub-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
}
.hub-rating-badge {
  background: #F2B705;
  color: #02142B;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 999px;
}
.hub-rating a { color: var(--white); opacity: 0.85; font-size: 14px; }
.hub-rating a:hover { opacity: 1; }
/* «N оценок на Яндексе» — ссылка на карточку хаба в Я.Картах; размер как у бейджа рейтинга */
.hub-rating > a { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.hub-rating > a:hover { text-decoration-color: rgba(255, 255, 255, 0.7); }

/* Т1 «Одна плита»: компактные счастливые часы */
/* размер = .section-title («Сколько стоит зарядка?» и др.) — правка юзера 28.07 */
.hh-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.01em; }
/* месяц и год — под заголовком, белым */
.hh-month { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-top: 6px; }
.hh-times { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 18px; }
.hh-time {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 14px;
  font-weight: 700;
}
/* солнце — янтарь, месяц — лунный светло-голубой */
.hh-sun { color: var(--amber, #F2B705); }
.hh-moon { color: #8fb8f2; }
.hh-hubs { display: flex; gap: 10px; flex-wrap: wrap; }
.hh-chip {
  background: var(--white);
  color: var(--dark);
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hh-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2, 20, 43, 0.3); }
.hh-chip b { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hh-chip span { display: block; font-size: 13px; font-weight: 700; margin-top: 2px; }
.hh-chip small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.hh-note { font-size: 13px; opacity: 0.75; margin-top: 18px; max-width: 76ch; }
.hh-note a { color: #8ab9f1; }

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.tariff-card { padding: 24px; }
.tariff-name { font-weight: 600; color: var(--text-muted); font-size: 15px; }
.tariff-price {
  font-weight: 800;
  /* одна строка без переносов «₽/кВт·ч» — карточки единого вида */
  font-size: clamp(22px, 2.1vw, 29px);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--dark);
  margin: 6px 0 10px;
}
.tariff-note { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.tariff-warn { font-size: 13px; color: #9a6b15; margin-top: 4px; }
.happy-hub-card { text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
.happy-hub-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(2,20,43,.12); }
.happy-hub-card .tariff-note { color: var(--text-muted); font-weight: 400; }

/* ---------- Cookie-плашка: тихий тост в углу ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  background: rgba(2, 20, 43, 0.92);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  animation: cookie-in 0.4s 1.2s ease both;
}
/* display:flex у .cookie-bar перебивает браузерный [hidden]{display:none} —
   без этого правила кнопка «Ок» ставит hidden, но бар не исчезает */
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: var(--white); }
.cookie-bar .btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}
.cookie-bar .btn:hover { background: rgba(255, 255, 255, 0.12); }
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { animation: none; }
}
@media (min-width: 601px) {
  /* справа бар не накрывает панель маршрута карты и чип «Адрес» хаба */
  .cookie-bar { left: auto; right: 16px; }
}
@media (max-width: 600px) {
  .cookie-bar { right: 16px; max-width: none; }
  /* пока cookie-бар не закрыт — панель карты приподнята над ним */
}

/* ---------- Преимущества ---------- */
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card img { aspect-ratio: 8/5; object-fit: cover; width: 100%; }
.feature-card h3 { padding: 18px 20px 6px; font-size: 19px; }
.feature-card p { padding: 0 20px 20px; opacity: 0.8; font-size: 15px; }

/* Ведущая карточка (variant=lead): широкая, янтарный тон, иконка — как у остальных */
.feature-lead {
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(242, 183, 5, 0.08);
  border: 1px solid rgba(242, 183, 5, 0.30);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.feature-lead .feature-icon { margin-bottom: 0; flex: none; }
.feature-lead h3 { margin: 0; font-size: 22px; }
.feature-lead p { margin: 6px 0 0; font-size: 15px; opacity: 0.82; }
@media (max-width: 600px) {
  .feature-lead { flex-direction: column; align-items: flex-start; gap: 14px; }
}
/* Партнёр в секции (лого на белой пилюле — сохраняет фирменные цвета на тёмном) */
.features-partner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  text-decoration: none;
  color: #aebfd6;
  font-size: 14px;
  font-weight: 600;
}
.fp-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  transition: transform 0.15s ease;
}
.fp-logo img { display: block; height: 26px; width: auto; }
.features-partner:hover { color: var(--white); }
.features-partner:hover .fp-logo { transform: translateY(-1px); }
@media (max-width: 600px) {
  .features-partner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* ─── Блок «Сервис и комфорт 24/7» (Вид C): заголовок+лого слева, удобства рядами-чипами ─── */
.service-comfort .svc-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.svc-title-link { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); transition: color 0.15s ease; }
.svc-title-link:hover { color: #8fb8f2; }
.service-comfort .svc-title { margin: 0; }
.svc-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 11px; padding: 9px 15px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.svc-logo:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.svc-logo img { display: block; height: 24px; width: auto; }
.svc-groups { margin-top: 22px; }
.svc-row { display: flex; align-items: center; gap: 18px; padding: 16px 0; }
.svc-row + .svc-row { border-top: 1px solid rgba(255, 255, 255, .12); }
.svc-label { flex: 0 0 210px; }
.svc-gt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #8fb8f2; font-weight: 800; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.svc-am { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--white); }
.svc-am-i { display: inline-flex; align-items: center; color: #8fb8f2; }
.svc-am-i .icon { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .svc-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0; }
  .svc-label { flex: none; }
}

/* Светлый вариант секции «Преимущества»: белый фон, тёмный текст, синие иконки */
.features-light { background: #fff; color: var(--dark); border-top: 1px solid #e5eaf1; }
.features-light .section-title { color: var(--dark); }
.features-light .feature-card { background: #fff; border: 1px solid #e5eaf1; }
.features-light .feature-card h3 { color: var(--dark); }
.features-light .feature-card p { color: var(--text-muted); opacity: 1; }
.features-light .feature-icon { background: rgba(6, 61, 131, 0.08); border-color: transparent; color: var(--blue); }
.features-light .feature-lead { background: rgba(242, 183, 5, 0.10); border-color: rgba(242, 183, 5, 0.35); }
.features-light .feature-lead h3 { color: var(--dark); }
.features-light .feature-lead p { color: var(--text-muted); opacity: 1; }

/* ---------- B2B: две карточки на белом ---------- */
.b2b-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.b2b-section .section-title { margin-bottom: 14px; }
.b2b-lead {
  max-width: 62ch;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
/* BH3 «Реестр»: строки-линейки вместо карточек. Засечки на концах линейки —
   тот же мотив, что у фактов на страницах хабов. Иконок и золота нет. */
.b2b-reg { margin-top: 4px; }
.b2b-row {
  position: relative;
  display: grid;
  /* колонки в процентах — одинаковы во всех строках, поэтому пояснения
     выключены по одной оси (у каждой строки свой грид, авто-колонки разъезжались) */
  grid-template-columns: 44px 33% minmax(0, 1fr) 20%;
  /* правка юзера 30.07: номер, заголовок, текст и текст ссылки — по вертикальному
     центру строки, а не по базовой линии первой строки текста */
  align-items: center;
  gap: 22px;
  /* левый отступ держит место под кромку ховера — цифра с ней не сталкивается */
  padding: 30px 18px 28px 14px;
  border-top: 1px solid rgba(2, 20, 43, 0.14);
  color: var(--dark);
  text-decoration: none;
  transition: background 0.15s;
}
.b2b-row:last-child { border-bottom: 1px solid rgba(2, 20, 43, 0.14); }
/* засечки на концах линейки */
.b2b-row::before, .b2b-row::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 1px;
  height: 6px;
  background: rgba(2, 20, 43, 0.28);
}
.b2b-row::before { left: 0; }
.b2b-row::after { right: 0; }
/* кромка на ховере — единственный синий жест строки (inset-тень, чтобы
   ::before/::after остались за засечками линейки) */
.b2b-row:hover { background: #FAFBFD; box-shadow: inset 3px 0 0 var(--blue); }
.b2b-fact { grid-column: 4; }
.b2b-row:hover .b2b-name { color: var(--blue); }
.b2b-row:hover .b2b-arr { transform: translateX(4px); }
.b2b-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.b2b-idx {
  font-size: 15px;
  font-weight: 700;
  color: #9AA6B8;
  font-variant-numeric: tabular-nums;
}
.b2b-name {
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
  transition: color 0.15s;
}
.b2b-text {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
}
.b2b-fact {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  justify-self: end;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.b2b-arr {
  font-style: normal;
  color: var(--blue);
  transition: transform 0.15s;
}
.b2b-section .btn { margin-top: 30px; }
@media (prefers-reduced-motion: reduce) {
  .b2b-arr { transition: none; }
}
@media (max-width: 900px) {
  /* мобила: индекс уходит в строку с именем, факт — под текстом */
  .b2b-row {
    grid-template-columns: 34px 1fr;
    gap: 6px 14px;
    padding: 22px 0 20px;
  }
  .b2b-name { grid-column: 2; font-size: 21px; }
  .b2b-text { grid-column: 2; max-width: none; font-size: 14.5px; margin-top: 6px; }
  .b2b-fact { grid-column: 2; justify-self: start; margin-top: 10px; font-size: 15px; }
}

/* ---------- B2B: офферы с крупной ценой и плашкой выгоды ---------- */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.offer-card { padding: 24px 26px; display: flex; flex-direction: column; }
.offer-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(6, 61, 131, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.offer-card :is(h2, h3) { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--dark); }
.offer-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
/* юнит не рвётся посреди фразы: либо рядом с цифрой, либо целиком строкой ниже */
.offer-price small { font-size: 16px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.offer-card p { margin: 10px 0 18px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.offer-payoff {
  margin-top: auto;
  padding: 14px 16px;
  /* В1 «Хвоя» (выбор юзера 08.07): выгода = хвоя из палитры брендбука */
  background: linear-gradient(100deg, #edf5f0, #e3efe8);
  border: 1px solid #cfe0d6;
  border-radius: var(--radius-sm);
  display: flex;
  /* сумма по центру против 2–3 строк пояснения (правка юзера 08.07) */
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.offer-payoff b {
  font-size: 24px;
  font-weight: 800;
  color: #1F5F4A;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.offer-payoff span { font-size: 13px; line-height: 1.45; color: #3d5a4d; flex: 1; min-width: 180px; }
/* без примечания плашка резервирует его слот (30px) — плашки соседних карточек на одном уровне */
.offer-payoff:last-child { margin-bottom: 30px; }
.offer-note { margin-top: 12px; font-size: 12.5px; color: #6f7a8c; }
/* CTA-ряд оффера: подпись + кнопки связи (вместо примечания) */
.offer-cta { margin-top: 14px; display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; }
.offer-cta-label { font-size: 15px; font-weight: 700; color: var(--text); }
.offer-cta-btns { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer-cta-phone,
.offer-cta-tg {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 19px; background: var(--dark); color: var(--white);
  font-weight: 700; font-size: 14.5px; white-space: nowrap;
  text-decoration: none; transition: background 0.15s;
}
.offer-cta-phone { font-variant-numeric: tabular-nums; }
.offer-cta-phone:hover, .offer-cta-tg:hover { background: var(--blue); color: var(--white); }
.offer-cta-ic {
  width: 38px; height: 38px; flex: none; border: 1px solid rgba(2, 20, 43, 0.28);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--dark); transition: background 0.15s, border-color 0.15s;
}
.offer-cta-ic:hover { background: rgba(2, 20, 43, 0.06); border-color: rgba(2, 20, 43, 0.5); }
@media (max-width: 480px) {
  .offer-cta-phone, .offer-cta-tg { font-size: 13px; padding: 0 13px; }
}

/* ---------- B2B: аренда помещений карточками ---------- */
.rooms-intro { max-width: 72ch; margin: -8px 0 26px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.room-card { padding: 22px 24px; display: block; color: inherit; text-decoration: none; }
a.room-card:hover h3 { color: var(--blue-hover); }
.room-area { font-size: 28px; font-weight: 800; color: var(--dark); font-variant-numeric: tabular-nums; }
.room-card h3 { margin: 6px 0 4px; font-size: 17px; font-weight: 800; color: var(--blue); }
.room-addr { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.room-chip {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.room-chip--ok { background: #e8f1ec; color: #1F5F4A; }
.room-chip--soon { background: #fff2df; color: #8a5a12; }
.rooms-contact {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--text-muted);
}
.rooms-contact .btn { white-space: nowrap; }
.rooms-actions { display: inline-flex; align-items: center; gap: 10px; }
.rc-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #cdd8e6;
  color: var(--dark);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rc-ic:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
@media (max-width: 900px) {
  .rooms-grid { grid-template-columns: 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
}

/* ---------- Программа лояльности electro.cars ---------- */
.loyalty-section { background: #fff; border-top: 1px solid #e5eaf1; }
.loyalty-logo { display: block; height: 32px; width: auto; margin-bottom: 18px; }
.loyalty-section .section-title { margin-bottom: 14px; }
.loyalty-lead { max-width: 62ch; margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.loyalty-lead p { margin: 0; }
.loyalty-lead p + p { margin-top: 10px; }
.loyalty-cities { display: flex; gap: 12px; flex-wrap: wrap; }
.loyalty-stores {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.loyalty-stores a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-weight: 700;
}
.loyalty-stores a:hover { color: var(--blue-hover); }
.loyalty-stores svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

/* ---------- Шаги: вертикальный таймлайн + фото, светлая секция ---------- */
.steps-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.steps-tl { position: relative; padding-left: 34px; }
.steps-tl::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 14px;
  width: 2px;
  background: #dfe5ee;
}
.step { position: relative; margin-bottom: 26px; }
.step::before {
  content: "";
  position: absolute;
  left: -31px;
  /* центр точки = центр первой строки заголовка (19px × 1.6) */
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F2B705;
}
.step:nth-child(2)::before { background: #063D83; }
.step:nth-child(3)::before { background: #1F5F4A; }
.step-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step h3 { font-size: 19px; font-weight: 800; color: var(--dark); }
.step-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  background: #F2B705;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.step p { font-size: 15px; color: var(--text-muted); margin-top: 6px; max-width: 46ch; }
.steps-apps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.steps-apps-lab { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.steps-apps a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid #cdd8e6;
  border-radius: 999px;
  padding: 6px 15px;
  transition: border-color 0.2s, background 0.2s;
}
.steps-apps a img { width: 18px; height: 18px; border-radius: 5px; display: block; }
.steps-apps a:hover { border-color: var(--dark); background: #f4f7fb; }
.steps-photo { width: 100%; border-radius: var(--radius); display: block; }
@media (max-width: 900px) {
  .steps-wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Текст + фото ---------- */
.ti {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ti-reversed .ti-text { order: 2; }
.ti-photo { border-radius: var(--radius); }
.richtext p { margin-bottom: 14px; }
.richtext ul, .richtext ol { margin: 0 0 14px 22px; }
.richtext li { margin-bottom: 8px; }
.richtext h2, .richtext h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 28px 0 14px;
}
.richtext h2 { font-size: clamp(22px, 2.6vw, 30px); }
.richtext h3 { font-size: 19px; }
.richtext > h2:first-child, .richtext > h3:first-child { margin-top: 0; }
.richtext a { font-weight: 600; }
/* на тёмных секциях ссылки осветляем, чернильные кнопки инвертируем */
.section-dark .richtext a { color: #8ab9f1; }
.section-dark .btn-primary { background: var(--white); color: var(--dark); }
.section-dark .btn-primary:hover { background: var(--light); }

/* текстовые секции: читаемая колонка, а не вся ширина экрана */
.section-text { padding: 40px 0; }
.section-text .richtext { max-width: 800px; }
.section-text + .section-text { padding-top: 0; }
.ti .btn { margin-top: 10px; }

/* ---------- Галерея ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-grid img { border-radius: var(--radius-sm); width: 100%; object-fit: cover; }

/* ---------- Новости ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  position: relative; /* якорь для растянутой ссылки */
  transition: transform .15s, box-shadow .15s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(2,20,43,.12); }
/* ссылка заголовка накрывает всю карточку — кликабельно целиком */
.news-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.news-card img { aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 20px; }
.news-card time { color: var(--text-muted); font-size: 13px; }
.news-card :is(h2, h3) { font-size: 18px; margin: 8px 0; }
.news-card :is(h2, h3) a { color: var(--text); text-decoration: none; }
.news-card :is(h2, h3) a:hover { color: var(--blue); }
.news-card p { font-size: 15px; color: var(--text-muted); }

/* ---------- «СМИ о нас»: плитки внешних публикаций ---------- */
.press-year + .press-year { margin-top: 48px; }
.press-year-title { font-size: 28px; margin-bottom: 20px; letter-spacing: -0.015em; }
.press-year-count { color: var(--text-muted); font-size: 16px; font-weight: 600; vertical-align: 4px; margin-left: 4px; }
.press-grid {
  display: grid;
  /* min(320px,100%): плитка не распирает контейнер на самых узких экранах */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.press-card {
  display: flex;
  flex-direction: column;
  position: relative; /* якорь для растянутой ссылки издания */
  transition: transform .15s, box-shadow .15s;
}
.press-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(2,20,43,.12); }
.press-card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }
/* обложка-логотип: вписывается целиком на светлой подложке */
.press-cover--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  /* белый фон: иконки изданий с белой подложкой сливаются без «заплатки» */
  background: var(--white);
  border-bottom: 1px solid #e5eaf1;
}
.press-cover--logo img { max-height: 56px; max-width: 60%; width: auto; height: auto; }
/* издание без пригодного графического лого — типографская плашка-вордмарк */
.press-cover--word {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 0 24px;
  background: var(--white);
  border-bottom: 1px solid #e5eaf1;
  color: var(--blue);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-align: center;
}
/* обложка-фото: кадрируется как у новостей */
img.press-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.press-card time { color: var(--text-muted); font-size: 13px; }
.press-outlet { font-size: 17px; margin: 4px 0 8px; }
.press-outlet a { color: var(--text); text-decoration: none; }
.press-outlet a:hover { color: var(--blue); }
/* клик по всей плитке ведёт на первоисточник */
.press-outlet a::after { content: ""; position: absolute; inset: 0; }
.press-sum { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.press-src {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  position: relative; /* поверх растянутой ссылки */
  z-index: 1;
}
.press-src:hover { text-decoration: underline; }
.press-net { font-size: 13px; color: var(--text-muted); padding-top: 8px; }
.press-net p { margin: 0 0 8px; }
.press-net a { position: relative; z-index: 1; }
/* кнопка-разворот блока про хабы на плитке */
.press-more {
  border-top: 1px solid #e5eaf1;
  margin-top: 14px;
  padding-top: 10px;
  position: relative; /* поверх растянутой ссылки плитки */
  z-index: 1;
}
.press-more summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  padding-right: 24px;
}
.press-more summary::-webkit-details-marker { display: none; }
.press-more summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.press-more[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.press-more summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- страница одной публикации ---------- */
.press-article { max-width: 760px; }
.press-back { margin-bottom: 20px; }
.press-back a { font-weight: 600; text-decoration: none; }
.press-back a:hover { text-decoration: underline; }
.press-article .press-cover--big {
  height: 180px;
  border: 1px solid #e5eaf1;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.press-article .press-cover--big img { max-height: 110px; max-width: 70%; }
.press-article .press-cover--word.press-cover--big { font-size: 28px; }
img.press-cover--big { height: auto; aspect-ratio: 21/9; border-radius: var(--radius); }
.press-article time { color: var(--text-muted); font-size: 14px; }
.press-article-title { font-size: 34px; margin: 6px 0 14px; letter-spacing: -0.015em; }
.press-article-sum { font-size: 19px; line-height: 1.55; margin-bottom: 22px; }
.press-article-net {
  border-top: 1px solid #e5eaf1;
  margin-top: 32px;
  padding-top: 20px;
}
.press-article-net .press-net { font-size: 15px; }
.press-article-net .press-net p { margin-bottom: 12px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
/* лента «Медиа»: вторая секция (гиды) с воздухом после новостей */
.media-feed .mf-guides { margin-top: 44px; }
.section-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

/* фильтр городов в «Развитии сети» */
.hubs-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.hf-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  background: none;
  border: 1px solid #cdd6e1;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none; /* чипы бывают ссылками (/hubs/: города) */
  display: inline-block;
}
.hf-btn:hover { border-color: var(--dark); color: var(--dark); }
.hubs-filter--map { display: flex; gap: 10px; margin: 0 0 18px; }

.hf-btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.news-date { opacity: 0.7; font-size: 14px; display: block; margin-bottom: 10px; }
.news-article { max-width: 860px; }
.news-cover { border-radius: var(--radius); margin-bottom: 28px; }
.news-article .gallery-grid { margin-top: 28px; }
.news-back { margin-top: 36px; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* ---------- Форма ---------- */
.contact-section {
  /* плетение — как у «Инфраструктуры» (правка юзера 05.07) */
  background: var(--dark);
  background-image:
    repeating-linear-gradient(45deg, rgba(10, 47, 94, 0.55) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(10, 47, 94, 0.55) 0 2px, transparent 2px 14px);
  color: var(--white);
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-section .section-title { color: var(--white); }
.contact-section .section-subtitle { color: rgba(255, 255, 255, 0.88); }
/* светлый вариант формы (чекбокс в CMS) */
.contact-section--light {
  background: var(--white);
  background-image: none;
  color: var(--text);
  border-top: 0;
}
.contact-section--light .section-title { color: var(--dark); }
.contact-section--light .section-subtitle { color: var(--text-muted); }
.contact-section--light .contact-phone-big a { color: var(--dark); }
.contact-section--light .contact-form { border: 1px solid #e5eaf1; }
.contact-phone-big a {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  text-decoration: none;
}
.contact-form { padding: 28px; color: var(--text); }
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid #d3dae3;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-policy { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.form-ok { background: #e0f2e9; color: #16794c; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.form-error { background: #fdecea; color: #b3261e; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
/* инлайн-ошибка поля в стиле сайта (вместо нативной англ. подсказки) */
.field-error { margin: 5px 0 2px; font-size: 13px; font-weight: 500; color: #b3261e; }
.contact-form input.is-invalid, .contact-form textarea.is-invalid { border-color: #e0533d; background: #fff8f7; }
.contact-form input.is-invalid:focus, .contact-form textarea.is-invalid:focus { outline-color: #e0533d; border-color: #e0533d; }
/* «Отправить» неактивна, пока не заполнены все поля */
.contact-form .btn[disabled], .contact-form .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Карта (Яндекс-виджет) ---------- */
.ymap {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius);
  background: #0a1c33;
  display: block;
  position: relative;
}
/* П10: скелет карты — пульсирующая молния, пока грузится API Яндекса */
.ymap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -24px 0 0 -17px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E6FD9"><path d="M13 2 4 14h6l-1 8 9-12h-6l1-8Z"/></svg>') center/contain no-repeat;
  animation: eh-map-pulse 1.6s ease-in-out infinite;
}
.ymap::after {
  content: "Загружаем карту…";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #8fa0b8;
}
.ymap.is-ready { background: #dfe6ee; }
.ymap.is-ready::before, .ymap.is-ready::after { content: none; }
@keyframes eh-map-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
/* П10+: скелетон-загрузка — мягкий блик по тёмному фону, пока грузятся тайлы */
.ymap:not(.is-ready) {
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .07) 55%, transparent 80%),
    #0a1c33;
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: eh-map-shimmer 1.5s linear infinite;
}
@keyframes eh-map-shimmer {
  0% { background-position: -60% 0, 0 0; }
  100% { background-position: 160% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ymap::before, .ymap:not(.is-ready) { animation: none; }
}
.ymap-large { height: 540px; }
.map-legend {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Произвольные страницы ---------- */
/* нижний отступ убран: тёмные финальные секции должны смыкаться с футером без белой полосы */
.flex-body .richtext, .flex-body > section > .container > .richtext { max-width: 820px; }

/* ---------- Подвал ---------- */
.site-footer {
  /* Ф250 «Постер-знак»: фирменный знак из брендбука (Знак/SVG/White_icon.svg),
     гигантским кадром у правого края. Пропорции знака 160×279 — он уже́ прежней
     рисованной молнии, поэтому и масштаб, и вылет за кромку пересчитаны: в кадре
     остаётся ступень знака, руки уходят за верх и низ футера */
  background: var(--dark);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 279"><path d="M160 120.634H96.694C93.6464 120.634 91.1771 117.555 91.1771 113.76V0L0 157.459H60.9653C65.3049 157.459 68.8252 161.843 68.8252 167.254V278.095L160 120.634Z" fill="%23F0F0F0" opacity=".92"/></svg>');
  background-repeat: no-repeat;
  /* только излом знака у кромки — не заходит на колонку контактов */
  background-position: right -90px center;
  background-size: auto 150%;
  color: var(--white);
  padding: 56px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col a { color: var(--white); text-decoration: none; opacity: 0.85; }
.footer-col a:hover { opacity: 1; }
.footer-heading { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; opacity: .6; }
.footer-phone { font-weight: 700; font-size: 20px; }
/* Почта в футере: клик — копирует адрес, показывает «Скопировано» */
.footer-email {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; margin: 0; font: inherit;
  color: var(--white); opacity: 0.85; cursor: pointer;
}
.footer-email:hover { opacity: 1; }
.footer-email .fe-label { border-bottom: 1px dashed rgba(255, 255, 255, 0.45); padding-bottom: 1px; }
.footer-email:hover .fe-label { border-bottom-color: rgba(255, 255, 255, 0.75); }
.footer-email svg { width: 15px; height: 15px; flex: 0 0 auto; }
.footer-email .fe-check, .footer-email .fe-done { display: none; }
.footer-email .fe-done { font-size: 12.5px; font-weight: 600; color: #7fe3b6; opacity: 1; }
.footer-email.is-copied .fe-copy { display: none; }
.footer-email.is-copied .fe-check { display: inline; color: #7fe3b6; }
.footer-email.is-copied .fe-done { display: inline; }
.footer-email.is-copied .fe-label { border-bottom-color: transparent; }
/* П6: соцсети в футере */
.footer-socials { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
/* текстовая ссылка «Телеграм-канал» перед иконкой — не круглая кнопка */
.footer-socials a.footer-tg-label {
  width: auto; height: auto; border-radius: 0; border: 0;
  display: inline; padding: 0; margin-right: 2px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.footer-socials a.footer-tg-label:hover { background: none; text-decoration: underline; }
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.footer-socials a:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.7;
}
.footer-bottom a { color: var(--white); }

/* иконка в карточке преимуществ */
.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 26px; height: 26px; }

/* ---------- FAQ-аккордеон ---------- */
.faq { max-width: 860px; }
/* П5: аккордеон + липкая карточка помощи в правой трети */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.faq-help {
  position: sticky;
  top: 104px;
  background: var(--dark);
  background-image:
    radial-gradient(90% 150% at 88% -20%, rgba(6, 61, 131, 0.85), transparent 60%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.faq-help-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.faq-help-sub { font-size: 14px; opacity: 0.85; margin-bottom: 18px; }
.faq-help-phone {
  display: block;
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  margin-bottom: 16px;
}
.faq-help-tg { width: 100%; text-align: center; }
@media (max-width: 1040px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-help { position: static; }
}

.faq-item {
  background: var(--white);
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 18px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--text-muted); }

/* рубрика гида на карточке новостей */
.news-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- Микро-разряды при ховере карточек ---------- */
.card, .feature-card, .faq-item { position: relative; }
.eh-spark {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  /* свечение приглушено 3px→1px (выбор юзера 21.07, вариант В11 с борда молний) */
  filter: drop-shadow(0 0 1px currentColor);
  animation: eh-spark 0.7s ease-out forwards;
}
.eh-spark svg { width: 100%; height: 100%; display: block; }
@keyframes eh-spark {
  0% { opacity: 0; transform: translateY(5px) scale(0.4) rotate(var(--r, 0deg)); }
  30% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-16px) scale(1) rotate(var(--r, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { .eh-spark { display: none; } }

/* ---------- Лайтбокс ---------- */
.eh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(2, 12, 27, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
}
.eh-lightbox.is-open { display: flex; }
.eh-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.eh-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 0 0 3px;
}
.eh-lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- Соцсети ---------- */
/* вертикальный список сетей, у каждой — QR (скрыт на тач-устройствах) */
.socials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 16px;
  text-decoration: none;
  color: var(--text);
}
.social-qr {
  margin-left: auto;
  background: var(--white);
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  padding: 7px;
  line-height: 0;
  flex: none;
}
.social-qr img { width: 72px; height: 72px; display: block; }
@media (hover: none), (max-width: 700px) {
  .social-qr { display: none; } /* на телефоне QR бесполезен — клик ведёт напрямую */
  .social-arrow { margin-left: auto; }
}
.social-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.social-icon svg { width: 24px; height: 24px; }
.social-icon--telegram { background: #2aabee; }
.social-icon--vk { background: #0077ff; }
.social-icon--dzen { background: #1f1f1f; }
.social-icon--youtube { background: #ff0033; }
.social-icon--rutube { background: #100943; }
.social-meta b { display: block; font-size: 15px; }
.social-meta small { color: var(--text-muted); font-size: 12px; }
.social-arrow { margin-left: 18px; color: var(--blue); font-weight: 700; }

/* ---------- Калькулятор выгоды ---------- */
.sc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin-top: 8px;
}
.sc-fuels { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
/* фон калькулятора — Ф31 «Спидометр» через класс .bg-speedometer в шаблоне */
/* калькулятор на белом (правка 06.07): чипы топлива — базовые тёмные */
.savings-calc { background: var(--white); }
.sc-slider-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; opacity: .9; }
.sc-km {
  width: 100%;
  accent-color: #4d94e8;
  height: 26px;
  cursor: pointer;
}
.sc-big {
  /* <output> инлайновый по умолчанию — возвращаем блочное поведение прежнего <p> */
  display: block;
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  margin: 16px 0 4px;
}
/* «Предохранитель» ширины: хвост « ₽/мес» пришпилен справа, гуляет только
   невидимый отступ слева перед «−». 12ch влезает худший «− 99 999 ₽/мес». */
.sc-save {
  display: inline-block;
  min-width: 12ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.sc-save-year { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.sc-km-out { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sc-note { font-size: 13.5px; opacity: .8; margin: 0; }
.sc-bars { display: flex; flex-direction: column; gap: 14px; }
.sc-row-lab { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; }
.sc-row-lab b { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.sc-row-save { color: #1F5F4A; font-weight: 700; margin-left: 6px; }
.sc-bar { height: 14px; border-radius: 7px; background: #e9edf3; overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 7px; transition: width .25s; }
.sc-bar i.fuel { background: #b6543f; }
.sc-bar i.ev { background: #2e9e5b; }
.sc-fine { font-size: 12px; color: var(--text-muted); margin: 26px 0 0; max-width: 720px; }
.sc-fine a { color: inherit; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero-inner, .hub-hero-inner, .ti, .contact-inner, .sc-grid { grid-template-columns: 1fr; }
  /* Б2: правило .hero--video .hero-inner специфичнее — сбрасываем его явно,
     иначе видео остаётся в узкой колонке и вылезает за правый край */
  .hero--video .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .ti-reversed .ti-text { order: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  /* Б1: на мобильных футер — сплошная тёмно-синяя заливка, без молнии Ф250
     (белый знак наползал в центр и глушил ссылки) */
  .site-footer { background-image: none; }
  .header-support { display: none; }
  /* на мобиле шапка не конденсируется (высота фикс — выпадающее меню открывается от top:84px) */
  .site-header.scrolled .header-inner { height: 84px; }
  .site-header.scrolled .logo img { height: 60px; }
  .burger { display: flex; margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open { display: flex; }
  /* «Развитие сети»: на мобиле фильтры переносятся под заголовок — отдаём зазор
     не между заголовком и чипами (32px от .section-title), а под чипами перед карточками */
  #hubs .section-title { margin-bottom: 12px; }
  #hubs .hubs-filter { margin-bottom: 26px; }
  /* мобильная панель: группа «Медиа» с подпунктами + телефон белой кнопкой */
  .nav-media-link { display: none; }
  .nav-media-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
  }
  .nav-media-group .nav-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f95b5;
    opacity: 1;
  }
  .main-nav .nav-phone {
    display: block;
    margin-top: 6px;
    text-align: center;
    background: var(--white);
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-sm);
    padding: 13px;
    opacity: 1;
  }
  /* строка поддержки под кнопкой телефона: подпись + иконки MAX/TG */
  .main-nav .nav-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .section { padding: 44px 0; }
}

/* ==================================================================
   Раунд «И1–И6 + видео»: живой тариф, панель действий, удобства,
   калькулятор парка, веха сети, кино-обвязка хиро-видео (В1+В2) */

/* --- И1 «Живой тариф»: пилюля с пульсирующей точкой --- */
.live-tariff {
  /* по дизайну кнопки «Найти хаб»: чернильная плита, radius-sm (правка 08.07) */
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  background: var(--dark);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}
.live-tariff[hidden] { display: none; }
.lt-dot { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; flex-shrink: 0; }
.live-tariff.is-on .lt-dot {
  box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.5);
  animation: lt-pulse 1.8s infinite;
}
.live-tariff.is-wait .lt-dot { background: #8fb8f2; }
@keyframes lt-pulse {
  70% { box-shadow: 0 0 0 8px rgba(57, 217, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 217, 138, 0); }
}
/* цена — хвоя, осветлённая для тёмного фона (правка юзера 08.07) */
.lt-price { color: #7cc7a1; font-weight: 700; white-space: nowrap; }
.lt-count { opacity: 0.72; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-text .live-tariff { display: flex; width: max-content; max-width: 100%; margin-top: 18px; }
.hub-live { margin: -6px 0 18px; }
/* мобила: ссылка «Расписание…» дублирует живой бейдж (оба ведут на /tarify/) —
   прячем ссылку, когда бейдж показан; отрицательный отступ бейджа снимаем,
   иначе он наезжает на перенесённую строку (скрин юзера 21.07) */
@media (max-width: 700px) {
  .hub-live { margin: 10px 0 18px; }
  .section-head:has(+ .hub-live .live-tariff:not([hidden])) .section-more { display: none; }
}
@media (prefers-reduced-motion: reduce) { .live-tariff.is-on .lt-dot { animation: none; } }

/* --- И3 бейджи удобств: пилюли в тёмном титуле хаба + иконки на карточках --- */
.hub-amenities {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}
.hub-amenities li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}
.hub-amenities .icon { width: 17px; height: 17px; opacity: 0.85; }
.hub-card-amen {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #eef2f7;
  color: var(--blue);
  flex-wrap: wrap;
  list-style: none;
}
.hub-card-amen .hca-i { display: inline-flex; position: relative; }
.hca-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hub-card-amen .icon { width: 18px; height: 18px; }
.hca-more { font-size: 12px; color: var(--text-muted); font-weight: 600; }
/* быстрый CSS-тултип вместо нативного title (тот всплывает через ~1–2 с) */
.hca-i::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 6;
}
.hca-i::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 6;
}
.hca-i:hover::after, .hca-i:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hca-i:hover::before, .hca-i:focus-visible::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hca-i::after { transition: opacity 0.12s ease; transform: translateX(-50%); }
}

/* --- И2 панель действий на страницах хабов (только мобила) --- */
.hub-actionbar { display: none; }
@media (max-width: 760px) {
  .hub-actionbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    display: flex;
    background: rgba(2, 20, 43, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .hub-actionbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 12px;
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
  }
  .hub-actionbar a + a { border-left: 1px solid rgba(255, 255, 255, 0.1); }
  .hub-actionbar svg { width: 18px; height: 18px; opacity: 0.9; }
  /* контент и куки-бар не должны прятаться под панелью */
  body.page-hub { padding-bottom: 64px; }
  body.page-hub .cookie-bar { bottom: 66px; }
}

/* --- И5 калькулятор парка (B2B), светлый как все калькуляторы --- */
.fleet-calc .fc-intro { color: var(--text-muted); max-width: 640px; margin: 0 0 22px; }
.fc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  padding: 28px;
}
.fc-row { display: block; margin-bottom: 22px; cursor: pointer; }
.fc-lab {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.fc-lab b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-controls input[type="range"] { width: 100%; accent-color: var(--blue); }
.fc-note { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.fc-payoff {
  display: block;
  background: linear-gradient(180deg, #edf5f0, #e3efe8);
  border: 1px solid #cfe0d6;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: #3d5a4d;
}
.fc-payoff span { display: block; font-size: 13px; line-height: 1.45; }
.fc-payoff b {
  display: block;
  font-size: clamp(20px, 1.9vw, 26px);
  color: #1F5F4A;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.fc-payoff small { display: block; font-size: 12.5px; margin-top: 5px; color: #56705f; }
.fc-alt { font-size: 14px; color: var(--text-muted); margin: 14px 0 18px; }
.fc-alt b { font-variant-numeric: tabular-nums; color: var(--text); }
.fc-cta { width: 100%; }
@media (max-width: 760px) {
  .fc-grid { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
}

/* --- И6 «Веха сети»: счётчик + шкала до следующей отметки --- */
.milestone-section {
  background: var(--dark);
  color: var(--white);
  padding: 26px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-image: linear-gradient(115deg,
    transparent 0 30%, rgba(18, 65, 122, 0.30) 30% 42%,
    transparent 42% 78%, rgba(15, 58, 110, 0.22) 78% 86%, transparent 86%);
}
.mile-value { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mile-num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.mile-label { font-size: 15px; opacity: 0.8; }
.mile-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  margin: 18px 0 10px;
}
.mile-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #0d5ac2, #5b97e0);
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mile-bolt {
  position: absolute;
  left: 0; top: 50%;
  width: 17px; height: 17px;
  transform: translate(-50%, -50%);
  fill: var(--amber, #F2B705);
  filter: drop-shadow(0 0 7px rgba(242, 183, 5, 0.75));
  transition: left 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mile-sub { margin: 0; font-size: 13px; opacity: 0.72; }
.mile-sub b { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mile-fill, .mile-bolt { transition: none; } }

/* --- В1 амбиент-свечение за видео + В2 кино-плашка ---
   hv-frame клипует скруглением плашку/прогресс; свечение — вне рамки */
.hero-media::before {
  content: "";
  position: absolute;
  inset: -6% -10% -12%;
  background:
    radial-gradient(58% 55% at 50% 62%, rgba(38, 99, 196, 0.45), transparent 70%),
    radial-gradient(38% 40% at 74% 22%, rgba(242, 183, 5, 0.16), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
}
.hv-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
.hv-frame .hero-video { border-radius: 0; }
.hv-plate {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 14px;
  background: linear-gradient(0deg, rgba(2, 10, 24, 0.78), rgba(2, 10, 24, 0.28) 70%, transparent);
  color: var(--white);
  font-size: 13px;
}
.hv-bolt {
  width: 14px; height: 14px;
  fill: var(--white);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.45));
}
.hv-label {
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-time { margin-left: auto; font-variant-numeric: tabular-nums; opacity: 0.85; flex-shrink: 0; }
.hv-time[hidden] { display: none; }
.hv-plate .hero-video-fs {
  position: static;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.hv-plate .hero-video-fs:hover { background: rgba(255, 255, 255, 0.25); }
/* кнопка звука — близнец кнопки фуллскрина; иконка меняется классом is-on */
.hv-plate .hero-video-audio {
  position: static;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hv-plate .hero-video-audio:hover { background: rgba(255, 255, 255, 0.25); }
.hero-video-audio .ico-on { display: none; }
.hero-video-audio.is-on .ico-on { display: block; }
.hero-video-audio.is-on .ico-off { display: none; }
.hero-video-audio.is-on { background: rgba(255, 255, 255, 0.28); }
/* Дорожка перемотки лежит поверх плашки, поэтому у плашки снизу отступ
   в её высоту — иначе полоса откусывала бы низ кнопок звука и фуллскрина */
.hv-seek {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  z-index: 3;
  cursor: pointer;
  touch-action: none; /* тянем полосу, а не скроллим страницу */
}
.hv-seek::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.24);
}
.hv-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  background: var(--white);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}
.hv-seek:hover::before, .hv-seek:hover .hv-progress,
.hv-seek:focus-visible::before, .hv-seek:focus-visible .hv-progress { height: 5px; }
.hv-seek:focus-visible { outline: 2px solid var(--white); outline-offset: -3px; }
@media (max-width: 760px) {
  .hero-media::before { inset: -4% -6% -8%; filter: blur(18px); }
}

/* на /tarify/ «живой тариф» встаёт третьим чипом в ряд день/ночь —
   тот же вид, что .hh-time (правка юзера 08.07); цену не дублируем */
.hh-times .live-tariff {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}
.hh-times .lt-count { font-weight: 400; }
/* цифра внутри жирной строки плашки наследует её размер/цвет,
   а не 13px от .fc-payoff span */
.fc-payoff b .fc-month { display: inline; font-size: inherit; line-height: inherit; color: inherit; }
/* бейдж-ссылка: без подчёркивания, лёгкий отклик на ховер (клик → /tarify/) */
.live-tariff { text-decoration: none; }
.live-tariff[href]:hover { border-color: rgba(255, 255, 255, 0.32); transform: translateY(-1px); }
.live-tariff { transition: border-color 0.2s, transform 0.15s; }

/* ---------- Карта сети на MapLibre (/elektrohaby/) ---------- */
.ehm-pin {
  width: 40px; height: 48px; cursor: pointer;
  --plate: #02142B; --bolt: #ffffff;
  filter: drop-shadow(0 3px 6px rgba(2, 20, 43, 0.4));
  transition: transform 0.15s;
}
.ehm-pin:hover { transform: scale(1.08); }
.ehm-pin.is-soon { --plate: #F2B705; --bolt: #02142B; }
/* выбранный пин — фирменный тёмно-синий + чуть крупнее (правка юзера 08.07) */
.ehm-pin.is-selected { --plate: #02142B; --bolt: #ffffff; transform: scale(1.14); }
.ehm-pin.is-selected:hover { transform: scale(1.14); }
.ehm-dot {
  width: 20px; height: 20px; cursor: pointer;
  --plate: #063D83; --bolt: #ffffff;
  filter: drop-shadow(0 1px 3px rgba(2, 20, 43, 0.4));
  transition: transform 0.15s;
}
.ehm-dot:hover { transform: scale(1.25); }
.ehm-dot.is-selected { --plate: #02142B; transform: scale(1.3); }
.ehm-dot.is-selected:hover { transform: scale(1.3); }
.ehm-pin svg, .ehm-dot svg { display: block; width: 100%; height: 100%; }

.maplibregl-popup-content {
  font-family: var(--font-body);
  border-radius: 14px;
  padding: 16px 18px 14px;
  /* ширина не зависит от длины названия: у коротких («Южный») кнопки раньше
     переносились в две строки, у длинных — нет. Теперь карточка одинаковая */
  min-width: 320px;
  max-width: calc(100vw - 64px);
  box-shadow: 0 14px 40px rgba(2, 20, 43, 0.35);
}
.maplibregl-popup-close-button { font-size: 18px; padding: 4px 9px; color: var(--text-muted); }
.ehm-title { font-weight: 700; font-size: 14.5px; color: var(--text); margin: 0 22px 5px 0; }
.ehm-net { font-size: 11px; color: var(--text-muted); margin: 0 0 6px; font-weight: 600; letter-spacing: 0.03em; }
.ehm-rate { font-size: 12.5px; color: var(--text-muted); margin: 0 0 7px; }
.ehm-rate span { color: var(--amber, #F2B705); }
.ehm-rate b { color: #8a6d00; }
.ehm-chip {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 999px; padding: 3px 9px; margin-bottom: 8px;
  background: #e8f1ec; color: #1F5F4A;
}
.ehm-chip.is-soon { background: #fdf1dc; color: #9a6b15; }
.ehm-meta { font-size: 12px; color: var(--text-muted); margin: 0 0 4px; }
.ehm-happy { font-size: 12px; color: #1F5F4A; margin: 0 0 10px; font-weight: 600; }
.ehm-links { display: flex; gap: 8px; margin-top: 8px; }
.ehm-links a {
  flex: 1; text-align: center; text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 600; border-radius: 9px; padding: 9px 10px;
}
.ehm-links a.pg { background: var(--dark); color: var(--white); }
.ehm-links a.ya { border: 1px solid #d4dce8; color: var(--blue); }

/* мобила: попап не шире экрана — min-width уступает, ширину держит max-width */
@media (max-width: 420px) {
  .maplibregl-popup-content { min-width: 0; }
}

/* ---------- №16: якорная навигация страницы хаба ---------- */
.hub-anchors {
  position: sticky;
  top: 60px; /* под СЖАТОЙ шапкой (84→60 при скролле) — липнет без зазора; на мобиле 84 (см. медиа) */
  z-index: 60;
  /* тёмно-синяя полоска (правка юзера 28.07): ритм светлый хиро → тёмное меню → белые тарифы */
  background: rgba(2, 20, 43, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hub-anchors-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hub-anchors-in::-webkit-scrollbar { display: none; }
.hub-anchors a {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.hub-anchors a.is-active { color: var(--white); border-bottom-color: #1F5F4A; } /* хвоя */
.hub-anchors a:hover { color: var(--white); }
#obzor, #tarify, #zagruzka, #route, #contact, #schastlivye-chasy, #loyalty,
#arenda, #reklama, #fleet-calc { scroll-margin-top: 110px; }
#foto { scroll-margin-top: 140px; }

/* ---------- Загруженность по часам (данные сети) ---------- */
.hours-chart { padding: 22px 24px 18px; }
/* --- гибрид: ритм успешных зарядок + занятость коннекторов --- */
.hours-plot { position: relative; height: 170px; padding-top: 14px; }
.hours-bars { position: absolute; left: 0; right: 0; top: 14px; bottom: 22px; display: flex; align-items: flex-end; gap: 3px; }
.hours-bars .hb {
  position: relative;
  flex: 1;
  height: var(--v);
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: #1F5F4A;
  transition: background .12s;
}
.hours-bars .hb:hover { background: #2c7d63; }
/* пунктир «запас до пропускной способности» у самого верха */
.hours-ceil { position: absolute; left: 0; right: 0; top: 12px; border-top: 1.5px dashed #c3ccd6; }
.hours-ceil i { position: absolute; right: 0; top: -8px; font-size: 10px; font-style: normal; color: #9aa8bc; background: var(--white); padding: 0 4px; }
.hours-axis {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
/* CSS-подсказка над столбиком */
.hb-tip {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-6px);
  margin-bottom: 2px; padding: 5px 9px; border-radius: 7px;
  background: #02142B; color: #fff; font-size: 11.5px; line-height: 1.3;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s;
  z-index: 4; box-shadow: 0 4px 14px rgba(2, 20, 43, .22);
  font-variant-numeric: tabular-nums;
}
.hours-bars .hb:hover .hb-tip { opacity: 1; }
/* крайние столбики: подсказку не срезаем за край карточки */
.hours-bars .hb:nth-child(-n+3) .hb-tip { left: 0; transform: translateX(0) translateY(-6px); }
.hours-bars .hb:nth-last-child(-n+3) .hb-tip { left: auto; right: 0; transform: translateX(0) translateY(-6px); }

.hours-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 18px; }
.hours-occ { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; }
.hours-occ b { font-size: 30px; font-weight: 800; color: #1F5F4A; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.hours-occ span { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.hours-note { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.hours-note .hh-note { color: #1F5F4A; font-weight: 600; }
.hours-note small { display: block; margin-top: 3px; font-size: 12px; color: #9aa8bc; }
@media (max-width: 560px) {
  .hb-tip { font-size: 10.5px; padding: 4px 7px; }
  .hours-occ b { font-size: 26px; }
}

/* ---------- №2: калькулятор стоимости зарядки ---------- */
.charge-calc .cc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; padding: 26px 28px; }
.cc-lab { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 700; color: var(--dark); }
.cc-lab:first-child { margin-top: 0; }
.cc-lab-range { display: flex; justify-content: space-between; align-items: baseline; }
.cc-lab-range b { font-size: 14px; color: var(--blue); font-variant-numeric: tabular-nums; }
.cc-car, .cc-power {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  border: 1.5px solid #cdd8e6;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--dark);
}
.cc-car:focus, .cc-power:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6, 61, 131, .12); }

/* Комбобокс модели: аккуратный дропдаун, открывается по клику даже с вписанной моделью */
.cc-combo { position: relative; }
.cc-combo .cc-car { padding-right: 42px; }
.cc-combo-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: #6b7c93; cursor: pointer;
}
.cc-combo-toggle svg { width: 18px; height: 18px; transition: transform .18s ease; }
.cc-combo[data-open="true"] .cc-combo-toggle svg { transform: rotate(180deg); }
.cc-list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #dbe4ef; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(2, 20, 43, .16); max-height: 264px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.cc-combo[data-open="true"] .cc-list { opacity: 1; visibility: visible; transform: translateY(0); }
.cc-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--dark);
}
.cc-list li:hover, .cc-list li.is-hi { background: #eef4fb; }
.cc-list li.is-selected { background: var(--blue); color: #fff; }
.cc-opt-kwh { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-list li.is-selected .cc-opt-kwh { color: rgba(255, 255, 255, .8); }
.cc-list .cc-empty { display: block; padding: 12px; text-align: center; font-size: 13px; color: #9aa8bc; cursor: default; }
.cc-list .cc-empty:hover { background: none; }
.cc-carinfo { margin: 7px 0 0; font-size: 12.5px; color: var(--text-muted); min-height: 1.2em; }

/* Стилизованный select мощности — свой шеврон вместо уродливой системной стрелки */
.cc-select { position: relative; }
.cc-power { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 42px; cursor: pointer; }
.cc-select-arrow { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; transform: translateY(-50%); color: #6b7c93; pointer-events: none; }

/* Двойной ползунок «заряд от–до» */
.cc-track--dual { position: relative; height: 34px; margin-top: 6px; }
.cc-rail { position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); background: #dbe4ef; border-radius: 999px; }
.cc-fill { position: absolute; top: 50%; height: 6px; transform: translateY(-50%); background: var(--blue); border-radius: 999px; pointer-events: none; }
.cc-track--dual input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 34px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.cc-track--dual input[type="range"]::-webkit-slider-runnable-track { background: transparent; border: 0; }
.cc-track--dual input[type="range"]::-moz-range-track { background: transparent; border: 0; }
.cc-track--dual input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; border: 2.5px solid var(--blue);
  box-shadow: 0 1px 5px rgba(2, 20, 43, .28); cursor: grab;
}
.cc-track--dual input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }
.cc-track--dual input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--blue); box-shadow: 0 1px 5px rgba(2, 20, 43, .28); cursor: grab;
}
.cc-track--dual input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(6, 61, 131, .22); }
.cc-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: #9aa8bc; margin-top: 6px; }
.cc-scale-green { color: #1F5F4A; font-weight: 600; }
.cc-result { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #e5eaf1; padding-left: 30px; }
.cc-big { display: block; margin: 0; font-size: 30px; font-weight: 800; color: var(--dark); letter-spacing: -.01em; }
.cc-happy { margin: 10px 0 0; }
.cc-happy .hh { display: inline-block; background: #e7f1ec; color: #1F5F4A; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.cc-happy .hh b { font-weight: 800; }
.cc-meta { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.cc-fine { margin: 14px 0 0; font-size: 12.5px; color: #9aa8bc; max-width: 72ch; }
@media (max-width: 820px) {
  .charge-calc .cc-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px 18px; }
  .cc-result { border-left: 0; border-top: 1px solid #e5eaf1; padding: 18px 0 0; }
  .cc-big { font-size: 24px; }
}

/* ---------- Трафик в карточках аренды (/b2b/) ---------- */
.room-traffic {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1F5F4A;
  background: #e7f1ec;
  border-radius: 999px;
  padding: 4px 12px;
}
.room-card .room-chip { margin-top: 10px; margin-left: 6px; }

/* ---------- живой тариф в попапе карты ---------- */
.ehm-happy.is-on b { color: #1F5F4A; }

/* ---------- B2B: реклама на хабах (секция «Экран-герой») ---------- */
.brands-section { overflow: hidden; }
.brands-inner { display: flex; align-items: center; gap: 48px; }
.brands-text { flex: 1.25; min-width: 0; }
.brands-lead { max-width: 58ch; margin: -6px 0 22px; font-size: 16px; line-height: 1.65; color: #b8c4d8; }
.brands-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.brands-chips li {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e3eaf4;
}
.brands-chips li:first-child { background: var(--white); color: var(--dark); border-color: var(--white); font-weight: 700; }
.brands-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.brands-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.brands-btn-tg { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); }
.brands-btn-tg:hover { background: rgba(255, 255, 255, 0.08); }
.brands-totem { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.brands-screen {
  width: 240px;
  aspect-ratio: 9 / 14;
  border-radius: 14px;
  border: 6px solid #0a1322;
  /* фон как у блока счастливых часов: тёмный + веер лучей Ф31 */
  background-color: var(--dark);
  background-image: repeating-conic-gradient(from 285deg at -4% 106%, rgba(15, 58, 110, 0.55) 0 1.6deg, transparent 1.6deg 11deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 0 44px rgba(110, 163, 236, 0.4), inset 0 0 28px rgba(0, 0, 0, 0.35);
}
.brands-screen svg { height: 64px; width: auto; }
.brands-screen span { font-size: 12.5px; line-height: 1.55; color: #c9d6ea; }
.brands-leg { width: 14px; height: 40px; background: #0a1322; border-radius: 0 0 5px 5px; }
@media (max-width: 900px) {
  .brands-inner { flex-direction: column; align-items: flex-start; }
  .brands-totem { align-self: center; }
  .brands-screen { width: 200px; }
}

/* ---------- страница «Реклама на хабах»: матрица + карточки ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.brand-hubs-intro { max-width: 72ch; margin: -8px 0 26px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.brand-matrix-wrap { padding: 0; overflow-x: auto; }
.brand-matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.brand-matrix thead th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7b8aa0;
  background: #f5f7fa;
  padding: 12px 18px;
  text-align: left;
  font-weight: 700;
}
.brand-matrix tbody th,
.brand-matrix tbody td { padding: 14px 18px; border-top: 1px solid #eef1f6; text-align: left; }
.brand-matrix tbody th { font-weight: 700; }
.brand-matrix tbody th i { font-style: normal; font-weight: 600; font-size: 13px; color: #7b8aa0; margin-left: 8px; }
.brand-matrix tbody th a { color: var(--blue); text-decoration: none; }
.brand-matrix tbody th a:hover { color: var(--blue-hover); }
.brand-matrix em { font-style: normal; font-weight: 800; color: #1F5F4A; }
.brand-matrix td > span { color: #b6c0cf; }
.brand-cards-title { margin-top: 44px; }
.brand-hub-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.brand-hub-card { padding: 22px 24px; display: block; color: inherit; text-decoration: none; }
a.brand-hub-card:hover .ahc-top b { color: var(--blue-hover); }
.ahc-top { display: flex; align-items: baseline; gap: 12px; }
.ahc-top b { font-size: 17px; font-weight: 800; color: var(--blue); }
.ahc-top span { font-size: 13px; color: var(--text-muted); }
.ahc-num { margin-top: 8px; font-size: 28px; font-weight: 800; color: #1F5F4A; font-variant-numeric: tabular-nums; }
.ahc-num i { font-style: normal; font-size: 14px; font-weight: 600; color: #7b8aa0; }
.ahc-fmt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ahc-fmt span { background: #e8f1ec; color: #1F5F4A; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; }
.ahc-fmt span.is-new { background: #1F5F4A; color: var(--white); }
.brand-cta { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--text-muted); }
.brand-cta .btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 760px) { .brand-hub-cards { grid-template-columns: 1fr; } }

/* ---------- плашка «Реклама на этом хабе» ---------- */
.brand-teaser-section { padding: 48px 0 64px; }
.brand-teaser { display: flex; align-items: center; gap: 20px; padding: 18px 24px; color: inherit; text-decoration: none; }
.brand-teaser-screen {
  flex: none;
  width: 86px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 4px solid #0a1322;
  background-color: var(--dark);
  background-image: repeating-conic-gradient(from 285deg at -4% 106%, rgba(15, 58, 110, 0.55) 0 1.6deg, transparent 1.6deg 11deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(110, 163, 236, 0.35);
}
/* фирменная молния по центру «экрана» */
.brand-teaser-screen svg { height: 26px; width: auto; flex: none; }
.brand-teaser-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-teaser-tx span { font-size: 15.5px; font-weight: 600; color: var(--dark); }
/* «Подробнее» — штатная кнопка btn btn-primary (цвета/ховер как у всех кнопок сайта);
   здесь только позиционирование в карточке */
.brand-teaser-go { margin-left: auto; white-space: nowrap; }
/* секция тёмная, но кнопка живёт на белой карточке — не инвертируем её,
   как .fleet-calc.section-dark .fc-cta */
.section-dark .brand-teaser .btn-primary { background: var(--dark); color: var(--white); }
.section-dark .brand-teaser .btn-primary:hover { background: #0c2747; }
@media (max-width: 640px) {
  .brand-teaser { flex-wrap: wrap; }
  .brand-teaser-go { margin-left: 0; }
}

/* ---------- кликабельные заголовки-оглавления (страница «Медиа») ---------- */
.title-link { color: inherit; text-decoration: none; }
.title-link .title-arrow { display: inline-block; transition: transform 0.15s ease; }
.title-link:hover { color: var(--blue-hover); }
.title-link:hover .title-arrow { transform: translateX(6px); }
/* на тёмных секциях (главная «Новости») — ховер светло-синим, видно на чернильном */
.section-dark .title-link:hover { color: #8fb8f2; }

/* ---------- B2B: лента преимуществ «В обоих вариантах» под офферами ---------- */
.offers-shared { margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 28px; }
.offers-shared-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7cc7a1;
  margin-bottom: 18px;
}
.offers-shared-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 32px; }
.oshared-item { display: flex; gap: 14px; align-items: flex-start; }
.oshared-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 199, 161, 0.14);
  color: #7cc7a1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oshared-ic svg { width: 22px; height: 22px; }
.oshared-tx b { display: block; font-size: 15.5px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.oshared-tx span { font-size: 13px; line-height: 1.5; color: #a9bad2; }
@media (max-width: 900px) { .offers-shared-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ПРАВИЛО РИТМА (13.07): лид-оглавление тёмным по белому сливается
   с первым блоком; дальше чередование светлый/тёмный.
   ============================================================ */
.page-lead {
  background: var(--white);
  background-image: repeating-conic-gradient(from 285deg at -4% 106%, rgba(6, 61, 131, 0.14) 0 1.6deg, transparent 1.6deg 11deg);
  padding: 34px 0 8px;
}
.page-lead .page-title { color: var(--dark); font-weight: 700; font-size: clamp(26px, 3.5vw, 42px); line-height: 1.2; }
.page-lead .page-intro { opacity: 1; color: var(--text-muted); }
.page-lead .page-intro--aside { border-left-color: #d2dae6; color: var(--text-muted); }
/* мобила, В1+В2 с борда лучей (выбор юзера 21.07): лид полной ширины попадал
   под веер Ф289 и терял читаемость — текст темнее + лучи-призраки */
@media (max-width: 700px) {
  .page-lead { background-image: repeating-conic-gradient(from 285deg at -4% 106%, rgba(6, 61, 131, 0.055) 0 1.6deg, transparent 1.6deg 11deg); }
  .page-lead .page-intro, .page-lead .page-intro--aside { color: var(--text); }
}
/* первый блок сразу под лидом — белый и без верхнего зазора: один цельный блок */
.page-lead + section:not(.section-dark),
.page-lead + .flex-body > section:first-child:not(.section-dark) {
  background: var(--white);
  padding-top: 18px;
  border-top: 0;
}

/* ---------- офферы на СВЕТЛОМ (перекрас из тёмного) ---------- */
.offers-section--light { background: var(--white); }
.offers-section--light .offers-shared { border-top-color: #e5eaf1; }
.offers-section--light .offers-shared-label { color: var(--green); }
.offers-section--light .oshared-ic { background: #e7f1ec; color: var(--green); }
.offers-section--light .oshared-tx b { color: var(--dark); }
.offers-section--light .oshared-tx span { color: var(--text-muted); }
.offers-section--light .offer-card { border: 1px solid #e5eaf1; box-shadow: 0 8px 26px rgba(2, 20, 43, 0.07); }

/* ---------- калькулятор парка на ТЁМНОМ (карточка внутри белая) ---------- */
.fleet-calc.section-dark .fc-intro { color: #b8c4d8; }
/* внутри белой карточки текст тёмный (иначе наследует белый от .section-dark) */
.fleet-calc.section-dark .fc-grid.card { color: var(--text); }
.fleet-calc.section-dark .fc-grid.card .fc-lab { color: var(--text); }
.fleet-calc.section-dark .fc-cta.btn-primary { background: var(--dark); color: var(--white); }
.fleet-calc.section-dark .fc-cta.btn-primary:hover { background: #0c2747; }

/* ---------- Кнопка-призрак (на тёмном фоне) ---------- */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }

/* ---------- Примечание под заголовком секции ---------- */
.section-note { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }
.section-dark .section-note { color: rgba(255, 255, 255, .65); }

/* ---------- CTA в шапке хаба (строится/планируется) ---------- */
.hub-hero-cta { margin: 18px 0 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hub-hero-cta-note { font-size: 13.5px; color: rgba(255, 255, 255, .72); max-width: 32ch; }
/* адрес в чипе «Адрес» — ссылка на карточку хаба в Яндекс.Картах */
.hub-facts dd a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, .42);
  transition: border-color .2s ease;
}
.hub-facts dd a:hover { border-bottom-color: var(--white); }
.page-hero--light .hub-hero-cta-note { color: var(--text-muted); }

/* на тёмном page-hero тёмная btn-primary сливается с фоном — делаем светлой */
.hub-hero-cta .btn-primary,
.error-actions .btn-primary { background: var(--white); color: var(--dark); }
.hub-hero-cta .btn-primary:hover,
.error-actions .btn-primary:hover { background: var(--light); }

/* ---------- Брендовая страница 404 ---------- */
.error-hero { text-align: center; }
.error-inner { max-width: 640px; margin: 0 auto; }
.error-code {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(56px, 12vw, 104px); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; color: var(--white); margin: 0 0 14px;
}
.error-bolt { width: .62em; height: .62em; color: var(--accent, #2E6FD9); flex: none; }
.error-lead { font-size: 17px; color: rgba(255, 255, 255, .82); margin: 0 auto 26px; max-width: 46ch; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-hubs { margin-top: 34px; }
.error-hubs-title {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); margin: 0 0 12px;
}
.error-hubs-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.error-hubs-list a {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--white); font-weight: 600; font-size: 14px; transition: background .18s;
}
.error-hubs-list a:hover { background: rgba(255, 255, 255, .16); }
.error-hub-city { color: rgba(255, 255, 255, .6); font-weight: 500; }

/* ---------- Гибрид В6 (28.07): светлая шапка страницы хаба ---------- */
/* Порядок: бейдж → H1 → адрес-плита → рейтинг → «Маршрут» → строки-линейки;
   фото-карусель справа ~48% на всю высоту колонки. Пилюли тёмно-синие,
   звезда #F2B705 — как в «Развитии сети» на главной. */
.hub-hero--light {
  background: var(--light);
  color: var(--dark);
  background-image: linear-gradient(115deg, transparent 0 38%, rgba(2, 20, 43, 0.04) 38% 66%, transparent 66%);
  padding: 40px 0 34px;
}
.hub-hero--light .page-title { color: var(--dark); font-size: clamp(26px, 2.6vw, 32px); }
.hub-hero--light .hub-hero-inner {
  grid-template-columns: 1.08fr 1fr;
  grid-template-areas: "head photo" "rows photo";
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 16px 40px;
  margin-bottom: 26px;
}
.hub-hero--light .hub-hero-text {
  grid-area: head;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.hub-hero--light .hub-hero-text .hub-status { margin-bottom: 0; }
.hub-hero--light .hub-hero-carousel { grid-area: photo; height: 100%; min-height: 340px; }
.hub-hero--light .hub-hero-carousel .hc-slide { height: 100%; object-fit: cover; }

/* адрес-плита: город впереди, одна строка, клик = копирование («Скопировано» ~1.7с) */
.hub-addr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #2e3a4c;
  line-height: 1.45;
  cursor: pointer;
  padding: 6px 10px;
  margin: -6px -10px;
  border-radius: 9px;
  transition: background 0.15s;
}
.hub-addr svg { width: 14px; height: 14px; flex: none; display: block; }
.hub-addr .ha-full, .hub-addr .ha-short { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-addr .ha-short { display: none; }
.hub-addr .ha-cp { margin-left: 4px; opacity: 0.4; transition: opacity 0.15s; }
.hub-addr:hover { background: rgba(2, 20, 43, 0.07); }
.hub-addr:hover .ha-cp { opacity: 1; }
/* «Скопировано» не резервирует место справа — строка ровная и без ховера */
.hub-addr .ha-ok {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: #1F5F4A;
  opacity: 0;
  transform: translateX(-4px);
  max-width: 0;
  overflow: hidden;
  margin-left: -8px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s, max-width 0.2s, margin-left 0.2s;
}
.hub-addr.is-copied .ha-ok { opacity: 1; transform: none; max-width: 150px; margin-left: 0; }

/* рейтинг и «Маршрут» — тёмно-синие пилюли одной высоты */
.hub-hero--light .hub-rating { margin: 0; }
.hub-hero--light .hub-rating-badge {
  background: var(--dark);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hub-rating-star { color: #F2B705; font-style: normal; }
.hub-hero--light .hub-rating a { color: #46536A; opacity: 1; }
.hub-hero--light .hub-rating > a { font-size: 13px; font-weight: 600; text-decoration-color: rgba(2, 20, 43, 0.35); }
.hub-hero--light .hub-rating > a:hover { text-decoration-color: rgba(2, 20, 43, 0.7); }
.hub-hero--light .hub-rating > span:not(.hub-rating-badge) { font-size: 13px; font-weight: 600; color: #46536A; }
.hub-route {
  display: inline-flex;
  align-items: center;
  background: var(--dark);
  color: var(--white);
  border-radius: 8px;
  padding: 3px 14px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s;
}
.hub-route:hover { background: var(--blue); color: var(--white); }
.hub-hero--light .hub-hero-cta { margin: 0; }
.hub-hero--light .hub-hero-cta .btn-primary { background: var(--dark); color: var(--white); }
.hub-hero--light .hub-hero-cta .btn-primary:hover { background: #0c2747; }

/* строки-линейки фактов одного размера (иерархия отменена юзером) */
.hub-rows { grid-area: rows; width: 100%; align-self: start; }
.hub-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(2, 20, 43, 0.14);
}
.hub-row span { font-size: 12.5px; font-weight: 600; color: #63718a; }
.hub-row b { font-size: 15.5px; font-weight: 700; color: var(--dark); text-align: right; font-variant-numeric: tabular-nums; }

/* чипы удобств и вступление на светлом */
.hub-hero--light .hub-amenities { margin: 0; }
.hub-hero--light .hub-amenities li { border-color: rgba(2, 20, 43, 0.22); color: #3c4c63; background: none; }
.hub-hero--light .hub-amenities .icon { opacity: 0.8; }
.hub-hero--light .hub-intro { margin: 18px 0 0; opacity: 1; color: var(--text-muted); max-width: 84ch; font-size: 15px; }
.hub-hero--light .hub-hero-cta-note { color: var(--text-muted); }

@media (max-width: 900px) {
  /* мобила: имя → адрес (СПБ/МСК) → рейтинг → «Маршрут» → ФОТО → строки */
  .hub-hero--light .hub-hero-inner {
    grid-template-areas: "head" "photo" "rows";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }
  .hub-hero--light .hub-hero-carousel { height: auto; min-height: 0; }
  .hub-hero--light .hub-hero-carousel .hc-slide { height: auto; }
  .hub-addr .ha-full { display: none; }
  .hub-addr .ha-short { display: inline-block; }
  .hub-addr .ha-cp { opacity: 0.7; } /* на таче значок виден всегда */
  /* на мобиле шапка при скролле остаётся 84px — якоря и отступы под неё */
  .hub-anchors { top: 84px; }
  #obzor, #tarify, #zagruzka, #route, #contact { scroll-margin-top: 134px; }
}

/* ---------- «Сервис и комфорт»: вариант А «Тёплое окно» (28.07, борд 8c03f105) ---------- */
/* Вечерний лаунж фоном, один источник света; текст-пара слева в темноте,
   группы удобств — в «световом подвале» кадра. */
.svc-window { position: relative; overflow: hidden; padding: 72px 0 44px; }
.svc-bg { position: absolute; inset: 0; background-size: cover; background-position: center 62%; }
.svc-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(2, 10, 24, .93) 0 30%, rgba(2, 10, 24, .55) 52%, rgba(2, 10, 24, .18) 74%, rgba(2, 10, 24, .45)),
    linear-gradient(0deg, rgba(2, 10, 24, .94) 0 24%, transparent 46%);
}
.svc-win-in { position: relative; }
.svc-win-tx { max-width: 620px; }
.svc-kick { display: block; font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.svc-pair { font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.14; color: var(--white); margin: 0; }
.svc-sub { font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 58ch; margin-top: 14px; }
.svc-sub p { margin: 0; }
.svc-sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); transition: text-decoration-color .2s; }
.svc-sub a:hover { text-decoration-color: #fff; }
.svc-cta { display: inline-flex; align-items: center; background: var(--white); color: var(--dark); border-radius: 10px; padding: 11px 22px; font-size: 14px; font-weight: 700; text-decoration: none; margin-top: 20px; transition: background .2s; }
.svc-cta:hover { background: var(--light); }
.svc-win-foot { display: grid; grid-template-columns: 2fr 1.1fr; gap: 26px; margin-top: 110px; }
.svc-win-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin: 0 0 8px; }
.svc-win-chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* чипы на фото — чуть плотнее фон + блюр, чтобы читались на ярких участках кадра */
.svc-window .svc-am { background: rgba(2, 20, 43, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* мобильный кадр включается только на узких экранах и перекрывает десктопный */
.svc-bg--mob { display: none; }
@media (max-width: 900px) {
  .svc-window { padding: 56px 0 36px; }
  /* на мобиле кадр кропится ПО ГОРИЗОНТАЛИ (высота вписывается ровно), поэтому
     вертикаль тут ни на что не влияет — двигаем по X, чтобы фигура в окне
     лаунжа попала в свободную правую часть, а не под чипы.
     Если задан вертикальный кадр, всё это неважно — он кропится сам под рамку */
  .svc-bg { background-position: 47% 62%; }
  /* кадр скомпонован симметрично вокруг окна, поэтому берём центр: окно с
     фигурой держит середину рамки, ламели обрамляют его с двух сторон */
  .svc-bg--mob { display: block; background-position: center; }
  .svc-win-foot { grid-template-columns: 1fr; margin-top: 64px; gap: 18px; }
}

/* --- TR1 «Табло»: /tarify/ ---------------------------------------------------
   Три карточки прайса и полоса счастливых часов слиты в одно тёмное табло-плакат
   на дуотоне ночной вывески. Активная строка — крупнее остальных, у неё золотой
   бегунок слева (единственное золото экрана). Цены — табличными цифрами. */
/* правка юзера 30.07: табло переведено на БЕЛЫЙ — фото-дуотон снят, цены все
   одного кегля, бегунок активной строки синий (золото на белом не держит вес) */
.board {
  position: relative;
  background: var(--white);
  color: var(--dark);
  padding: 26px 0 56px;
}
.board-in { position: relative; }
.board-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(2, 20, 43, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.board-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7cc7a1;
  flex: none;
}
.board-live-dot.is-wait { background: #8fb8f2; }
.board-rows { display: flex; flex-direction: column; }
.board-row {
  position: relative;
  display: grid;
  /* колонки в процентах — одинаковы во всех строках, цены на одной левой оси */
  grid-template-columns: 26% minmax(0, 34%) 1fr;
  /* правка юзера 30.07: подпись тарифа, цена и пояснение — по вертикальному центру
     строки; у строк с двухстрочным пояснением базовая линия давала перекос */
  align-items: center;
  gap: 12px 26px;
  padding: 22px 0 20px;
  border-top: 1px solid rgba(2, 20, 43, 0.14);
  color: var(--dark);
  text-decoration: none;
}
.board-rows .board-row:last-child { border-bottom: 1px solid rgba(2, 20, 43, 0.14); }
/* засечка на конце линейки — как у остальных линеек сайта */
.board-row::after {
  content: "";
  position: absolute;
  right: 0;
  top: -1px;
  width: 1px;
  height: 6px;
  background: rgba(2, 20, 43, 0.28);
}
.board-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #63707f;
}
/* правка юзера 30.07: все цены одного кегля — вровень с заголовками секций */
.board-price {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* цвет цены закреплён за тарифом: лояльность синяя, счастливые часы хвойные */
.board-row--loyalty .board-price { color: var(--blue); }
.board-row--happy .board-price { color: #1F5F4A; }
.board-note { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
/* подпись внутри строки-ссылки: обычная серая, как пояснения других строк */
.board-key { color: inherit; font-weight: 400; text-decoration: none; }
/* ховер подсвечивает НАЗВАНИЕ тарифа его же цветом, цена не меняется */
a.board-row:hover { background: #FAFBFD; }
.board-row--loyalty:hover .board-name { color: var(--blue); }
.board-row--happy:hover .board-name { color: #1F5F4A; }
.board-name { transition: color 0.15s; }
/* заголовок расписания — тем же кеглем, что H1 «Тарифы» */
.board-sched {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin: 34px 0 16px;
}
.board-when { display: flex; gap: 26px; flex-wrap: wrap; margin: 0 0 20px; font-size: 17px; font-weight: 600; }
.board-when .hh-sun, .board-when .hh-moon { font-size: 19px; }
/* чипы и сноска на белом: чип получает бордер вместо тени-на-тёмном,
   ссылки сноски — штатный синий, а не осветлённый для чернильного фона */
.board-hubs { margin-top: 4px; }
.board .hh-chip { border: 1px solid rgba(2, 20, 43, 0.14); }
.board .hh-chip:hover { box-shadow: 0 8px 20px rgba(2, 20, 43, 0.10); border-color: rgba(2, 20, 43, 0.28); }
.board .hh-note { opacity: 1; color: var(--text-muted); }
.board .hh-note a { color: var(--blue); }
.board-note-foot { margin-top: 20px; }
@media (max-width: 820px) {
  .board { padding: 44px 0 46px; }
  .board-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0 15px;
  }
  .board-hubs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .board-hubs::-webkit-scrollbar { display: none; }
  .board-when { gap: 10px; flex-direction: column; margin: 18px 0 14px; }
}

/* полоса-ключ electro.cars — второй тёмный такт /tarify/ */
.loyalty-key { position: relative; overflow: hidden; border-top: 0; }
.loyalty-key-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 62%;
  box-shadow: inset 0 0 0 100vmax rgba(2, 20, 43, 0.85);
}
.loyalty-key .container { position: relative; z-index: 2; }
.loyalty-key .loyalty-lead { color: #B8C4D4; }
.loyalty-key .loyalty-stores { color: #9fb2c9; }
.loyalty-key .loyalty-stores a { color: var(--white); }
/* невидимый алиас-якорь: старый #loyalty сохранён, новый #app-key добавлен */
.anchor-alias { position: absolute; top: -90px; }

/* --- HB1 «Штурман» в белом исполнении: первый экран /hubs/ -------------------
   Белый блок, слитый с лидом: слева индекс сети на линейках с засечками,
   справа карта в своей раме — она и даёт тёмную массу экрана, поэтому
   отдельной чернильной полосы не нужно. Ниже — светлая секция карточек. */
.navigator {
  background: var(--white);
  /* лучи лида продолжаются в полосу — шов между ними невидим */
  background-image: repeating-conic-gradient(from 285deg at -4% 106%, rgba(6, 61, 131, 0.14) 0 1.6deg, transparent 1.6deg 11deg);
  padding: 18px 0 56px;
}
.navigator .hubs-filter { margin-bottom: 22px; }
.nav-split {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
  gap: 34px;
  align-items: stretch;
}
.nav-split > * { min-width: 0; }
/* карта тянется по высоте индекса: колонка — флекс, легенда прижата вниз */
.nav-map { display: flex; flex-direction: column; }
.nav-map .ymap { flex: 1; }
/* строка индекса */
.nav-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 15px 2px 14px 0;
  border-top: 1px solid rgba(2, 20, 43, 0.14);
}
.nav-index .nav-row:last-child { border-bottom: 1px solid rgba(2, 20, 43, 0.14); }
/* вся строка — мишень для показа пина; «Маршрут» лежит выше и уводит в карты */
.nav-index .nav-row[data-slug] { cursor: pointer; }
/* засечки на концах линейки — тот же мотив, что у фактов хаба */
.nav-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 1px;
  height: 6px;
  background: rgba(2, 20, 43, 0.28);
}
/* золотая засечка активной строки — единственный золотой жест экрана */
.nav-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 2px;
  height: 10px;
  background: #F2B705;
  opacity: 0;
  transition: opacity 0.15s;
}
.nav-row:hover::after, .nav-row:focus-within::after, .nav-row.is-active::after { opacity: 1; }
.nav-row:hover { background: #FAFBFD; }
/* нумерация индекса — CSS-счётчик: скрытые фильтром строки не увеличивают его,
   поэтому при переключении города номера идут 01, 02, 03 без пропусков */
.nav-index { counter-reset: navhub; }
.nav-index .nav-row[data-city] { counter-increment: navhub; }
.nav-idx {
  font-size: 13px;
  font-weight: 700;
  color: #9AA6B8;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.nav-index .nav-row[data-city] .nav-idx::before {
  content: counter(navhub, decimal-leading-zero);
}
.nav-idx--pin { color: var(--blue); }
.nav-idx--pin svg { width: 15px; height: 15px; display: block; }
.nav-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nav-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.25;
}
.nav-name:hover { text-decoration: underline; }
.nav-name:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-name--plain { color: var(--dark); }
.nav-addr { font-size: 13.5px; color: var(--text-muted); }
.nav-meta {
  font-size: 13px;
  color: #63707f;
  font-variant-numeric: tabular-nums;
}
.nav-row--soon .nav-meta { color: #8a7a4a; }
.nav-route {
  position: relative;
  z-index: 2;
  border: 1.5px solid rgba(2, 20, 43, 0.24);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.nav-route:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
/* партнёрская сеть — не седьмая строка, а отдельный ярус после керна */
.nav-partner { margin-top: 22px; padding-top: 4px; }
.nav-partner-kick {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9AA6B8;
  margin-bottom: 6px;
}
.nav-row--partner { border-top-color: rgba(2, 20, 43, 0.14); }
.nav-row--partner::after { display: none; }
.nav-map .ymap-large { height: 100%; min-height: 430px; }
.nav-map .map-legend { margin-top: 12px; }
@media (max-width: 1000px) {
  /* мобила: список виден всегда и идёт первым, карта под ним */
  .nav-split { grid-template-columns: 1fr; gap: 22px; }
  .nav-map .ymap-large { min-height: 340px; }
  .navigator { padding-bottom: 40px; }
}
@media (max-width: 560px) {
  .nav-row { grid-template-columns: 26px 1fr; gap: 6px 10px; }
  .nav-route { grid-column: 2; justify-self: start; margin-top: 8px; }
}

/* --- NW4 «Тёмная комната»: новости главной ---------------------------------
   Две зоны вместо фото-ковра: справа кадр молнии киоска под вуалью, гаснет
   к центру; слева чистый чернильный, плашки непрозрачные — контраст текста
   держится раскладкой, а не прозрачностью. Слэши-прожекторы здесь не нужны:
   роль «фактуры тёмной полосы» взял на себя кадр. */
.news-room {
  position: relative;
  background: var(--dark);
  color: var(--white);
  /* высота от контента: поля срезаны с 96/92 — было слишком много воздуха
     над заголовком и под подвалом секции (правка юзера 30.07) */
  padding: 58px 0 52px;
  /* именно clip, а не hidden: hidden сделал бы секцию скролл-контейнером, и
     view()-таймлайн свечения марки мерил бы прогресс относительно неё же */
  overflow: clip;
}
.news-room-shot {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background-size: cover;
  background-position: 62% center;
  /* вуаль + гашение к центру одной композицией слоёв */
  box-shadow: inset 0 0 0 100vmax rgba(2, 20, 43, 0.52);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
}
/* Свечение вывески на скролле: слой — тот же кадр с вырезанной маркой (прозрачно
   всё, кроме двух светящихся логотипов) и с теми же background-size/position, что
   у фото, поэтому контур совпадает от геометрии, а не от подгонки. Псевдоэлемент,
   а не отдельный div: он лежит поверх вуали и наследует маску-растворение кадра —
   свет гаснет к центру вместе с фотографией. Прозрачность ведёт scroll-driven
   анимация, считает композитор, слушателей скролла в JS нет. */
.news-room-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/news-glow.08a9389db7b1.png");
  background-size: cover;
  background-position: inherit;
  mix-blend-mode: screen;
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(150, 200, 255, 0.6));
  opacity: 0;
}
@supports (animation-timeline: view()) {
  .news-room-shot::after {
    animation: news-glow linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  @keyframes news-glow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-room-shot::after { animation: none; opacity: 0; }
}
.news-room-in { position: relative; z-index: 2; }
.news-room .section-head { margin-bottom: 18px; }
.news-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 700px;
}
.nr-plate {
  background: #0A2140;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.nr-plate--lead {
  grid-column: 1 / -1;
  position: relative;
  padding-left: 26px;
}
/* кромка свежей новости — акцентная хвоя (осветлённый тон: на чернильном тёмная
   хвоя пропадает). Inset-тень, а не полоска-псевдоэлемент: она обрезается по
   скруглению плашки и идёт ровно по её фигуре, без выступающих прямых углов */
.nr-plate--lead { box-shadow: inset 3px 0 0 #7CC7A1; }
.nr-plate:hover { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
.nr-plate--lead:hover { box-shadow: inset 3px 0 0 #7CC7A1; }
.nr-plate time {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #8FA0B8;
  margin-bottom: 8px;
}
.nr-plate { position: relative; }
.nr-plate h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--white); }
.nr-plate--lead h3 { font-size: 22px; }
/* растянутая ссылка: кликабельна вся плашка, вложенных интерактивов нет */
.nr-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.nr-link:focus-visible { outline: 2px solid #9CC3F5; outline-offset: -3px; border-radius: var(--radius); }
.nr-plate:hover h3 { text-decoration: underline; }
.nr-plate p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #B8C4D4;
}
.news-room-foot {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.nr-all { color: #8ab9f1; font-weight: 700; font-size: 15px; text-decoration: none; }
.nr-all:hover { text-decoration: underline; }
.nr-tg { color: #8FA0B8; font-weight: 600; font-size: 14px; text-decoration: none; }
.nr-tg:hover { color: #B8C4D4; }
@media (prefers-reduced-motion: reduce) {
  .nr-plate { transition: none; }
  .nr-plate:hover { transform: none; }
}
@media (max-width: 900px) {
  /* мобила: плашки в столбец, кадр уходит в нижние 30% фоном на молнию */
  .news-room { padding: 44px 0 40px; }
  .news-room-grid { grid-template-columns: 1fr; max-width: none; }
  .news-room-shot {
    top: auto;
    left: 0;
    width: 100%;
    height: 30%;
    background-position: 58% 40%;
    mask-image: linear-gradient(180deg, transparent, #000 55%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%);
  }
  .news-room-foot { margin-top: 22px; gap: 16px; }
}

/* --- FAQ-библиотека (M1v2 «Ритм и полка» + поиск M2v3) ----------------------
   радио-фильтр: правила по слагам рубрик генерирует шаблон faq_library.html,
   здесь — общие. Радио скрыты клипом (не display:none) — клавиатура работает */
.fl-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
/* Л2 «Левая ось» (борд 📐): поле слева под H1, по той же оси, что и заголовок */
.page-hero-row:has(.fl-search) { row-gap: 12px; }
.page-hero-row .fl-search { width: 400px; max-width: 100%; }
.page-hero-row .fl-search-lab {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
@media (max-width: 760px) {
  .page-hero-row .fl-search { width: 100%; }
}
.fl-search-lab { display: block; font-size: 13px; font-weight: 600; color: #63707f; margin-bottom: 6px; }
.fl-search-row { position: relative; }
.fl-search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #63707f;
  pointer-events: none;
}
.fl-search-in {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border: 1.5px solid rgba(6, 61, 131, 0.35);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  background: #fff;
}
.fl-search-in:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.fl-search-x {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  font-size: 20px;
  color: #63707f;
  cursor: pointer;
}
.fl-search-n { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--blue); min-height: 1em; }
/* липкая полоса чипов: утилита, прилипает под сжатой шапкой как .hub-anchors */
.fl-chips {
  position: sticky;
  top: 60px;
  z-index: 40;
  background: rgba(2, 20, 43, 0.94);
  backdrop-filter: blur(6px);
}
.fl-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 10px;
  padding-bottom: 10px;
}
.fl-chips-row::-webkit-scrollbar { display: none; }
.fl-chip {
  flex: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.fl-chip:hover { border-color: rgba(255, 255, 255, 0.6); }
/* корпус: полосы */
.fl-body { scroll-margin-top: 124px; }
.fl-band { padding: 72px 0 80px; }
.fl-band.band-light { background: var(--light); }
.fl-band.band-dark { background: var(--dark); color: var(--white); }
.fl-band-in { display: flex; flex-direction: column; gap: 56px; }
.fl-rubric { max-width: 800px; }
.fl-rubric-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.fl-rubric-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
/* единственная хвоя страницы: бейдж счастливых часов (на тёмном — осветлённая) */
.fl-happy {
  font-size: 13px;
  font-weight: 700;
  color: #7CC7A1;
  text-decoration: none;
  border: 1.5px solid rgba(124, 199, 161, 0.5);
  border-radius: 999px;
  padding: 5px 12px;
}
.fl-happy:hover { border-color: #7CC7A1; color: #7CC7A1; }
/* вопросы: нативные details, линейки как у факт-блоков */
.q { border-bottom: 1px solid rgba(2, 20, 43, 0.12); scroll-margin-top: 140px; }
.band-dark .q { border-bottom-color: rgba(255, 255, 255, 0.14); }
.q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 13px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.2s;
}
.q[open] summary::after { transform: rotate(225deg); }
.q summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.band-dark .q summary:focus-visible { outline-color: #9CC3F5; }
.q-body { padding: 0 0 18px; max-width: 68ch; }
.q-body p { font-size: 15.5px; line-height: 1.6; }
.band-dark .q-body p { color: #cdd8e6; }
.q-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.band-dark .q-link { color: #9CC3F5; }
@media (prefers-reduced-motion: no-preference) {
  .q::details-content { transition: content-visibility 0.25s allow-discrete; }
}
/* режим «полка»: другие полосы и рубрики скрыты (показ — правила из шаблона),
   активная полоса перекрашивается в светлую независимо от такта */
.fl-radio:checked:not(#r-all) ~ .fl-body .fl-band { display: none; }
.fl-radio:checked:not(#r-all) ~ .fl-body .fl-rubric { display: none; }
.fl-radio:checked:not(#r-all) ~ .fl-body .fl-band.band-dark {
  background: var(--light);
  color: var(--dark);
}
.fl-radio:checked:not(#r-all) ~ .fl-body .band-dark .q { border-bottom-color: rgba(2, 20, 43, 0.12); }
.fl-radio:checked:not(#r-all) ~ .fl-body .band-dark .q-body p { color: inherit; }
.fl-radio:checked:not(#r-all) ~ .fl-body .band-dark .q-link { color: var(--blue); }
.fl-radio:checked:not(#r-all) ~ .fl-body .band-dark .q summary:focus-visible { outline-color: var(--blue); }
.fl-radio:checked:not(#r-all) ~ .fl-body .band-dark .fl-happy { color: #1F5F4A; border-color: rgba(31, 95, 74, 0.45); }
.fl-radio:checked:not(#r-all) ~ .fl-body .fl-band { padding: 28px 0 56px; }
.fl-radio:checked:not(#r-all) ~ .fl-body .fl-floor { display: block; }
/* «пол» полки */
.fl-floor { display: none; background: var(--white); padding: 8px 0 56px; }
.fl-floor-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fl-floor-in > p { font-size: 16px; font-weight: 600; }
.fl-floor-acts { display: flex; align-items: center; gap: 18px; }
.fl-floor-tel { font-weight: 700; text-decoration: none; color: var(--dark); white-space: nowrap; }
/* поиск: скрываем несовпавшие только классами — восстановление байт-в-байт */
.fl-body.is-searching .q.is-filtered-out { display: none; }
.fl-body.is-searching .fl-rubric.is-empty { display: none; }
.fl-body.is-searching .fl-band.is-empty { display: none; }
@media (max-width: 900px) {
  .fl-chips { top: 84px; }
  .fl-body { scroll-margin-top: 148px; }
  .q { scroll-margin-top: 160px; }
  .fl-band { padding: 48px 0 56px; }
  .fl-band-in { gap: 40px; }
}
/* мобила: строки-линейки в языке факт-блоков В6; вместо бегунка золото —
   засечка активного по времени пункта, у цены живая подстрока вместо шеврона */
@media (max-width: 640px) {
  .hero-dash { flex-direction: column; margin-top: 26px; border-top: 0; }
  .hero-dash .dash-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 2px 12px 14px;
    border-bottom: 1px solid rgba(6, 61, 131, 0.14);
  }
  .hero-dash .dash-item:first-child { border-top: 1px solid rgba(6, 61, 131, 0.14); }
  .hero-dash .dash-item::before { top: 50%; margin-top: -5px; }
  .hero-dash .dash-price.is-on::before { background: #F2B705; box-shadow: none; animation: none; }
  .hero-dash .dash-item::after {
    content: "›";
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    opacity: 1;
    color: #9aa7b5;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
  }
  .hero-dash .dash-price::after { content: none; }
  .hero-dash .dash-sub { display: none; }
  .hero-dash .dash-live { display: block; flex: none; text-align: right; font-size: 12px; }
  .hero-dash .dash-live .lt-count { display: block; margin-left: 0; }
}
