/* Сайты-справочники об аэропортах: общая вёрстка. Цвета — переменные, тёмная тема ниже. */
:root {
  --bg: #f2f4f7;
  --card: #ffffff;
  --text: #111a24;
  --muted: #566372;
  --faint: #8b97a4;
  --line: #e1e6ec;
  --line-2: #eef1f5;
  --brand: #0a4e8c;
  --brand-ink: #ffffff;
  --brand-soft: #e7eff9;
  --accent: #f5b301;
  --accent-soft: #fff5d6;
  --accent-ink: #7a5800;
  --hdr-bg: #0a4e8c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 4px 16px rgba(16, 32, 48, .05);
  --hdr: 58px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1219; --card: #141c26; --text: #e6ecf2; --muted: #a0adba; --faint: #6e7c8a; --line: #253140;
    --line-2: #1b2531; --brand: #6cb4ff; --brand-ink: #0c1219; --brand-soft: #172638; --accent-soft: #33290c;
    --accent-ink: #f3cf6b; --hdr-bg: #0a2340; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
@media (max-width: 1099px) { :root { --hdr: 54px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 10px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1 { font-size: 1.95rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 .7rem; }
h3 { font-size: 1.02rem; margin: 1rem 0 .4rem; }
p { margin: 0 0 .75rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.06rem; max-width: 860px; margin: 0; }
.muted { color: var(--muted); }
.small, small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 30; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ic--sm { width: 16px; height: 16px; vertical-align: -3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- шапка ---------- */
.hdr { background: var(--hdr-bg); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hdr); }
.logo { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; min-width: 0; }
.logo__mark { background: var(--accent); color: #1b1b1b; font-weight: 800; border-radius: 7px; padding: 3px 7px; font-size: .82rem; letter-spacing: .05em; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo__text b { font-size: 1.04rem; }
.logo__text small { opacity: .78; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav summary { color: #fff; text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: .93rem; white-space: nowrap; cursor: pointer; }
.nav a:hover, .nav summary:hover, .nav a[aria-current], .nav summary[aria-current] { background: rgba(255, 255, 255, .15); }
.nav a[aria-current], .nav summary[aria-current] { font-weight: 650; }
.nav__more { position: relative; }
.nav__more summary { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__more summary::-webkit-details-marker { display: none; }
.nav__more[open] summary .ic { transform: rotate(180deg); }
.nav__drop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 6px; min-width: 210px; display: grid; }
.nav__drop a { color: var(--text); }
.nav__drop--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 600px; max-height: calc(100vh - 90px); overflow-y: auto; }
.mnav__group--many { grid-column: 1 / -1; columns: 4 150px; column-gap: 8px; }
.mnav__group--many .mnav__h { column-span: all; }
.nav__drop a:hover, .nav__drop a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; position: relative; border-radius: 8px; flex: none; }
.burger:hover { background: rgba(255, 255, 255, .12); }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .15s; }
.burger span { top: 20px; } .burger span::before { top: -7px; left: 0; right: 0; } .burger span::after { top: 7px; left: 0; right: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mnav { background: rgba(0, 0, 0, .14); border-top: 1px solid rgba(255, 255, 255, .1); max-height: calc(100vh - var(--hdr)); overflow-y: auto; }
.mnav__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 20px; padding-top: 10px; padding-bottom: 14px; }
.mnav__h { margin: 6px 0 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.mnav a { display: block; color: #fff; text-decoration: none; padding: 9px 10px; border-radius: 8px; }
.mnav a:hover, .mnav a[aria-current] { background: rgba(255, 255, 255, .14); }
@media (max-width: 1099px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (min-width: 1100px) { .mnav { display: none; } }

/* ---------- заголовок страницы ---------- */
.crumbs { font-size: .84rem; color: var(--muted); margin-top: 16px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 3px; color: var(--faint); }
.page-head { margin: 14px 0 18px; }
.crumbs + script + .page-head { margin-top: 8px; }

/* главные цифры под заголовком */
.kf { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.kf__in { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; height: 100%; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; color: var(--text); text-decoration: none; }
.kf__in .ic { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.kf__in b { font-size: 1.12rem; line-height: 1.25; }
.kf__in span { font-size: .84rem; color: var(--muted); line-height: 1.3; }
a.kf__in:hover { box-shadow: 0 0 0 2px var(--brand); }
@media (max-width: 680px) {
  .kf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kf__in { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
  .kf__in .ic { grid-row: auto; width: 30px; height: 30px; padding: 6px; margin-bottom: 6px; }
  .kf__in b { font-size: 1.02rem; }
}

/* ---------- карточки и сетки ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 16px 0; }
.card > :last-child { margin-bottom: 0; }
.card__h { display: flex; align-items: center; gap: 10px; font-size: 1.14rem; margin: 0 0 12px; }
.card__h > .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.card--flush { padding: 0; overflow: hidden; }
.card--flush > .card__h { padding: 16px 20px 4px; }
.card .pad { padding: 4px 20px 18px; }
.grid2, .grid3 { display: grid; gap: 16px; margin: 16px 0; align-items: start; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 > .card, .grid3 > .card, .stack > .card { margin: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.contents { display: contents; }
@media (max-width: 1000px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 28px; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.prose p { max-width: 860px; }
.note { font-size: .88rem; color: var(--muted); max-width: 860px; margin: 12px 0; }
.src { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.src .ic { margin-right: 2px; }
.card .src { margin-top: 12px; }
.callout { display: flex; gap: 10px; align-items: baseline; background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.callout .ic { color: var(--brand); position: relative; top: 2px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: .72rem; line-height: 1.5; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; vertical-align: 2px; white-space: nowrap; }
.fno { display: inline-block; font-variant-numeric: tabular-nums; font-weight: 650; background: var(--line-2); border-radius: 6px; padding: 1px 7px; white-space: nowrap; font-size: .92rem; }
.term { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 750; font-size: .85rem; }
.term--lg { min-width: 40px; height: 34px; font-size: 1rem; border-width: 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 10px; padding: 10px 18px; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: none; color: var(--brand); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }

/* ---------- поиск и фильтры ---------- */
.search { flex: 1 1 260px; position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; font: inherit; padding: 10px 12px 10px 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--card); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--brand); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 650; }
.tools-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.tools-bar .search input { background: var(--card); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.toc a { font-size: .86rem; padding: 4px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.toc a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- табло ---------- */
.board { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 12px; margin: 0 0 16px; }
.board__bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; font: inherit; color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 650; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(16, 32, 48, .14); }
.seg small { font-weight: 500; color: var(--muted); }
.seg--ev button { font-size: 1.03rem; padding: 9px 18px; }
.seg--ev button.is-on { background: var(--brand); color: var(--brand-ink); }
.seg__n { font-size: .78rem; background: rgba(127, 140, 155, .18); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.seg--ev .is-on .seg__n { background: rgba(255, 255, 255, .22); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.switch:hover { border-color: var(--brand); }
.board__tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 6px; }
.board__tools .search { flex-basis: 100%; }
.board__h { font-size: .84rem; color: var(--muted); font-weight: 650; margin: 12px 2px 4px; display: flex; align-items: center; gap: 6px; }
.board__foot { font-size: .85rem; color: var(--muted); margin: 12px 2px 0; }
.chip--past [data-past-n]:empty { display: none; }
/* Компактная копия панели табло (app.js): видна, пока сама панель ушла под шапку сайта. Высота уходит в отрицательный
   отступ, поэтому копия не сдвигает табло; шапка таблицы прилипает под ней. */
.board__mini { position: sticky; top: var(--hdr); z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between;
  margin: 0 -16px calc(-1 * var(--mini-h, 0px)); padding: 6px 16px; background: var(--card); box-shadow: 0 7px 10px -9px rgba(16, 32, 48, .45); visibility: hidden; }
.board__mini.is-on { visibility: visible; }
.board__mini .seg { padding: 3px; }
.board__mini .seg button, .board__mini .seg--ev button { padding: 6px 12px; font-size: .92rem; }
.board__mini .switch { padding: 6px 10px; font-size: .92rem; }
.has-mini .tablo th { top: calc(var(--hdr) + var(--mini-h, 0px)); }
@media (max-width: 680px) {
  .board__mini { flex-wrap: nowrap; margin: 0 -10px calc(-1 * var(--mini-h, 0px)); padding: 5px 10px; gap: 6px; }
  .board__mini .seg { flex: 1 1 0; min-width: 0; }
  .board__mini .seg button, .board__mini .seg--ev button { flex: 1 1 0; padding: 6px 4px; font-size: .86rem; }
  .board__mini .seg small, .board__mini .seg__n, .board__mini .seg .ic { display: none; }
  .board__mini .switch { flex: none; padding: 6px 8px; font-size: .86rem; }
}
@media (max-width: 680px) {
  .board { padding: 12px 10px 10px; margin-left: -6px; margin-right: -6px; }
  .board__bar { flex-direction: column; align-items: stretch; }
  .seg { display: flex; }
  .seg button { flex: 1 1 0; min-width: 0; padding: 8px 6px; flex-wrap: wrap; white-space: normal; gap: 2px 6px; }
  .seg small { white-space: nowrap; }
  .switch { justify-content: center; }
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; }
.tablo table { border-collapse: separate; border-spacing: 0; }
.tablo th { position: sticky; top: var(--hdr); background: var(--card); z-index: 1; border-bottom: 1px solid var(--line); padding: 9px 10px; }
.tablo td { padding: 10px; vertical-align: middle; }
.tablo td.t-time { white-space: nowrap; width: 1%; }
.t-time b { font-size: 1.13rem; font-variant-numeric: tabular-nums; }
.tablo td.t-num { white-space: nowrap; width: 1%; }
.t-city a, .t-city > span:first-child { font-weight: 650; color: var(--text); text-decoration-color: var(--line); text-underline-offset: 4px; }
.t-city a:hover { color: var(--brand); text-decoration-color: currentColor; }
.t-air { color: var(--muted); white-space: nowrap; }
.t-veh { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.t-city .tag { white-space: normal; }
.tablo th.t-term, .tablo td.t-term { text-align: center; width: 1%; }
.tablo tbody tr:hover td { background: var(--bg); }
.tablo tr.is-past td, .tablo tr.is-past .t-city a { color: var(--faint); }
.tablo tr.is-past .fno, .tablo tr.is-past .term { opacity: .55; }
.tablo tr.is-hidden, .tablo tr.is-filtered, tr.is-filtered, .city.is-filtered { display: none; }
.tablo tr.is-next td { background: var(--accent-soft); }
.tablo tr.is-next td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.tablo__empty, .tablo__none { padding: 20px 10px; color: var(--muted); text-align: center; margin: 0; }
.sm-only { display: none; }
@media (max-width: 1000px) { .hide-md { display: none; } }
@media (max-width: 680px) {
  .hide-sm { display: none; }
  .sm-only { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
  .tablo td { padding: 9px 6px; }
  .tablo th { padding: 8px 6px; }
  .t-time b { font-size: 1.05rem; }
  .tablo tr.is-past .sm-only { color: var(--faint); }
  h1 { font-size: 1.5rem; }
}
@media (max-width: 420px) { .hide-xs { display: none; } }

/* электричка */
.trains h2 { font-size: .95rem; color: var(--text); }
.trains td { padding: 8px 8px; }

/* главная: табло + колонка справа */
.layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "live"; }
.layout__main { grid-area: main; min-width: 0; }
.layout__side { grid-area: side; display: grid; gap: 16px; align-content: start; }
.layout__live { grid-area: live; min-width: 0; }
.layout .card, .layout .board { margin: 0; }
@media (min-width: 760px) and (max-width: 1079px) { .layout__side { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "main side" "live side"; align-items: start; }
}
.side .card__h { font-size: 1.02rem; }
.side__meta { margin: -4px 0 12px; color: var(--muted); }
.side__meta b { color: var(--text); }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.next__h { font-size: .8rem; color: var(--muted); margin: 0 0 6px; font-weight: 650; }
.next__none { font-size: .85rem; color: var(--muted); margin: 0; }
.times { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.times li { font-variant-numeric: tabular-nums; font-weight: 650; background: var(--line-2); border-radius: 7px; padding: 2px 8px; font-size: .92rem; }
.times li.is-next { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.times li.is-gone { display: none; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.rows li:first-child { border-top: 0; padding-top: 2px; }
.rows li > a { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.rows__l { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.rows li > a:hover .rows__l { color: var(--brand); }
.rows b { text-align: right; font-weight: 650; }
.phones { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 8px 0; }
.phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; font-weight: 650; }
.phone:hover { text-decoration: underline; }
.phone--btn { background: var(--brand-soft); padding: 9px 14px; border-radius: 10px; font-size: 1.02rem; }
.prices { list-style: none; margin: 0 0 10px; padding: 0; }
.prices a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.prices li:first-child a { border-top: 0; padding-top: 0; }
.prices__city { display: flex; flex-direction: column; font-weight: 650; line-height: 1.3; }
.prices__city small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.prices b { color: var(--brand); white-space: nowrap; }
.prices a:hover .prices__city { color: var(--brand); }

/* погода в аэропорту */
.wx__now { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; margin: 0 0 10px; }
.wx__now .wx__ic { grid-row: span 2; width: 46px; height: 46px; stroke-width: 1.5; vertical-align: 0; }
.wx__ic, .wx__days .ic { color: var(--brand); }
.wx__t { font-size: 2.1rem; line-height: 1.05; font-weight: 750; font-variant-numeric: tabular-nums; }
.wx__txt { color: var(--muted); line-height: 1.3; }
.wx__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .92rem; }
.wx__when { font-size: .8rem; color: var(--faint); margin: 8px 0 2px; }
.wx__days { list-style: none; margin: 6px 0 0; padding: 0; }
.wx__days li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.wx__days span { font-weight: 650; font-size: .94rem; line-height: 1.3; }
.wx__days small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
.wx__days b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx__src { font-size: .78rem; color: var(--faint); margin: 10px 0 0; }
.wx__src a { color: inherit; }
/* широкий блок на странице маршрута: сейчас слева, дни справа */
@media (min-width: 760px) {
  .wx--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 32px; align-items: start; }
  .wx--wide > .card__h, .wx--wide > .wx__src { grid-column: 1 / -1; }
  .wx--wide > .wx__now, .wx--wide > .wx__facts, .wx--wide > .wx__when { grid-column: 1; }
  .wx--wide > .wx__days { grid-column: 2; grid-row: 2 / span 3; margin: 0; }
  .wx--wide .wx__days li:first-child { border-top: 0; padding-top: 0; }
}

/* статусы Avionio */
.avionio-widget { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.avionio-credit { font-size: 12px; text-align: center; padding: 6px 0; }
.avionio-credit a { color: #5d6b7a; text-decoration: none; }

/* вопросы */
.faq { margin-top: 28px; }
.faq details { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); margin: 8px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 650; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { color: var(--faint); transition: transform .15s; }
.faq details[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 18px 14px; max-width: 900px; }

/* ---------- маршрут ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #0a4e8c, #1170c4); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin: 0 0 16px; }
.cta__text { flex: 1 1 360px; }
.cta__text p { margin: 0; }
.cta__text a { color: #fff; }
.cta__price { font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.cta .btn { background: var(--accent); border-color: var(--accent); color: #1b1b1b; }
.flights th { padding: 10px 12px; }
.flights th:first-child, .flights td:first-child { padding-left: 20px; }
.flights td { padding: 12px; vertical-align: top; }
.fl-times { white-space: nowrap; }
.fl-times b { font-size: 1.06rem; font-variant-numeric: tabular-nums; }
.fl-times sup { color: var(--accent-ink); font-weight: 700; margin-left: 2px; }
.fl-dur { white-space: nowrap; color: var(--muted); }
.fl-air { font-weight: 600; }
.fl-no small { display: block; color: var(--muted); margin-top: 2px; }
.fl-days { font-size: .84rem; color: var(--muted); max-width: 380px; }
@media (max-width: 680px) {
  .flights thead { display: none; }
  .flights, .flights tbody, .flights tr, .flights td { display: block; }
  .flights tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
  .flights td, .flights td:first-child { padding: 0; border: 0; }
  .flights .fl-dur { text-align: right; }
  .flights .fl-no, .flights .fl-days { grid-column: 1 / -1; max-width: none; }
}
.related h2 { font-size: 1.1rem; }

/* ---------- списки направлений и цен ---------- */
.list td { padding: 12px 16px; vertical-align: middle; }
.list th { padding: 12px 16px; }
.list__title { font-weight: 650; color: var(--text); text-decoration: none; }
.list__title:hover { color: var(--brand); text-decoration: underline; }
.list td small { display: block; color: var(--muted); font-size: .82rem; }
.list .num, .list th.num { text-align: right; }
.list .price { font-weight: 750; color: var(--brand); text-decoration: none; white-space: nowrap; }
.list tbody tr:hover td { background: var(--bg); }
@media (max-width: 680px) { .list td, .list th { padding: 10px 12px; } .list .sm-only { display: inline; } .list .sm-only::before { content: " · "; } }
.tiles { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.tile__main { display: grid; gap: 2px; padding: 14px 16px 12px; color: var(--text); text-decoration: none; flex: 1; }
.tile__main:hover { background: var(--brand-soft); }
.tile__city { font-weight: 650; }
.tile__price { font-size: 1.35rem; font-weight: 800; color: var(--brand); }
.tile__meta { font-size: .84rem; color: var(--muted); }
.tile__sub { border-top: 1px solid var(--line-2); padding: 8px 16px; font-size: .85rem; color: var(--muted); text-decoration: none; }
.tile__sub:hover { color: var(--brand); }

/* авиабилеты: группы по частям России и света */
.cheapest .tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.prices-tools .seg { flex: none; }
.pscope h2 { margin: 22px 0 12px; }
.pgroups { columns: 3 290px; column-gap: 16px; }
.card.pgroup { break-inside: avoid; margin: 0 0 16px; padding: 14px 16px 10px; }
.pgroup__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.04rem; margin: 0 0 4px; }
.pgroup__h span { font-size: .82rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.plist li:first-child { border-top: 0; }
.plist__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.plist__name a { font-weight: 650; color: var(--text); text-decoration-color: var(--line); text-underline-offset: 3px; }
.plist__name a:hover { color: var(--brand); text-decoration-color: currentColor; }
.plist__name small { flex-basis: 100%; color: var(--muted); font-size: .8rem; }
.plist__price { flex: none; font-weight: 750; color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 5px 10px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist__price:hover { background: var(--brand); color: var(--brand-ink); }
.pgroup.is-filtered, .plist li.is-filtered { display: none; }
@media (max-width: 680px) { .prices-tools .seg { flex-basis: 100%; } }

/* сайт с несколькими аэропортами: список на главной и разделы аэропорта */
.aps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.ap.is-filtered { display: none; }
.ap__main { display: grid; gap: 4px; padding: 16px 18px 12px; color: var(--text); text-decoration: none; flex: 1; }
.ap__main:hover .ap__name { color: var(--brand); }
.ap__iata { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--brand); }
.ap__name { font-size: 1.15rem; font-weight: 750; line-height: 1.25; }
.ap__stat { color: var(--text); }
.ap__next { font-size: .86rem; color: var(--muted); }
.ap__links { display: flex; border-top: 1px solid var(--line-2); }
.ap__links a { flex: 1; text-align: center; padding: 9px 6px; font-size: .9rem; text-decoration: none; }
.ap__links a + a { border-left: 1px solid var(--line-2); }
.ap__links a:hover { background: var(--brand-soft); }
.toc--ap { margin: 12px 0 0; }
.toc a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ---------- расписание по городам ---------- */
.cities { display: grid; gap: 8px; }
.city { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.city summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 13px 16px; cursor: pointer; list-style: none; }
.city summary::-webkit-details-marker { display: none; }
.city summary:hover .city__name { color: var(--brand); }
.city__name { font-weight: 700; font-size: 1.04rem; }
.city__meta { color: var(--muted); font-size: .87rem; flex: 1; min-width: 0; }
.city__chev { margin-left: auto; color: var(--faint); transition: transform .15s; }
.city[open] .city__chev { transform: rotate(180deg); }
.city[open] summary { border-bottom: 1px solid var(--line-2); }
.city__body { padding: 2px 16px 14px; }
.city h3 { display: flex; gap: 6px; align-items: center; font-size: .95rem; margin: 14px 0 6px; }
@media (max-width: 680px) { .city__meta { order: 3; flex-basis: 100%; } }
table.compact th, table.compact td { padding: 7px 8px; }
table.compact td small { display: block; color: var(--muted); font-size: .8rem; }
td.days { font-size: .82rem; color: var(--muted); max-width: 300px; }

/* ---------- страницы аэропорта ---------- */
.ways { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ways a { display: grid; gap: 4px; height: 100%; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; color: var(--text); text-decoration: none; }
.ways a:hover { box-shadow: 0 0 0 2px var(--brand); }
.ways .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.ways span { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.kv { margin: 0 0 12px; display: grid; gap: 8px; }
.kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.kv dt { color: var(--muted); font-size: .88rem; padding-top: 1px; }
.kv dd { margin: 0; }
.kv--row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.kv--row > div { display: block; }
.kv--row dt { font-size: .8rem; }
.kv--row dd { font-weight: 650; }
@media (max-width: 480px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.stops summary { cursor: pointer; color: var(--brand); font-weight: 650; list-style: none; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stops summary::-webkit-details-marker { display: none; }
.stops[open] summary .ic { transform: rotate(180deg); }
.route-line { list-style: none; margin: 6px 0 12px 7px; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.route-line li { position: relative; padding: 3px 0; }
.route-line li::before { content: ""; position: absolute; left: -26px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand); }
.route-line .route-line__group { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-top: 10px; }
.route-line .route-line__group::before { display: none; }
.contacts { list-style: none; padding: 0; margin: 0; }
.contacts li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.contacts li:first-child { border-top: 0; padding-top: 0; }
.contacts__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.zones { list-style: none; padding: 0; margin: 0; }
.zones li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.zones li:first-child { border-top: 0; padding-top: 0; }
.zone { background: var(--brand); color: var(--brand-ink); font-weight: 800; border-radius: 8px; padding: 6px 8px; text-align: center; font-size: .92rem; }
.pairs td:last-child { white-space: nowrap; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; }
.ticks li { position: relative; padding: 4px 0 4px 22px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.term-card__today { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; padding: 3px 10px; font-size: .86rem; font-weight: 650; }
.lounge__price { margin: -2px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.lounge__price b { font-size: 1.45rem; color: var(--brand); }
.lounge__price span { color: var(--muted); font-size: .9rem; }
.hero-contact .phones { margin: 4px 0 10px; }
.doc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; max-width: 900px; margin: 16px 0; }
.doc h1 { margin-top: 0; }
.doc h2 { font-size: 1.12rem; margin-top: 1.6rem; }
.doc th { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--text); font-weight: 600; }
.doc code { font-size: .86em; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
@media (max-width: 680px) { .doc { padding: 16px; } .doc table { display: block; overflow-x: auto; } }

/* Источники данных на странице «О сайте»: строка — иконка, что за данные, плашки «откуда» и «как часто» */
.srcs { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.srcs__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 12px 16px; }
.srcs__row + .srcs__row { border-top: 1px solid var(--line-2); }
.srcs__row:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.srcs__ic { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.srcs__name { display: block; font-weight: 650; line-height: 1.3; }
.srcs__note { display: block; margin-top: 2px; font-size: .86rem; line-height: 1.35; color: var(--muted); }
.srcs__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pill--src { border-color: var(--line); color: var(--muted); }
.pill--freq { background: var(--brand-soft); color: var(--brand); }
.pill .ic { width: 14px; height: 14px; }
@media (max-width: 680px) {
  .srcs__row { grid-template-columns: auto minmax(0, 1fr); padding: 11px 12px; column-gap: 12px; align-items: start; }
  .srcs__ic { width: 34px; height: 34px; padding: 8px; }
  .srcs__meta { grid-column: 2; justify-content: flex-start; margin-top: 7px; }
  .pill { font-size: .76rem; padding: 1px 8px; white-space: normal; }
}

/* ---------- подвал ---------- */
.foot { margin-top: 48px; background: var(--card); border-top: 1px solid var(--line); padding: 28px 0 100px; font-size: .9rem; color: var(--muted); }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1.4fr 1fr; gap: 24px 32px; }
.foot__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.foot__col--menu { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; align-content: start; }
.foot__col--menu .foot__h { grid-column: 1 / -1; }
.foot__col a, .foot__col .linklike { color: var(--muted); text-decoration: none; }
.foot__col a:hover, .foot__col .linklike:hover { color: var(--brand); text-decoration: underline; }
.foot__h { font-weight: 700; color: var(--text); margin: 0 0 2px; }
.foot__src { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.foot__banner { margin: 8px 0; }
.foot__banner--v { display: none; }
.foot__copy { margin: 10px 0 0; }
@media (max-width: 860px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__col--menu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 800px) { .foot__banner--h { display: none; } .foot__banner--v { display: block; } }

/* ---------- окно cookie ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 720px; margin: 0 auto; background: var(--card); color: var(--text); border-radius: 14px; box-shadow: 0 8px 34px rgba(0, 0, 0, .22); padding: 14px 16px; z-index: 40; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 320px; font-size: .92rem; }
.cookie__btns { display: flex; gap: 8px; flex-wrap: wrap; }
