/* Лендинг aviamax. Цвета, шрифт и радиусы — из дизайн-системы приложения (apps/mobile/src/palette.ts, tokens.ts). */

@font-face {
  font-family: Manrope;
  src: url('fonts/Manrope_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('fonts/Manrope_700Bold.ttf') format('truetype');
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('fonts/Manrope_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f4f6fa;
  --card: #ffffff;
  --card-inset: #eef2f8;
  --border: rgba(11, 18, 32, 0.07);
  --line-strong: #808999;
  --text: #0b1220;
  --text-secondary: #3b4456;
  --muted: #5e6778;
  --primary: #1f6fd6;
  --button: #1f6fd6;
  --on-button: #ffffff;
  --ok: #0a7550;
  --ok-bg: rgba(10, 117, 80, 0.1);
  --warning-bg: #fbefd9;
  --on-warning-bg: #6b3f00;
  --accent-bg: rgba(31, 111, 214, 0.08);
  --on-accent-bg: #123a73;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 12px 32px rgba(11, 18, 32, 0.08);
  --shadow-small: 0 8px 24px rgba(11, 18, 32, 0.1);
  /* Блок «Как начать»: заливка акцентом, текст на ней. */
  --cta-bg: #1f6fd6;
  --on-cta: #ffffff;
  --cta-tile: rgba(255, 255, 255, 0.12);
  --cta-button: #ffffff;
  --on-cta-button: #123a73;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #0a0d14;
    --card: #121722;
    --card-inset: #182030;
    --border: rgba(255, 255, 255, 0.06);
    --line-strong: #677083;
    --text: #f2f4f8;
    --text-secondary: #c9d0dc;
    --muted: #8a93a6;
    --primary: #7cc4ff;
    --button: #7cc4ff;
    --on-button: #071019;
    --ok: #4ade9b;
    --ok-bg: rgba(74, 222, 155, 0.12);
    --warning-bg: rgba(245, 181, 74, 0.12);
    --on-warning-bg: #f7d9a6;
    --accent-bg: rgba(124, 196, 255, 0.1);
    --on-accent-bg: #cfe6ff;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-small: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --cta-bg: #121722;
    --on-cta: #f2f4f8;
    --cta-tile: #182030;
    --cta-button: #7cc4ff;
    --on-cta-button: #071019;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  list-style: none;
  padding: 0;
}

a {
  color: var(--primary);
}
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* Шапка: плавающая, раздел по ссылке меню не уходит под неё. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
main [id] {
  scroll-margin-top: 88px;
}
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo img {
  width: 40px;
  height: 40px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 15px;
  font-weight: 700;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--text);
}
.nav a[aria-current] {
  border-bottom-color: var(--primary);
}
/* На телефоне меню — второй строкой шапки, листается вбок. */
@media (max-width: 900px) {
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 20px;
    font-size: 14px;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    padding: 4px 0 6px;
  }
  main [id] {
    scroll-margin-top: 112px;
  }
}

/* Кнопки */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 16px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: filter 0.15s;
}
.button:hover {
  filter: brightness(1.08);
}
.button--small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}
.button--secondary {
  background: var(--card-inset);
  color: var(--text);
}
.button svg {
  flex: none;
}

/* Первый экран */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 88px;
}
.hero__text {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pill {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--on-accent-bg);
  font-size: 14px;
  font-weight: 700;
}
h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 560px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}
.note {
  font-size: 14px;
  color: var(--muted);
}
.hero__visual {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.stack {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Карточка рейса в первом экране — как FlightSummary в приложении. */
.flight {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.flight__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--on-warning-bg);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.route {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.route__point {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--text-secondary);
}
.route__point:last-child {
  align-items: flex-end;
}
.route__code {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.route__line {
  flex: 1;
  min-width: 40px;
  max-width: 120px;
  margin-bottom: 26px;
  color: var(--line-strong);
}
.cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cell {
  background: var(--card-inset);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}
.cell__label {
  font-weight: 700;
}
.cell__value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.cell s {
  color: var(--muted);
}

.toast {
  width: 86%;
  background: var(--card);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow-small);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.toast:nth-child(even) {
  align-self: flex-end;
}
.toast strong {
  display: block;
  color: var(--text);
}
.toast__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--primary);
}
.toast__icon--ok {
  background: var(--ok-bg);
  color: var(--ok);
}
@media (max-width: 480px) {
  .toast {
    width: 100%;
  }
  .route__code {
    font-size: 30px;
  }
}

/* Секции */

.section {
  padding: 88px 0;
}
.section--card {
  background: var(--card);
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 48px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section__head p {
  font-size: 18px;
  color: var(--text-secondary);
}
@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }
  .hero {
    padding-bottom: 64px;
  }
}

/* Уведомления по этапам */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.step {
  background: var(--background);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step__when {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.step h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
}
.step p {
  font-size: 15px;
  color: var(--text-secondary);
}
.section--card .step,
.section--card .feature {
  background: var(--background);
}
.section:not(.section--card) .step {
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
}
.section .step--highlight {
  background: var(--warning-bg);
  box-shadow: none;
}
.step--highlight,
.step--highlight .step__when,
.step--highlight p {
  color: var(--on-warning-bg);
}

/* Карточка рейса: возможности */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 0 1px var(--border);
}
.feature svg {
  color: var(--primary);
}
.feature h3 {
  font-size: 20px;
  font-weight: 800;
}
.feature p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Встречающим */

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.split > * {
  flex: 1 1 400px;
  min-width: 0;
}
.split .section__head {
  margin-bottom: 0;
}
/* Страница встречающего — как экран s/[token] в приложении, в рамке телефона. */
.greeter {
  max-width: 380px;
  margin: 0 auto;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.greeter__brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.greeter__brand span:first-child {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.greeter__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--muted);
}
.greeter__head strong {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.status {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--on-accent-bg);
  font-size: 14px;
  font-weight: 700;
}
.greeter__arrival {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px;
}
.greeter__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.greeter__time {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.greeter__time s {
  font-size: 22px;
  letter-spacing: 0;
  color: var(--muted);
}
.cells--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cell__hint {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
}
.greeter .cell {
  background: var(--card-inset);
}
.greeter__telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 16px;
  font-weight: 700;
}
.greeter__tg {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2aabee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.greeter__note {
  padding: 0 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Факты: источники, покрытие, где открыть */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.facts h2 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.facts p {
  color: var(--text-secondary);
}

/* Как начать */

.cta {
  background: var(--cta-bg);
  color: var(--on-cta);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-shadow: 0 0 0 1px var(--border);
}
.cta h2 {
  max-width: 640px;
}
.cta__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.cta__steps li {
  background: var(--cta-tile);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}
.cta__steps li::before {
  counter-increment: step;
  content: counter(step);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
}
.cta__steps h3 {
  font-size: 18px;
  font-weight: 700;
}
.cta .button {
  align-self: flex-start;
  background: var(--cta-button);
  color: var(--on-cta-button);
  font-weight: 800;
}

/* Подвал */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 88px;
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer a {
  color: var(--muted);
}
