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

@font-face {
  font-family: "AKONY";
  src: url("../fonts/AKONY.8732dff75070.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.b6c0b820fba6.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.6c6807d2ba03.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.741755ecc00e.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.e6f36371efad.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): шире контейнер, чуть крупнее базовый шрифт */
@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; }
}

/* 4K-мониторы (3840×2160): ещё шире, крупнее текст, чтобы не было «бисера» */
@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; }
}

.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 «Прожекторы» на главной: Инфраструктура и Аренда */
.page-home .features-section,
.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%);
}
.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); }

/* ---------- Шапка ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
}
.logo img { height: 60px; width: auto; }
.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; }
.header-phone {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.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;
}
/* с видео текст занимает ~третъ, медиа — остальное.
   Текстовый блок центрирован по вертикали плеера, ровный вертикальный ритм */
.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;
}
.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 {
  /* Ф46 «Прожекторы» — как на титулах разделов */
  background: var(--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%);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.stats-grid {
  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 { 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); }
.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, .hub-card-opened {
  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, .hub-card-opened svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.75;
}
.hub-card-opened { color: var(--blue); font-weight: 600; margin-top: 8px; }
.hub-card-opened svg { opacity: 1; }

.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-hero-photo { border-radius: var(--radius); }
.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; }

/* Т1 «Одна плита»: компактные счастливые часы */
.hh-title { font-size: clamp(22px, 2.6vw, 30px); 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-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;
}
.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 (max-width: 600px) {
  .cookie-bar { right: 16px; max-width: none; }
}

/* ---------- Преимущества ---------- */
.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; }

/* ---------- Шаги: вертикальный таймлайн + фото, светлая секция ---------- */
.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 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 h3 { font-size: 18px; margin: 8px 0; }
.news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { font-size: 15px; color: var(--text-muted); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.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;
}
.hf-btn:hover { border-color: var(--dark); color: var(--dark); }
/* фильтр на тёмном первом экране страницы «Электрохабы» */
.hubs-filter--hero { margin-top: 24px; display: flex; gap: 10px; }
/* фильтр и интро над картой (титул Электрохабов теперь компактный) */
.map-intro { max-width: 720px; }
.map-intro p { margin: 0; }
.hubs-filter--map { display: flex; gap: 10px; margin: 0 0 18px; }

.hubs-filter--hero .hf-btn {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}
.hubs-filter--hero .hf-btn:hover { border-color: var(--white); color: var(--white); }
.hubs-filter--hero .hf-btn.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}
.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; }

/* ---------- Карта (Яндекс-виджет) ---------- */
.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); }
}
@media (prefers-reduced-motion: reduce) { .ymap::before { 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 «Постер-знак»: белая гигантская молния у правого края */
  background: var(--dark);
  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: right -210px center;
  background-size: auto 120%;
  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-note { opacity: 0.7; font-size: 14px; }
.footer-phone { font-weight: 700; font-size: 20px; }
/* П6: соцсети в футере */
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.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;
  filter: drop-shadow(0 0 3px 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; }
.tg-feed {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  max-width: 560px;
}
.tg-feed iframe { display: block; width: 100%; height: 640px; border: 0; }
.tg-feed-fallback { font-size: 12.5px; opacity: .7; margin: 12px 0 0; }
.tg-feed-fallback a { color: inherit; }

/* ---------- Фирменный балун Яндекс.Карт ---------- */
.eh-balloon {
  position: absolute;
  min-width: 240px;
  max-width: 300px;
  background: var(--dark);
  color: var(--white);
  border-radius: 14px;
  padding: 16px 38px 15px 18px;
  box-shadow: 0 10px 30px rgba(2, 20, 43, 0.35);
  font-family: var(--font-body);
}
.eh-balloon__tail {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 16px;
  height: 16px;
  background: var(--dark);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px;
}
.eh-balloon__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 2px;
}
.eh-balloon__close:hover { background: rgba(255, 255, 255, 0.22); }
.eh-balloon__head { font-weight: 700; font-size: 14.5px; line-height: 1.3; margin-bottom: 5px; }
.eh-balloon__body { font-size: 12.5px; line-height: 1.55; opacity: 0.95; }
.eh-balloon__body a {
  color: #8ab9f1;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 185, 241, 0.4);
}
.eh-balloon__body a:hover { color: var(--white); border-color: var(--white); }

/* ---------- Калькулятор выгоды ---------- */
.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 {
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  font-variant-numeric: tabular-nums;
  margin: 16px 0 4px;
}
.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; 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-phone { display: none; }
  .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; }
  .section { padding: 44px 0; }
}
