/* АЭТ, Алматыэлектротранс. Единственный файл стилей публичной части.
   Перенос src/styles/global.css старого сайта на Astro. Значения переменных,
   размеры и отступы сохранены до пикселя; отличия перечислены здесь и объяснены
   комментарием на месте:
     1) блок мобильной навигации (в оригинале ниже 900px навигации не было вовсе);
     2) контентные картинки это <img>, а не background-image (у фона нет alt,
        нет srcset, и он молча пропадает при смене базового пути);
     3) карта движения заменена на статичную схему сети, у неё свои классы;
     4) .search-msg убран, сообщения поиска используют .search-hint/.search-empty,
        для которых стили и были написаны;
     5) добавлены классы блоков статьи из RENDERER-SPEC;
     6) добавлен prefers-reduced-motion.
   Шрифты подключены отдельным файлом assets/fonts/fonts.css, CDN не используется. */

:root {
  --bg: #FBFBFB;
  --ink: #14161A;
  /* Синий сайта чище и ярче логотипного #0066B7 (28.09.2026, решение
     владельца): тот на больших плашках выглядел тусклым и грязным. Контраст
     с белым 5,8:1 — как у прежнего. Синий на сайте один: --accent-strong
     только чуть темнее и живёт лишь в состоянии наведения. */
  --accent: #0B5ED7;
  --accent-strong: #0A53C2;
  --yellow: #FFDB00;
  --footer: #101317;
  --muted: #5A6068;
  --muted2: #6B7178;
  --line: #E6E7EA;
  --card-line: #ECEDF0;
  --head: 'Inter', system-ui, sans-serif;
  --mono: var(--head);

  /* Шкала скруглений. До неё радиусы стояли числами по месту, и на странице
     соседствовали 6, 8, 10, 14, 16, 18, 20 и 22px без всякой системы. Пять
     ступеней хватает на всё: чип, кнопка, карточка, крупный блок, шапка.
     --r-pill остаётся отдельно, это не ступень, а «полный овал». */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Тени одной семьи: смещение вниз, большой радиус, отрицательный spread.
     Из-за spread тень не обводит элемент по контуру, а лежит под ним, и
     карточка выглядит приподнятой, а не обведённой серым. */
  --sh-sm: 0 4px 14px -8px rgba(16, 19, 23, 0.25);
  --sh-md: 0 14px 34px -22px rgba(16, 19, 23, 0.35);
  --sh-lg: 0 30px 70px -40px rgba(16, 19, 23, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--head);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  /* На 360px длинные казахские слова в узких колонках рвали сетку. */
  overflow-wrap: break-word;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Читалкам с экрана видно, глазами нет. Нужен подписям, которые дублируют иконку. */
/* Переход по якорю не прячет заголовок под липкой шапкой. */
html { scroll-padding-top: 96px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Header ----------
   Шапка это отдельная плашка со скруглением, а не полоса во всю ширину с
   линией снизу. Так она держит ту же форму, что и подвал, и страница читается
   как набор карточек на светлом поле, а не как документ с колонтитулами.
   Стекло (backdrop-filter) осталось на .header-inner: размывать нужно ровно
   то, что лежит под плашкой. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Боковые поля совпадают с .wrap; сама плашка ограничена шириной первого
     скруглённого блока, чтобы их края шли по одной вертикали. */
  padding: 12px 24px 0;
  /* Полоса позади плашки, чтобы контент не просвечивал над её скруглениями
     при прокрутке. Градиент, а не сплошной цвет: резкая граница снизу
     выглядела бы той же линией, от которой мы уходим. */
  background: linear-gradient(180deg, var(--bg) 62%, rgba(251, 251, 251, 0));
}
.header-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 20px;
  height: 68px; display: flex; align-items: center; gap: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
/* На узком экране плашка прижимается к краям: 24px полей с обеих сторон
   съедали бы место, которого и так нет. */
@media (max-width: 720px) {
  .site-header { padding: 8px 16px 0; }
  .header-inner { border-radius: var(--r-sm); padding: 0 14px; height: 62px; }
}
.brand { display: flex; align-items: center; gap: 13px; flex: 0 1 auto; min-width: 0; }
.brand img { flex: none; }
.brand-copy { min-width: 0; }
.brand-name,
.brand-name {
  font-weight: 800; font-size: 15px; letter-spacing: 0.02em; line-height: 1.05;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-copy { display: flex; flex-direction: column; }
/* Шесть пунктов вместо пяти: при шаге 20px русское меню съедало весь запас
   плашки и название в логотипе переносилось на вторую строку. 16px
   возвращают ширину одного пункта, а nowrap на названии не даёт ему
   ломаться снова, если подписи однажды подрастут. */
.main-nav { display: flex; align-items: center; gap: 16px; margin-left: 10px; flex: 0 0 auto; white-space: nowrap; }
.nav-link { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
.lang-toggle {
  display: flex; align-items: center; border: 1px solid #DADCE0;
  border-radius: 999px; overflow: hidden;
}
/* В оригинале это были <button> со скриптом. Теперь это ссылки на ту же страницу
   на другом языке: язык живёт в адресе, а не в localStorage. */
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 13px; border: none; cursor: pointer; background: transparent;
  color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.lang-btn.is-active { background: var(--accent); color: #fff; }
.search-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid #DADCE0;
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink);
  flex: none;
}
.search-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Мобильная навигация ----------
   Это добавление, а не перенос: в оригинале .main-nav ниже 900px получала
   display:none и не заменялась ничем, то есть с телефона в разделы попасть
   было нельзя вовсе. Разметка бургера и панели описана в layout/header.php. */
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid #DADCE0; background: #fff; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink); flex: none;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle-bars { display: block; width: 17px; height: 12px; position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  border-radius: 2px; background: currentColor; transition: transform 0.18s, opacity 0.18s;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ---------- Hero ---------- */
/* Свежая новость: текст слева, снимок справа, ничего поверх кадра. Раньше
   заголовок и плашки лежали на фотографии и закрывали лица (28.09.2026). */
.hero { max-width: 1200px; margin: 0 auto; padding: 32px 24px 8px; }
.hero-card {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); min-height: 460px;
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-sm);
}
.hero-card--text { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.hero-media { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; background: #E9EDF2; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
  transition: transform 0.4s ease;
}
.hero-card:hover .hero-img { transform: scale(1.02); }
.hero-inner {
  grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 44px 44px 44px 48px;
}
.hero-badges { display: flex; align-items: center; gap: 10px 14px; margin-bottom: 20px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; border-radius: 6px;
}
.badge-main { background: var(--yellow); color: var(--ink); }
.badge-cat { background: #EAF0FC; color: var(--accent); }
.hero-date { color: var(--muted2); font-family: var(--mono); font-size: 13px; }
.hero-title {
  font-family: var(--head); margin: 0; color: var(--ink);
  font-size: 36px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance;
}
.hero-lead { margin: 16px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.hero-cta {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 9px; height: 48px; padding: 0 24px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; border-radius: 10px; transition: background 0.15s;
}
.hero-card:hover .hero-cta { background: var(--accent-strong); }
.hero-card--static .hero-cta:hover,
.hero-card--static .hero-cta:focus-visible { background: var(--accent-strong); }
.hero-card--static:hover .hero-img { transform: none; }

/* ---------- News feed ---------- */
.feed { max-width: 1200px; margin: 0 auto; padding: 56px 24px 8px; }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.head-title { display: flex; align-items: center; gap: 14px; }
.head-bar { width: 6px; height: 30px; background: var(--accent); border-radius: 3px; flex: none; }
/* Типографика одна на весь сайт: H1 страницы 40px/800, заголовок секции 30px/700,
   на телефоне 28 и 24. Заголовки секций ниже держат те же значения. */
.head-h { font-family: var(--head); margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
h1.head-h { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.feed-all { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--accent); }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feed-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feed-grid--two .card-media { height: 240px; }
.feed-empty { margin: 0; font-size: 16px; color: var(--muted); }

.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--card-line);
  border-radius: 14px; overflow: hidden; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(8, 14, 22, 0.4); border-color: #DDE0E5; }
.card-media { position: relative; height: 188px; background: #E9EDF2; }
.card-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-cat {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; height: 25px; padding: 0 11px;
  background: rgba(255, 255, 255, 0.94); color: var(--accent); font-family: var(--mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; border-radius: 6px;
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-date { font-family: var(--mono); font-size: 12.5px; color: var(--muted2); }
.card-title { font-family: var(--head); margin: 10px 0 0; font-size: 19px; line-height: 1.28; font-weight: 700; letter-spacing: -0.01em; }
.card-excerpt { margin: 11px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card-read { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--accent); }

/* ---------- About / numbers ---------- */
/* Строгая карточка из двух частей: слева о компании на белом, справа цифры
   строками, как в справке, на синей панели с проводами контактной сети. */
.about { max-width: 1200px; margin: 0 auto; padding: 72px 24px 16px; }
.about-card {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-sm);
}
.about-inner { padding: 52px 52px 48px; }
.about-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent);
}
.about-label::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--yellow); }
.about-title { font-family: var(--head); margin: 16px 0 18px; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.about-text { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.about-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding-bottom: 3px;
  border-bottom: 2px solid var(--yellow); font-size: 15px; font-weight: 600; color: var(--accent);
}
.about-link:hover { color: var(--accent-strong); }
.about-stats {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 64px 44px 36px; background: var(--accent); color: #fff;
}
.about-wires {
  position: absolute; left: 0; top: 14px; width: 100%; height: 56px;
  fill: none; stroke: rgba(255, 255, 255, 0.34); stroke-width: 1.5;
}
.about-wires path { vector-effect: non-scaling-stroke; }
.about-stat {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.about-stat:first-of-type { border-top: 0; }
.stat-num { flex: none; min-width: 2.5em; font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.9); }

/* ---------- Footer ----------
   Подвал это скруглённая плашка той же формы, что и шапка, а не полоса во всю
   ширину до низа окна. Снизу намеренно остаётся отступ: без него нижние
   скругления упираются в край экрана и их не видно, а именно они и делают
   подвал карточкой. */
.site-footer {
  max-width: 1152px;
  margin: 96px auto 24px;
  background: var(--footer); color: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
}
/* Пока окно уже 1200px, сохраняем те же 24px полей, что у первого блока. */
@media (max-width: 1200px) {
  .site-footer { margin-left: 24px; margin-right: 24px; }
}
.footer-inner { max-width: 1152px; margin: 0 auto; padding: 56px 24px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-about { margin: 20px 0 0; max-width: 300px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }
.footer-col-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--yellow); text-transform: uppercase; }
.footer-sub { margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, 0.5); font-family: var(--mono); }
.footer-sub.gap { margin-top: 16px; }
.footer-val { margin-top: 5px; font-size: 15px; color: rgba(255, 255, 255, 0.92); }

/* Соцсети иконками. Подпись рядом с иконкой остаётся текстом, а не уходит в
   один только aria-label: у половины посетителей сайта госоператора нет
   привычки узнавать сервис по монохромному глифу. */
.footer-socials { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 15px 0 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.92); font-size: 14px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.footer-social svg { flex: none; }
.footer-social:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff; transform: translateY(-1px);
}
.footer-bottom {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.62); }
.footer-bottom a:hover { color: var(--yellow); }
@media (max-width: 720px) {
  .site-footer { margin: 64px 16px 16px; border-radius: var(--r-lg); }
}

/* ---------- Article ---------- */
.article { max-width: 1200px; margin: 0 auto; padding: 40px 24px 8px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13px; color: var(--muted2); margin-bottom: 26px; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.article-tagrow { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; flex-wrap: wrap; }
.article-cat { display: inline-flex; align-items: center; height: 27px; padding: 0 12px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; border-radius: 6px; }
.article-date { color: var(--muted2); font-family: var(--mono); font-size: 13.5px; }
.article-title { font-family: var(--head); margin: 0; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.article-lead { margin: 22px 0 24px; font-size: 20px; line-height: 1.5; color: #4A5058; font-weight: 500; }
.article-meta { display: flex; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13.5px; color: var(--muted2); flex-wrap: wrap; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #C4C8CE; flex: none; }
.article-feat { margin: 32px 0; height: 480px; border-radius: 16px; overflow: hidden; background: #E9EDF2; }
/* RENDERER-SPEC §3: обложка это настоящая картинка. Высоту по-прежнему задаёт
   .article-feat, поэтому сдвига вёрстки нет ни в одном варианте. */
.article-feat-img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }

.facts { background: #F3F5F8; border: 1px solid #E6E9EE; border-radius: 14px; padding: 28px 30px; margin-bottom: 40px; }
.facts-title { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-k { font-family: var(--mono); font-size: 13px; color: var(--muted2); }
.fact-v { font-size: 16px; font-weight: 600; color: var(--ink); }

/* Заголовок, лид и обложка идут во всю колонку статьи, поэтому текст, прижатый
   влево, оставлял справа мёртвую полосу в треть экрана. Колонка чтения шире и
   стоит по центру: длина строки остаётся читаемой, а пустое поле — симметричным. */
.article-body { max-width: 800px; margin-inline: auto; }
.article-body p { margin: 0 0 22px; font-size: 17.5px; line-height: 1.72; color: #2A2E35; }
.article-body h2 { font-family: var(--head); margin: 40px 0 16px; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.article-body blockquote { margin: 36px 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--accent); font-size: 23px; line-height: 1.4; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 8px; max-width: 720px; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; background: #fff; border: 1px solid #E1E3E7; border-radius: 999px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.related { max-width: 1200px; margin: 0 auto; padding: 64px 24px 8px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.related .card-media { height: 170px; }
.related .card-title { margin: 9px 0 0; font-size: 17.5px; line-height: 1.3; }
.related .card-body { padding: 20px 20px 22px; }

/* ---------- Article body: блоки редактора (RENDERER-SPEC §5) ----------
   Ни одного нового цвета: всё либо переменная, либо значение, уже
   встречающееся в файле (#F3F5F8 и #E6E9EE из .facts, #2A2E35 из
   .article-body p). */
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-strong); }
.article-body h3 { font-family: var(--head); margin: 30px 0 12px; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; font-size: 17.5px; line-height: 1.72; color: #2A2E35; }
.article-body li { margin: 0 0 8px; }
.article-body li::marker { color: var(--muted2); }

.article-fig { margin: 32px 0; }
.article-fig img { width: 100%; height: auto; border-radius: 14px; }
/* Вертикальный кадр во всю ширину колонки вытягивался на две тысячи пикселей
   высоты. Сужаем саму врезку, а не картинку: ширина остаётся стопроцентной,
   поэтому браузер по-прежнему резервирует место по width/height и вёрстка при
   ленивой загрузке не прыгает. */
.article-fig--tall { max-width: 320px; margin-inline: auto; }
.article-cap { display: block; margin: 10px 0 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; color: var(--muted2); }

.article-body blockquote .article-quote-by { display: block; margin: 14px 0 0; font-family: var(--mono); font-size: 13.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--muted2); }
.article-body blockquote .article-quote-by b { font-weight: 600; color: var(--ink); }

.article-note { display: block; margin: 28px 0; padding: 22px 24px; border-radius: 14px; background: #F3F5F8; border: 1px solid #E6E9EE; }
.article-note.is-warn { background: #FFFBEA; border-color: #F2E4A6; }
.article-note-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.article-note.is-warn .article-note-badge { color: #7A5806; }
.article-note-ico { flex: none; }
.article-note-text { margin: 10px 0 0; font-size: 16.5px; line-height: 1.6; color: #2A2E35; }

.article-file { display: flex; align-items: center; gap: 14px; margin: 22px 0; padding: 14px 18px; border: 1px solid var(--card-line); border-radius: 14px; background: #fff; }
.article-file:hover { border-color: var(--accent); }
.article-file-ext { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: #F3F5F8; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.article-file-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.article-file-name { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.article-file-meta { font-family: var(--mono); font-size: 13px; color: var(--muted2); }

.article-embed { margin: 32px 0; }
.article-embed-play { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #101317; cursor: pointer; aspect-ratio: 16 / 9; }
.article-embed--map .article-embed-play { aspect-ratio: auto; height: var(--embed-h, 440px); }
.article-embed-poster { width: 100%; height: 100%; object-fit: cover; }
.article-embed-ico { position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 22px; }
.article-embed-stub { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; color: #fff; font-size: 17.5px; text-align: center; }
.article-embed-stub small { font-family: var(--mono); font-size: 13.5px; opacity: 0.75; }
.article-embed iframe { display: block; width: 100%; height: var(--embed-h, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.article-embed--map iframe { aspect-ratio: auto; height: var(--embed-h, 440px); }

.article-langnote { margin: 0 0 26px; padding: 14px 18px; border-radius: 14px; background: #FFFBEA; border: 1px solid #F2E4A6; font-size: 15.5px; color: #4A5058; }

/* ---------- Маршруты: блок на главной ----------
   Заменил схему сети. У неё была честная оговорка «схема условная», но линии
   на ней всё равно были выдуманы, а до неё на том же месте стоял LiveMap со
   случайно сгенерированной телеметрией. Здесь настоящие номера из базы. */
/* ---------- «Чем можем помочь» на главной ----------
   Забытые вещи — крупная белая карточка (о ней просил АЭТ 12.11.2026) в том же
   языке, что остальные карточки сайта: тонкая рамка, синий акцент, синяя
   кнопка. Рядом три частых дела: маршруты, обращение, приём. Жёлтую заливку
   Артём забраковал 18.11.2026: не сочеталась с сайтом. */
.home-help {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 0;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px;
}
.help-lost {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 22px; align-content: start;
  padding: 32px 36px; border: 1px solid var(--card-line); border-radius: var(--r-lg);
  background: #fff; color: var(--ink); box-shadow: var(--sh-sm);
  transition: border-color 0.15s, transform 0.15s;
}
.help-lost:hover { border-color: var(--accent); transform: translateY(-2px); }
.help-lost-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--r-md); background: #EEF4FD; color: var(--accent);
}
.help-lost-body { display: flex; flex-direction: column; min-width: 0; }
.help-lost-kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.help-lost-title { margin-top: 10px; font-size: 28px; line-height: 1.18; font-weight: 700; letter-spacing: -0.015em; }
.help-lost-text { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 560px; }
.help-lost-steps {
  display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
}
.help-lost-step { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink); }
.help-lost-step b {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px;
  border-radius: 50%; background: #EEF4FD; color: var(--accent); font-size: 13px; font-weight: 700;
}
.help-lost-cta {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: var(--r-sm); background: var(--accent); color: #fff;
  font-size: 15.5px; font-weight: 600; transition: background 0.15s;
}
.help-lost:hover .help-lost-cta { background: var(--accent-strong); }
.help-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.help-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; align-content: center; column-gap: 14px; height: 100%;
  padding: 18px 22px; border: 1px solid var(--card-line); border-radius: var(--r-lg); background: #fff; color: var(--ink);
  box-shadow: var(--sh-sm); transition: border-color 0.15s, transform 0.15s;
}
.help-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.help-link svg { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); }
.help-link-title { font-size: 17px; font-weight: 600; }
.help-link-text { grid-column: 1; margin-top: 3px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .home-help { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .home-help { padding: 24px 14px 0; gap: 12px; }
  .help-lost { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 16px; }
  .help-lost-icon { width: 48px; height: 48px; }
  .help-lost-title { font-size: 23px; }
  .help-lost-cta { grid-column: 1; justify-self: stretch; justify-content: center; }
  .help-link { padding: 15px 18px; }
}

.routes-teaser { max-width: 1200px; margin: 0 auto; padding: 56px 24px 8px; }
.routes-teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; flex-wrap: wrap; }
.routes-teaser-kicker { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.routes-teaser-title { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.routes-teaser-sub { margin: 12px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); max-width: 560px; }
.routes-teaser-all { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--accent); }
.routes-teaser-row + .routes-teaser-row { margin-top: 22px; }
.routes-teaser-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.routes-teaser-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.route-chip--more { color: var(--accent); border-style: dashed; }

/* Номер маршрута. Одна и та же плашка на главной и на странице маршрутов,
   поэтому размеры заданы здесь один раз. */
.route-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 46px; padding: 0 14px;
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink);
  transition: border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.route-chip:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px); box-shadow: var(--sh-sm);
}

/* ---------- Страница маршрутов ---------- */
.routes-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 8px; }
.routes-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 8px; flex-wrap: wrap; }
.routes-search {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: min(240px, 100%); max-width: 420px;
  height: 46px; padding: 0 16px;
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-pill);
  color: var(--muted); transition: border-color 0.15s, box-shadow 0.15s;
}
.routes-search:focus-within { border-color: var(--accent); box-shadow: var(--sh-sm); }
.routes-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--head); font-size: 15px; color: var(--ink);
}
/* Крестик очистки в Safari и Chrome рисуется поверх скруглённой рамки. */
.routes-search input::-webkit-search-cancel-button { cursor: pointer; }
.routes-count { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted2); }

.routes-group { margin-top: 36px; }
.routes-empty { margin: 32px 0 0; font-size: 15px; color: var(--muted); }
.routes-empty[hidden] { display: none; }
.routes-group[hidden] { display: none; }
.routes-group-title { margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); }
/* Сетка, а не flex-wrap: у маршрутов подписи разной длины, и в свободном
   переносе карточки получаются разной ширины, а ряды рваными. Колонка
   фиксированной минимальной ширины выравнивает и то и другое. */
.routes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(268px, 100%), 1fr));
  gap: 10px; margin: 0; padding: 0; list-style: none;
}
.route-cell[hidden] { display: none; }
.route-card {
  display: flex; align-items: center; gap: 12px; height: 100%;
  min-height: 58px; padding: 10px 16px;
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-sm);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.route-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-sm); }
/* Номер выровнен по фиксированной ширине, иначе «1» и «120a» разъезжают
   подписи соседних карточек по горизонтали. */
.route-num { flex: none; min-width: 38px; font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--ink); }
.route-card:hover .route-num { color: var(--accent); }
.route-ends {
  flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; color: var(--muted);
  /* Три строки, а не две: длинные казахские конечные троллейбусов 1, 12 и 25
     на широком экране обрывались на одном и том же слове и выглядели одним
     маршрутом. Высоту карточек в ряду выравнивает сетка. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.route-cta { display: inline-flex; flex: none; color: var(--muted2); }
.route-card:hover .route-cta { color: var(--accent); }
.routes-note {
  margin: 40px 0 0; padding: 16px 20px; border-radius: var(--r-md);
  background: #F3F5F8; border: 1px solid #E6E9EE;
  font-size: 13.5px; line-height: 1.55; color: #4A5058;
}

/* ---------- Модальное окно маршрута ----------
   Нативный <dialog>: он сам уходит в top layer, сам рисует ::backdrop, сам
   закрывается по Esc и сам делает остальную страницу инертной. Своя ловушка
   фокуса и блокировка прокрутки, написанные для поиска и меню, здесь не нужны. */
.route-modal {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 0; border: none; border-radius: var(--r-lg);
  background: #fff; color: var(--ink); box-shadow: var(--sh-lg);
  overflow: hidden;
}
/* Без размытия: оно перерисовывало весь экран и задерживало открытие окна. */
.route-modal::backdrop { background: rgba(16, 19, 23, 0.6); }
/* Без JS диалог остаётся обычным блоком: браузер прокручивает к нему по якорю,
   и схема видна. Поэтому скрывать его в CSS нельзя. */
.route-modal:not([open]) { display: none; }
/* Фокус при открытии получает само окно (site.js); рамка вокруг всего окна
   выглядела сбоем, в Safari она появлялась и после касания. */
.route-modal:focus, .route-modal:focus-visible { outline: none; }
.route-modal-inner { display: flex; flex-direction: column; max-height: calc(100vh - 64px); }
.route-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 18px; border-bottom: 1px solid var(--line); flex: none;
}
.route-modal-id { display: flex; align-items: center; gap: 14px; }
.route-modal-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 44px; padding: 0 12px; flex: none;
  background: var(--accent); color: #fff; border-radius: var(--r-xs);
  font-family: var(--mono); font-size: 19px; font-weight: 600;
}
.route-modal-title { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; }
.route-modal-ends { margin: 5px 0 0; font-size: 14px; color: var(--muted); }
.route-modal-close {
  width: 40px; height: 40px; flex: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.route-modal-close:hover { border-color: var(--accent); color: var(--accent); background: #F5F9FD; }
.route-modal-body { padding: 22px 24px 26px; overflow-y: auto; }
.route-scheme { margin: 0; border-radius: var(--r-md); overflow: hidden; background: #EEF2F6; border: 1px solid var(--line); }
.route-scheme img { width: 100%; height: auto; }
.route-scheme figcaption { padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; font-size: 13px; }
.route-scheme figcaption a { color: var(--accent); }
.route-scheme figcaption a:hover { text-decoration: underline; }
.route-note { margin: 18px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.route-stops-title { margin: 24px 0 12px; font-size: 15px; font-weight: 600; }
/* Окно маршрута повторяет утверждённый АЭТ маршрутный лист: жёлтый номер,
   первый и последний рейс, нарисованная схема и остановки линией с кружками
   по обоим направлениям. Слева схема (на телефоне — сверху), справа остановки. */
.route-modal-num { background: var(--yellow); color: #0B3F8F; font-weight: 800; }
.route-sheet { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.route-sheet--plain { grid-template-columns: minmax(0, 1fr); }
.route-sheet-side { display: grid; gap: 16px; position: sticky; top: 0; }
.route-trips { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.route-trips div { padding: 12px 16px; }
.route-trips div + div { border-left: 1px solid var(--line); }
.route-trips dt { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.route-trips dd { margin: 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.route-scheme--sheet { background: #fff; }
.route-scheme--sheet img { cursor: zoom-in; }
.route-scheme--map { margin-top: 24px; border: 0; background: none; border-radius: 0; }
.route-scheme--map img { border-radius: var(--r-md); border: 1px solid var(--line); }
.route-scheme--map figcaption { border: 0; padding: 8px 0 0; background: none; }
.route-directions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.route-sheet--plain .route-directions { gap: 32px; }
.route-direction .route-stops-title { margin-top: 0; font-size: 13.5px; line-height: 1.35; color: var(--accent); }
/* Линия маршрута: кружки остановок на синей вертикали, у конечных — крупнее. */
.route-line { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.35; color: var(--ink); }
.route-line li { position: relative; padding: 0 0 11px 24px; }
.route-line li::before {
  content: ""; position: absolute; left: 4px; top: 3px;
  width: 9px; height: 9px; border: 2.5px solid var(--accent); border-radius: 50%; background: #fff;
}
.route-line li::after { content: ""; position: absolute; left: 9px; top: 15px; bottom: -3px; width: 2.5px; background: var(--accent); }
.route-line li:last-child { padding-bottom: 0; }
.route-line li:last-child::after { display: none; }
.route-line li:first-child, .route-line li:last-child { font-weight: 600; }
.route-line li:first-child::before, .route-line li:last-child::before { left: 2px; top: 1px; width: 13px; height: 13px; background: var(--accent); box-shadow: inset 0 0 0 2.5px #fff; }
.route-sheet-note { margin: 22px 0 0; font-size: 12.5px; color: var(--muted2); }
/* Закупки на «Открытости» — одна строка со ссылкой, без своего блока (АЭТ). */
.openness-aside { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.openness-aside a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.route-map-link {
  display: inline-flex; align-items: center; margin-top: 22px;
  height: 44px; padding: 0 20px; border-radius: var(--r-xs);
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  transition: background 0.15s;
}
.route-map-link:hover { background: var(--accent-strong); }

/* ---------- Поделиться ---------- */
.share { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.share-title { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  height: 44px; padding: 0 18px 0 15px;
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-pill);
  font-family: var(--head); font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
/* Фирменные цвета сетей только на наведении: ряд разноцветных кнопок под
   статьёй перетягивает внимание с самого материала. */
.share-btn--whatsapp:hover { border-color: #25D366; color: #128C4A; }
.share-btn--telegram:hover { border-color: #2AABEE; color: #1B8FCC; }
.share-btn--facebook:hover { border-color: #1877F2; color: #1461CA; }
.share-btn--copy:hover { border-color: var(--accent); color: var(--accent); }
.share-btn.is-done { border-color: #2F9E5B; color: #2F9E5B; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* Отличие от оригинала: навигация не исчезает, а уезжает в мобильную панель.
     Порог 1100, а не 900: между 900 и 1270 горизонтальное меню физически не
     помещалось в плашку ни на одном языке. */
  .nav-toggle { display: inline-flex; }
  /* Закрытая панель именно display:none, а не сдвиг за экран трансформацией:
     элемент с position:fixed, уехавший вправо, продолжает расширять
     горизонтальную прокрутку документа, и на 360px страница ездила вбок.
     Въезд панели поэтому анимацией, а не переходом. */
  .main-nav {
    display: none;
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(330px, 88vw); margin: 0; z-index: 120;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 22px 20px 28px; overflow-y: auto; white-space: normal;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px -30px rgba(8, 14, 22, 0.5);
  }
  .main-nav.is-open { display: flex; animation: navPanelIn 0.2s ease; }
  .main-nav .nav-link {
    display: block; padding: 14px 4px; font-size: 16px; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .main-nav .nav-link:last-child { border-bottom: 0; }
  .nav-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
  .nav-panel-title { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); }
  /* Подложка обязана быть ниже шапки в КОРНЕВОМ контексте, а не полагаться на
     подъём .site-header при открытом меню: панель лежит внутри шапки, её
     z-index считается там же, и если подъём не сработал, затемнение ложится
     поверх самого меню и оно выглядит серым и мёртвым. 40 < 50 у .site-header,
     поэтому порядок верен всегда. */
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(16, 19, 23, 0.5); border: 0; padding: 0; cursor: pointer;
  }
  .nav-backdrop[hidden] { display: none; }
  body.is-nav-open { overflow: hidden; }
  /* Две ловушки сразу, обе про контекст наложения шапки.
     Первая: шапка это sticky с z-index 50, то есть собственный контекст, и
     z-index 120 у панели считается ВНУТРИ него, а подложка с z-index 110
     живёт в корневом и оказывалась поверх меню.
     Вторая: backdrop-filter делает элемент содержащим блоком для потомков с
     position:fixed, поэтому панель позиционировалась относительно шапки,
     а не окна. Пока меню открыто, блюр не нужен и не виден: его закрывает
     сама панель.
     Блюр при этом стоит не на самой шапке, а на .header-inner внутри неё,
     поэтому снимать его нужно именно там: иначе панель остаётся привязанной к
     полоске шапки, схлопывается в её высоту и ссылки уезжают под обрез. */
  body.is-nav-open .site-header {
    z-index: 130;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.is-nav-open .header-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .feed-grid { grid-template-columns: repeat(2, 1fr); }
}
@keyframes navPanelIn { from { transform: translateX(100%); } to { transform: none; } }
@media (min-width: 1101px) {
  /* На десктопе панель это обычная строка навигации, служебные части не нужны:
     заголовок панели, кнопка закрытия и дубль поиска живут только в мобильной.
     Порог тот же, что у бургера: при 901 панель на 901–1100 открывалась без
     заголовка и крестика. */
  .nav-panel-head { display: none; }
  .nav-link--search { display: none; }
}
@media (max-width: 860px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { grid-column: 1; aspect-ratio: 16 / 10; }
  .hero-inner { grid-row: 2; padding: 26px 28px 30px; }
  .about-card { grid-template-columns: minmax(0, 1fr); }
  .about-inner { padding: 40px 32px 36px; }
  .about-stats { padding: 56px 32px 24px; }
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-title { font-size: 30px; }
  .article-title, .page-title, h1.head-h { font-size: 34px; }
  .head-h, .about-title, .routes-teaser-title { font-size: 26px; }
  .article-feat { height: 360px; }
}
@media (max-width: 760px) {
  .route-sheet { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .route-sheet-side { position: static; }
}
@media (max-width: 379px) {
  .route-directions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .routes-teaser-head { flex-direction: column; align-items: flex-start; }
  .routes-teaser-title { font-size: 26px; }
}
@media (max-width: 640px) {
  .routes-teaser, .routes-page { padding-left: 14px; padding-right: 14px; }
  .routes-teaser-title { font-size: 24px; }
  .route-modal-head { padding: 14px 14px 12px; }
  .route-modal-id { gap: 12px; }
  .route-modal-num { min-width: 0; height: 38px; font-size: 17px; }
  .route-modal-title { font-size: 15.5px; }
  .route-modal-ends { margin-top: 3px; font-size: 13px; }
  .route-modal-body { padding: 18px 16px 22px; }
  .route-ends { -webkit-line-clamp: 2; }
}
@media (max-width: 600px) {
  .header-inner { gap: 8px; padding: 0 12px; height: 60px; }
  /* Логотип обязан ужиматься, иначе .header-actions выдавливает шапку за экран
     и появляется горизонтальная прокрутка. В оригинале это не проявлялось
     только потому, что навигация ниже 900px исчезала совсем и место было. */
  .brand { flex: 0 1 auto; gap: 8px; min-width: 0; }
  .brand img { width: 34px; height: auto; }
  .brand-copy { min-width: 0; }
  .brand-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Точки-разделители при переносе оставались висеть в конце строки. */
  .article-meta .dot, .page-meta .dot { display: none; }
  .header-actions { gap: 6px; margin-left: auto; flex: none; }
  .lang-btn { padding: 6px 7px; font-size: 11px; }
  .a11y-btn { width: 34px; height: 34px; flex: none; }
  .search-btn { display: inline-flex; width: 34px; height: 34px; flex: none; }
  .nav-toggle { width: 34px; height: 34px; }

  .hero { padding: 16px 16px 4px; }
  .hero-card { border-radius: 16px; }
  .hero-media { aspect-ratio: 3 / 2; }
  .hero-inner { padding: 20px 18px 22px; }
  .hero-badges { margin-bottom: 12px; gap: 8px 10px; }
  .hero-badges .badge { height: 24px; padding: 0 10px; font-size: 11px; }
  .hero-date { font-size: 12.5px; }
  .hero-title { font-size: 24px; }
  .hero-lead {
    font-size: 14.5px; line-height: 1.45; margin: 12px 0 18px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  }
  .hero-cta { height: 44px; padding: 0 20px; font-size: 14.5px; }

  .feed { padding: 44px 16px 4px; }
  .feed-grid { grid-template-columns: 1fr; gap: 18px; }
  .feed-grid--two .card-media { height: 188px; }
  .head-h { font-size: 24px; }
  h1.head-h { font-size: 28px; }

  .about { padding: 52px 16px 8px; }
  .about-card { border-radius: 16px; }
  .about-inner { padding: 30px 22px 28px; }
  .about-title { font-size: 24px; }
  .about-text { font-size: 15.5px; }
  .about-link { margin-top: 22px; }
  .about-stats { padding: 50px 22px 14px; }
  .about-stat { padding: 14px 0; }
  .stat-num { font-size: 32px; }

  .footer-inner { padding: 48px 16px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .article { padding: 26px 16px 4px; }
  .article-title { font-size: 28px; }
  .article-lead { font-size: 17.5px; }
  .article-feat { height: 230px; margin: 24px 0; }
  .facts { padding: 22px 20px; }
  .facts-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-body p { font-size: 16.5px; }
  .article-body h2 { font-size: 23px; }
  .article-body h3 { font-size: 19px; }
  .article-body ul, .article-body ol { font-size: 16.5px; padding-left: 20px; }
  .article-body blockquote { font-size: 20px; margin: 28px 0; padding-left: 20px; }
  .article-note { padding: 18px; margin: 22px 0; }
  .article-fig { margin: 24px 0; }
  .article-embed { margin: 24px 0; }
  .article-file { padding: 12px 14px; }
  .related { padding: 48px 16px 4px; }
  .routes-teaser { padding-top: 34px; }
}
/* Очень узкие экраны (360px и меньше). В оригинале здесь пропадала кнопка
   поиска и не оставалось ничего: навигации не было в принципе. Теперь поиск
   есть отдельным пунктом внутри мобильного меню, поэтому кнопку убрать можно. */
@media (max-width: 380px) {
  .search-btn { display: none; }
  .header-inner { gap: 6px; }
  .article-meta { gap: 10px; }
  .facts { padding: 18px 16px; }
  .about-inner { padding: 26px 18px 24px; }
  .about-stats { padding-left: 18px; padding-right: 18px; }
  .stat-num { font-size: 28px; }
}

/* ==================================================================
   A11y / доступность / расширенные страницы (Приказ 124-НҚ)
   ================================================================== */

.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 200; padding: 12px 20px;
  background: var(--accent); color: #fff;
  font-family: var(--head); font-size: 15px; font-weight: 600;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0; top: 0;
  outline: 3px solid var(--yellow); outline-offset: 2px;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.site-footer :focus-visible { outline-color: var(--yellow); }

.a11y-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid #DADCE0;
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink); flex: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.a11y-btn:hover { border-color: var(--accent); color: var(--accent); }
.a11y-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Search ---------- */
.search-close {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--muted);
}
.search-close:hover { color: var(--ink); border-color: #DADCE0; }
.search-result {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; border-radius: 10px; transition: background 0.12s;
}
.search-result:hover { background: #F3F5F8; }
.search-result-title { font-family: var(--head); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.search-result-sub { font-family: var(--mono); font-size: 13px; color: var(--muted2); }
.page-body mark { background: var(--yellow); color: var(--ink); border-radius: 2px; padding: 0 1px; }
/* Сообщения страницы поиска. */
.search-hint, .search-empty {
  padding: 22px 14px; text-align: center; font-size: 14.5px; color: var(--muted2);
}

/* ---------- Skeleton pages ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 40px 24px 8px; }
.page-head { margin: 4px 0 32px; }
.page-title {
  font-family: var(--head); margin: 0; font-size: 40px; line-height: 1.12;
  font-weight: 800; letter-spacing: -0.02em; text-wrap: balance;
}
.page-intro { margin: 18px 0 0; max-width: 720px; font-size: 18px; line-height: 1.55; color: var(--muted); }
/* Строка «Обновлено …» у наполненного раздела. Те же размеры, что у
   .article-meta: это одна и та же по смыслу подпись под заголовком. */
.page-meta { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-family: var(--mono); font-size: 13.5px; color: var(--muted2); flex-wrap: wrap; }
.page-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #C4C8CE; flex: none; }
.page-body { max-width: 720px; }

/* Раздел это узкая колонка текста, поэтому справа оставалась пустота во всю
   высоту страницы. Там теперь навигация по остальным разделам. */
.page-columns {
  display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.page-columns .page-body { max-width: none; }
.page-aside {
  position: sticky; top: 92px;
  padding: 22px 24px; border: 1px solid var(--card-line);
  border-radius: var(--r-lg); background: #fff;
}
.page-aside-title {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted2); text-transform: uppercase; margin: 0 0 14px;
}
.page-aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.page-aside-list a {
  display: block; padding: 7px 10px; margin-inline: -10px; border-radius: var(--r-xs);
  font-size: 14.5px; line-height: 1.35; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.page-aside-list a:hover { background: #F3F5F8; color: var(--ink); }

@media (max-width: 1000px) {
  .page-columns { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .page-aside { position: static; }
}

/* ---------- FAQ accordion ---------- */
.faq { max-width: 980px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-family: var(--head); font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; flex: none; font-family: var(--mono); font-size: 22px; font-weight: 400;
  color: var(--accent);
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 4px 22px; }
.faq-a p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* ---------- Feedback ---------- */
.feedback-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px; margin: 8px 0 24px;
}
.contact-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--card-line); border-radius: 14px;
  padding: 22px 24px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(8, 14, 22, 0.4); border-color: #DDE0E5; }
.contact-card-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted2); text-transform: uppercase; }
.contact-card-val { font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Sitemap ---------- */
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 36px; }
.sitemap-group { min-width: 0; }
.sitemap-group h2 {
  font-family: var(--mono); margin: 0 0 16px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase;
}
.sitemap-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.sitemap-list a { font-size: 15px; color: var(--accent); transition: color 0.15s; }
.sitemap-list a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---------- Страница поиска (серверный поиск, работает без JS) ---------- */
.search-page-form { display: flex; gap: 10px; margin: 0 0 28px; flex-wrap: wrap; }
.search-page-input {
  flex: 1; min-width: 200px; height: 48px; padding: 0 16px;
  border: 1px solid #DADCE0; border-radius: 10px; background: #fff;
  font-family: var(--head); font-size: 16px; color: var(--ink);
}
.search-page-submit {
  height: 48px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font-family: var(--head); font-size: 15px; font-weight: 600;
}
.search-page-submit:hover { background: var(--accent-strong); }
.search-page-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.search-page-list .search-result { border: 1px solid var(--card-line); }

/* ---------- Страница ошибки ---------- */
.error-code { font-family: var(--mono); font-size: 72px; line-height: 1; font-weight: 600; color: var(--accent); letter-spacing: -0.04em; margin: 0 0 12px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; margin-bottom: 24px; }
.error-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
.error-btn:hover { background: var(--accent-strong); }
.error-btn.is-ghost { background: #fff; color: var(--accent); border: 1px solid #DADCE0; }

/* ---------- BDV: версия для слабовидящих (СТ РК 2191 / ГОСТ Р 52872) ---------- */
.bdv-panel { display: none; background: #1b1f24; border-bottom: 3px solid #FFDB00; }
html.bdv .bdv-panel { display: block; }
.bdv-panel-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.bdv-group { display: flex; align-items: center; gap: 10px; }
.bdv-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: #C7CCD2; text-transform: uppercase; }
.bdv-btns { display: flex; gap: 6px; }
.bdv-ctl { min-width: 40px; height: 40px; padding: 0 13px; cursor: pointer; background: #2a2f36; color: #fff; border: 2px solid #3a4048; border-radius: 8px; font-family: var(--head); font-weight: 700; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.bdv-ctl:hover { border-color: #FFDB00; }
.bdv-ctl.is-active { background: #FFDB00; color: #14161A; border-color: #FFDB00; }
.bdv-a.mid { font-size: 20px; }
.bdv-a.big { font-size: 25px; }
.bdv-kern-btn.k1 { letter-spacing: 0; }
.bdv-kern-btn.k2 { letter-spacing: 0.12em; }
.bdv-kern-btn.k3 { letter-spacing: 0.22em; }
.bdv-swatch { width: 40px; height: 40px; border-radius: 8px; border: 2px solid #3a4048; cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 15px; }
.bdv-swatch:hover { border-color: #FFDB00; }
.bdv-swatch.is-active { border-color: #FFDB00; box-shadow: 0 0 0 2px #FFDB00; }
.bdv-swatch.sw1 { background: #ffffff; color: #000000; }
.bdv-swatch.sw2 { background: #000000; color: #ffffff; }
.bdv-swatch.sw3 { background: #9DD1FF; color: #063462; }
.bdv-swatch.sw4 { background: #000000; color: #7CFC5A; }
.bdv-swatch.sw5 { background: #F5EAD1; color: #4B3A28; }
.bdv-off { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; cursor: pointer; border-radius: 8px; background: transparent; color: #fff; border: 2px solid #6a717a; font-family: var(--head); font-weight: 600; font-size: 14px; }
.bdv-off:hover { border-color: #FFDB00; color: #FFDB00; }

html.bdv { --bdv-bg: #ffffff; --bdv-fg: #000000; --bdv-link: #0000CC; }
html.bdv.bdv-color-2 { --bdv-bg: #000000; --bdv-fg: #ffffff; --bdv-link: #FFE24D; }
html.bdv.bdv-color-3 { --bdv-bg: #9DD1FF; --bdv-fg: #063462; --bdv-link: #0a2f5c; }
html.bdv.bdv-color-4 { --bdv-bg: #000000; --bdv-fg: #7CFC5A; --bdv-link: #B6FF9E; }
html.bdv.bdv-color-5 { --bdv-bg: #F5EAD1; --bdv-fg: #3A2E1E; --bdv-link: #6B4A1F; }

html.bdv body { background: var(--bdv-bg); color: var(--bdv-fg); }
html.bdv.bdv-font-1 body { zoom: 1.1; }
html.bdv.bdv-font-2 body { zoom: 1.35; }
html.bdv.bdv-font-3 body { zoom: 1.6; }
/* Крупный шрифт увеличивает всю страницу, а пороги вёрстки считаются по
   настоящей ширине окна. Строка меню помещается в шапку от 1101px только в
   обычном масштабе, поэтому в полосе, где увеличенная шапка уже не влезает, а
   мобильная панель ещё не включилась, шапка возвращается к обычному размеру.
   Шире этой полосы шапка растёт вместе со страницей, уже неё открывается
   мобильная панель. Без этого на ноутбуке 1280–1366px при самом крупном
   шрифте страница уезжала вбок. */
@media (min-width: 1101px) and (max-width: 1211px) { html.bdv.bdv-font-1 .site-header { zoom: 0.9091; } }
@media (min-width: 1101px) and (max-width: 1486px) { html.bdv.bdv-font-2 .site-header { zoom: 0.7408; } }
@media (min-width: 1101px) and (max-width: 1761px) { html.bdv.bdv-font-3 .site-header { zoom: 0.625; } }
/* На телефоне правые кнопки шапки не ужимаются, и всё сжатие увеличенной
   шапки доставалось логотипу: при самом крупном шрифте он исчезал. Шапка
   остаётся обычного размера, её кнопки и так крупные; увеличивается страница. */
@media (max-width: 600px) {
  html.bdv.bdv-font-2 .site-header { zoom: 0.7408; }
  html.bdv.bdv-font-3 .site-header { zoom: 0.625; }
  /* Длинное казахское слово в заголовке не должно рваться посередине. */
  html.bdv.bdv-font-2 .page-title, html.bdv.bdv-font-2 .article-title,
  html.bdv.bdv-font-3 .page-title, html.bdv.bdv-font-3 .article-title { font-size: 19px; }
}
/* Колонки раздела переключаются по настоящей ширине окна, и увеличенная
   основная колонка сжимала боковую до двух-трёх букв в строке. С крупным
   шрифтом раздел всегда идёт одной колонкой. */
html.bdv.bdv-font-1 .page-columns, html.bdv.bdv-font-2 .page-columns,
html.bdv.bdv-font-3 .page-columns { grid-template-columns: minmax(0, 1fr); }
html.bdv.bdv-font-1 .page-aside, html.bdv.bdv-font-2 .page-aside,
html.bdv.bdv-font-3 .page-aside { position: static; }
/* На телефоне с крупным шрифтом колонка уже одного длинного слова: казахские
   слова и подписи капсом выталкивали страницу вбок. Перенос внутри слова лучше
   горизонтальной прокрутки. Сетки с минимальной шириной колонки ради того же
   случая записаны через min(…, 100%). */
html.bdv.bdv-font-2 body, html.bdv.bdv-font-3 body { overflow-wrap: anywhere; }
/* Окно маршрута и окно помощника меряют себя по экрану, а zoom увеличивает и
   эту мерку: окно выходило за верх и низ экрана, крестик пропадал. Делим на
   тот же коэффициент. */
html.bdv.bdv-font-1 :is(.route-modal, .route-modal-inner) { max-height: calc((100vh - 64px) / 1.1); }
html.bdv.bdv-font-2 :is(.route-modal, .route-modal-inner) { max-height: calc((100vh - 64px) / 1.35); }
html.bdv.bdv-font-3 :is(.route-modal, .route-modal-inner) { max-height: calc((100vh - 64px) / 1.6); }
html.bdv.bdv-font-1 .route-modal { width: min(1080px, calc((100vw - 32px) / 1.1)); }
html.bdv.bdv-font-2 .route-modal { width: min(1080px, calc((100vw - 32px) / 1.35)); }
html.bdv.bdv-font-3 .route-modal { width: min(1080px, calc((100vw - 32px) / 1.6)); }
html.bdv.bdv-font-1 .chat-panel { height: min(620px, calc((100dvh - 140px) / 1.1)); }
html.bdv.bdv-font-2 .chat-panel { height: min(620px, calc((100dvh - 140px) / 1.35)); }
html.bdv.bdv-font-3 .chat-panel { height: min(620px, calc((100dvh - 140px) / 1.6)); }
html.bdv:is(.bdv-font-2, .bdv-font-3) .route-modal-title { overflow-wrap: normal; }
@media (max-width: 600px) {
  html.bdv.bdv-font-1 .chat-panel { height: calc(var(--chat-h, 100dvh) / 1.1); }
  html.bdv.bdv-font-2 .chat-panel { height: calc(var(--chat-h, 100dvh) / 1.35); }
  html.bdv.bdv-font-3 .chat-panel { height: calc(var(--chat-h, 100dvh) / 1.6); }
  html.bdv:is(.bdv-font-2, .bdv-font-3) .route-modal-id { flex-direction: column; align-items: flex-start; }
}
html.bdv.bdv-kern-2 main, html.bdv.bdv-kern-2 .site-header, html.bdv.bdv-kern-2 .site-footer { letter-spacing: 0.09em; }
html.bdv.bdv-kern-3 main, html.bdv.bdv-kern-3 .site-header, html.bdv.bdv-kern-3 .site-footer { letter-spacing: 0.16em; }
/* Коды языков в шапке не текст для чтения: разрядка только расширяла кнопки, и
   при самом крупном шрифте шапка вылезала за экран телефона. */
html.bdv .lang-btn { letter-spacing: 0; }
html.bdv .site-header, html.bdv .about-card, html.bdv .about-stats, html.bdv .site-footer, html.bdv .card,
html.bdv .card-media, html.bdv .hero-card, html.bdv .facts, html.bdv .faq, html.bdv .faq-item,
html.bdv .contact-card,
html.bdv .badge, html.bdv .badge-cat, html.bdv .card-cat, html.bdv .article-cat, html.bdv .hero-cta,
html.bdv .main-nav, html.bdv .search-page-input, html.bdv .search-page-submit,
html.bdv .article-note, html.bdv .article-file, html.bdv .article-embed-play, html.bdv .article-langnote,
/* Эти семь плашек держат собственный белый или цветной фон, и до сих пор в
   списке стоял только их текст. В схемах «белое на чёрном» и «зелёное на
   чёрном» это давало белым по белому: пропадали боковое оглавление,
   приглашение записаться на приём, подтверждение с номером заявки,
   сообщение об ошибке и вся сетка маршрутов. */
html.bdv .appeal-cta-card, html.bdv .page-aside, html.bdv .appeal-error,
html.bdv .appeal-result, html.bdv .appeal-result-icon,
html.bdv .route-chip, html.bdv .route-card,
html.bdv .block-icon, html.bdv .help-lost, html.bdv .help-link,
html.bdv .route-trips, html.bdv .route-modal-num,
html.bdv .search-result { background: var(--bdv-bg) !important; background-image: none !important; color: var(--bdv-fg) !important; }
html.bdv h1, html.bdv h2, html.bdv h3, html.bdv p, html.bdv li, html.bdv summary, html.bdv time,
html.bdv strong, html.bdv blockquote, html.bdv .hero-title, html.bdv .hero-lead, html.bdv .hero-date,
html.bdv .about-label, html.bdv .about-title, html.bdv .about-text, html.bdv .stat-num, html.bdv .stat-label,
html.bdv .card-title, html.bdv .card-excerpt, html.bdv .card-date, html.bdv .brand-name,
html.bdv .footer-about, html.bdv .footer-sub, html.bdv .footer-val, html.bdv .footer-bottom, html.bdv .footer-col-label,
html.bdv .breadcrumb, html.bdv .article-date, html.bdv .article-meta, html.bdv .fact-k, html.bdv .fact-v,
html.bdv .page-title, html.bdv .page-intro, html.bdv .faq-q, html.bdv .faq-a p, html.bdv .contact-card-label,
html.bdv .contact-card-val, html.bdv .head-h,
html.bdv .article-cap, html.bdv .article-note-badge, html.bdv .article-note-text,
html.bdv .article-file-name, html.bdv .article-file-meta, html.bdv .article-quote-by,
html.bdv .appeal-cta-title, html.bdv .appeal-cta-text,
html.bdv .page-aside-title, html.bdv .appeal-result-title, html.bdv .appeal-result-label,
html.bdv .appeal-result-id, html.bdv .route-num, html.bdv .route-ends, html.bdv .route-cta,
html.bdv .help-lost-kicker, html.bdv .help-lost-title, html.bdv .help-lost-text, html.bdv .help-link-title,
html.bdv .help-link-text, html.bdv .route-trips dt, html.bdv .route-trips dd, html.bdv .route-modal-num,
html.bdv .article-quote-by b, html.bdv .article-embed-stub, html.bdv .error-code { color: var(--bdv-fg) !important; }
html.bdv a, html.bdv .nav-link, html.bdv .feed-all, html.bdv .card-read, html.bdv .search-result-title,
html.bdv .sitemap-list a, html.bdv .article-body a, html.bdv .article-file { color: var(--bdv-link) !important; }
html.bdv main a, html.bdv .nav-link, html.bdv .article-body a { text-decoration: underline; }
html.bdv .card, html.bdv .facts, html.bdv .faq-item, html.bdv .contact-card,
html.bdv .site-header, html.bdv .site-footer, html.bdv .main-nav,
html.bdv .appeal-cta-card, html.bdv .page-aside, html.bdv .appeal-error,
html.bdv .appeal-result, html.bdv .route-chip, html.bdv .route-card,
html.bdv .block-icon, html.bdv .block-shot,
html.bdv .article-note, html.bdv .article-file, html.bdv .article-langnote { border-color: var(--bdv-fg) !important; }
html.bdv .help-lost { border: 2px solid var(--bdv-fg); }
html.bdv .about-wires, html.bdv .head-bar { display: none !important; }
/* Схема сети в режиме БДВ скрывается целиком: мелкая графика в схемах
   высокой контрастности нечитаема, а текстом она ничего не сообщает. */
/* Схемы маршрутов это картинки-скриншоты: в версии для слабовидящих с
   отключёнными изображениями они не несут ничего, а список остановок рядом
   несёт всё. */
html.bdv.bdv-noimg .route-scheme { display: none !important; }
html.bdv mark { background: #FFDB00; color: #000; }
/* С крупным шрифтом в левой колонке промо тесно, поэтому в этом режиме
   кадр всегда стоит над заголовком, а текст идёт ниже на цвете схемы. */
html.bdv .hero-card, html.bdv .about-card { display: block; min-height: auto; }
html.bdv .hero-media { height: 300px; border-radius: 12px; }
html.bdv .hero-inner { padding: 28px 4px; }
html.bdv .about-stat { border-color: var(--bdv-fg); }
html.bdv .about-label::before { background: var(--bdv-fg); }
html.bdv.bdv-noimg .hero-media { display: none !important; }
html.bdv .card-media { height: auto; min-height: 0; padding: 12px 12px 0; }
html.bdv .card-cat, html.bdv .article-cat { position: static; border: 2px solid var(--bdv-fg); }
html.bdv .lang-btn:not(.is-active) { color: var(--bdv-fg) !important; }
html.bdv .lang-toggle { border-color: var(--bdv-fg) !important; }
html.bdv.bdv-noimg img { display: none !important; }
/* Подпись без кадра это строка «Фото: пресс-служба АЭТ» посреди текста,
   поэтому в режиме «без изображений» скрывается вся фигура целиком. */
html.bdv.bdv-noimg .article-fig, html.bdv.bdv-noimg .article-embed, html.bdv.bdv-noimg .article-feat { display: none !important; }
html.bdv a:focus-visible, html.bdv button:focus-visible { outline: 4px solid var(--bdv-fg); }
@media (max-width: 860px) {
  html.bdv .hero-media { height: 200px; }
}

/* ---------- Responsive: new blocks ---------- */
@media (max-width: 600px) {
  .page { padding: 26px 16px 4px; }
  .page-title { font-size: 28px; }
  .page-intro { font-size: 16px; }
  .feedback-grid { grid-template-columns: 1fr; }
  .sitemap { grid-template-columns: 1fr; gap: 28px; }
  .faq-q { font-size: 15.5px; }
  .error-code { font-size: 54px; }
}

@media (max-width: 760px) {
  .bdv-panel-inner { padding: 10px 14px; gap: 10px 16px; }
  .bdv-group { gap: 8px; flex-wrap: wrap; }
  /* Пять образцов цвета при крупном шрифте шире телефона. */
  .bdv-btns { flex-wrap: wrap; }
  .bdv-label { font-size: 11.5px; }
  .bdv-a, .bdv-kern-btn, .bdv-swatch { min-width: 36px; width: 36px; height: 36px; padding: 0; }
  .bdv-ctl[data-bdv-images] { min-width: 0; padding: 0 12px; height: 36px; }
  .bdv-a.big { font-size: 22px; }
  .bdv-off { margin-left: 0; width: 100%; justify-content: center; margin-top: 2px; }
}

/* В оригинале этого правила не было, при том что на странице крутилось
   около пятидесяти анимированных объектов. Анимации движения больше нет
   вовсе, но переходы и плавная прокрутка остаются, и их тоже надо гасить. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Приостановленный маршрут: остаётся в сети и в списке, но не подаётся как
   действующий. Одна плашка на карточке и одна в модальном окне. */
.route-suspended {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FDF3D8;
  color: #7A5806;
  font-size: 11.5px;
  font-weight: 700;
}

.route-modal-suspended {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FDF3D8;
  color: #7A5806;
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- Обращения граждан ---------- */
/* Карточка-приглашение (страница руководства). */
.appeal-cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  padding: 34px 38px; border: 1px solid var(--card-line); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--sh-sm);
}
.appeal-cta-title {
  font-family: var(--head); margin: 0; font-size: 30px; line-height: 1.15;
  font-weight: 700; letter-spacing: -0.015em; color: var(--ink);
}
.appeal-cta-text { margin: 12px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); max-width: 620px; }
.appeal-cta-button {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  height: 52px; padding: 0 26px; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.appeal-cta-button:hover { background: var(--accent-strong); transform: translateY(-1px); }

/* Форма на странице «Обратная связь». Один экран разбит на четыре понятных
   шага; поля рейса открываются только тогда, когда они нужны. */
.appeal-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.appeal-section-head { max-width: 720px; margin-bottom: 28px; }
.appeal-section-head .page-title { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
.appeal-section-head .page-intro { margin-top: 12px; font-size: 16.5px; }

.appeal-form {
  padding: 32px 34px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  display: grid;
  gap: 26px;
}

.appeal-live:empty { display: none; }
.appeal-live:focus-visible { outline: none; }

.appeal-step { display: grid; gap: 14px; border: 0; margin: 0; padding: 0; min-width: 0; }
/* Легенда шага, вынесенная из рамки: иначе у fieldset она не участвует в
   сетке — без отступа прилипала к первой карточке («Тип обращения» к
   «Жалобе», 28.09.2026) и разрывала верхнюю линию шага. */
.appeal-step > legend.appeal-step-title { float: left; width: 100%; }
/* Заголовок шага отстоит от первого поля заметнее, чем поля друг от друга:
   иначе первая карточка «прилипала» к нему (28.09.2026). */
.appeal-step > .appeal-step-title { margin-bottom: 8px; }
.appeal-step + .appeal-step { padding-top: 24px; border-top: 1px solid var(--line); }

.appeal-step-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0; padding: 0;
  font-family: var(--head); font-size: 17px; font-weight: 700; color: var(--ink);
}
.appeal-step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: var(--r-pill);
  background: #EAF0FC; color: var(--accent);
  font-family: var(--mono); font-size: 13.5px; font-weight: 700;
}

/* Тип обращения — кнопки в строку (28.09.2026): пять карточек столбиком
   занимали на телефоне целый экран. Подсказка стоит под выбранным типом. */
.appeal-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.appeal-kind {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--card-line); border-radius: var(--r-pill);
  background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.appeal-kind svg { color: var(--accent); flex: none; transition: color 0.15s; }
.appeal-kind-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.appeal-kind:hover { border-color: #C3D3EC; background: #FAFCFF; }
.appeal-kind:has(input:checked) { border-color: var(--accent); background: var(--accent); color: #fff; }
.appeal-kind:has(input:checked) svg { color: #fff; }
.appeal-kind:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.appeal-kind-note { margin: 0; }
.appeal-prefilled {
  margin: 0; padding: 12px 16px; border-radius: var(--r-sm);
  background: #F4F8FE; border: 1px solid #D5E2F7; color: var(--ink); font-size: 14.5px; line-height: 1.5;
}

/* Две равные колонки с явными строками. Раньше это был auto-fit, из-за чего
   поля вставали в три рваных столбца, а поле без подсказки растягивалось по
   высоте соседнего — «фамилия и почта на разных уровнях». */
.appeal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.appeal-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.appeal-field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.appeal-field--wide { grid-column: 1 / -1; }

.appeal-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.appeal-optional { font-weight: 400; color: var(--muted2); }
.appeal-hint { font-size: 13px; line-height: 1.45; color: var(--muted2); }

.appeal-field input,
.appeal-field textarea {
  width: 100%; padding: 0 14px; height: 48px;
  border: 1px solid #C9CDD4; border-radius: var(--r-sm);
  background: #fff; font: inherit; font-size: 15.5px; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.appeal-field textarea { height: auto; min-height: 132px; padding: 13px 14px; line-height: 1.55; resize: vertical; }
.appeal-field input::placeholder, .appeal-field textarea::placeholder { color: #9AA0A8; }
.appeal-field input:hover, .appeal-field textarea:hover { border-color: #AEB4BC; }
.appeal-field input:focus-visible,
.appeal-field textarea:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.16);
}
.appeal-field input[aria-invalid="true"],
.appeal-field textarea[aria-invalid="true"] {
  border-color: #C9403C; box-shadow: 0 0 0 3px rgba(201, 64, 60, 0.12);
}

/* Ошибка живёт под своим полем: одна общая плашка сверху не говорит, что
   именно исправлять. */
.appeal-field-error {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13px; line-height: 1.4; color: #B3261E;
}
.appeal-field-error svg { flex: none; margin-top: 1px; }

.appeal-field-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.appeal-counter {
  flex: none; font-family: var(--mono); font-size: 13px; color: var(--muted2);
 
}

/* Маршрут и борт нужны жалобе и почти никому больше: с жалобой они открыты,
   в остальных случаях лежат за одной кнопкой. */
.appeal-trip-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 4px; border: 0; background: transparent;
  color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.appeal-trip-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.appeal-trip-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Зона загрузки: клик, перетаскивание и клавиатура ведут в один и тот же
   input, который остаётся единственным носителем файлов для FormData. */
.appeal-drop {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 14px 18px; text-align: left;
  border: 1.5px dashed #C4CAD2; border-radius: var(--r-sm); background: #FAFBFC;
  cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.appeal-drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.appeal-drop:hover { border-color: var(--accent); background: #F3F8FC; }
.appeal-drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.16); }
.appeal-drop-copy { display: grid; gap: 2px; min-width: 0; }
.appeal-drop-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: #EAF0FC; color: var(--accent);
}
.appeal-drop-main { font-size: 15px; font-weight: 600; color: var(--ink); }

.appeal-files { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.appeal-file {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--card-line); border-radius: var(--r-xs); background: #fff;
}
.appeal-file-thumb { width: 44px; height: 44px; flex: none; border-radius: var(--r-xs); object-fit: cover; }
.appeal-file-name {
  flex: 1; min-width: 0; font-size: 14px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appeal-file-remove {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border: 0; border-radius: var(--r-xs);
  background: transparent; color: var(--muted2); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.appeal-file-remove:hover { background: #FDECEC; color: #B3261E; }
.appeal-file-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.appeal-foot { display: grid; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.appeal-consent { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.appeal-consent input { width: 22px; height: 22px; margin-top: 0; flex: none; accent-color: var(--accent); }
.appeal-consent .appeal-field-error { margin-top: 5px; }
.appeal-consent-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.appeal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.appeal-submit, .appeal-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px; border-radius: var(--r-sm);
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.appeal-submit:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); }
.appeal-submit:disabled { cursor: progress; opacity: 0.7; }
.appeal-submit:focus-visible, .appeal-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.appeal-secondary { background: #fff; color: var(--accent); }
.appeal-secondary:hover { background: #F3F7FB; }
.appeal-spinner {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  animation: appeal-spin 0.7s linear infinite;
}
@keyframes appeal-spin { to { transform: rotate(360deg); } }

.appeal-error {
  margin: 0; padding: 14px 16px; border-radius: var(--r-sm);
  background: #FDECEC; border: 1px solid #F3CFCF; color: #8E211D; font-size: 15px; line-height: 1.5;
}

.appeal-result {
  padding: 34px;
  border: 1px solid #CFE7D8; border-radius: var(--r-lg); background: #F1F9F4;
  display: grid; gap: 10px; justify-items: start;
}
.appeal-result:focus-visible { outline: 2px solid #14663A; outline-offset: 3px; }
.appeal-result-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: 4px; border-radius: var(--r-pill);
  background: #DCEFE3; color: #14663A;
}
.appeal-result-title { font-family: var(--head); margin: 0; font-size: 24px; font-weight: 700; color: #14663A; }
.appeal-result-label {
  margin: 6px 0 0; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--muted2); text-transform: uppercase;
}
.appeal-result-id {
  margin: 0; font-family: var(--mono); font-size: 30px; font-weight: 700;
  color: #14663A;
}
.appeal-result-body { margin: 4px 0 0; font-size: 16.5px; line-height: 1.55; color: #2A2E35; }
.appeal-result .appeal-actions { margin-top: 8px; }
.appeal-result .appeal-secondary { border-color: #CFE7D8; color: #14663A; }
.appeal-result .appeal-secondary:hover { background: #E7F4EC; }

.appeal-honeypot { position: absolute; left: -9999px; }

/* Форма и колонка справа: подсказка про ИИ-помощника и что будет после
   отправки. Уже 1020px колонка встаёт над формой. */
.afb { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.afb-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.afb-help {
  display: grid; gap: 12px; padding: 24px 22px; border-radius: var(--r-lg);
  background: var(--accent); color: #fff;
}
.afb-help-title { margin: 0; font-family: var(--head); font-size: 19px; font-weight: 700; line-height: 1.25; }
.afb-help-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.afb-help-button {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-pill); background: #fff; color: var(--accent);
  font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: transform 0.15s, background 0.15s;
}
.afb-help-button:hover { background: #EAF0FC; transform: translateY(-1px); }
.afb-help-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.afb-steps { padding: 22px; border: 1px solid var(--card-line); border-radius: var(--r-lg); background: #fff; }
.afb-steps-title { margin: 0 0 14px; font-family: var(--head); font-size: 16px; font-weight: 700; color: var(--ink); }
.afb-steps-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: afb; }
.afb-steps-list li {
  counter-increment: afb; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px;
  font-size: 14px; line-height: 1.45; color: var(--muted);
}
.afb-steps-list li::before {
  content: counter(afb); display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: var(--r-pill); background: #EAF0FC; color: var(--accent);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
}
@media (max-width: 1020px) {
  .afb { grid-template-columns: minmax(0, 1fr); }
  .afb-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
}

/* ---------- ИИ-помощник на странице обратной связи ---------- */
/* Кнопка в правом нижнем углу, приветственная подсказка один раз за визит,
   окно чата над кнопкой; на телефоне окно на весь экран. */
/* Кнопка стоит на правой границе колонки сайта, а не в углу экрана:
   за колонку на сайте ничего не выходит (28.09.2026). Круглый логотип живёт
   только в шапке чата; на кнопке — иконка чата и подпись. */
.chat {
  position: fixed; right: max(16px, calc(50% - 576px)); bottom: 24px; z-index: 60;
  display: grid; justify-items: end; gap: 14px;
}
.chat-launcher {
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 22px 0 18px;
  border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(16, 19, 23, 0.08);
  animation: chat-rise 0.5s 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  transition: background 0.15s, transform 0.15s;
}
.chat-launcher svg { flex: none; }
.chat-launcher:hover { background: var(--accent-strong); transform: translateY(-1px); }
.chat-launcher:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.chat[data-open] .chat-launcher { width: 52px; padding: 0; justify-content: center; }

.chat-teaser {
  position: relative; max-width: 280px; display: flex; align-items: flex-start; gap: 6px;
  padding: 14px 10px 14px 16px; border-radius: 18px 18px 6px 18px; background: #fff;
  border: 1px solid var(--card-line); box-shadow: var(--sh-md);
  animation: chat-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.chat-teaser-text {
  border: 0; padding: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--ink);
}
.chat-teaser-close {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border: 0; border-radius: var(--r-pill); background: #F2F4F7; color: var(--muted); cursor: pointer;
}

.chat-panel {
  width: 384px; height: min(620px, calc(100dvh - 140px)); display: flex; flex-direction: column;
  border-radius: 22px; background: #fff; border: 1px solid var(--card-line);
  box-shadow: 0 24px 60px -32px rgba(16, 19, 23, 0.35); overflow: hidden;
  transform-origin: bottom right; animation: chat-open 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
.chat-panel[hidden] { display: none; }
.chat-panel:focus { outline: none; }
.chat-panel, .chat-teaser { order: -1; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: var(--accent); color: #fff; }
.chat-avatar { flex: none; display: block; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.chat-head-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.chat-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.chat-subtitle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #5BE38F; box-shadow: 0 0 0 3px rgba(91, 227, 143, 0.25); }
.chat-close {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.26); }
.chat-list {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px;
  padding: 18px 16px; background: #F6F8FB;
}
.chat-msg { display: grid; justify-items: start; gap: 8px; max-width: 88%; animation: chat-in 0.25s ease both; }
.chat-msg--me { align-self: flex-end; justify-items: end; }
.chat-bubble {
  margin: 0; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: #fff; color: var(--ink);
  border: 1px solid var(--card-line); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.chat-msg--me .chat-bubble { border-radius: 18px 18px 6px 18px; background: var(--accent); border-color: var(--accent); color: #fff; }
.chat-msg--error .chat-bubble { background: #FFF8E1; border-color: #F2DF9B; }
.chat-action {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--accent); border-radius: var(--r-pill); background: #fff; color: var(--accent);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s; text-decoration: none;
}
.chat-action:hover { background: var(--accent); color: #fff; }
.chat-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B8; animation: chat-dot 1.1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; animation: chat-in 0.3s 0.1s ease both; }
.chat-chip {
  min-height: 38px; padding: 0 14px; border: 1px solid #C3D3EC; border-radius: var(--r-pill);
  background: #fff; color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chat-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chat-chip:focus-visible, .chat-action:focus-visible, .chat-close:focus-visible, .chat-send:focus-visible,
.chat-teaser-text:focus-visible, .chat-teaser-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line); background: #fff; }
.chat-input textarea {
  flex: 1; min-width: 0; min-height: 44px; max-height: 120px; padding: 11px 14px; resize: none;
  border: 1px solid #C9CDD4; border-radius: 22px; background: #fff;
  font: inherit; font-size: 15px; line-height: 1.4; color: var(--ink); field-sizing: content;
}
/* Без синей обводки в фокусе (владелец, 28.09.2026): курсор в поле и так
   виден, рамка лишь чуть темнеет. */
.chat-input textarea:focus, .chat-input textarea:focus-visible { outline: none; border-color: #AEB4BC; box-shadow: none; }
.chat-send {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; transition: background 0.15s, opacity 0.15s;
}
.chat-send:disabled { opacity: 0.4; cursor: default; }
.chat-note { margin: 0; padding: 4px 16px 12px; background: #fff; font-size: 11.5px; line-height: 1.4; color: var(--muted2); }

@keyframes chat-rise { from { opacity: 0; transform: translateY(18px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes chat-pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes chat-open { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes chat-dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .chat-launcher, .chat-teaser, .chat-panel, .chat-msg, .chat-chips, .chat-typing span, .rcp-date { animation: none; }
}
@media (max-width: 600px) {
  .chat { bottom: 16px; }
  .chat-launcher { height: 50px; }
  /* Кнопка стоит над концом страницы: без запаса она закрывала ссылки на
     соглашение и cookie в самом низу подвала. */
  body:has(.chat) .footer-bottom { padding-bottom: 76px; }
  /* Во весь экран по видимой области: --chat-top и --chat-h ставит
     support-chat.tsx из visualViewport, иначе клавиатура iOS сдвигает окно.
     Страница под открытым окном не прокручивается; 16px в поле — чтобы iOS
     не увеличивал страницу при фокусе (владелец, 28.09.2026). */
  .chat[data-open] { inset: var(--chat-top, 0px) 0 auto 0; gap: 0; }
  .chat[data-open] .chat-launcher { display: none; }
  .chat-panel { width: 100%; height: var(--chat-h, 100dvh); border-radius: 0; border: 0; }
  .chat-input textarea { font-size: 16px; }
  html.chat-lock, html.chat-lock body { overflow: hidden; }
}

html.bdv .appeal-kind, html.bdv .afb-help, html.bdv .afb-steps, html.bdv .afb-help-button, html.bdv .appeal-prefilled,
html.bdv .chat-launcher, html.bdv .chat-teaser, html.bdv .chat-panel, html.bdv .chat-head, html.bdv .chat-list,
html.bdv .chat-bubble, html.bdv .chat-chip, html.bdv .chat-action, html.bdv .chat-input, html.bdv .chat-input textarea,
html.bdv .chat-send, html.bdv .chat-note, html.bdv .chat-close {
  background: var(--bdv-bg) !important; color: var(--bdv-fg) !important; border: 1px solid var(--bdv-fg) !important;
}
html.bdv .afb-help-title, html.bdv .afb-help-text, html.bdv .afb-steps-title, html.bdv .afb-steps-list li,
html.bdv .chat-title, html.bdv .chat-subtitle, html.bdv .chat-teaser-text, html.bdv .appeal-kind svg { color: var(--bdv-fg) !important; }
html.bdv .appeal-kind:has(input:checked) { outline: 3px solid var(--bdv-fg); }
html.bdv .chat-dot { display: none; }

@media (max-width: 860px) {
  .appeal-cta-card { padding: 26px 22px; }
  .appeal-cta-title { font-size: 26px; }
  .appeal-cta-button { width: 100%; justify-content: center; }
  .appeal-form { padding: 24px 18px; gap: 22px; }
  .appeal-grid { grid-template-columns: 1fr; }
  .appeal-kind { min-height: 40px; padding: 0 13px; font-size: 14px; }
  .appeal-field-foot { flex-direction: column; gap: 6px; }
  .appeal-actions { width: 100%; }
  .appeal-submit, .appeal-result .appeal-secondary { width: 100%; padding: 0 18px; }
  .appeal-result { padding: 24px 20px; }
  .appeal-result-id { font-size: 26px; }
}

/* ---------- Подменю «О предприятии» ---------- */
/* Четыре новые страницы висят на одном пункте меню, а не расширяют строку:
   на казахском она и без них едва помещалась. Скрипта здесь нет — site.js это
   замороженный файл, а меню, доступное только указателю, спрятало бы четыре
   страницы от клавиатуры. Поэтому раскрытие держится на :hover и
   :focus-within, а в мобильной панели подменю просто напечатано с отступом. */
.nav-item--sub { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-sub {
  position: absolute; top: 100%; left: -14px; z-index: 60;
  display: flex; flex-direction: column; min-width: 236px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-item--sub:hover .nav-sub,
.nav-item--sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-item--sub.is-dismissed .nav-sub { opacity: 0; visibility: hidden; }
.nav-sub-link {
  padding: 9px 10px; border-radius: var(--r-xs); white-space: nowrap;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.nav-sub-link:hover { background: #F3F5F8; color: var(--ink); }
.nav-sub-link[aria-current="page"] { background: #F3F5F8; color: var(--ink); font-weight: 600; }

/* ---------- Руководство ---------- */
.mgmt-block { margin-bottom: 44px; }
.mgmt-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.mgmt-person {
  padding: 24px 26px; border: 1px solid var(--card-line); border-radius: var(--r-md);
  background: #fff; box-shadow: var(--sh-sm);
}
.mgmt-person-name { font-family: var(--head); margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.mgmt-person-post { margin: 8px 0 16px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.mgmt-person-hours { margin: 0; padding-top: 14px; border-top: 1px solid var(--card-line); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.mgmt-person-label {
  display: block; margin-bottom: 5px; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.mgmt-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 24px; }
.mgmt-unit { padding: 22px 24px; border: 1px solid var(--card-line); border-radius: var(--r-md); background: #fff; }
.mgmt-unit-title { font-family: var(--head); margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.mgmt-unit-text { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.leasing-notices { display: grid; gap: 16px; margin-top: 24px; }

/* ---------- Парки предприятия ---------- */
.park-hero { margin: 0 0 32px; border: 1px solid var(--card-line); border-radius: var(--r-lg); overflow: hidden; }
.park-hero-img { width: 100%; height: clamp(240px, 40vw, 440px); object-fit: cover; }
.park-intro { margin: 0 0 40px; font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 780px; }
.park-block { margin-bottom: 44px; }
.park-note { margin: 8px 0 20px; font-family: var(--mono); font-size: 13px; color: var(--muted2); }
.park-table-wrap { overflow-x: auto; border: 1px solid var(--card-line); border-radius: var(--r-md); background: #fff; }
.park-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.park-table th {
  padding: 14px 18px; text-align: left; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2);
  border-bottom: 1px solid var(--line);
}
.park-table td { padding: 13px 18px; border-bottom: 1px solid var(--card-line); color: var(--ink); vertical-align: top; }
.park-table tr:last-child td { border-bottom: 0; }
.park-table-num {
  font-family: var(--mono); font-weight: 700; color: var(--accent);
  white-space: nowrap;
}
.park-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.55; }
.park-facilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.park-facility {
  padding: 22px 24px; border: 1px solid var(--card-line); border-radius: var(--r-md);
  background: #fff; box-shadow: var(--sh-sm);
}
.park-facility-title {
  font-family: var(--mono); margin: 0 0 12px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
/* Заголовок блока со значком. Разделы «Пассажирам», «Открытость» и «Аренда»
   состоят из коротких блоков, и при пролистывании они сливались в стопку
   одинаковых заголовков: глазу не за что зацепиться. Значок и есть эта
   зацепка, а не украшение. Размер и скругление те же, что у плашки формата
   у прикреплённого файла, чтобы в вёрстке не появилось третьей величины. */
.block-head { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.block-head .head-h { margin: 0; }
.block-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: #EAF3FB; color: var(--accent);
}
/* Кадр внутри блока: те же пропорции, что у карточки парка, но без сетки —
   иллюстрация здесь одна. */
.block-shot { width: 100%; height: 260px; object-fit: cover; border: 1px solid var(--card-line); border-radius: var(--r-md); margin: 4px 0 18px; }
@media (max-width: 600px) {
  .block-icon { width: 38px; height: 38px; }
  .block-shot { height: 190px; }
}

/* min() не даёт колонке стать шире самой сетки: ниже 332px, а в версии для
   слабовидящих с крупным шрифтом и на обычном телефоне, колонка в 300px
   выталкивала страницу вбок. */
.park-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.park-shot { width: 100%; height: 240px; object-fit: cover; border: 1px solid var(--card-line); border-radius: var(--r-md); }
/* Схема маршрутов это рисунок, а не кадр: обрезка по центру срезала бы у неё
   ровно то, ради чего её показывают. Поэтому она занимает целый ряд сетки и
   вписывается целиком. */
.park-plan { position: relative; grid-column: 1 / -1; justify-self: center; max-width: 100%; margin: 0; }
.park-shot--plan {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; object-fit: contain;
  padding: 10px; background: #fff;
}
/* Подпись OpenStreetMap стоит в углу самой схемы, как на любой онлайн-карте:
   лицензия требует её рядом с картой. Фигура обтягивает картинку, поэтому
   угол фигуры и есть угол схемы; отступ равен рамке и полю картинки. */
.park-plan-credit {
  position: absolute; right: 11px; bottom: 11px; padding: 1px 6px;
  border-radius: 4px 0 0 0; background: rgba(255, 255, 255, 0.8);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: rgba(20, 22, 26, 0.7);
}
.park-plan-credit:hover { color: var(--ink); }

@media (max-width: 860px) {
  .park-hero-img { height: 210px; }
  .park-shot { height: 190px; }
  .park-facilities, .mgmt-people, .mgmt-units { grid-template-columns: 1fr; }
  .park-table th, .park-table td { padding: 11px 14px; }
}

@media (max-width: 1100px) {
  /* В панели подменю не всплывает, а печатается с отступом: указателя, на
     который можно навести, здесь нет. */
  .nav-item--sub { display: block; align-self: auto; }
  /* Пунктов в панели стало двадцать пять, и при одинаковом виде строки группы
     и строки внутри неё список читался как плоская простыня: непонятно, что
     к чему относится и где кончается один раздел. Заголовок группы теперь
     крупнее и без разделителя, а вложенные ссылки отбиты линией слева. */
  .nav-item--sub > .nav-link {
    padding: 20px 4px 8px; border-bottom: 0;
    font-size: 16.5px; font-weight: 700; color: var(--ink);
  }
  .nav-item--sub:first-child > .nav-link { padding-top: 8px; }
  .nav-sub {
    position: static; min-width: 0; padding: 0 0 0 14px;
    border: 0; border-left: 2px solid var(--line); border-radius: 0;
    background: transparent; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-sub-link { padding: 11px 4px; border-bottom: 0; font-size: 15px; color: var(--muted); white-space: normal; }
  .nav-sub-link:last-child { border-bottom: 0; }
}

/* Версия для слабовидящих: новые блоки подчиняются той же схеме, что и
   остальные — свой фон и своя рамка снимаются, цвет берётся из схемы. */
html.bdv .park-intro, html.bdv .park-note,
html.bdv .park-facility-title, html.bdv .park-list, html.bdv .mgmt-person-name,
html.bdv .mgmt-person-post, html.bdv .mgmt-person-hours, html.bdv .mgmt-person-label,
html.bdv .mgmt-unit-title, html.bdv .mgmt-unit-text,
html.bdv .park-table th, html.bdv .park-table td { color: var(--bdv-fg) !important; }
html.bdv .park-facility, html.bdv .mgmt-person, html.bdv .mgmt-unit,
html.bdv .park-table-wrap, html.bdv .nav-sub {
  background: var(--bdv-bg) !important; border-color: var(--bdv-fg) !important;
}
html.bdv .park-table th, html.bdv .park-table td { border-color: var(--bdv-fg) !important; }
html.bdv .nav-sub-link { color: var(--bdv-link) !important; }
html.bdv .park-plan-credit { background: var(--bdv-bg) !important; color: var(--bdv-fg) !important; }
/* Без изображений не остаётся ни пустой рамки обложки парка, ни заголовка
   «Фотографии» над пустой сеткой. */
html.bdv.bdv-noimg .park-hero, html.bdv.bdv-noimg .park-photos { display: none !important; }

/* ---------- Приём граждан ---------- */
/* Запись и график в одной форме (28.09.2026): карточки руководителей с их
   днями, затем ближайшие приёмные дни кнопками — календарь и сверка с
   графиком больше не нужны. Справа — как проходит приём и контакты. */
.rcp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.rcp-officials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rcp-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.rcp-official {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--card-line); border-radius: var(--r-sm); background: #fff; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.rcp-official:hover { border-color: #C3D3EC; background: #FAFCFF; }
.rcp-official:has(input:checked) { border-color: var(--accent); background: #F4F8FE; box-shadow: inset 0 0 0 1px var(--accent); }
.rcp-official:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rcp-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-pill); background: #EAF0FC; color: var(--accent);
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.rcp-official:has(input:checked) .rcp-avatar { background: var(--accent); color: #fff; }
.rcp-official-copy { display: grid; gap: 3px; min-width: 0; }
.rcp-official-name { font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.rcp-official-role { font-size: 13px; line-height: 1.4; color: var(--muted2); }
.rcp-official-hours {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
}
.rcp-official-hours svg { flex: none; }
.rcp-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border: 1px solid var(--card-line); border-radius: var(--r-pill); color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rcp-official:has(input:checked) .rcp-mark { background: var(--accent); border-color: var(--accent); color: #fff; }

.rcp-empty {
  margin: 0; padding: 16px 18px; border: 1px dashed #C9CDD4; border-radius: var(--r-sm);
  background: #FAFBFC; font-size: 14.5px; line-height: 1.5; color: var(--muted2);
}
.rcp-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.rcp-date {
  position: relative; display: grid; gap: 2px; padding: 12px 14px;
  border: 1px solid var(--card-line); border-radius: var(--r-sm); background: #fff; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  animation: rcp-in 0.25s ease both;
}
.rcp-date:hover { border-color: #C3D3EC; background: #FAFCFF; }
.rcp-date:has(input:checked) { border-color: var(--accent); background: var(--accent); }
.rcp-date:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rcp-date-day { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted2); }
.rcp-date-num { font-size: 16px; font-weight: 700; color: var(--ink); }
.rcp-date-time { font-size: 12.5px; color: var(--muted); }
.rcp-date:has(input:checked) .rcp-date-day,
.rcp-date:has(input:checked) .rcp-date-num,
.rcp-date:has(input:checked) .rcp-date-time { color: #fff; }
.rcp-more {
  min-height: 64px; padding: 0 14px; border: 1px dashed #B8C6DC; border-radius: var(--r-sm);
  background: transparent; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.rcp-more:hover { background: #F4F8FE; border-style: solid; }
.rcp-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes rcp-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.rcp-summary {
  display: grid; gap: 4px; margin: 0; padding: 14px 16px;
  border-radius: var(--r-sm); background: #F4F8FE; border: 1px solid #D5E2F7;
}
.rcp-summary-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.rcp-summary-value { font-size: 15.5px; font-weight: 600; color: var(--ink); }

.rcp-aside {
  position: sticky; top: 110px; display: grid; gap: 16px; padding: 26px 24px;
  border-radius: var(--r-lg); background: var(--accent); color: #fff;
}
.rcp-aside-title { margin: 0; font-family: var(--head); font-size: 19px; font-weight: 700; }
.rcp-aside-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: rcp; }
.rcp-aside-steps li {
  counter-increment: rcp; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px;
  font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.92);
}
.rcp-aside-steps li::before {
  content: counter(rcp); display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.rcp-aside-note { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.rcp-aside-contact { display: grid; gap: 3px; }
.rcp-aside-contact .contact-card-label { color: rgba(255, 255, 255, 0.7); }
.rcp-aside-value { font-size: 16.5px; font-weight: 600; color: #fff; }
a.rcp-aside-value { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1020px) {
  .rcp { grid-template-columns: minmax(0, 1fr); }
  .rcp-aside { position: static; }
}
@media (max-width: 640px) {
  .rcp-officials { grid-template-columns: minmax(0, 1fr); }
  .rcp-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcp-aside { padding: 22px 20px; }
}

html.bdv .rcp-official-name, html.bdv .rcp-official-role, html.bdv .rcp-official-hours,
html.bdv .rcp-date-day, html.bdv .rcp-date-num, html.bdv .rcp-date-time, html.bdv .rcp-empty,
html.bdv .rcp-summary-label, html.bdv .rcp-summary-value, html.bdv .rcp-aside,
html.bdv .rcp-aside-title, html.bdv .rcp-aside-steps li, html.bdv .rcp-aside-note,
html.bdv .rcp-aside-value, html.bdv .rcp-aside-contact .contact-card-label { color: var(--bdv-fg) !important; }
html.bdv .rcp-official, html.bdv .rcp-date, html.bdv .rcp-more, html.bdv .rcp-summary,
html.bdv .rcp-aside, html.bdv .rcp-avatar, html.bdv .rcp-empty {
  background: var(--bdv-bg) !important; border: 1px solid var(--bdv-fg) !important; color: var(--bdv-fg) !important;
}
html.bdv .rcp-official:has(input:checked), html.bdv .rcp-date:has(input:checked) { outline: 3px solid var(--bdv-fg); }

/* ---------- Сотрудники ---------- */
.team-intro { max-width: 780px; }
.team-intro p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.65; color: var(--muted); }
.team-intro p:last-child { margin-bottom: 0; }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 24px; margin: 32px 0 0; padding: 0; list-style: none;
}
.team-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--card-line); border-radius: var(--r-md);
  background: #fff; box-shadow: var(--sh-sm);
}
.team-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.team-card-body { display: flex; flex-direction: column; padding: 20px 22px 22px; }
.team-name { font-family: var(--head); margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.team-role { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.team-tenure { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
/* Подпись стоит над значением, а не перед ним: «Должность Водитель» одной
   строкой читается как одно словосочетание. */
.team-label {
  display: block; margin-bottom: 3px; font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2);
}
.team-story { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
}

html.bdv .team-name, html.bdv .team-role, html.bdv .team-tenure, html.bdv .team-label,
html.bdv .team-story, html.bdv .team-intro p { color: var(--bdv-fg) !important; }
html.bdv .team-card {
  background: var(--bdv-bg) !important; background-image: none !important;
  border-color: var(--bdv-fg) !important;
}

/* ---------- Главная: парки ---------- */
/* Плитки, а не карточки ленты: у парка нет заголовка и лида, у него есть
   снимок и имя. Первая плитка шире остальных — семь равных прямоугольников
   читаются как склад, а не как раздел. Семь как раз ложатся в четыре колонки:
   широкая плюс две в первом ряду и четыре во втором. */
.home-parks { max-width: 1200px; margin: 0 auto; padding: 64px 24px 8px; }
.home-parks-lead { margin: 0 0 22px; max-width: 720px; font-size: 16.5px; line-height: 1.55; color: var(--muted); }
.home-parks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-park {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: 196px; border-radius: var(--r-md); background: #E9ECF1;
}
.home-park:first-child { grid-column: span 2; min-height: 236px; }
.home-park-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.home-park:hover .home-park-img { transform: scale(1.04); }
/* Затемнение начинается выше и набирает плотность раньше, чем кажется нужным:
   на снимке школьного парка подпись ложится на жёлтый автобус, а на
   троллейбусном — на светлое небо, и мягкого градиента там не хватало. */
.home-park-shade {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 19, 23, 0) 6%,
    rgba(16, 19, 23, 0.38) 46%,
    rgba(16, 19, 23, 0.9) 100%
  );
}
.home-park-copy {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  width: 100%; padding: 18px 20px; color: #fff;
}
.home-park-short {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8FC0EA;
}
.home-park-name { font-family: var(--head); font-size: 16.5px; font-weight: 700; line-height: 1.2; }
.home-park:first-child .home-park-name { font-size: 21px; }
.home-park-where { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }

/* ---------- Главная: приём граждан ---------- */
/* Плашка в том же синем, что весь сайт: ровный тёмный #00518F владелец
   назвал тусклым и грязным, а затем попросил один синий везде (28.09.2026).
   Кнопка вывернута — белая на синем, а не синяя на белом, как во врезке
   обращений выше. */
.home-reception { max-width: 1200px; margin: 0 auto; padding: 56px 24px 16px; }
.home-reception-card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: var(--r-lg);
  background: var(--accent); color: #fff;
  box-shadow: var(--sh-md);
}
.home-reception-body { max-width: 640px; }
.home-reception-kicker {
  display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #FFE766;
}
.home-reception-title {
  font-family: var(--head); margin: 0; font-size: 30px; line-height: 1.15;
  font-weight: 700; letter-spacing: -0.015em;
}
.home-reception-text { margin: 12px 0 0; font-size: 16.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.home-reception-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: none; }
.home-reception-button {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  /* Высота не жёсткая: с крупным шрифтом подпись в две строки налезала на
     телефон под кнопкой. */
  min-height: 52px; padding: 10px 26px; border-radius: var(--r-sm);
  background: #fff; color: var(--accent); font-size: 15.5px; font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.home-reception-button:hover { background: #EAF0FC; transform: translateY(-1px); }
.home-reception-phone { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.home-reception-phone a { font-weight: 600; color: #fff; text-decoration: underline; }

@media (max-width: 1100px) {
  .home-parks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .home-parks { padding-top: 48px; }
  .home-reception-card { padding: 28px 24px; }
  .home-reception-title { font-size: 26px; }
  .home-reception-actions { width: 100%; }
  .home-reception-button { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .home-parks-grid { grid-template-columns: 1fr; }
  .home-park, .home-park:first-child { grid-column: auto; min-height: 176px; }
  .home-park:first-child .home-park-name { font-size: 17px; }
  .appeal-cta-title, .home-reception-title, .appeal-section-head .page-title { font-size: 24px; }
}

/* Версия для слабовидящих: подпись поверх снимка там не читается, поэтому
   плитка становится обычной карточкой со своей рамкой: фотография сверху,
   подпись под ней на цвете схемы. Без изображений остаётся одна подпись. */
html.bdv .home-park {
  flex-direction: column; align-items: stretch;
  background: var(--bdv-bg) !important; border: 1px solid var(--bdv-fg); min-height: 0;
}
html.bdv .home-park-img { position: static; height: 150px; }
html.bdv .home-park-shade { display: none !important; }
html.bdv .home-park-copy, html.bdv .home-park-short, html.bdv .home-park-name,
html.bdv .home-park-where, html.bdv .home-parks-lead,
html.bdv .home-reception-kicker, html.bdv .home-reception-title,
html.bdv .home-reception-text, html.bdv .home-reception-phone { color: var(--bdv-fg) !important; }
html.bdv .home-reception-card {
  background: var(--bdv-bg) !important; border: 1px solid var(--bdv-fg); color: var(--bdv-fg) !important;
}
html.bdv .home-reception-button, html.bdv .home-reception-phone a { color: var(--bdv-link) !important; }
html.bdv .home-reception-button { background: var(--bdv-bg) !important; border: 1px solid var(--bdv-fg); }
