:root {
  --navy-950: #0A1530;
  --navy-900: #0D1B3D;
  --navy-800: #10307A;
  --card-dark: #16295A;
  --line-dark: #2A3D6E;
  --outline: #3A4B78;
  --ink: #0D1B3D;
  --ink-strong: #0F172A;
  --body: #394157;
  --text: #5B6478;
  --muted: #8A93A8;
  --on-dark: #B8C3DD;
  --on-dark-muted: #7F8BAA;
  --line: #E3E8F2;
  --bg-light: #F5F7FB;
  --white: #FFFFFF;
  --blue: #4F8CFF;
  --blue-600: #2A5BD7;
  --blue-deep: #1E6BFF;
  --blue-soft: #EAF1FF;
  --cyan: #00C2FF;
  --cyan-ink: #0A8FD0;
  --green: #3DD68C;
  --coral: #FF8A65;

  --radius: 20px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: 24px;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 94px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
/* Открытое полноэкранное меню: страница не прокручивается, позиция сохраняется через top */
body.scroll-lock { position: fixed; left: 0; right: 0; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn--lg { height: 50px; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #3F7CF5; box-shadow: 0 10px 24px rgba(79, 140, 255, .35); }
.btn--outline { border: 1px solid var(--outline); color: var(--white); }
.btn--outline:hover { border-color: #5A6DA0; background: rgba(255, 255, 255, .04); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 21, 48, .2); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 61, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__inner { display: flex; align-items: center; height: 94px; }
.header__logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; flex: 1; margin-left: 40px; }
.nav > a {
  margin: 0 18px;
  font-size: 15px;
  font-weight: 500;
  color: #C9D3EA;
  transition: color .2s;
}
.nav > a:first-child { margin-left: auto; }
.nav > a:hover { color: var(--white); }
.nav__actions { display: flex; gap: 12px; margin-left: auto; }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 13px 11px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.burger span { display: block; height: 2px; background: var(--white); border-radius: 1px; transition: transform .25s, opacity .15s .1s; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(143deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  left: calc(50% - 940px); top: 268px;
  width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(30, 107, 255, .35), rgba(30, 107, 255, 0));
  filter: blur(40px);
}
.hero::after {
  left: calc(50% + 160px); top: -260px;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(0, 194, 255, .22), rgba(0, 194, 255, 0));
  filter: blur(40px);
}
.hero__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__route {
  position: absolute;
  top: 60px; left: 50%;
  width: 1296px; height: auto;
  transform: translateX(-50%);
  overflow: visible;
}
.hero__route path { stroke: rgba(127, 178, 255, .35); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }
.hero__route--narrow { display: none; }
.hero__mark {
  position: absolute;
  left: calc(50% + 300px); top: 268px;
  width: 520px; height: 520px;
  opacity: .07;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 475px;
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 96px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 140, 255, .14);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #A9C4FF;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 194, 255, .15); }
.hero__title {
  margin-top: 28px;
  font-size: clamp(40px, 3.4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__text {
  max-width: 600px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark);
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; font-size: 14px; color: var(--on-dark-muted); }
.hero__trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(61, 214, 140, .12);
  font-weight: 600;
  color: #9FEBC4;
}
.hero__trial i {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(61, 214, 140, .25);
  font-style: normal;
  font-size: 11px;
  color: var(--green);
}

/* Demo card */
.demo {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1A3570 0%, #132A5C 100%);
  border: 1px solid rgba(58, 91, 168, .6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.demo__bar { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: #FF6B6B; }
.dot--cyan { background: var(--cyan); }
.dot--green { background: var(--green); }
.demo__title { margin-left: 8px; font-size: 13px; font-weight: 500; color: #8C9AC0; }
.demo__code {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--navy-950);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 24px;
  color: #7FE0B0;
  overflow-x: auto;
}
.demo__step {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}
.demo__result {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink-strong);
}
.demo__name { font-size: 16px; font-weight: 700; }
.demo__flight { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--body); }
.demo__flight b { display: block; font-weight: 400; }
.demo__ready { margin-top: 10px; font-size: 13px; font-weight: 600; color: #1F9D63; }

.chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(5, 15, 51, .35);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
  white-space: nowrap;
  animation: chip-float 6s ease-in-out infinite;
}
.chip img { width: 28px; height: 28px; border-radius: 8px; }
.chip__check {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(31, 184, 107, .15);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #1FB86B;
}
.chip--decoded { top: -26px; left: -44px; }
.chip--voucher { right: -7px; bottom: -22px; animation-delay: -3s; }
@keyframes chip-float { 50% { transform: translateY(-6px); } }

/* Sections */
.section { position: relative; padding: 88px 0; }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--navy-900); color: var(--white); overflow: hidden; isolation: isolate; }
.section--dark::before,
.section--dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.section--dark::before {
  left: calc(50% - 870px); bottom: -250px;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(0, 194, 255, .18), rgba(0, 194, 255, 0));
}
.section--dark::after {
  left: calc(50% + 320px); top: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(30, 107, 255, .3), rgba(30, 107, 255, 0));
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.section__title {
  max-width: 820px;
  margin-top: 16px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section--dark .section__title { color: var(--white); }
.section__lead { max-width: 700px; margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--text); }
.section--dark .section__lead { color: var(--on-dark); }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.product {
  --accent: var(--blue);
  --accent-glow: rgba(30, 107, 255, .22);
  --accent-shadow: rgba(30, 107, 255, .12);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px var(--accent-shadow);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow .25s, transform .25s;
}
.product--docs { --accent-glow: rgba(0, 194, 255, .22); --accent-shadow: rgba(0, 194, 255, .12); }
.product::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -170px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(20px);
}
.product:hover { box-shadow: 0 28px 60px var(--accent-shadow); transform: translateY(-3px); }
.product__head { display: flex; align-items: center; gap: 14px; }
.product__icon { flex: none; width: 60px; height: 60px; border-radius: 14px; }
.product__name { font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.product__domain { margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--muted); }
.product__text { margin-top: 20px; font-size: 17px; line-height: 1.5; color: var(--body); }
.checklist { display: grid; gap: 12px; margin-top: 20px; }
.checklist li { position: relative; padding-left: 34px; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--ink-strong); }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.checklist--blue li::before { background: rgba(79, 140, 255, .18); color: var(--blue); }
.checklist--cyan li::before { background: rgba(0, 194, 255, .18); color: var(--cyan-ink); }
.product__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  transition: color .2s;
}
.product__link:hover { color: var(--blue-600); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white) 0%, #F2F7FF 100%);
}
.step__num {
  display: block;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step__title { margin-top: 14px; font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.step__text { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--text); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.benefit {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card-dark);
  border: 1px solid var(--line-dark);
  transition: border-color .25s, transform .25s;
}
.benefit:hover { border-color: #3A5BA8; transform: translateY(-2px); }
.benefit__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
}
.benefit__icon i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.benefit__icon--cyan { --c: var(--cyan); background: rgba(0, 194, 255, .18); }
.benefit__icon--green { --c: var(--green); background: rgba(61, 214, 140, .18); }
.benefit__icon--blue { --c: var(--blue); background: rgba(79, 140, 255, .18); }
.benefit__icon--coral { --c: var(--coral); background: rgba(255, 138, 101, .18); }
.benefit__title { margin-top: 12px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.benefit__text { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--on-dark); }

/* Pricing */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.btn--ghost { border: 1px solid #C9D3E6; background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }

.pricing-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; }
.pricing-controls[hidden] { display: none; }
.pricing-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.pricing-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.pricing-tab img { width: 32px; height: 32px; border-radius: 9px; }
.pricing-tab:hover { color: var(--ink); }
.pricing-tab[aria-selected="true"] { background: var(--navy-900); color: var(--white); }

.period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 0; border: 0; }
.period__switch { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.period__option { position: relative; cursor: pointer; }
.period__option input { position: absolute; opacity: 0; }
.period__option span {
  display: block;
  min-width: 84px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  transition: background-color .2s, color .2s;
}
.period__option:hover span { color: var(--ink); }
.period__option input:checked + span { background: var(--blue-soft); color: var(--blue-600); }
.period__option input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.period__note { padding: 6px 12px; border-radius: 999px; background: #E3F6EA; font-size: 14px; font-weight: 600; color: #10633B; }

#pricing:not([data-period="year"]) [data-period-only="year"],
#pricing[data-period="year"] [data-period-only="month"] { display: none; }

.pricing-panel { margin-top: 56px; }
.pricing-panel[hidden] { display: none; }
.pricing-panel__title { font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.has-tabs .pricing-panel { margin-top: 40px; }
.has-tabs .pricing-panel__title {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.plans { display: grid; grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.plans--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.has-tabs .plans { margin-top: 0; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.plan--featured {
  padding: 31px 27px 27px;
  border: 2px solid var(--blue-600);
  box-shadow: 0 20px 44px rgba(30, 107, 255, .14);
}
.plan__badge {
  position: absolute;
  top: -14px; left: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-600);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--white);
}
.plan__name { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.plan__seats { margin-top: 4px; font-size: 15px; color: var(--text); }
.plan__cost { margin-top: 24px; }
.plan__price { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.plan__price span { margin-left: 2px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--text); }
.plan__period { min-height: 2.8em; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--text); }
/* четыре карточки в ряд: уже поля, чтобы кнопка помещалась в одну строку */
.plans--4 .plan { padding-left: 22px; padding-right: 22px; }
.plans--4 .plan--featured { padding-left: 21px; padding-right: 21px; }
.plan__features { margin-top: 24px; margin-bottom: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan__features li { font-size: 15px; font-weight: 500; }
.plan__button { width: 100%; height: auto; min-height: 48px; margin-top: auto; padding: 12px 10px; font-size: 15px; line-height: 1.25; white-space: normal; text-align: center; }
.plan--featured .btn--primary { background: var(--blue-600); }
.plan--featured .btn--primary:hover { background: #2350C4; box-shadow: 0 10px 24px rgba(42, 91, 215, .3); }

.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 24px; }
.addon {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.addon__body { flex: 1; min-width: 0; }
.addon__name { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--text); }
.addon__price { margin-top: 4px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.addon__price span { font-size: 15px; font-weight: 500; color: var(--text); }
.addon__text { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--body); }
.addon__button { flex: none; }

.terms {
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.terms__title { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.terms__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 32px; margin-top: 14px; }
.terms__list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: var(--body); }
.terms__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}

/* CTA */
.section--cta { padding: 80px 0; }
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 64px;
  border-radius: 28px;
  background: linear-gradient(100deg, var(--blue) 0%, var(--blue-600) 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -120px; top: -200px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 224, 255, .35), rgba(60, 224, 255, 0));
  filter: blur(30px);
}
.cta__mark {
  position: absolute;
  z-index: -1;
  left: 780px; top: -60px;
  width: 340px; height: 340px;
  opacity: .28;
  pointer-events: none;
}
.cta__content { max-width: 640px; }
.cta__title { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.cta__text { margin-top: 12px; font-size: 18px; line-height: 1.5; color: #E3ECFF; }
.cta .btn { flex: none; }

/* Footer */
.footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 98px; }
.footer__nav { display: flex; gap: 28px; font-weight: 500; }
.footer__nav a { color: var(--on-dark); transition: color .2s; }
.footer__nav a:hover { color: var(--white); }

/* Login menu */
.login { position: relative; }
.login__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(3, 10, 30, .25);
}
.login__menu[hidden] { display: none; }
.login__menu a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.login__menu a span { font-size: 13px; font-weight: 400; color: var(--text); }
.login__menu a:hover { background: var(--bg-light); }

/* Request modal */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(3, 10, 30, .4);
}
.modal::backdrop { background: rgba(8, 16, 38, .6); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__body { position: relative; padding: 40px; }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.modal__close span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-light); font-size: 22px; line-height: 1; }
.modal__close:hover span { color: var(--ink); }
.modal__title { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.modal__text { margin-top: 10px; font-size: 16px; color: var(--text); }
.modal__done { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 16px 0 8px; text-align: center; }
.modal__done[hidden], .form[hidden] { display: none; }
.modal__done .btn { margin-top: 28px; min-width: 160px; }
.modal__done-icon {
  width: 64px; height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #E7F8EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17l9-10' fill='none' stroke='%2316A34A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat;
}

.form { display: grid; gap: 18px; }
.form .modal__text { margin-top: -8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__alert { padding: 12px 14px; border-radius: 12px; background: #FEECEC; color: #B42318; font-size: 14px; }
.form__alert[hidden] { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; margin-top: 4px; }
.form__submit:disabled { opacity: .7; cursor: progress; }
.form__note { margin-top: -6px; font-size: 12px; color: var(--muted); text-align: center; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font-size: 14px; font-weight: 500; }
.field__label i { font-style: normal; font-weight: 400; color: var(--muted); }
.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea.field__input { resize: vertical; min-height: 84px; }
.field__input::placeholder { color: #A8B1C7; }
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 140, 255, .2); }
.field__input[aria-invalid="true"] { border-color: #E5484D; }
.field__error { font-size: 13px; color: #D92D20; }
.field__error:empty { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice span::before {
  content: "";
  width: 16px; height: 16px;
  border: 1.5px solid #C3CAD9;
  border-radius: 5px;
  transition: inherit;
}
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-600); }
.choice input:checked + span::before {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1240px) {
  .plans--4, .plans--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; padding-bottom: 88px; }
  .hero__title { max-width: 640px; }
  .demo { max-width: 520px; margin-left: 44px; }
  .hero__mark { left: auto; right: -120px; top: auto; bottom: -120px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .cta__mark { left: auto; right: -80px; }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  /* backdrop-filter makes the header a containing block for the fixed menu */
  .header { background: var(--navy-900); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed;
    inset: 94px 0 0 0;
    height: calc(100vh - 94px);
    height: calc(100dvh - 94px);
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 16px max(var(--gutter), env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    background: var(--navy-900);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav > a,
  .nav > a:first-child { margin: 0; padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__actions { flex-direction: column; margin: 24px 0 0; }
  .nav__actions .btn { width: 100%; height: 50px; }
  .login__menu { position: static; margin-top: 8px; box-shadow: none; }
  /* body зафиксирован на месте прокрутки — шапку держим на экране отдельно */
  .menu-open .header { position: fixed; top: 0; left: 0; right: 0; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  /* средняя полоска гаснет мгновенно: во время поворота крестик не выглядит трёхполосным */
  .menu-open .burger span:nth-child(2) { opacity: 0; transition-delay: 0s; transition-duration: .25s, 0s; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .products, .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 74px; }
  .header__inner { height: 74px; }
  .header__logo img { height: 34px; }
  .nav { inset: 74px 0 0 0; height: calc(100vh - 74px); height: calc(100dvh - 74px); }

  .hero__route--wide { display: none; }
  .hero__route--narrow { display: block; top: 40px; width: calc(100% - 39px); }
  .hero__mark { width: 260px; height: 260px; right: -80px; bottom: 16px; }
  .hero::before { left: -121px; top: auto; bottom: 0; width: 341px; height: 341px; }
  .hero::after { left: 82px; top: -143px; width: 385px; height: 385px; }
  .hero__inner { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .badge { padding: 7px 12px; font-size: 12px; line-height: 15px; }
  .badge i { width: 7px; height: 7px; }
  .hero__title { max-width: none; margin-top: 24px; font-size: 36px; line-height: 1.1; letter-spacing: -0.015em; }
  .hero__text { font-size: 16px; line-height: 1.5; margin-top: 24px; }
  .hero__buttons { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hero__buttons .btn { width: 100%; }
  .hero__note { margin-top: 16px; font-size: 13px; }
  .demo { margin: 0; padding: 18px 16px; border-radius: 20px; }
  .demo__code { margin-top: 14px; padding: 12px; border-radius: 10px; font-size: 10px; line-height: 18px; }
  .demo__step { margin-top: 14px; padding: 7px 12px; font-size: 12px; line-height: 15px; }
  .demo__result { margin-top: 14px; padding: 14px; border-radius: 12px; }
  .demo__name { font-size: 15px; }
  .demo__flight { margin-top: 8px; font-size: 13px; }
  .demo__ready { margin-top: 8px; font-size: 12px; }
  .chip--decoded { top: -22px; left: -6px; }
  .chip--voucher { right: 0; bottom: -28px; }

  .section { padding: 56px 0; }
  .eyebrow { font-size: 12px; }
  .section__title { margin-top: 12px; font-size: 30px; letter-spacing: -0.01em; }
  .section__lead { margin-top: 12px; font-size: 16px; }
  .products { margin-top: 28px; gap: 28px; }
  .steps, .benefits { margin-top: 24px; gap: 24px; }
  .product { padding: 24px; border-radius: 20px; box-shadow: none; }
  .product__head { gap: 12px; }
  .product__icon { width: 44px; height: 44px; border-radius: 12px; }
  .product__name { font-size: 22px; }
  .product__domain { font-size: 13px; }
  .product__text { margin-top: 16px; font-size: 15px; }
  .checklist { gap: 10px; margin-top: 16px; }
  .checklist li { padding-left: 30px; font-size: 15px; line-height: 20px; }
  .checklist li::before { width: 20px; height: 20px; font-size: 12px; }
  .product__link { padding-top: 16px; font-size: 15px; }

  .step { display: flex; gap: 16px; padding: 20px; border-radius: 16px; }
  .step__num { flex: none; font-size: 28px; }
  .step__title { margin-top: 0; font-size: 18px; }
  .step__text { margin-top: 6px; font-size: 15px; }
  .step > div { min-width: 0; }

  .pricing-controls { margin-top: 24px; flex-direction: column; align-items: stretch; }
  .pricing-tabs { display: flex; }
  .pricing-tab { flex: 1; justify-content: center; padding: 0 12px 0 6px; font-size: 15px; }
  .pricing-tab img { width: 28px; height: 28px; border-radius: 8px; }
  .period__option span { min-width: 72px; }
  .pricing-panel, .has-tabs .pricing-panel { margin-top: 28px; }
  .pricing-panel__title { font-size: 22px; }
  .plans { grid-template-columns: 1fr; row-gap: 28px; }
  .plan { padding: 26px 22px 22px; border-radius: 20px; }
  .plan--featured { padding: 25px 21px 21px; }
  .plan__badge { left: 20px; }
  .plan__cost { margin-top: 18px; }
  .plan__price { font-size: 30px; }
  .plan__features { margin-top: 18px; margin-bottom: 22px; padding-top: 18px; }
  .addons { grid-template-columns: 1fr; }
  .addon { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
  .terms { margin-top: 28px; padding: 22px 20px; }
  .terms__list { grid-template-columns: 1fr; }

  .benefits { grid-template-columns: 1fr; }
  .benefit { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; border-radius: 16px; }
  .benefit__icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; }
  .benefit__icon i { width: 12px; height: 12px; }
  .benefit__title { margin-top: 0; font-size: 17px; }
  .benefit__text { margin-top: 4px; font-size: 14px; }

  .section--cta { padding: 40px 0; }
  .cta { gap: 14px; padding: 32px 24px; border-radius: 24px; }
  .cta__mark { width: 220px; height: 220px; left: auto; right: -70px; top: auto; bottom: -24px; }
  .cta__title { font-size: 26px; }
  .cta__text { margin-top: 12px; font-size: 15px; }
  .cta .btn { width: 100%; margin-top: 6px; }

  .modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .modal__body { padding: 32px 20px calc(24px + env(safe-area-inset-bottom)); }
  .modal__title { font-size: 24px; padding-right: 32px; }
  .form__row { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column-reverse; align-items: flex-start; justify-content: center; gap: 16px; padding: 32px var(--gutter); }
  .footer__nav { flex-wrap: wrap; gap: 12px 20px; font-size: 13px; }
  .footer p { font-size: 13px; }
}

@media (max-height: 500px) {
  .modal__body { padding-top: 24px; padding-bottom: 20px; }
  .modal__title { font-size: 22px; }
  .form { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Public product overviews */
.product__link--secondary { margin-top: 12px; padding-top: 0; font-size: 14px; }
.product-nav { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-left: auto; color: #C9D3EA; font-weight: 500; }
.product-nav [aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.product-hero { padding: 36px 0 72px; }
.product-hero .hero__title { max-width: 950px; margin-top: 24px; }
.product-hero .hero__text { max-width: 800px; }
.product-hero .hero__buttons { flex-wrap: wrap; }
.breadcrumbs { margin-bottom: 32px; color: #C9D3EA; font-size: 14px; }
.breadcrumbs a:hover { text-decoration: underline; }
.product-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.product-feature { padding: 28px; }
.product-feature .product__name { font-size: 23px; }
.product-feature .product__text { margin: 16px 0 0; }
.product-faq { margin: 32px 0 0; max-width: 900px; }
.product-faq > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.product-faq dt { font-size: 21px; font-weight: 600; }
.product-faq dd { margin: 12px 0 0; color: var(--body); line-height: 1.7; }
.product-crosslink { margin-top: 32px; color: var(--body); }
.product-crosslink a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .product-header { height: auto; min-height: 94px; gap: 20px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
  .product-nav { gap: 14px 20px; font-size: 14px; }
  .product-hero { padding-bottom: 48px; }
  .product-features { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .product-nav { margin-left: 0; width: 100%; }
}
