/* jetping — дневное небо на эшелоне: холодный белый, мягкий голубой, тёмно-синие чернила.
   Жёлтый рулёжной разметки — только для действий и цен. Рейсы выглядят как билеты: города крупно, коды мелко. */
:root {
  --cloud: #f5f8fc;
  --white: #ffffff;
  --ink: #13294b;
  --ink-2: #5a6b84;
  --ink-3: #8a98ad;
  --line: #e2e9f2;
  --sky: #dcebf9;
  --sky-2: #eef5fc;
  --sky-deep: #9cc3ea;
  --taxi: #ffc928;
  --taxi-hover: #ffbb00;
  --taxi-soft: #fff4cc;
  --prop: #2a7bc4;
  --heli: #c77a12;
  --ok: #18794e;
  --err: #c2372f;
  --f: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-panel: 22px;
  --r-row: 14px;
  --float: 0 1px 2px rgba(19, 41, 75, .06), 0 18px 48px -12px rgba(19, 41, 75, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cloud); color: var(--ink);
  font: 400 16px/1.55 var(--f); font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--sky-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--prop); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.code { font-variant-numeric: tabular-nums; letter-spacing: .06em; font-weight: 600; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { line-height: 1.04; margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.9rem); font-variation-settings: 'wdth' 80; letter-spacing: -.035em; max-width: 15ch; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-variation-settings: 'wdth' 85; letter-spacing: -.02em; margin-bottom: 20px; }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 54ch; margin-top: 20px; }
.link { font-weight: 600; text-decoration: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--taxi); }
.link:hover { box-shadow: inset 0 -8px 0 var(--taxi-soft), inset 0 -2px 0 var(--taxi); }

/* ---------- шапка ---------- */
.top { position: relative; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 700 1.4rem/1 var(--f); font-variation-settings: 'wdth' 80; letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.logo svg { width: 22px; height: 22px; fill: var(--ink); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.nav a[aria-current] { color: var(--ink); background: var(--white); }
.langs { display: flex; gap: 2px; }
.langs a { color: var(--ink-3); text-decoration: none; padding: 6px 8px; font-size: .85rem; font-weight: 600; border-radius: 8px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); }
@media (max-width: 900px) {
  .top .wrap { gap: 6px 14px; padding-top: 12px; padding-bottom: 8px; min-height: 0; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .top .btn { display: none; }
  .langs { margin-left: auto; }
}

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--f); color: var(--ink); background: var(--taxi);
  border: 0; border-radius: 999px; padding: 15px 24px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, transform .15s;
}
.btn:hover { background: var(--taxi-hover); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 11px 18px; font-size: .9rem; }
.btn--ghost { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: 400 1rem/1.3 var(--f); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--prop); outline: none; box-shadow: 0 0 0 4px var(--sky); }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: clamp(32px, 7vw, 96px) 0 clamp(8px, 2vw, 24px); overflow: hidden; }
.hero .wrap { position: relative; }


/* поиск — плавающая панель */
.finder {
  margin: 40px 0 0; display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto; align-items: center;
  background: var(--white); border-radius: var(--r-panel); box-shadow: var(--float); padding: 8px;
}
.finder > div { position: relative; padding: 10px 18px; min-width: 0; }
.finder > div + div:not(.finder-go)::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.finder label { margin-bottom: 2px; }
.finder input, .finder select { border: 0; padding: 2px 0; background: transparent; box-shadow: none; border-radius: 0; font-weight: 500; font-size: 1.05rem; }
.finder select { appearance: none; cursor: pointer; }
.finder > .finder-go { padding: 0; }
.finder-go .btn { padding: 19px 30px; }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr 1fr; padding: 6px; }
  .finder > div + div::before { display: none; }
  .finder > div { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .finder > div:nth-child(2n) { border-left: 1px solid var(--line); }
  .finder > div:nth-child(3), .finder > div:nth-child(4) { border-bottom: 0; }
  .finder > .finder-go { grid-column: 1 / -1; border: 0; padding: 6px 0 0; }
  .finder-go .btn { width: 100%; }
}
.finder.finder--one { grid-template-columns: 1fr; max-width: 560px; }
.finder.finder--one > div { border: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { font-size: .9rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .65); text-decoration: none; color: var(--ink); backdrop-filter: blur(6px); }
.chips a:hover { background: var(--white); }

.ac-list { position: absolute; z-index: 30; left: 8px; background: var(--white); border-radius: 14px; box-shadow: var(--float); min-width: 260px; padding: 6px; margin: 8px 0 0; list-style: none; }
.ac-list li { padding: 9px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; border-radius: 9px; }
.ac-list li:hover, .ac-list li.on { background: var(--sky-2); }
.ac-list small { color: var(--ink-3); }

/* ---------- рейсы: строки-билеты в одной панели ---------- */
.board { container-type: inline-size; background: var(--white); border-radius: var(--r-panel); border: 1px solid var(--line); overflow: hidden; }
.board:empty { display: none; }
.leg {
  --cls: var(--ink);
  display: grid; grid-template-columns: 72px minmax(0, 2.3fr) minmax(0, 1.2fr) 140px auto; align-items: center; gap: 24px;
  padding: 18px 24px; position: relative;
}
.leg + .leg { border-top: 1px solid var(--line); }
.leg:hover { background: var(--sky-2); }
.leg--turboprop { --cls: var(--prop); }
.leg--heli { --cls: var(--heli); }
.leg-date { display: grid; justify-items: center; text-align: center; line-height: 1; padding: 8px 0 7px; border-radius: 12px; background: var(--sky-2); }
.leg:hover .leg-date { background: var(--white); }
.leg-date b { font-size: 1.6rem; font-weight: 600; font-variation-settings: 'wdth' 80; letter-spacing: -.02em; }
.leg-date span { font-size: .8rem; font-weight: 600; margin-top: 2px; }
.leg-date small { font-size: .72rem; color: var(--ink-2); margin-top: 5px; white-space: nowrap; }
.leg-route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) minmax(0, 1fr); align-items: center; gap: 14px; }
.leg-ap { min-width: 0; }
.leg-ap--to { text-align: right; }
.leg-city { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-code { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); text-decoration: none; }
.leg-code:hover { color: var(--ink); }
.leg-path { text-align: center; color: var(--ink-3); }
.leg-line { position: relative; display: block; height: 18px; }
.leg-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--sky-deep); }
.leg-line::after { content: ''; position: absolute; right: -3px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--sky-deep); }
.leg-plane { position: absolute; left: calc(50% - 11px); top: 0; width: 18px; height: 18px; padding: 0 2px; box-sizing: content-box; fill: var(--cls); background: var(--white); }
.leg:hover .leg-plane { background: var(--sky-2); }
.leg-path small { display: block; font-size: .74rem; white-space: nowrap; margin-top: 2px; }
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 6px; }
.leg-ac { min-width: 0; }
.leg-ac a, .leg-ac b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.leg-ac a:hover { text-decoration: underline; }
.leg-ac span { display: block; font-size: .84rem; color: var(--ink-2); }
.leg-ac span:first-of-type::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cls); margin-right: 7px; vertical-align: 1px; }
.leg-ac .leg-flex { color: var(--prop); }
.leg-ac .leg-flex::before { display: none; }
.leg-price { text-align: right; }
.leg-price b { display: inline-block; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; background: var(--taxi-soft); padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.leg-price span { display: block; font-size: .78rem; color: var(--ink-2); margin-top: 3px; }
.leg-price--ask span { font-size: .88rem; margin: 0; }
@container (max-width: 940px) {
  .leg { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px 18px; padding: 18px; }
  .leg-route { grid-column: 2 / 4; }
  .leg-ac { grid-column: 1 / 3; }
  .leg-price { grid-column: 3; }
  .leg-act { grid-column: 1 / -1; }
  .leg-act .btn { width: 100%; }
}
@container (max-width: 520px) {
  .leg { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; }
  .leg-route { grid-column: 2; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 8px; }
  .leg-city { font-size: 1rem; }
  .leg-path small { display: none; }
  .leg-ac { grid-column: 1 / -1; }
  .leg-price { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; text-align: left; margin-top: -4px; }
}

/* ---------- секции ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0 0; }
.section.section--tight { padding-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.more { text-align: center; margin-top: 24px; }

.routes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 8px; }
.routes a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 20px; text-decoration: none; background: var(--white); border-radius: var(--r-row); border: 1px solid var(--line); height: 100%; }
.routes a:hover { border-color: var(--sky-deep); }
.routes .r-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-weight: 600; font-size: 1.05rem; min-width: 0; }
.routes .r-name span { overflow-wrap: anywhere; }
.routes .r-name svg { flex: none; width: 18px; height: 8px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.routes .r-meta { grid-column: 1; font-size: .84rem; color: var(--ink-2); }
.routes .r-n { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: .78rem; color: var(--ink-2); background: var(--taxi-soft); border-radius: 10px; padding: 6px 10px; text-align: center; line-height: 1.15; max-width: 96px; }
.routes .r-n b { display: block; font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.routes .r-n.zero { background: var(--sky-2); }
.routes .r-n.zero b { color: var(--ink-3); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; font-size: 1.08rem; max-width: 34ch; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line); font-weight: 600; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -20px; border-top: 1.5px dashed var(--sky-deep); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { padding: 8px 0 0 64px; min-height: 44px; }
  .steps li:not(:last-child)::after { display: none; }
}

/* ---------- внутренние страницы ---------- */
.page-head { padding: clamp(24px, 5vw, 56px) 0 0; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); max-width: 20ch; }
.crumbs { font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 32px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); }
.facts div { padding: 18px 22px; min-width: 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--ink-2); }
.facts dd { margin: 6px 0 0; font-size: 1.5rem; font-weight: 600; font-variation-settings: 'wdth' 85; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .two { grid-template-columns: 1fr; } }
.side > * + * { margin-top: 32px; }
.side .routes { grid-template-columns: 1fr; }
.side h3 { margin-bottom: 10px; }
.box { background: var(--white); border-radius: var(--r-panel); padding: 24px; border: 1px solid var(--line); }
.box h3 { margin-bottom: 8px; }
.box form > * + * { margin-top: 10px; }
.box .btn { width: 100%; }
.routemap { height: 320px; border-radius: var(--r-panel); margin-top: 32px; background: var(--sky); overflow: hidden; }
.empty { background: var(--white); border: 1.5px dashed var(--sky-deep); border-radius: var(--r-panel); padding: 28px; }
.empty p { margin-bottom: 16px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.flush { margin: 0; }
.gap-top { margin-top: 32px; }

/* ---------- таблицы справочника ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .8rem; color: var(--ink-2); font-weight: 500; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--sky-2); }
.table td a { font-weight: 600; text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.class-title { margin: 44px 0 14px; display: flex; gap: 12px; align-items: center; }
.class-title::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cls, var(--ink)); }
.class-title.turboprop { --cls: var(--prop); }
.class-title.heli { --cls: var(--heli); }

/* ---------- карта ---------- */
body.is-map .foot { display: none; }
.mapapp { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 12px; height: calc(100vh - 76px); min-height: 540px; padding: 0 12px 12px; }
#map { height: 100%; background: var(--sky); border-radius: var(--r-panel); }
.leaflet-tile-pane { filter: saturate(.3) brightness(1.05) contrast(.92); }
.mappanel { background: var(--white); border-radius: var(--r-panel); overflow-y: auto; padding: 26px; border: 1px solid var(--line); }
.mappanel h1, .mappanel .mp-title { font-size: 1.9rem; letter-spacing: -.025em; font-variation-settings: 'wdth' 80; }
.mappanel h3 { margin-top: 20px; }
.legend { list-style: none; padding: 16px; margin: 18px 0; font-size: .9rem; background: var(--sky-2); border-radius: 14px; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(19, 41, 75, .2); flex: none; }
.dot--parked { background: var(--ink); }
.dot--away { background: var(--heli); }
.dot--legs { background: var(--taxi); }
.plane { padding: 16px; margin-top: 10px; border-radius: 16px; border: 1px solid var(--line); }
.plane-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.plane-head b { font-size: 1.05rem; font-weight: 600; }
.plane-head a { text-decoration: none; }
.plane .tag { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sky-2); color: var(--ink-2); white-space: nowrap; }
.plane .tag--away { background: #fdf0dc; color: var(--heli); }
.plane p { margin: 4px 0 0; font-size: .88rem; color: var(--ink-2); }
.plane .plan { margin-top: 10px; font-size: .88rem; background: var(--taxi-soft); border-radius: 10px; padding: 8px 12px; }
.plane .btn { margin-top: 12px; }
.mini-legs { list-style: none; padding: 0; margin: 8px 0 0; font-size: .88rem; }
.mini-legs li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.mini-legs li:last-child { border-bottom: 0; }
.note { font-size: .82rem; color: var(--ink-3); margin-top: 20px; }
.leaflet-container { font: inherit; }
.leaflet-bar.leaflet-control-zoom { border: 0; box-shadow: var(--float); border-radius: 12px; overflow: hidden; }
.leaflet-bar.leaflet-control-zoom a { color: var(--ink); }
.leaflet-tooltip { font-weight: 500; border-radius: 8px; border: 0; box-shadow: var(--float); color: var(--ink); }
.leaflet-tooltip.ap-label { font: 600 12px/1 var(--f); letter-spacing: .04em; background: var(--white); padding: 5px 8px; }
@media (max-width: 900px) {
  .mapapp { grid-template-columns: 1fr; height: auto; }
  #map { height: 62vh; }
  body.is-map .foot { display: block; }
}

/* ---------- модальное окно заявки ---------- */
.modal { position: fixed; inset: 0; background: rgba(19, 41, 75, .35); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.modal.open { display: flex; }
.modal-card { background: var(--white); border-radius: 26px; box-shadow: var(--float); width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .modal.open .modal-card { animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.modal-card h2 { margin-bottom: 8px; padding-right: 36px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--sky-2); border: 0; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-x:hover { background: var(--sky); }
.modal-leg { background: var(--taxi-soft); padding: 12px 14px; border-radius: 12px; font-size: .92rem; font-weight: 500; margin: 14px 0 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal form > * + * { margin-top: 14px; }
.modal form .btn { width: 100%; }
.form-msg { margin-top: 12px; font-size: .92rem; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* ---------- подвал ---------- */
.foot { margin-top: 112px; border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: .86rem; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 200px 1fr; gap: 8px 40px; }
.foot .wrap > p { grid-column: 2; max-width: 80ch; margin: 0 0 8px; }
.foot .logo--foot { font-size: 1.2rem; grid-row: 1 / 4; align-self: start; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .foot .wrap { grid-template-columns: 1fr; }
  .foot .wrap > p { grid-column: 1; }
  .foot .logo--foot { grid-row: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .board.loading { opacity: .5; transition: opacity .2s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- карточки самолётов на карте ---------- */
.acard { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 12px; background: var(--white); }
.acard-img { position: relative; aspect-ratio: 16 / 9; background: var(--sky-2); display: grid; place-items: center; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard-img svg { width: 44px; height: 44px; fill: var(--sky-deep); transform: rotate(45deg); }
.acard-tag { position: absolute; left: 10px; top: 10px; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(4px); }
.acard--away .acard-tag { background: #fdf0dc; color: var(--heli); }
.acard--departs .acard-tag { background: var(--taxi); }
.acard-img > a { display: block; width: 100%; height: 100%; }
a.acard-credit { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: auto; padding: 18px 10px 5px; font-size: .64rem; line-height: 1.3; color: rgba(255, 255, 255, .78); text-decoration: none; background: linear-gradient(transparent, rgba(19, 41, 75, .55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.acard-credit:hover { color: #fff; }
.acard-body { padding: 14px 16px 16px; }
.acard-body h4 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.acard-body h4 a { text-decoration: none; }
.acard-body h4 a:hover { text-decoration: underline; }
.acard-body p { margin: 3px 0 0; font-size: .86rem; color: var(--ink-2); }
.acard-meta .code { margin-left: 6px; color: var(--ink-3); font-size: .8rem; }
.acard-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cls); margin-right: 7px; vertical-align: 1px; }
.acard-op a { color: var(--ink); }
.acard .mini-legs { margin-top: 10px; border-top: 1px solid var(--line); }
.acard .mini-legs a { font-weight: 600; white-space: nowrap; }
.acard .btn { margin-top: 12px; width: 100%; }
.mappanel .empty { margin-top: 12px; padding: 20px; }
.acard-meta { --cls: var(--ink); }
.acard-meta.leg--turboprop { --cls: var(--prop); }
.acard-meta.leg--heli { --cls: var(--heli); }

a.leg-city { text-decoration: none; }
a.leg-city:hover { text-decoration: underline; }
.mini-legs span a { color: inherit; }

/* легенда карты — кнопка поверх карты и окно */
.mapwrap { position: relative; min-height: 0; }
.mapwrap #map { height: 100%; }
.maplegend-btn { position: absolute; left: 12px; bottom: 28px; z-index: 500; display: inline-flex; align-items: center; gap: 4px; font: 600 .85rem/1 var(--f); color: var(--ink); background: var(--white); border: 0; border-radius: 999px; padding: 9px 14px 9px 10px; box-shadow: var(--float); cursor: pointer; }
.maplegend-btn .dot { width: 10px; height: 10px; border-width: 2px; margin-right: -2px; }
.maplegend-btn .dot:last-of-type { margin-right: 6px; }
.maplegend-btn:hover { background: var(--sky-2); }
.modal-card--sm { width: min(440px, 100%); }
.leaflet-container .leaflet-control-attribution { font-size: 10px; line-height: 1.4; padding: 1px 6px; background: rgba(255, 255, 255, .7); color: var(--ink-3); }
.leaflet-container .leaflet-control-attribution a { color: var(--ink-2); }
.acard .mini-legs span a { font-weight: 400; }

/* ---------- первый экран: салон джета ---------- */
body.is-home .top { position: absolute; inset: 0 0 auto; background: rgba(245, 248, 252, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(19, 41, 75, .06); }
.hero2 { --px: 0px; --py: 0px; --sy: 0px; position: relative; min-height: clamp(640px, 100svh, 940px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero2-media { position: absolute; inset: -14px; z-index: -1; overflow: hidden; translate: var(--px) calc(var(--py) + var(--sy)); will-change: translate; }
.hero2-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 42%; transform: scale(1.02); }
.hero2-media::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(245, 248, 252, .94) 0%, rgba(245, 248, 252, .8) 30%, rgba(245, 248, 252, .25) 52%, rgba(245, 248, 252, 0) 64%),
  linear-gradient(0deg, rgba(245, 248, 252, .9) 0%, rgba(245, 248, 252, 0) 22%); }
.hero2-sun { position: absolute; inset: -20% -40%; background: linear-gradient(105deg, transparent 38%, rgba(255, 248, 228, .55) 47%, rgba(255, 255, 255, .0) 56%); mix-blend-mode: soft-light; opacity: 0; pointer-events: none; }
.hero2-body { position: relative; width: 100%; padding-top: 110px; padding-bottom: 72px; }
.hero2-title { font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 600; font-variation-settings: 'wdth' 94; letter-spacing: -.035em; line-height: 1.02; max-width: none; }
@media (min-width: 901px) { .hero2-title .ln { white-space: nowrap; } }
.hero2-title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero2-title .ln > span { display: inline-block; }
.hero2-sub { margin: 22px 0 0; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--ink); opacity: .82; max-width: 44ch; }
.hero2 .finder { max-width: 820px; margin-top: 34px; border-radius: 999px; padding: 8px 8px 8px 10px; box-shadow: 0 2px 4px rgba(19, 41, 75, .05), 0 24px 60px -18px rgba(19, 41, 75, .35); }
.hero2 .finder-go .btn { position: relative; overflow: hidden; padding: 20px 30px; font-size: 1.02rem; }
.hero2 .finder-go .btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); }
.hero2 .finder-go .btn:hover::after { transition: transform .7s; transform: translateX(120%); }
.hero2-ticker { margin: 18px 0 0 18px; font-size: .95rem; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.hero2-ticker b { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.hero2-ticker b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 0 rgba(34, 160, 107, .5); }
.hero2-ticker a { text-decoration: none; color: var(--ink); display: inline-block; }
.hero2-ticker a:hover .t-route { text-decoration: underline; }
.hero2-ticker .t-route { font-weight: 500; }
.hero2-ticker .t-meta { color: var(--ink-2); margin: 0 4px; }
.hero2-ticker .t-price { font-weight: 600; background: var(--taxi-soft); padding: 1px 7px; border-radius: 6px; }
.hero2-ticker a.out { animation: tick-out .35s ease-in forwards; }
.hero2-ticker a.in { animation: tick-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tick-out { to { transform: translateY(-70%); opacity: 0; } }
@keyframes tick-in { from { transform: translateY(70%); opacity: 0; } }

.hero2-card { position: absolute; left: 56%; top: 24%; display: grid; gap: 2px; min-width: 230px; padding: 16px 18px 15px; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 18px; box-shadow: 0 20px 50px -16px rgba(19, 41, 75, .35); translate: calc(var(--px) * -1.6) calc(var(--py) * -1.6); }
.hero2-card small { font-size: .78rem; color: var(--ink-2); }
.hero2-card b { font-weight: 600; font-size: 1.02rem; }
.hero2-card span { font-size: .84rem; color: var(--ink-2); }
.hero2-card em { justify-self: start; margin-top: 6px; font-style: normal; font-weight: 600; background: var(--taxi); padding: 4px 10px; border-radius: 8px; }
.hero2-card:hover { background: #fff; }

@media (max-width: 900px) {
  .hero2 { min-height: 0; display: block; }
  .hero2-media { position: relative; inset: auto; height: 58vh; min-height: 360px; translate: none; }
  .hero2-media img { object-position: 84% 40%; }
  .hero2-media::after { background: linear-gradient(0deg, var(--cloud) 0%, rgba(245, 248, 252, .85) 22%, rgba(245, 248, 252, 0) 48%); }
  .hero2-body { margin-top: -96px; padding-top: 0; padding-bottom: 24px; }
  .hero2 .finder { border-radius: 22px; }
  .hero2-ticker { margin-left: 4px; }
  /* бегущая строка всегда в две строки: маршрут + цена, ниже дата и самолёт; высота не меняется */
  .hero2-ticker a { width: 100%; display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: start; align-items: center; column-gap: 8px; line-height: 1.5; height: 3em; }
  .hero2-ticker .t-route { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero2-ticker .t-price { grid-column: 2; grid-row: 1; }
  .hero2-ticker .t-meta { grid-column: 1 / -1; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero2-card { display: none; }
}

/* последовательность при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .hero2-media img { animation: hero-settle 2.6s cubic-bezier(.16, 1, .3, 1) both, hero-drift 26s ease-in-out 2.6s infinite alternate; }
  .hero2-sun { animation: hero-sun 3.2s cubic-bezier(.4, 0, .2, 1) .5s both; }
  .hero2-title .ln > span { animation: line-up 1s cubic-bezier(.16, 1, .3, 1) both; }
  .hero2-title .ln:nth-child(1) > span { animation-delay: .35s; }
  .hero2-title .ln:nth-child(2) > span { animation-delay: .5s; }
  .hero2-sub { animation: fade-up .9s cubic-bezier(.16, 1, .3, 1) .75s both; }
  .hero2 .finder { animation: bar-in 1s cubic-bezier(.16, 1, .3, 1) .9s both; }
  .hero2 .finder > div { animation: fade-up .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero2 .finder > div:nth-child(1) { animation-delay: 1.05s; }
  .hero2 .finder > div:nth-child(2) { animation-delay: 1.12s; }
  .hero2 .finder > div:nth-child(3) { animation-delay: 1.19s; }
  .hero2 .finder > div:nth-child(4) { animation-delay: 1.26s; }
  .hero2 .finder > div:nth-child(5) { animation-delay: 1.33s; }
  .hero2 .finder-go .btn::after { animation: shine 1.1s ease-in-out 1.9s both; }
  .hero2-ticker { animation: fade-up .8s cubic-bezier(.16, 1, .3, 1) 1.4s both; }
  .hero2-ticker b::before { animation: live 2.4s ease-out 2s infinite; }
  .hero2-card { animation: card-in 1.1s cubic-bezier(.16, 1, .3, 1) 1.6s both; }
  .hero2-card em { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) 2.4s both; }
}
@keyframes hero-settle { from { transform: scale(1.12); filter: blur(10px) brightness(1.18); } to { transform: scale(1.02); filter: none; } }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: translateX(-1%) scale(1.06); } }
@keyframes hero-sun { 0% { opacity: 0; transform: translateX(-35%); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(35%); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes bar-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(34, 160, 107, 0); } }
@keyframes card-in { from { opacity: 0; transform: translate3d(40px, 12px, 0) scale(.94); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- глобус с перелётами ---------- */
.globe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.globe-copy p { max-width: 46ch; }
.globe-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0 32px; }
.globe-stats dt { order: 2; font-size: .84rem; color: var(--ink-2); }
.globe-stats div { display: flex; flex-direction: column; }
.globe-stats dd { margin: 0; font-size: 2.2rem; font-weight: 600; font-variation-settings: 'wdth' 85; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.globe-now-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; animation: live 2.4s ease-out infinite; }
.globe-now-box { --row: 66px; height: calc(var(--row) * 5); overflow: hidden; }
.globe-now { list-style: none; margin: 0; padding: 0; transition: transform .6s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.globe-now li { height: var(--row); border-top: 1px solid var(--line); overflow: hidden; }
.globe-now li.in { animation: now-in .6s ease-out; }
.globe-now a { display: grid; height: 100%; align-content: center; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 0 2px; text-decoration: none; }
.globe-now b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.globe-now span { grid-column: 1; font-size: .82rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.globe-now em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 600; font-size: .9rem; background: var(--taxi-soft); border-radius: 8px; padding: 3px 9px; }
.globe-now a:hover b { text-decoration: underline; }
@keyframes now-in { from { opacity: 0; } }
.globe-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.globe { display: block; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe-tip { position: absolute; z-index: 2; transform: translate(12px, -130%); pointer-events: none; font-size: .82rem; font-weight: 600; white-space: nowrap; background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 8px; }
.globe-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: .78rem; color: var(--ink-3); background: rgba(255, 255, 255, .8); padding: 4px 10px; border-radius: 999px; transition: opacity .4s; }
.globe-stage.dragged .globe-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .globe-now { transition: none; } }
@media (prefers-reduced-motion: no-preference) {
  .globe-stage { opacity: 0; transform: scale(.92) rotate(-4deg); transition: opacity 1.2s, transform 1.6s cubic-bezier(.16, 1, .3, 1); }
  .globe-stage.on { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .globe-grid { grid-template-columns: 1fr; gap: 24px; }
  .globe-stage { order: -1; max-width: 520px; }
}

/* самолёт на картах Leaflet и «взлёт» в строке рейса */
.fly-plane { background: none; border: 0; }
.fly-plane svg { width: 26px; height: 26px; fill: var(--ink); stroke: #fff; stroke-width: 1.6; paint-order: stroke; filter: drop-shadow(0 2px 3px rgba(19, 41, 75, .35)); }
.fly-plane.landed svg { animation: land .9s ease-out forwards; }
@keyframes land { to { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .fan-line { stroke-dashoffset: 400; animation: fan 1.6s ease-out forwards; }
  .leg-plane { transition: left .9s cubic-bezier(.6, 0, .2, 1), transform .9s; }
  .leg:hover .leg-plane { left: calc(100% - 18px); }
}
@keyframes fan { to { stroke-dashoffset: 0; } }

/* страница маршрута: история, оценка чартера, аэропорты */
.rt-cta { margin-top: 20px; }
.rt-block h3 { margin: 24px 0 10px; }
.facts--sm { margin-top: 16px; }
.facts--sm dd { font-size: 1.2rem; }
.rt-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.rt-table th, .rt-table td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--line); }
.rt-table thead th { border-top: 0; font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.rt-table tbody tr:first-child td { border-top: 0; }
.rt-table thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
.rt-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-save { margin-top: 16px; padding: 14px 18px; border-radius: var(--r-panel); background: var(--taxi-soft); font-weight: 500; }
.rt-aps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rt-aps h3 { margin-top: 0; }
.rt-aps li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.rt-aps .muted { font-size: .82rem; }
@media (max-width: 640px) {
  .rt-aps { grid-template-columns: 1fr; }
  .rt-table th, .rt-table td { padding: 10px 10px; }
}
