:root {
  --night: #061738;      /* небо над аэропортом, табло */
  --night-2: #0b2554;
  --blue: #0a4dd6;       /* MTL синий */
  --sky: #3fa9ff;        /* MTL голубой */
  --paper: #f3f6fb;
  --ink: #0d1b2e;
  --muted: #5b6b80;
  --line: #dde4ee;
  --flap: #ffcc4d;       /* цифры на табло */
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }

/* ---------- шапка и первый экран ---------- */
.hero { background: radial-gradient(1200px 600px at 85% -10%, #1c4fb8 0%, transparent 60%), var(--night); color: #fff; padding-bottom: 88px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
/* шапка прилипает при прокрутке */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 20; background: rgba(6, 23, 56, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
          transform: translateY(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar.on { transform: none; }
.topbar .nav { padding: 12px 0; }
.topbar .btn { padding: 10px 16px; font-size: 15px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 19px var(--display); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { color: var(--sky); font-weight: 500; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 48px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--sky); }
.lead { font-size: 20px; color: rgba(255,255,255,.8); max-width: 34em; margin: 22px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 14px; font: 600 17px var(--body); text-decoration: none; border: 0; cursor: pointer;
       transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.main:hover { box-shadow: 0 12px 30px -10px rgba(63,169,255,.7); }
.btn:active { transform: translateY(0); }
.btn.main { background: var(--sky); color: var(--night); }
.btn.main:hover { background: #6cbcff; }
.btn.ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn svg { width: 20px; height: 20px; }
.pay { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.6); }

/* посадочный талон */
.pass { background: #fff; color: var(--ink); border-radius: 22px; display: grid; grid-template-columns: 1fr 120px; transform: rotate(2.5deg);
        box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); position: relative;
        animation: passIn 1s .35s cubic-bezier(.2,.8,.2,1) both, passFloat 7s 1.4s ease-in-out infinite; }
@keyframes passIn { from { opacity: 0; transform: translate(60px, 30px) rotate(12deg); } to { opacity: 1; transform: rotate(2.5deg); } }
@keyframes passFloat { 0%, 100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
/* первый экран появляется по очереди */
.rise { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .38s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pass .stub-l { padding: 24px 22px 22px 26px; border-right: 2px dashed var(--line); }
.pass .stub-r { padding: 22px 16px; display: grid; place-items: center; text-align: center; }
.pass small { display: block; color: var(--muted); font-size: 12px; }
.pass .route { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 18px; font: 700 30px var(--display); }
.pass .route i { font-style: normal; color: var(--sky); font-size: 22px; }
.pass .row { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; }
.pass .row b { display: block; font-size: 17px; }
.pass .price { font: 700 26px var(--display); color: var(--blue); }
.qr { width: 84px; height: 84px; background:
  conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 14px 14px; border-radius: 6px; margin-bottom: 8px; opacity: .9; }

/* ---------- табло направлений ---------- */
.board-sec { background: var(--night); color: #fff; padding: 72px 0 80px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { margin: 8px 0 0; color: rgba(255,255,255,.65); }
.tabs { display: flex; gap: 6px; background: rgba(255,255,255,.07); padding: 5px; border-radius: 12px; position: relative; }
.tabs .pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; background: #fff; border-radius: 9px; transition: transform .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1); }
.tabs button { position: relative; z-index: 1; background: none; border: 0; color: rgba(255,255,255,.7); font: 600 15px var(--body); padding: 9px 14px; border-radius: 9px; cursor: pointer; transition: color .25s; }
.tabs button[aria-selected="true"] { color: var(--night); }
.board-tools { display: none; margin-bottom: 12px; }
.board-tools.on { display: block; }
.find { display: flex; align-items: center; gap: 10px; background: var(--night-2); border-radius: 14px; padding: 0 16px; }
.find input { flex: 1; background: none; border: 0; color: #fff; font: 16px var(--body); padding: 14px 0; outline: none; }
.find input::placeholder { color: rgba(255,255,255,.45); }
.find svg { color: rgba(255,255,255,.5); }
/* табло прокручивается внутри себя и не растягивает страницу */
.board-scroll { max-height: min(600px, 68vh); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
                scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; position: relative; }
.board-scroll::-webkit-scrollbar { width: 8px; }
.board-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 8px; }
.board { position: relative; }
.board::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none; border-radius: 0 0 18px 18px;
                background: linear-gradient(transparent, var(--night-2)); opacity: 0; transition: opacity .3s; }
.board.more::after { opacity: 1; }
.board .bh { position: sticky; top: 0; z-index: 2; background: var(--night-2); }
.board .letter { padding: 10px 22px 6px; color: var(--flap); font: 700 13px var(--display); background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06); }
.board a.br { animation: rowIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.board .pr { display: inline-block; transform-origin: 50% 50%; animation: flap .55s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 28ms + .12s); }
@keyframes flap { from { transform: perspective(300px) rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.board { border-radius: 18px; overflow: hidden; background: var(--night-2); }
.board a.br .go { transition: transform .2s; }
.board a.br:hover .go { transform: translateX(4px); }
.board .bh, .board a.br { display: grid; grid-template-columns: 54px 1fr 150px 130px 36px; align-items: center; gap: 14px; padding: 0 22px; }
.board .bh { height: 44px; color: rgba(255,255,255,.5); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.board a.br { min-height: 66px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.06); transition: background .15s; }
.board a.br:last-child { border-bottom: 0; }
.board a.br:hover { background: rgba(63,169,255,.1); }
.board .fl img { width: 34px; height: 24px; border-radius: 4px; object-fit: cover; display: block; }
.board .fl .em { font-size: 26px; line-height: 1; }
.board .nm { font-weight: 600; font-size: 18px; }
.board .nm small { display: block; font-weight: 400; color: rgba(255,255,255,.55); font-size: 14px; }
.board .pk { color: rgba(255,255,255,.7); font-size: 15px; }
.board .pr { font: 700 20px var(--display); color: var(--flap); font-variant-numeric: tabular-nums; text-align: right; }
.board .pr small { font: 500 12px var(--body); color: rgba(255,204,77,.7); margin-right: 4px; }
.board .go { color: var(--sky); font-size: 22px; text-align: right; }
.board .empty { padding: 28px 22px; color: rgba(255,255,255,.7); }
.board-note { margin-top: 16px; color: rgba(255,255,255,.55); font-size: 14px; }
.board-note a { color: var(--sky); }

/* ---------- как это работает ---------- */
.sec { padding: 84px 0; }
.sec h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 36px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { counter-increment: s; content: counter(s); font: 700 44px var(--display); color: var(--blue); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- честно о главном ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.facts dl { margin: 0; }
.facts div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--muted); }

/* ---------- телефон ---------- */
.check { background: #fff; border-radius: 24px; padding: 36px 40px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.check .code { font: 700 44px var(--display); color: var(--blue); background: var(--paper); border-radius: 18px; padding: 22px 26px; }
.check h3 { font-size: 22px; margin-bottom: 8px; }
.check p { margin: 0; color: var(--muted); }

/* ---------- вопросы ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 28px var(--body); color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 44em; }
.faq details[open] p { animation: faqIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--blue); }
/* блоки проявляются при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.seen { opacity: 1; transform: none; }
.steps li.reveal:nth-child(2) { transition-delay: .1s; } .steps li.reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- финал и подвал ---------- */
.final { background: var(--blue); color: #fff; border-radius: 28px; padding: 54px 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.final h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; max-width: 16em; }
.final .btn.main { background: #fff; color: var(--blue); }
footer { padding: 56px 0 48px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------- документы ---------- */
body.doc { background: #fff; }
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.prose .back { display: inline-block; margin-bottom: 24px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .pass { transform: rotate(2.5deg); } }
@media (max-width: 900px) {
  .board-scroll { max-height: 70vh; }
  .sec-head .tabs { width: 100%; }
  .tabs button { flex: 1; white-space: nowrap; padding: 10px 6px; font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .pass { max-width: 440px; transform: rotate(1.5deg); }
  .nav nav { display: none; }
  .steps, .facts { grid-template-columns: 1fr; gap: 28px; }
  .check { grid-template-columns: 1fr; padding: 28px; }
  .board .bh { display: none; }
  .board a.br { grid-template-columns: 40px 1fr auto 20px; padding: 12px 16px; gap: 12px; }
  .board .pk { display: none; }
  .final { padding: 36px 28px; }
}
