:root {
  --blue: #2b7de9;
  --blue-dark: #1a5fc2;
  --blue-light: #eaf3ff;
  --sky: #bfdcff;
  --text: #16253b;
  --muted: #5b6b82;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(43, 125, 233, .15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 32px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3eefc;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; color: var(--blue); letter-spacing: .5px; }
.logo--light { color: var(--white); }
.nav { display: flex; gap: 24px; }
.nav a { font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.burger span { display: block; height: 3px; background: var(--blue); margin: 6px 8px; border-radius: 2px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue) 0%, #5ea2f5 60%, var(--sky) 100%);
  color: var(--white);
  padding: 70px 0 110px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; }
.hero h1 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.15; margin-bottom: 18px; }
.hero__lead { font-size: 19px; opacity: .95; margin-bottom: 22px; max-width: 520px; }
.hero__points li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.hero__points li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.hero__plane svg { width: 100%; height: auto; display: block; }
.plane { animation: fly 6s ease-in-out infinite; transform-origin: center; }
@keyframes fly {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(10px, -14px) rotate(1deg); }
}

/* Search */
.search { margin-top: -70px; position: relative; z-index: 5; }
.search__card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px;
  background: var(--blue-light); color: var(--blue); font-weight: 600; font-size: 15px;
  transition: background .2s, color .2s;
}
.tab.is-active { background: var(--blue); color: var(--white); }
.form { display: grid; grid-template-columns: 1.4fr auto 1.4fr 1fr .7fr auto; gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field span { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field select {
  height: 48px; padding: 0 14px; border: 2px solid #dbe8fb; border-radius: 12px;
  font-size: 16px; font-family: inherit; color: var(--text); background: var(--white);
  transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field.has-error input { border-color: #e5484d; }
.swap {
  height: 48px; width: 44px; border: 2px solid #dbe8fb; background: var(--white);
  border-radius: 12px; font-size: 20px; color: var(--blue); cursor: pointer;
}
.swap:hover { background: var(--blue-light); }
.btn {
  height: 48px; padding: 0 28px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--blue); color: var(--white); font-size: 16px; font-weight: 700;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: scale(.98); }
.form__msg { margin-top: 12px; color: var(--blue-dark); font-weight: 500; min-height: 24px; }

/* Sections */
.section { padding: 80px 0; }
.section--blue { background: var(--blue-light); }
.section h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 12px; color: var(--text); }
.section__lead { color: var(--muted); margin-bottom: 32px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card {
  display: block; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, #f4f9ff, #dcecff);
  border: 1px solid #cfe2fb;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--blue-dark); margin-bottom: 6px; font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 16px rgba(43,125,233,.08); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--blue-light);
  display: grid; place-items: center; font-size: 24px; color: var(--blue); margin-bottom: 14px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.steps li {
  counter-increment: step; position: relative; padding: 56px 20px 22px;
  border: 1px solid #dbe8fb; border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; top: 16px; left: 20px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-weight: 700;
}
.steps strong { display: block; margin-bottom: 6px; font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

.seo-text h3 { margin: 22px 0 8px; color: var(--blue-dark); font-size: 20px; }
.seo-text p { color: var(--muted); max-width: 820px; }

.faq { border: 1px solid #dbe8fb; border-radius: 12px; margin-top: 12px; background: var(--white); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; font-size: 22px; color: var(--blue); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 20px 18px; color: var(--muted); }

/* Footer */
.footer { background: #0f3a78; color: #cfe0fa; padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a:hover { color: var(--white); }
.footer__copy { width: 100%; font-size: 14px; opacity: .7; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }

/* Responsive */
@media (max-width: 1000px) {
  .form { grid-template-columns: 1fr 1fr; }
  .swap { display: none; }
  .btn { grid-column: 1 / -1; }
  .cards, .features, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid #e3eefc;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid #f0f5fc; }
  .hero { padding: 40px 0 100px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__plane { order: -1; max-width: 320px; margin: 0 auto; }
  .form { grid-template-columns: 1fr; }
  .cards, .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .plane { animation: none; }
  html { scroll-behavior: auto; }
}
