/* ---------- Базовые переменные ---------- */
:root {
  --accent: #1e5bff;
  --accent-dark: #0d2c8c;
  --dark: #0b1530;
  --text: #16203a;
  --muted: #6b7590;
  --line: #e4e8f1;
  --gray: #f4f6fb;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 32, 80, .08);
  --container: 1200px;
  --head-font: "Montserrat", system-ui, sans-serif;
  --body-font: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.6 var(--body-font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head-font); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.5vw, 64px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
:root { --gutter: 24px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 16px var(--head-font); color: #fff; background: var(--accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--small { padding: 11px 20px; font-size: 14px; box-shadow: none; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--white { background: #fff; color: var(--accent-dark); box-shadow: none; }
.btn--white:hover { background: #fff; color: var(--accent); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, opacity .3s;
}
.header.is-scrolled, .header.menu-open { background: color-mix(in srgb, var(--header-bg) 96%, transparent); box-shadow: 0 2px 20px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
body { --header-bg: var(--dark); }
body[data-header="accent"] { --header-bg: var(--accent-dark); }
body[data-header="white"] { --header-bg: #fff; }
body[data-header="white"] .header.is-scrolled, body[data-header="white"] .header.menu-open { box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 18px var(--head-font); color: #fff; }
.logo img { height: 40px; width: auto; }
.logo__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 14px; letter-spacing: .02em;
}
[data-header="white"] .header.is-scrolled .logo, [data-header="white"] .header.menu-open .logo { color: var(--text); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { white-space: nowrap; color: rgba(255,255,255,.85); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover { color: #fff; }
[data-header="white"] .header.is-scrolled .nav a { color: var(--text); }
[data-header="white"] .header.is-scrolled .nav a:hover { color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 18px; }
.header__phone { font: 700 16px var(--head-font); color: #fff; white-space: nowrap; }
[data-header="white"] .header.is-scrolled .header__phone { color: var(--text); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }
[data-header="white"] .header.is-scrolled .burger span, [data-header="white"] .header.menu-open .burger span { background: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 55%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 50%),
    var(--dark);
  padding: 150px 0 0;
}
.hero__waves {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: repeating-radial-gradient(circle at 85% 45%, transparent 0 38px, #fff 39px 40px);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-bottom: 90px; }
.label {
  display: inline-block; padding: 7px 14px; margin-bottom: 22px; border-radius: 999px;
  background: rgba(255,255,255,.12); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hero__text { font-size: 19px; max-width: 560px; color: rgba(255,255,255,.8); margin-bottom: 34px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__eq { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 260px; }
.hero__eq span {
  width: 14px; height: 55%; border-radius: 8px; background: linear-gradient(to top, var(--accent), color-mix(in srgb, var(--accent) 35%, #fff));
  animation: eq 1.2s ease-in-out infinite alternate;
}
.hero__eq span:nth-child(1) { animation-delay: -.2s; height: 45%; }
.hero__eq span:nth-child(2) { animation-delay: -.9s; height: 85%; }
.hero__eq span:nth-child(3) { animation-delay: -.4s; height: 60%; }
.hero__eq span:nth-child(4) { animation-delay: -1.1s; height: 95%; }
.hero__eq span:nth-child(5) { animation-delay: -.6s; height: 50%; }
.hero__eq span:nth-child(6) { animation-delay: -.1s; height: 30%; }
.hero__eq span:nth-child(7) { animation-delay: -.8s; height: 75%; }
.hero__eq span:nth-child(8) { animation-delay: -.3s; height: 40%; }
.hero__eq span:nth-child(9) { animation-delay: -1s; height: 90%; }
.hero__eq span:nth-child(10) { animation-delay: -.5s; height: 55%; }
.hero__eq span:nth-child(11) { animation-delay: -.7s; height: 70%; }
.hero__eq span:nth-child(12) { animation-delay: -.15s; height: 35%; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }

.marquee { position: relative; background: rgba(255,255,255,.06); border-top: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span {
  padding: 22px 36px; font: 700 20px var(--head-font); white-space: nowrap; color: rgba(255,255,255,.75);
}
.marquee__track span::after { content: "●"; margin-left: 72px; font-size: 8px; vertical-align: middle; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: 100px 0; }
.section--tight { padding: 60px 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { max-width: 680px; margin-bottom: 50px; }
.section__head p { color: var(--muted); font-size: 18px; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- О компании ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about__text p { font-size: 18px; color: #3a4460; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat { padding: 30px 26px; border-radius: var(--radius); background: var(--gray); }
.stat:nth-child(1), .stat:nth-child(4) { background: var(--accent); color: #fff; }
.stat:nth-child(1) .stat__label, .stat:nth-child(4) .stat__label { color: rgba(255,255,255,.8); }
.stat__value { font: 800 clamp(30px, 3.4vw, 44px)/1 var(--head-font); margin-bottom: 8px; }
.stat__label { color: var(--muted); font-size: 15px; }

/* ---------- Станции ---------- */
.stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.station {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
@media (hover: hover) {
  .station:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,32,80,.14); }
}
/* Блок логотипа всегда 16:9 — размер картинки подбирает скрипт по площади (fitLogo) */
.station__logo {
  aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--st) 10%, #fff);
}
.station__logo--white { background: #fff; border-bottom: 1px solid var(--line); }
.station__logo--color { background: var(--st); }
.station__logo img { width: 45%; height: auto; max-height: 70%; max-width: 82%; object-fit: contain; }
.station__badge {
  padding: 12px 18px; border-radius: 14px; background: var(--st); color: #fff;
  font: 800 18px var(--head-font); text-align: center;
}
.station__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.station__body h3 { margin-bottom: 4px; }
.station__cities { list-style: none; margin: 2px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.station__cities li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; }
.station__city { font-weight: 600; color: var(--text); }
.station__freq { color: var(--st); font: 700 15px var(--head-font); }
.station__body p { color: var(--muted); font-size: 15px; flex: 1; }
.station__aud { font-size: 13px; font-weight: 600; color: var(--text); padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.service:hover { border-color: transparent; box-shadow: var(--shadow); }
.service__icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 28px;
  border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, #fff); margin-bottom: 20px;
}
.service p { color: var(--muted); margin: 0; }

/* ---------- Этапы ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.06); counter-increment: s; }
.step::before {
  content: "0" counter(s); display: block; margin-bottom: 18px;
  font: 800 40px/1 var(--head-font); color: var(--accent);
}
.step p { color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Партнёры ---------- */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner {
  aspect-ratio: 2.2 / 1; min-width: 0; display: grid; place-items: center; padding: 8px; text-align: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--muted);
  transition: box-shadow .25s;
}
.partner img { width: 50%; height: auto; max-height: 72%; max-width: 84%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .25s; }
@media (hover: hover) {
  .partner:hover { box-shadow: var(--shadow); }
  .partner:hover img { filter: none; opacity: 1; }
}

/* ---------- CTA ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 56px 60px; border-radius: 28px; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
}
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0; color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; }
.cta .btn { flex-shrink: 0; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch; }
.contacts__list { list-style: none; padding: 0; margin: 0 0 28px; }
.contacts__list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts__list .muted { font-size: 13px; }
.contacts__value { font: 700 19px var(--head-font); }
a.contacts__value:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { padding: 10px 18px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.social:hover { color: var(--accent); }
.contacts__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contacts__map--empty {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 40px;
  color: #fff; background:
    repeating-radial-gradient(circle at 90% 10%, transparent 0 30px, rgba(255,255,255,.08) 31px 32px),
    linear-gradient(140deg, var(--dark), var(--accent-dark));
}
.contacts__card-title { font: 800 26px var(--head-font); margin-bottom: 6px; }
.contacts__map--empty p { color: rgba(255,255,255,.75); }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: #fff; padding: 40px 0; }
.footer__inner { display: flex; align-items: center; gap: 40px; }
.footer__info { flex: 1; font-size: 14px; }
.footer__info p { margin: 0 0 4px; }
.footer .muted { color: rgba(255,255,255,.5); }
.footer__phone { font: 700 18px var(--head-font); white-space: nowrap; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8, 14, 34, .65); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 40px 36px; border-radius: 24px; background: #fff; transform: translateY(20px); transition: transform .25s;
}
.modal.is-open .modal__box { transform: none; }
.modal__box h3 { font-size: 24px; }
.modal__close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.form input, .form textarea {
  width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--gray); transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form textarea { resize: vertical; }
.form__consent { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }
.form__success { padding: 30px 0 10px; font: 700 18px var(--head-font); color: var(--accent); text-align: center; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .stations { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .header__right .btn { display: none; }
}
@media (max-width: 900px) {
  .nav, .header__right { display: none; }
  .burger { display: block; }
  .header.menu-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--header-bg); padding: 10px 24px 20px; box-shadow: 0 20px 30px rgba(0,0,0,.18);
  }
  .header.menu-open .nav a { color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 17px; }
  [data-header="white"] .header.menu-open .nav a { color: var(--text); border-bottom-color: var(--line); }
  .hero { padding-top: 120px; }
  .hero__inner, .about, .contacts { grid-template-columns: 1fr; }
  .hero__eq { display: none; }
  .services, .steps { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
  .section { padding: 70px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .stations, .services, .steps { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 12px; }
  .stat { padding: 22px 18px; }
  .hero__text { font-size: 17px; }
  .hero__buttons .btn { flex: 1; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .contacts__map--empty { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Пока грузится content.json — не показываем пустую разметку */
body:not(.is-ready) .header, body:not(.is-ready) main, body:not(.is-ready) .footer { opacity: 0; }
main, .footer { transition: opacity .3s; }

/* ловушка для спам-ботов */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Текст для поисковиков и браузеров без JavaScript */
.seo-text { padding-block: 40px; }
.seo-text h2 { font-size: 24px; margin-top: 24px; }

/* На сенсорных экранах наведения нет — логотипы партнёров сразу в цвете */
@media (hover: none) {
  .partner img { filter: none; opacity: 1; }
}

/* ---------- Адаптивность: любые экраны ---------- */
.stations > *, .services > *, .steps > *, .partners > *, .stats > * { min-width: 0; }
.station__body h3, .service h3, .contacts__value { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .station__logo { aspect-ratio: 2.2 / 1; }
}
@media (max-width: 560px) {
  .station__logo { aspect-ratio: 2.4 / 1; }
  .partners { gap: 10px; }
  .partner { aspect-ratio: 2 / 1; }
}
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .hero__buttons .btn { padding: 14px 18px; font-size: 15px; }
  h1 { font-size: 30px; }
}
/* телефон в горизонтальном положении: первый экран компактнее */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 96px; }
  .hero__inner { padding-bottom: 40px; }
  .section { padding: 56px 0; }
}
/* вырез камеры и закруглённые углы (iPhone и др.) */
@supports (padding: max(0px)) {
  .header { padding-top: env(safe-area-inset-top); }
  .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .footer { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
}
/* большие мониторы */
@media (min-width: 1680px) {
  :root { --container: 1400px; }
  body { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --container: 1600px; }
  body { font-size: 18px; }
  .station__body p, .service p { font-size: 16px; }
}

/* ---------- Города вещания ---------- */
.section--cities { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.cities__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 45%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 40%),
    repeating-radial-gradient(circle at 85% 10%, transparent 0 46px, rgba(255,255,255,.05) 47px 48px);
}
.section--cities .container { position: relative; }
.cities__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.cities__top .section__head { margin-bottom: 0; }
.section--cities .section__head p { color: rgba(255,255,255,.72); }
.cities__summary { display: flex; gap: 12px; flex-wrap: wrap; }
.cities__stat {
  display: flex; flex-direction: column; min-width: 120px; padding: 14px 20px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.cities__stat b { font: 800 34px/1 var(--head-font); }
.cities__stat span { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.72); }

.cities__filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.cities__search, .cities__select {
  height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 15px;
}
.cities__search { flex: 1 1 260px; max-width: 420px; }
.cities__search::placeholder { color: rgba(255,255,255,.6); }
.cities__select { flex: 0 1 240px; cursor: pointer; }
.cities__select option { color: var(--text); }
.cities__search:focus, .cities__select:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.16); }

.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cities > * { min-width: 0; }
.city {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: #fff; color: var(--text); box-shadow: 0 16px 40px rgba(0,0,0,.22);
  scroll-margin-top: 110px; transition: transform .25s, box-shadow .25s;
}
.city[hidden] { display: none; }
@media (hover: hover) {
  .city:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,0,0,.3); }
}
.city:target { animation: cityflash 1.6s ease; }
@keyframes cityflash { 0%, 60% { box-shadow: 0 0 0 4px var(--accent), 0 22px 50px rgba(0,0,0,.3); } }
.city__head {
  position: relative; isolation: isolate; min-height: 118px; padding: 22px 22px 18px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background:
    repeating-radial-gradient(circle at 100% 0%, transparent 0 22px, rgba(255,255,255,.09) 23px 24px),
    linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.city__head.has-img { min-height: 150px; background: var(--accent-dark); }
.city__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.city__head.has-img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.12) 70%);
}
.city__name { margin: 0; font: 800 clamp(22px, 2.2vw, 26px)/1.15 var(--head-font); overflow-wrap: anywhere; }
.city__meta { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.85); }
.city__body { flex: 1; padding: 18px 22px 8px; }
.city__stations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.city__stations li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.city__dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 8%, transparent); }
.city__station { min-width: 0; overflow-wrap: anywhere; }
.city__none { margin: 0; color: var(--muted); font-size: 14px; }
.city__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.city__foot { padding: 16px 22px 20px; }
.city__badge {
  position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 600; background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
}
.city__head .city__name { padding-right: 4px; }
.city__cta {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 600 14px var(--head-font); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff);
  transition: background .2s, color .2s;
}
.city__cta::after { content: "→"; transition: transform .2s; }
.city__cta:hover, .city__cta:focus-visible { background: var(--accent); color: #fff; }
.city__cta:hover::after { transform: translateX(3px); }
.cities__empty { margin: 10px 0 0; color: rgba(255,255,255,.75); }

/* город в карточке станции — ссылка на карточку города */
a.station__city { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent); text-underline-offset: 3px; }
a.station__city:hover { color: var(--accent); text-decoration-color: currentColor; }

@media (max-width: 560px) {
  .cities__stat { min-width: 0; flex: 1; padding: 12px 14px; }
  .cities__stat b { font-size: 28px; }
  .cities__search, .cities__select { flex: 1 1 100%; max-width: none; }
  .cities { grid-template-columns: 1fr; gap: 14px; }
}

/* Ошибка в форме заявки */
.form__error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #8a1c12; font-size: 14px; }

/* ---------- Согласие на обработку ПДн в форме ---------- */
.form__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.form__agree input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.form__agree a { color: var(--accent); text-decoration: underline; }
.form__consent[hidden] { display: none; }

/* ---------- Ссылки на документы в подвале ---------- */
.footer__docs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; }
.footer__docs a, .footer__cookie { color: rgba(255,255,255,.65); text-decoration: underline; text-underline-offset: 3px; }
.footer__cookie { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.footer__docs a:hover, .footer__cookie:hover { color: #fff; }

/* ---------- Баннер о cookie ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  max-width: 760px; margin: 0 auto; padding: 16px 18px; border-radius: 16px;
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  background: #fff; color: var(--text); box-shadow: 0 16px 40px rgba(0,0,0,.25); font-size: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 320px; margin: 0; }
.cookie-banner__text a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--ghost-dark { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost-dark:hover { background: var(--gray); }

/* ---------- Страницы документов ---------- */
.doc-page { background: var(--gray); }
.doc-head { background: var(--dark); padding: 18px 0; }
.doc-back { color: #fff; font: 700 16px var(--head-font); }
.doc { max-width: 860px; padding-block: 40px 70px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 24px; }
.doc h2 { font-size: 20px; margin: 30px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: #2a3350; }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc a { color: var(--accent); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.doc-nav a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }

/* Города: охват отдельной строкой; длинное название не наезжает на значок числа станций */
.city__pop { margin-top: 2px; font-size: 13px; font-weight: 600; color: #fff; }
.city__head { padding-top: 46px; }

/* «Виды услуг» после «Радиостанций»: явная граница, чтобы блоки не сливались */
#services { border-top: 1px solid var(--line); }
#services .section__head::before {
  content: ""; display: block; width: 56px; height: 4px; margin-bottom: 18px;
  border-radius: 4px; background: var(--accent);
}

/* «Как мы работаем» — светлый блок: после тёмных «Городов вещания» не сливается с ними */
.section--steps { background: var(--gray); }
.section--steps .step { background: #fff; box-shadow: var(--shadow); }
.section--steps .step p { color: var(--muted); }

/* Статичная карта или своя картинка вместо интерактивной */
.map-pic { position: relative; display: block; height: 100%; min-height: 380px; background: var(--gray); }
.map-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-pic__btn {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--text); font: 600 14px var(--head-font); box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: background .2s, color .2s;
}
a.map-pic:hover .map-pic__btn, a.map-pic:focus-visible .map-pic__btn { background: var(--accent); color: #fff; }
/* подпись «Яндекс Карты» в правом нижнем углу статичной карты не обрезаем (требование Яндекса) */
.map-pic--static img { object-position: right bottom; }

/* Логотип в подвале: свой файл и размер (Подвал → Логотип в подвале) */
.footer .logo img { width: auto; max-width: min(260px, 70vw); object-fit: contain; }
.footer .logo--s img { height: 30px; }
.footer .logo--m img { height: 40px; }
.footer .logo--l img { height: 60px; }
