:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #16202c;
  --muted: #5d6b7a;
  --line: #dfe5ec;
  --brand: #0b4f8a;
  --brand-2: #e8f1fa;
  --accent: #f5b301;
  --past: #9aa5b1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 2px 8px rgba(16, 32, 48, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151c; --card: #17202a; --text: #e6edf3; --muted: #9aa8b6; --line: #2a3644;
    --brand: #6cb4ff; --brand-2: #1c2b3b; --past: #5f6b78; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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); }
a:hover { text-decoration: none; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 1rem 0 .6rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.07rem; color: var(--text); max-width: 820px; }
.muted { color: var(--muted); }
.small, small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 10; }

/* шапка */
.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 5; }
@media (prefers-color-scheme: dark) { .top { background: #0b2a47; } }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.logo { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; }
.logo__mark { background: var(--accent); color: #1b1b1b; font-weight: 800; border-radius: 6px; padding: 3px 6px; font-size: .85rem; letter-spacing: .04em; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text small { opacity: .8; font-size: .72rem; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; }
.burger span { top: 19px; } .burger span::before { top: -7px; left: 0; right: 0; } .burger span::after { top: 7px; left: 0; right: 0; }
.nav { background: rgba(0, 0, 0, .12); }
.nav__list { display: flex; flex-wrap: wrap; gap: 2px 4px; padding-top: 4px; padding-bottom: 4px; }
.nav a { color: #fff; text-decoration: none; padding: 6px 9px; border-radius: 6px; font-size: .92rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: rgba(255, 255, 255, .16); }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding-bottom: 10px; }
  .nav a { padding: 10px; }
}

/* хлебные крошки */
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.crumbs a { color: var(--muted); }

/* табло */
.board { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin: 14px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.tabs__sep { flex: 0 0 8px; }
.tab { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .95rem; cursor: pointer; text-decoration: none; }
.tab small { color: var(--muted); margin-left: 4px; }
.tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab.is-on small { color: rgba(255, 255, 255, .8); }
@media (prefers-color-scheme: dark) { .tab.is-on { color: #0f151c; } .tab.is-on small { color: #0f151c; } }
.board__h { font-size: 1rem; color: var(--muted); font-weight: 600; margin: 6px 0 8px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0 10px; }
.tools__search { flex: 1 1 260px; }
.tools input[type=search] { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); }
.tools__past { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.chips { display: flex; gap: 4px; }
.chip { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 6px; padding: 6px 10px; font: inherit; font-size: .88rem; cursor: pointer; }
.chip.is-on { background: var(--brand-2); border-color: var(--brand); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
.tablo td.t-time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tablo td.t-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tablo tr.is-past { color: var(--past); }
.tablo tr.is-past a { color: var(--past); }
.tablo tr.is-past.is-hidden, .tablo tr.is-filtered, tr.is-filtered, .city.is-filtered { display: none; }
.tablo tr.is-next td { background: var(--brand-2); }
.tag { display: inline-block; font-size: .72rem; padding: 1px 6px; border-radius: 4px; background: var(--brand-2); color: var(--brand); vertical-align: 1px; font-weight: 600; }
table.compact th, table.compact td { padding: 6px 8px; }
td.days { font-size: .85rem; color: var(--muted); max-width: 320px; }
.sm-only { display: none; }
@media (max-width: 560px) {
  .hide-xs { display: none; }
  .sm-only { display: block; color: var(--muted); }
  .tablo tr.is-past .sm-only { color: var(--past); }
}
@media (max-width: 640px) {
  table.compact { display: block; overflow-x: auto; }
  .hide-sm { display: none; }
  th, td { padding: 7px 5px; }
  .tablo td.t-air { font-size: .85rem; }
  h1 { font-size: 1.5rem; }
  table.compact { font-size: .92rem; }
}

/* блоки */
.live, .facts, .cheap, .faq, .text, .lounge, .city, .doc, section { margin-top: 8px; }
.city, .lounge { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 14px 12px; margin: 14px 0; }
.city h2, .lounge h2 { margin-top: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; }
.grid > div { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; }
.grid dt { font-size: .8rem; color: var(--muted); }
.grid dd { margin: 2px 0 0; font-weight: 600; }
.lounge .grid > div { box-shadow: none; padding: 6px 0; background: none; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cards a { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; text-decoration: none; color: var(--text); }
.cards a:hover { outline: 2px solid var(--brand); }
.cards span { font-size: 1.15rem; font-weight: 700; color: var(--brand); }
.cards small { color: var(--muted); }
.pricebox { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; background: var(--brand-2); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: 9px 16px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
@media (prefers-color-scheme: dark) { .btn { color: #0f151c; } }
.btn--ghost { background: none; color: var(--brand); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.toc { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .92rem; margin: 10px 0 4px; }
.faq details { background: var(--card); border-radius: 8px; box-shadow: var(--shadow); margin: 8px 0; padding: 10px 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details div { margin-top: 6px; }
ul.plain { padding-left: 18px; }
.routes td { vertical-align: middle; }
.contacts th { width: 38%; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--text); }
.doc { max-width: 820px; }
.doc h2 { font-size: 1.15rem; }
.avionio-widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.avionio-credit { font-size: 12px; text-align: center; padding: 4px 0; }
.avionio-credit a { color: var(--muted); text-decoration: none; }

/* подвал */
.foot { margin-top: 40px; padding: 22px 0 90px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot__disclaimer { max-width: 900px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__links a, .foot__links .linklike { color: var(--muted); }
.foot__banner { margin: 8px 0; }
@media (max-width: 760px) { .foot__banner { display: none; } }

/* окно cookie */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 720px; margin: 0 auto; background: var(--card); color: var(--text); border-radius: 12px; box-shadow: 0 6px 30px rgba(0, 0, 0, .2); padding: 14px 16px; z-index: 20; 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; }

td.num { white-space: nowrap; }
