:root {
  --ink: #0f2a33;
  --paper: #ffffff;
  --mist: #eef3f4;
  --sun: #ffb020;
  --sun-dark: #e59a0c;
  --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: "Onest", system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; }
h1, h2 { font-family: "Unbounded", "Onest", sans-serif; font-weight: 700; line-height: 1.12; margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- кнопки ---------- */
.btn-main, .btn-ghost, .btn-cabinet {
  display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px;
  transition: background .2s, transform .2s, color .2s;
}
.btn-main { padding: 15px 30px; background: var(--sun); color: var(--ink); }
.btn-main:hover { background: var(--sun-dark); transform: translateY(-2px); }
.btn-ghost { padding: 13px 28px; border: 2px solid currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-cabinet { padding: 8px 20px; font-size: .95rem; background: #fff; color: var(--ink); }
.btn-cabinet:hover { background: var(--sun); }

/* ---------- шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px max(var(--pad), env(safe-area-inset-right)) 16px max(var(--pad), env(safe-area-inset-left)); padding-top: max(16px, env(safe-area-inset-top)); color: #fff; transition: background .25s, padding .25s, box-shadow .25s;
}
.top.solid { background: rgba(15,42,51,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding-top: 10px; padding-bottom: 10px; box-shadow: 0 2px 18px rgba(0,0,0,.18); }
.brand { font-family: "Unbounded", sans-serif; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.menu { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; font-size: .95rem; }
.menu a { text-decoration: none; opacity: .88; }
.menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- первый экран со сменой фото ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: #16323c; overflow: hidden; }
.slides, .slide { position: absolute; inset: 0; }
.slide { background: var(--img) center / cover no-repeat; opacity: 0; }
.slide:first-child { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,24,30,.55) 0%, rgba(8,24,30,.12) 38%, rgba(8,24,30,.8) 100%);
}
.hero-text { position: relative; z-index: 2; padding: 0 var(--pad) clamp(48px, 10vh, 110px); max-width: 780px; }
.hero h1 { font-size: clamp(2.2rem, 6.2vw, 4.6rem); margin-bottom: 20px; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* движение включено по умолчанию; класс .calm (см. motion.js) его выключает */
@media all {
  .slide { animation: slide 18s infinite; }
  .slide:nth-child(2) { animation-delay: 6s; }
  .slide:nth-child(3) { animation-delay: 12s; }
  .slide:first-child { opacity: 0; }
  @keyframes slide { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }
  .hero-text { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* ---------- разделы ---------- */
.dest, .services, .steps { padding: clamp(56px, 9vw, 112px) var(--pad); }
.dest h2, .services h2, .steps h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 32px; }
.dest { max-width: 1280px; margin: 0 auto; }

/* направления */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 22px; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, rgba(8,24,30,0) 40%, rgba(8,24,30,.82) 100%), var(--img) center / cover no-repeat, #16323c;
  transition: transform .3s;
}
.tile:hover { transform: translateY(-4px); }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile-name { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 1.5rem; }
.tile-tag { font-size: .98rem; }

/* большие баннеры */
.band {
  position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff;
  background: linear-gradient(90deg, rgba(8,24,30,.78) 0%, rgba(8,24,30,.15) 70%), var(--img) center / cover no-repeat, #16323c;
}
.band-text { padding: 60px var(--pad); max-width: 640px; }
.band-place { display: block; font-size: .95rem; margin-bottom: 12px; opacity: .9; }
.band h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin-bottom: 16px; }
.band p { font-size: 1.15rem; margin: 0 0 26px; }
@media (min-width: 900px) {
  html:not(.calm) .band { background-attachment: scroll, fixed, scroll; }
}

/* услуги — строки без карточек */
.services { max-width: 1184px; margin: 0 auto; }
.services ul { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 24px; padding: 22px 0; border-top: 1px solid #cfdadd; }
.services li:last-child { border-bottom: 1px solid #cfdadd; }
.services b { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 1.15rem; }

/* как это работает */
.steps { background: var(--mist); }
.steps h2, .steps ol, .steps > .btn-main { max-width: 1184px; margin-left: auto; margin-right: auto; display: block; }
.steps > .btn-main { width: fit-content; margin-top: 36px; }
.steps ol { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 1.6rem; }
.steps li b { font-size: 1.15rem; }

/* контакты */
.contacts { background: var(--ink); color: #fff; padding: clamp(56px, 9vw, 112px) var(--pad); }
.contacts-in { max-width: 1184px; margin: 0 auto; }
.contacts h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 28px; }
.contacts dl { display: grid; grid-template-columns: 190px 1fr; gap: 14px 24px; margin: 0 0 32px; }
.contacts dt { opacity: .7; }
.contacts dd { margin: 0; font-size: 1.2rem; }
.contacts dd a { text-decoration: none; border-bottom: 1px solid var(--sun); }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.branch h3 { font-size: 1.25rem; margin: 0 0 18px; color: var(--sun); }
.branches.multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 56px; }
.branches.multi .branch { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.branches.multi dl { grid-template-columns: 140px 1fr; margin-bottom: 24px; }
.branches.multi dd { font-size: 1.05rem; }
.muted { opacity: .75; }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px var(--pad); font-size: .85rem; color: #55707a; border-top: 1px solid #dfe7e9; }
footer .credits { flex: 1 1 320px; }

/* ---------- страница входа (login.html) ---------- */
.langs { display: flex; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.langs a { text-decoration: none; opacity: .8; }
.langs a:hover, .langs a.on { opacity: 1; }
.langs a.on { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- адаптивность ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .top { justify-content: space-between; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }
  .steps ol { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 1fr; gap: 4px; }
  .contacts dl, .branches.multi dl { grid-template-columns: 1fr; gap: 2px; }
  .contacts dd { margin-bottom: 14px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tile.tall { grid-row: span 1; }
  .tile.wide { grid-column: span 1; }
  .band { min-height: 68vh; background: linear-gradient(180deg, rgba(8,24,30,.25), rgba(8,24,30,.8)), var(--img) center / cover no-repeat, #16323c; }
}

/* ===== самолётик-прогресс прокрутки ===== */
.flight { position: fixed; top: 0; left: 0; right: 0; height: 0; z-index: 40; pointer-events: none; }
.flight-line { position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--sun); }
.flight-plane { position: absolute; top: 0; left: 0; width: 22px; height: 22px; fill: var(--sun); transform: translate(-100%, -28%); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

/* ===== крупный выбор языка ===== */
.langbar { position: absolute; z-index: 4; top: 84px; left: var(--pad); right: var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-label { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-weight: 600; font-size: 1rem; }
.lb-label svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.chip {
  display: inline-block; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 1.02rem;
  color: #fff; text-decoration: none; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, color .2s, transform .2s;
}
.chip:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }
.chip.on { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.langbar.dark { position: static; color: var(--ink); margin-bottom: 20px; }
.langbar.dark .chip { color: var(--ink); background: #fff; border-color: #bccdd2; backdrop-filter: none; }
.langbar.dark .chip:hover { background: var(--mist); }
.langbar.dark .chip.on { background: var(--sun); border-color: var(--sun); }

/* ===== лента кодов аэропортов ===== */
.ticker { background: var(--sun); color: var(--ink); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker-track { display: inline-flex; gap: 0; width: max-content; }
.ticker span { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 1.15rem; letter-spacing: .25em; padding: 0 28px; position: relative; }
.ticker span::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; transform: rotate(45deg); background: var(--ink); }
@media all {
  .ticker-track { animation: ticker 36s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* ===== табло «Сейчас там» ===== */
.board-sec { background: #0b1b21; color: #fff; padding: clamp(56px, 9vw, 112px) var(--pad); }
.board-in { max-width: 1184px; margin: 0 auto; }
.board-in h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.board-sub { margin: 0 0 32px; opacity: .75; }
.board { display: flex; flex-direction: column; border-radius: 16px; background: #122630; padding: 8px clamp(12px, 3vw, 28px); }
.brow { display: grid; grid-template-columns: 150px 1fr 160px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #1f3a46; }
.brow:last-child { border-bottom: 0; }
.city { font-size: 1.15rem; font-weight: 500; }
.city small { display: block; font-size: .85rem; opacity: .65; font-weight: 400; }
.flaps { display: inline-flex; gap: 3px; }
.flap {
  display: inline-block; min-width: 1.25em; padding: .18em .12em; text-align: center; border-radius: 4px;
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 1.45rem; line-height: 1.1;
  background: linear-gradient(#1c3947 0 48%, #0b1b21 49% 52%, #1c3947 53% 100%);
}
.flaps.code .flap { color: var(--sun); }
.flaps.time .flap { color: #eaf6f8; }
.flaps.time .flap.colon { min-width: .6em; background: none; padding-left: 0; padding-right: 0; color: var(--sun); }
.flaps.time { justify-self: end; }

/* ===== автоперевод Google: прячем лишние панели ===== */
.goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-tooltip { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (max-width: 900px) {
  .langbar { top: 70px; }
  .chip { padding: 8px 15px; font-size: .95rem; }
  .brow { grid-template-columns: 112px 1fr 118px; gap: 10px; }
  .flap { font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .brow { grid-template-columns: 1fr auto; }
  .brow .code { grid-column: 1; grid-row: 1; }
  .brow .time { grid-column: 2; grid-row: 1; }
  .brow .city { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== режим «без анимации» ===== */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.calm .slide:first-child { opacity: 1 !important; }
html.calm .fun { display: none !important; }
