/*
 * «На остановке» — стили сайта. Именование по БЭМ: .блок, .блок__элемент, .блок--модификатор.
 * Цвета видов транспорта: автобус — синий, трамвай — красный, троллейбус — зелёный, маршрутка — оранжевый.
 */
/* Onest (SIL Open Font License 1.1) — со своего сервера: без запросов к Google и передачи IP посетителей за рубеж. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0F1419;
  --ink-soft: #3D4651;
  --muted: #5B6470;
  --muted-on-dark: #9AA4B1;
  --line: #E4E7EC;
  --line-soft: #EEF0F3;
  --field: #D5DAE1;
  --ground: #F5F6F8;
  --ground-deep: #F0F2F5;
  --card: #FFFFFF;
  --night: #0F1419;
  --night-card: #161C23;
  --night-raised: #1C232C;
  --night-line: #2A323C;
  --sun: #FFC53D;
  --sun-soft: #FFF8E6;
  --sun-line: #F5DFA3;
  --link: #1D5BD8;
  --ok: #12805C;
  --bus: #1D5BD8;
  --bus-soft: #EAF0FD;
  --bus-text: #17469F;
  --tram: #D7263D;
  --tram-soft: #FCE9EC;
  --tram-text: #9B1B2D;
  --trolley: #12805C;
  --trolley-soft: #E3F3EC;
  --trolley-text: #0C5E43;
  --minibus: #B4530A;
  --minibus-soft: #FCEEDF;
  --minibus-text: #8A3F06;
  --suburban: #6B3FC6;
  --suburban-soft: #F0EAFC;
  --suburban-text: #4E2A99;
  --radius: 16px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Атрибут hidden сильнее любых display у блоков (окно о cookie, панели направлений, фильтр маршрутов). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--link); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.header { background: var(--card); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.header--dark { background: var(--night); border-bottom-color: #222A33; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo__mark { flex: 0 0 auto; }
.logo__text { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.header--dark .logo { color: #FFFFFF; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #E6EAEF; font-size: 15px; font-weight: 500; text-decoration: none; }
.nav__link:hover { background: var(--night-raised); }
.nav--light .nav__link { color: var(--ink); }
.nav--light + .city-switch { margin-left: 0; }
.nav--light .nav__link:hover { background: var(--ground-deep); }
.city-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-left: auto; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }

/* Подвал */
.footer { margin-top: 72px; background: var(--card); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-top: 32px; padding-bottom: 40px; }
.footer__about { flex: 1 1 420px; margin: 0; color: var(--muted); font-size: 14px; }
.footer__contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer__label { color: var(--muted); }
.footer__mail { font-weight: 600; text-decoration: none; }

/* Основная колонка страницы */
.page { display: flex; flex-direction: column; gap: 28px; padding-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; }
.crumbs__link { text-decoration: none; }
.crumbs__sep { color: #9AA4B1; }

/* Заголовок страницы */
.page-head { display: flex; flex-direction: column; gap: 12px; }
.page-head__eyebrow { color: var(--muted); font-size: 15px; font-weight: 600; }
.page-head__title { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.page-head__lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.page-head__intro { max-width: 760px; color: var(--ink-soft); }
.source { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.source__link { color: inherit; }
.page-head--route { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 18px 20px; }
.page-head__body { display: flex; flex: 1 1 480px; flex-direction: column; gap: 8px; min-width: 0; }
.page-head--route .page-head__title { font-size: 32px; line-height: 1.15; }

/* Номер маршрута */
.badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 48px; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--muted); color: #FFFFFF; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; text-decoration: none; white-space: nowrap; }
.badge--bus { background: var(--bus); }
.badge--tram { background: var(--tram); }
.badge--trolley { background: var(--trolley); }
.badge--minibus { background: var(--minibus); }
.badge--suburban { background: var(--suburban); }
.badge--large { min-width: 72px; height: 72px; border-radius: 18px; font-size: 32px; font-weight: 800; }
.badge--card { min-width: 52px; height: 40px; border-radius: 11px; font-size: 18px; }
.mode-dot { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 4px; background: var(--muted); }
.mode-dot--bus { background: var(--bus); }
.mode-dot--tram { background: var(--tram); }
.mode-dot--trolley { background: var(--trolley); }
.mode-dot--minibus { background: var(--minibus); }
.mode-dot--suburban { background: var(--suburban); }
.mode-label--bus { color: var(--bus-text); }
.mode-label--tram { color: var(--tram-text); }
.mode-label--trolley { color: var(--trolley-text); }
.mode-label--minibus { color: var(--minibus-text); }
.mode-label--suburban { color: var(--suburban-text); }

/* Карточка-панель */
.panel { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel__title { font-size: 22px; font-weight: 800; }
.panel__title--small { font-size: 20px; }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.panel__note { margin: 0; color: var(--muted); font-size: 14px; }

.section { display: flex; flex-direction: column; gap: 14px; }
.section__title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; }
.section__title-link { color: inherit; text-decoration: none; }
.section__count { color: var(--muted); font-size: 16px; font-weight: 500; }

/* Главная: первый экран */
.hero { background: var(--night); color: #FFFFFF; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 72px; }
.hero__text { display: flex; flex: 1 1 460px; flex-direction: column; gap: 22px; min-width: 0; }
.hero__label { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--night-raised); color: #E6EAEF; font-size: 14px; font-weight: 500; }
.hero__label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.hero__title { font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.hero__lead { max-width: 560px; margin: 0; color: #B4BCC6; font-size: 18px; line-height: 1.55; }
.hero__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #B4BCC6; font-size: 14px; }
.hero__example { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--night-raised); color: #E6EAEF; text-decoration: none; }
.hero__side { flex: 1 1 380px; min-width: 0; }

/* Поиск */
.search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 580px; }
.search__field { position: relative; flex: 1 1 260px; min-width: 0; }
.search__icon { position: absolute; top: 18px; left: 16px; color: var(--muted); }
.search__input { width: 100%; height: 56px; padding: 0 16px 0 46px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); font-size: 17px; }
.search__button { height: 56px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--sun); color: var(--ink); font-size: 17px; font-weight: 700; cursor: pointer; }
.search--page .search__input { border: 1px solid var(--field); }

/* Ближайшие отправления на главной */
.board { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--night-card); border: 1px solid var(--night-line); border-radius: var(--radius-lg); }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--night-line); }
.board__title { font-size: 15px; font-weight: 600; }
.board__place { display: inline-flex; align-items: center; gap: 8px; color: #B4BCC6; font-size: 14px; font-variant-numeric: tabular-nums; }
.board__place::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; }
.board__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #222A33; color: #FFFFFF; text-decoration: none; }
.board__route { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.board__to, .board__from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__to { font-size: 15px; font-weight: 600; }
.board__from { color: var(--muted-on-dark); font-size: 13px; }
.board__when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.board__time { color: var(--sun); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.board__in { color: var(--muted-on-dark); font-size: 13px; }
.board__source { margin: 10px 0 0; color: var(--muted-on-dark); font-size: 12px; }

/* Города на главной */
.home { display: flex; flex-direction: column; gap: 64px; padding-top: 56px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.city-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 128px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.city-card:hover { border-color: #C3C9D2; }
.city-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.city-card__name { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.city-card__region { display: block; color: var(--muted); font-size: 14px; }
.city-card__modes { display: flex; flex-wrap: wrap; gap: 6px; }
.city-card--request { justify-content: center; gap: 6px; border: 1.5px dashed #C3C9D2; background: transparent; }
.mode-count { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--ground-deep); color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.mode-count--bus { background: var(--bus-soft); color: var(--bus-text); }
.mode-count--tram { background: var(--tram-soft); color: var(--tram-text); }
.mode-count--trolley { background: var(--trolley-soft); color: var(--trolley-text); }
.mode-count--minibus { background: var(--minibus-soft); color: var(--minibus-text); }
.mode-count--suburban { background: var(--suburban-soft); color: var(--suburban-text); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--night); color: var(--sun); }
.feature__title { font-size: 18px; font-weight: 700; }
.feature__text { margin: 0; color: var(--muted); font-size: 15px; }

/* Ссылки на страницы видов транспорта города */
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.mode-tab:hover { border-color: #C3C9D2; }
.mode-tab__count { padding: 2px 8px; border-radius: 999px; background: var(--ground-deep); color: var(--muted); font-size: 13px; font-weight: 600; }
.mode-tab--active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.mode-tab--active .mode-tab__count { background: var(--night-line); color: #FFFFFF; }

/* Город: поиск и фильтр по виду транспорта */
.filter-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.filter-bar__search { position: relative; }
.filter-bar__icon { position: absolute; top: 14px; left: 14px; color: var(--muted); }
.filter-bar__input { width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1px solid var(--field); border-radius: 12px; background: var(--ground); font-size: 16px; }
.filter-bar__modes { display: flex; gap: 8px; overflow-x: auto; }
.filter { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.filter__count { padding: 2px 7px; border-radius: 999px; background: var(--ground-deep); color: var(--muted); font-size: 12px; font-weight: 600; }
.filter--active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.filter--active .filter__count { background: var(--night-line); color: #FFFFFF; }
.filter-empty { padding: 40px 20px; border: 1px dashed #C3C9D2; border-radius: var(--radius); background: var(--card); color: var(--muted); text-align: center; }

.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.route-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.route-card:hover { border-color: #C3C9D2; }
.route-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.route-card__name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.route-card__hours { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.route-card__hours--off { color: #8A939E; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stop-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.stop-chip__count { padding: 2px 8px; border-radius: 999px; background: var(--ground-deep); color: var(--muted); font-size: 12px; font-weight: 600; }

.changes { margin: 0; padding: 0; list-style: none; }
.changes__item { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.changes__date { color: var(--muted); }

/* Маршрут: факты */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.fact__label { color: var(--muted); font-size: 13px; }
.fact__value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

.route-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.route-layout__main { display: flex; flex: 999 1 600px; flex-direction: column; gap: 20px; min-width: 0; }
.route-layout__side { display: flex; flex: 1 1 320px; flex-direction: column; gap: 20px; min-width: 0; }

/* Вкладки направлений и дней */
.direction-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--ground-deep); border-radius: 14px; }
.direction-tab { display: flex; flex: 1 1 240px; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.direction-tab__label { color: var(--muted); font-size: 12px; font-weight: 600; }
.direction-tab__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.direction-tab--active { background: var(--card); border-color: var(--field); box-shadow: 0 1px 2px rgba(15, 20, 25, 0.08); }

.schedule-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.stop-picker { display: flex; flex: 1 1 260px; flex-direction: column; gap: 6px; min-width: 0; }
.stop-picker__label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stop-picker__field { position: relative; }
.stop-picker__select { width: 100%; height: 48px; padding: 0 44px 0 14px; border: 1px solid var(--field); border-radius: 12px; background: var(--card); font-size: 16px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none; }
.stop-picker__arrow { position: absolute; top: 14px; right: 14px; color: var(--muted); pointer-events: none; }
.day-tabs { display: flex; gap: 6px; min-width: 0; overflow-x: auto; }
.day-tab { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.day-tab--active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* Ближайший рейс */
.departure { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px; background: var(--night); border-radius: var(--radius); color: #FFFFFF; }
.departure__main { display: flex; flex: 1 1 220px; flex-direction: column; gap: 4px; min-width: 0; }
.departure__label, .departure__place { color: var(--muted-on-dark); font-size: 13px; }
.departure__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.departure__time { color: var(--sun); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.departure__in { font-size: 17px; font-weight: 600; }
.departure__next { display: grid; flex: 1 1 260px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.departure__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--night-raised); border-radius: 12px; }
.departure__item-time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.departure__item-in { color: var(--muted-on-dark); font-size: 12px; }
.departure--interval .departure__time { font-size: 36px; }

/* Расписание по часам */
.direction { display: flex; flex-direction: column; gap: 16px; }
.hours { display: flex; flex-direction: column; }
.hours__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 0 12px 10px; color: var(--muted); font-size: 13px; }
.hours__legend { display: inline-flex; flex-wrap: wrap; gap: 14px; }
.hours__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.hours__legend-item::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--line); }
.hours__legend-item--next::before { background: var(--sun); }
.hours__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line-soft); }
.hours__row--current { background: var(--sun-soft); border-top-color: transparent; border-radius: 12px; }
.hours__hour { font-size: 18px; font-weight: 800; line-height: 34px; font-variant-numeric: tabular-nums; }
.hours__minutes { display: flex; flex-wrap: wrap; gap: 6px; }
.minute { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 34px; padding: 0 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.minute--past { border-color: transparent; background: var(--ground-deep); color: #6B7480; font-weight: 400; }
.minute--next { border-color: var(--sun); background: var(--sun); font-weight: 800; }
.minute--estimated { font-style: italic; }

/* Интервальное движение */
.intervals { width: 100%; border-collapse: collapse; }
.intervals__cell { padding: 8px 12px; border-top: 1px solid var(--line-soft); text-align: left; font-variant-numeric: tabular-nums; }
.intervals__row--current .intervals__cell { background: var(--sun-soft); font-weight: 700; }
.intervals__head { color: var(--muted); font-size: 13px; font-weight: 600; }

/* Уведомления */
.notice { margin: 0; padding: 12px 16px; background: var(--sun-soft); border: 1px solid var(--sun-line); border-radius: 14px; font-size: 15px; }
.notice--info { background: var(--bus-soft); border-color: #C9D8FA; }

/* Укороченные рейсы и вопросы */
.disclosure { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.disclosure__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 56px; font-size: 15px; font-weight: 600; cursor: pointer; }
.disclosure__meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.disclosure__body { padding-bottom: 14px; }
.faq__item { border-top: 1px solid var(--line-soft); }
.faq__question { display: flex; align-items: center; min-height: 52px; font-size: 16px; font-weight: 600; cursor: pointer; }
.faq__answer { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.more-link { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* Остановки маршрута (боковая колонка) */
.stop-line { position: relative; margin: 0; padding: 0; list-style: none; }
.stop-line::before { content: ''; position: absolute; top: 22px; bottom: 22px; left: 9px; width: 2px; background: var(--line-color, var(--muted)); }
.stop-line--bus { --line-color: var(--bus); }
.stop-line--tram { --line-color: var(--tram); }
.stop-line--trolley { --line-color: var(--trolley); }
.stop-line--minibus { --line-color: var(--minibus); }
.stop-line--suburban { --line-color: var(--suburban); }
.stop-line__item { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.stop-line__pick { display: flex; flex: 1 1 auto; align-items: center; gap: 14px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.stop-line__dot { flex: 0 0 auto; width: 12px; height: 12px; margin: 0 4px; border: 2px solid var(--line-color, var(--muted)); border-radius: 50%; background: var(--card); }
.stop-line__item--end .stop-line__dot { width: 20px; height: 20px; margin: 0; border-width: 4px; }
.stop-line__item--selected .stop-line__dot { width: 20px; height: 20px; margin: 0; border: 4px solid #FCE9EC; background: var(--line-color, var(--muted)); }
.stop-line__name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 500; }
.stop-line__item--end .stop-line__name, .stop-line__item--selected .stop-line__name { font-weight: 700; }
.stop-line__offset { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stop-line__link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.stop-line__link:hover { background: var(--ground-deep); color: var(--ink); }

/* Схема трассы */
.scheme { margin: 0; }
.scheme__image { width: 100%; height: auto; border-radius: 12px; background: var(--ground-deep); }
.scheme__line { fill: none; stroke: var(--line-color, var(--link)); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.scheme__line--back { stroke: #6B7480; stroke-width: 3; stroke-dasharray: 8 6; }
.scheme__end { fill: #FFFFFF; stroke: var(--line-color, var(--link)); stroke-width: 4; }
.scheme__label { font: 700 14px 'Onest', system-ui, sans-serif; fill: var(--ink); paint-order: stroke; stroke: #F0F2F5; stroke-width: 4px; }
.scheme__caption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.scheme--bus { --line-color: var(--bus); }
.scheme--tram { --line-color: var(--tram); }
.scheme--trolley { --line-color: var(--trolley); }
.scheme--minibus { --line-color: var(--minibus); }
.scheme--suburban { --line-color: var(--suburban); }

.map { display: flex; flex-direction: column; gap: 10px; }
.map__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 360px; border: 1px dashed #C3C9D2; border-radius: 12px; background: var(--ground); color: var(--muted); text-align: center; }
.map__hint { font-size: 15px; }
.map__open { min-height: 44px; padding: 0 16px; border: 1px solid var(--link); border-radius: 10px; background: var(--card); color: var(--link); font-weight: 600; cursor: pointer; }
.map__open:disabled { opacity: 0.6; }
.map__canvas--own { position: relative; display: flex; align-items: center; justify-content: center; background: var(--ground-deep); }
.map__loading { color: var(--muted); font-size: 14px; }
.map__popup { font: 14px/1.4 'Onest', system-ui, sans-serif; }
.map__popup a { font-weight: 600; }
.map__canvas { height: 420px; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }

.report-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 16px 20px; background: var(--sun-soft); border: 1px solid var(--sun-line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.report-link__text { display: flex; flex-direction: column; gap: 2px; }
.report-link__title { font-size: 15px; font-weight: 700; }
.report-link__note { color: var(--muted); font-size: 13px; }

/* Остановка */
.stop-route { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stop-route__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stop-route__route { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.stop-route__to { font-size: 18px; font-weight: 700; }
.stop-route__next { color: var(--muted); font-size: 14px; }
.stop-route__now { margin-left: auto; color: var(--muted); font-size: 14px; }
.stop-route__now-time { color: var(--ink); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Форма «Сообщить об ошибке» */
.report { padding: 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.report__summary { display: flex; align-items: center; min-height: 56px; font-weight: 700; cursor: pointer; }
.report__form { display: grid; gap: 12px; max-width: 560px; padding-bottom: 20px; }
.report__label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.report__field { padding: 10px 12px; border: 1px solid var(--field); border-radius: 10px; background: var(--card); font-weight: 400; }
.report__button { justify-self: start; min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--ink); color: #FFFFFF; font-weight: 700; cursor: pointer; }
.report__button:disabled { opacity: 0.6; }
.report__status { margin: 0; color: var(--ink-soft); }
.report__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Реклама: место резервируется заранее, чтобы не прыгала вёрстка */
.ad { min-height: 250px; }
.ad--wide { min-height: 120px; }

/* Поиск по сайту */
.results { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.results__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.results__note { color: var(--muted); font-size: 14px; }

@media (max-width: 700px) {
  .map__placeholder { height: 260px; }
  .nav--light { display: none; }
  .nav--light + .city-switch { margin-left: auto; }
  .header__inner { flex-wrap: nowrap; }
  .logo__text { font-size: 17px; }
  .page-head__title { font-size: 30px; }
  .page-head--route .page-head__title { font-size: 24px; }
  .hero__title { font-size: 32px; }
  .hero__inner { padding-top: 32px; padding-bottom: 48px; }
  .badge--large { min-width: 56px; height: 56px; font-size: 26px; }
  .departure__time { font-size: 40px; }
  .route-grid { grid-template-columns: 1fr; }
  .filter-bar { position: static; }
  .map__canvas { height: 340px; }
}

/* Текстовые страницы */
.content { gap: 0; max-width: 860px; font-size: 16px; line-height: 1.6; }
.content h2 { margin: 24px 0 10px; font-size: 22px; font-weight: 800; }
.content h2:first-child { margin-top: 0; }
.content p, .content ul, .content ol { margin: 0 0 14px; }
.content a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(29, 91, 216, 0.28); transition: border-color 0.15s, color 0.15s; }
.content a:hover { color: #1546A8; border-bottom-color: currentColor; }
/* Ссылка в начале пункта списка — название раздела: жирнее, без подчёркивания */
.content li > a:first-child { font-weight: 600; border-bottom-color: transparent; }
.content li > a:first-child:hover { border-bottom-color: currentColor; }
/* Ссылка в заголовке (карта сайта) — цвет текста и стрелка */
.content h2 a { color: var(--ink); border-bottom: 0; }
.content h2 a::after { content: ' →'; color: var(--muted); font-weight: 600; }
.content h2 a:hover { color: var(--link); }
/* Маркированные списки: жёлтая точка, как метка остановки */
.content ul { padding: 0; list-style: none; }
.content ul > li { position: relative; margin-bottom: 8px; padding-left: 24px; }
.content ul > li::before { content: ''; position: absolute; top: 0.6em; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
/* Нумерованные: номер в тёмном квадрате */
.content ol { padding: 0; list-style: none; counter-reset: item; }
.content ol > li { position: relative; margin-bottom: 10px; padding-left: 38px; counter-increment: item; }
.content ol > li::before { content: counter(item); position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--night); color: var(--sun); font-size: 13px; font-weight: 700; }
/* Длинный список коротких пунктов (города, ссылки) — в колонки */
.content ul:has(> li:nth-child(6)) { columns: 3 200px; column-gap: 24px; }
.content ul:has(> li:nth-child(6)) > li { break-inside: avoid; }
.content ul.details > li, .content .details__item { padding-left: 0; }
.content ul.details > li::before { display: none; }
.content ul.details { columns: auto; }
.content table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 15px; }
.content th, .content td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { background: var(--ground-deep); }
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 24px; }
.sitemap__group { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); }
.content .sitemap__group h2 { margin: 0 0 10px; font-size: 19px; }
.content .sitemap__group ul { margin: 0; columns: auto; }
.content .sitemap__group li { margin-bottom: 4px; }
.sitemap__count { color: var(--muted); font-size: 14px; }
.content__updated { margin-top: 16px; color: var(--muted); font-size: 14px; }
.details { margin: 0 0 12px; padding: 0; list-style: none; }
.details__item { margin-bottom: 4px; }
.details__label { color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; cursor: pointer; }

.footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer__link { color: var(--muted); }

/* Окно о cookie */
.cookie { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 760px; margin: 0 auto; padding: 16px 18px; background: var(--night); border-radius: var(--radius); color: #FFFFFF; box-shadow: 0 8px 30px rgba(15, 20, 25, 0.25); }
.cookie__text { flex: 1 1 320px; margin: 0; font-size: 14px; }
.cookie__text a { color: var(--sun); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--sun); color: var(--ink); font-weight: 700; cursor: pointer; }
.cookie__button--plain { background: var(--night-raised); color: #FFFFFF; }

.report__consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.report__consent input { margin-top: 4px; }

/* Новости */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.news-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.news-card:hover { border-color: #C3C9D2; }
.news-card__meta { color: var(--muted); font-size: 13px; }
.news-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.news-card__lead { color: var(--ink-soft); font-size: 15px; }
.news { display: flex; flex-direction: column; gap: 20px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.pager__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; text-decoration: none; }
.pager__info { color: var(--muted); font-size: 14px; }

/* Выбор города */
.city-picker { width: min(640px, calc(100% - 32px)); max-height: min(720px, calc(100% - 64px)); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(15, 20, 25, 0.3); }
.city-picker::backdrop { background: rgba(15, 20, 25, 0.55); }
.city-picker__panel { display: flex; flex-direction: column; gap: 14px; max-height: inherit; padding: 20px; }
.city-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.city-picker__title { font-size: 22px; font-weight: 800; }
.city-picker__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ground-deep); cursor: pointer; }
.city-picker__search { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 12px; background: var(--ground); font-size: 16px; }
.city-picker__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.city-picker__link { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.city-picker__link:hover { background: var(--ground-deep); }
.city-picker__link--current { background: var(--sun-soft); }
.city-picker__name { font-weight: 700; }
.city-picker__region { color: var(--muted); font-size: 13px; }
.city-picker__empty { margin: 0; color: var(--muted); }

/* Подсказки в поиске */
.suggest { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 20, 25, .16); }
.suggest__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.suggest__link:hover, .suggest__link:focus-visible { background: var(--ground); }
.suggest__body { display: flex; flex-direction: column; min-width: 0; }
.suggest__title { font-weight: 600; }
.suggest__note { overflow: hidden; color: var(--muted); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }

/* Остановки рядом */
.nearby-button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: var(--card); border: 1px solid var(--field); border-radius: 12px; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.nearby-button:hover { border-color: var(--ink-soft); }
.nearby-button--hero { margin-top: 12px; background: transparent; border-color: var(--night-line); color: #FFFFFF; }
.nearby { margin-top: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-size: 15px; }
.nearby--hero { max-width: 580px; }
.nearby__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nearby__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nearby__item:hover { background: var(--ground); }
.nearby__name { font-weight: 600; }
.nearby__note { color: var(--muted); font-size: 14px; }
.city-tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* Избранное */
.fav { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; background: var(--card); border: 1px solid var(--field); border-radius: 999px; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fav--on { background: var(--sun-soft); border-color: var(--sun-line); color: var(--ink); }
.fav--on svg { fill: var(--sun); stroke: #C48A00; }
.favs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.favs__item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.favs__item:hover { border-color: var(--field); }
.favs__stop { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--muted); }
.favs__title { font-weight: 600; }

/* Тексты о городе / маршруте и списки ссылок для перелинковки */
.about__text { margin: 0 0 12px; max-width: 760px; color: var(--ink-soft); line-height: 1.6; }
.about__text:last-child { margin-bottom: 0; }
.about__text a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.about__text a:hover { text-decoration-color: currentColor; }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.link-list a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.8; }
.link-list a:hover { text-decoration: underline; }
.link-list__note { color: var(--muted); font-size: 14px; }
