/* ============================================================
   Электрохаб — фирменные стили по брендбуку 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 «Прожекторы» на главной: Сервис 24/7 и Новости */
.page-home .features-section,
.page-home .latest-news-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%);
}
/* на тёмной секции ссылка «Все новости» — светлым */
.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); }

/* ---------- Шапка ---------- */
.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;
}
/* грид-дети не раздувают трек своим 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;
}
.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-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 (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; }

/* Ведущая карточка (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; }
}
/* Светлый вариант секции «Преимущества»: белый фон, тёмный текст, синие иконки */
.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);
}
.b2b-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.b2b-card {
  border: 1px solid #e5eaf1;
  border-radius: var(--radius);
  padding: 24px 26px;
}
.b2b-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}
.b2b-ic {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 61, 131, 0.08);
  color: var(--blue);
  align-items: center;
  justify-content: center;
  flex: none;
}
.b2b-ic svg { width: 24px; height: 24px; }
.b2b-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.b2b-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}
.b2b-section .btn { margin-top: 26px; }
@media (max-width: 720px) {
  .b2b-cards { grid-template-columns: 1fr; }
}

/* ---------- 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 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; }

/* ---------- 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; }
@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-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 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; }
}

/* ==================================================================
   Раунд «И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; }
.hh-live { margin: 16px 0 0; }
.hub-live { margin: -6px 0 18px; }
@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: 15px; height: 15px; opacity: 0.85; }
.hub-card-amen {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  color: var(--blue);
}
.hub-card-amen .hca-i { display: inline-flex; }
.hub-card-amen .icon { width: 16px; height: 16px; }
.hca-more { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* --- И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;
  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); }
.hv-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  background: var(--white);
  z-index: 3;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}
@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: 230px;
  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;
  font-size: 12px; font-weight: 600; border-radius: 9px; padding: 8px 10px;
}
.ehm-links a.pg { background: var(--dark); color: var(--white); }
.ehm-links a.ya { border: 1px solid #d4dce8; color: var(--blue); }

/* панель «Навигатор/Карты»: кнопки в столбик — ничего не выезжает */
.ehm-actionbar {
  position: absolute; left: 12px; bottom: 12px; z-index: 5;
  background: rgba(2, 20, 43, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 12px 14px;
  color: var(--white); width: 250px; max-width: calc(100% - 24px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ehm-sel {
  font-size: 12px; font-weight: 700; margin: 0 0 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ehm-sel small { display: block; font-weight: 400; color: rgba(255, 255, 255, 0.6); font-size: 11px; margin-top: 2px; white-space: normal; }
.ehm-btns { display: flex; flex-direction: column; gap: 7px; }
.ehm-btns a {
  display: block; text-align: center; text-decoration: none;
  font-size: 12px; font-weight: 600; border-radius: 9px; padding: 9px 10px;
}
.ehm-btns a.ehm-navi { background: var(--white); color: var(--dark); }
.ehm-btns a.ehm-maps { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); }
.ehm-btns a:hover { opacity: 0.88; }
@media (max-width: 600px) {
  .ehm-actionbar { width: auto; right: 12px; }
}
