/* ==========================================================================
   P1 · Central Asia Airways · деловой, сдержанный, крупные фото
   Перекраска под брендбук: менять только переменные в :root
   ========================================================================== */

@font-face {
  font-family: "Forum";
  src: url("../shared/fonts/forum.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../shared/fonts/golos-text.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  /* Цвета: синий от логотипа #193769, нейтральные тонированы в синий */
  --navy-950: #0c1a33;
  --navy-900: #10234a;
  --navy-850: #14294f;   /* основной тёмный фон */
  --navy-800: #193769;   /* бренд, вторичный тёмный фон */
  --navy-700: #24467f;
  --mist-50:  #f1f4f9;   /* светлый фон */
  --mist-100: #e3e9f2;
  --mist-200: #cdd6e4;
  --slate-500: #5a6a85;
  --ink:      #0f1f3b;   /* текст на светлом */
  --ink-soft: #3d4e6b;
  --paper:    #eef2f8;   /* текст на тёмном */
  --paper-soft: #b4c1d6;
  --paper-mute: #8597b4;
  --yellow:   #f9c525;   /* только основная CTA, фокус, мелкие метки */
  --yellow-hi:#ffd54d;
  --err-dark: #f08a86;   /* ошибка на тёмном */
  --err-light:#a83a3f;   /* ошибка на светлом */

  --line-dark:  rgba(238, 242, 248, 0.16);
  --line-dark-strong: rgba(238, 242, 248, 0.32);
  --line-light: rgba(15, 31, 59, 0.14);
  --line-light-strong: rgba(15, 31, 59, 0.3);

  /* Шрифты */
  --font-display: "Forum", "Times New Roman", serif;
  --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Шкала (шаг около 1.25–1.33) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 3.6vw, 5rem);
  --fs-h1: clamp(2.875rem, 1.2rem + 5.6vw, 6.75rem);
  --lh-tight: 0.94;
  --lh-head: 1.02;
  --lh-text: 1.6;

  /* Отступы */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-section: clamp(5rem, 3rem + 7vw, 10rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --wrap: 82.5rem;
  --header-h: 5rem;

  /* Радиусы по иерархии */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-pill: 999px;

  /* Тени, тонированные в синий */
  --shadow-sheet: 0 1px 2px rgba(12, 26, 51, 0.25), 0 24px 60px -20px rgba(4, 12, 30, 0.6);

  /* Движение */
  --dur-fast: 150ms;
  --dur-press: 90ms;
  --dur-mid: 320ms;
  --dur-enter: 1000ms;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-ui: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--navy-850);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: var(--r-xs); }

.skip {
  position: fixed; left: var(--gutter); top: var(--sp-3); z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--yellow); color: var(--navy-900);
  font-weight: 600; text-decoration: none; border-radius: var(--r-sm);
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; outline-color: var(--paper); }

/* Нет данных: видно, но аккуратно */
.need {
  background: rgba(249, 197, 37, 0.14);
  border-bottom: 1px dashed rgba(249, 197, 37, 0.8);
  padding: 0 0.2em;
  border-radius: var(--r-xs);
}
.fleet .need, .quote .need, .privacy .need, .sheet .need {
  background: rgba(196, 146, 0, 0.12);
  border-bottom-color: #9a7200;
}

/* ---------- Типографика ---------- */
.h2, .hero__title, .row__title, .adv__lead-title, .adv__item-title, .step__title, .success__title, .h3, .fleet__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 { font-size: var(--fs-h2); line-height: var(--lh-head); max-width: 18ch; }
.h3 { font-size: var(--fs-xl); line-height: 1.1; }

.link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur-mid) var(--ease-out), color var(--dur-fast) var(--ease-ui);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-ui), color var(--dur-fast) var(--ease-ui),
              border-color var(--dur-fast) var(--ease-ui), transform var(--dur-fast) var(--ease-ui);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: var(--dur-press); }
.btn--primary { background: var(--yellow); color: var(--navy-900); }
.btn--primary:hover { background: var(--yellow-hi); }
.btn--primary:focus-visible { outline-color: var(--paper); }
.btn--ghost { border-color: var(--line-dark-strong); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(238, 242, 248, 0.06); }
.btn--line { border-color: var(--line-light-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color var(--dur-mid) var(--ease-ui), border-color var(--dur-mid) var(--ease-ui);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: var(--navy-900); border-bottom-color: var(--line-dark); }
.header-row { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: inline-flex; flex: none; padding: var(--sp-2) 0; }
.brand img { width: clamp(124px, 9vw + 70px, 184px); height: auto; }

.menu { display: flex; align-items: center; gap: var(--sp-5); margin-left: auto; }
.nav ul { display: flex; gap: clamp(0.9rem, 1.4vw, 1.6rem); }
.nav a { white-space: nowrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-sm); text-decoration: none; color: var(--paper-soft);
  position: relative;
  transition: color var(--dur-fast) var(--ease-ui);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }

.lang { display: flex; border: 1px solid var(--line-dark-strong); border-radius: var(--r-pill); padding: 2px; }
.lang button {
  min-width: 44px; min-height: 40px; padding: 0 0.6rem;
  border: 0; background: transparent; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--paper-soft);
  cursor: pointer; transition: background-color var(--dur-fast) var(--ease-ui), color var(--dur-fast) var(--ease-ui);
}
.lang button:hover { color: var(--paper); }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--navy-900); }
.header-cta { min-height: 2.75rem; padding: 0.6rem 1.25rem; white-space: nowrap; flex: none; }
.menu__cta { display: none; }
.menu__phone { display: none; }

.menu-btn {
  display: none; margin-left: auto;
  align-items: center; gap: var(--sp-3);
  min-height: 44px; padding: 0 var(--sp-2) 0 var(--sp-4);
  border: 1px solid var(--line-dark-strong); border-radius: var(--r-pill);
  background: transparent; cursor: pointer; position: relative; z-index: 2;
  font-size: var(--fs-sm); font-weight: 500;
}
.menu-btn__icon { width: 28px; height: 28px; display: grid; place-content: center; gap: 6px; }
.menu-btn__icon i {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  transition: transform var(--dur-mid) var(--ease-out);
}
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1359.98px) {
  .menu-btn { display: inline-flex; margin-left: 0; order: 3; }
  .header-cta { margin-left: auto; order: 2; position: relative; z-index: 2; }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--sp-6);
    margin: 0;
    padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-7);
    background: var(--navy-900);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), visibility 0s linear var(--dur-mid);
  }
  .menu[data-open] {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), visibility 0s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line-dark); }
  .nav a {
    width: 100%; min-height: 3.5rem;
    font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
    color: var(--paper);
  }
  .nav a::after { display: none; }
  .lang { align-self: flex-start; }
  .lang button { min-width: 56px; min-height: 44px; }
  .menu__cta { display: none; }
  .menu__phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper-soft); text-decoration: none; }
  .brand { position: relative; z-index: 2; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--navy-950); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* Тонировка: тёплое фото уводится в синий, сверху темнее, чтобы читался текст */
.hero__media::before,
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero__media::before { background: var(--navy-800); mix-blend-mode: color; opacity: 0.55; }
.hero__media::after {
  background:
    linear-gradient(180deg, rgba(12, 26, 51, 0.78) 0%, rgba(12, 26, 51, 0.42) 34%, rgba(12, 26, 51, 0.06) 58%, rgba(12, 26, 51, 0.5) 100%),
    linear-gradient(90deg, rgba(12, 26, 51, 0.45) 0%, rgba(12, 26, 51, 0) 60%);
}
.hero__body {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-7);
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vh, 3rem));
  padding-bottom: clamp(2rem, 6vh, 4rem);
}
.hero__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); }
.hero__lead {
  max-width: 34rem;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--paper);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Вход первого экрана: один раз, около 1 с, только transform и opacity */
@media (prefers-reduced-motion: no-preference) {
  .js .hero[data-enter] .hero__img { transform: scale(1.06); }
  .js .hero[data-enter] .hero__title,
  .js .hero[data-enter] .hero__lead,
  .js .hero[data-enter] .hero__actions { opacity: 0; transform: translateY(18px); }
  .js .hero.is-in .hero__img { transform: none; transition: transform 1600ms var(--ease-out); }
  .js .hero.is-in .hero__title,
  .js .hero.is-in .hero__lead,
  .js .hero.is-in .hero__actions {
    opacity: 1; transform: none;
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  }
  .js .hero.is-in .hero__lead { transition-delay: 140ms; }
  .js .hero.is-in .hero__actions { transition-delay: 260ms; }
}

/* ---------- О компании ---------- */
.about { padding-block: var(--sp-section); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}
.about__big {
  margin-top: var(--sp-7);
  font-size: var(--fs-lg);
  line-height: 1.45;
  max-width: 34ch;
  color: var(--paper);
}
.about__small { margin-top: var(--sp-5); max-width: 46ch; color: var(--paper-soft); }

.frame { overflow: hidden; border-radius: var(--r-sm); background: var(--navy-900); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.about__photo { aspect-ratio: 4 / 5; }
.about__photo img { object-position: 30% 50%; }

/* ---------- Услуги ---------- */
.services { padding-block: var(--sp-section); background: var(--navy-800); }
.rows { margin-top: var(--sp-8); border-top: 1px solid var(--line-dark-strong); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--sp-5) clamp(2rem, 6vw, 7rem);
  padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  border-bottom: 1px solid var(--line-dark);
  align-items: baseline;
}
.row__title { font-size: var(--fs-xl); line-height: 1.08; max-width: 16ch; }
.row__text { color: var(--paper-soft); max-width: 52ch; font-size: var(--fs-base); }

/* ---------- Флот (светлая секция) ---------- */
.fleet { padding-block: var(--sp-section); background: var(--mist-50); color: var(--ink); }
.fleet__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-5) clamp(2rem, 6vw, 7rem); align-items: end;
}
.fleet__title { font-size: clamp(3rem, 1.6rem + 6vw, 8rem); line-height: 0.92; max-width: none; color: var(--navy-800); }
.fleet__lead { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-soft); max-width: 36ch; }
.fleet__photo { margin-top: var(--sp-7); }
.fleet__photo .frame { aspect-ratio: 2400 / 1100; background: var(--mist-100); }
.fleet__photo img { object-position: 50% 58%; }
.fleet__note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--slate-500); max-width: 70ch; }

.specs { width: 100%; margin-top: var(--sp-8); border-top: 1px solid var(--line-light-strong); }
.specs tr { border-bottom: 1px solid var(--line-light); }
.specs th, .specs td { padding: var(--sp-5) 0; vertical-align: baseline; text-align: left; }
.specs th { width: 38%; font-weight: 400; font-size: var(--fs-sm); color: var(--ink-soft); padding-right: var(--sp-5); }
.specs__val { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.1; color: var(--ink); display: block; }
.specs__val .need { font-family: var(--font-text); font-size: var(--fs-base); }
.specs__note { display: block; margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--slate-500); max-width: 54ch; }

/* ---------- Преимущества ---------- */
.adv { position: relative; isolation: isolate; min-height: 100dvh; display: flex; overflow: hidden; }
.adv__media { position: absolute; inset: 0; z-index: -1; background: var(--navy-950); }
.adv__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.adv__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 26, 51, 0.72) 0%, rgba(12, 26, 51, 0.25) 38%, rgba(12, 26, 51, 0.55) 62%, rgba(12, 26, 51, 0.92) 100%);
}
.adv__body {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-8);
  padding-block: var(--sp-section) clamp(3rem, 2rem + 4vw, 6rem);
}
.adv__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-7) clamp(2rem, 6vw, 7rem); align-items: end;
}
.adv__lead-title { font-size: var(--fs-xl); line-height: 1.08; }
.adv__lead p { margin-top: var(--sp-4); max-width: 40ch; color: var(--paper); opacity: 0.9; }
.adv__list { display: grid; gap: 0; }
.adv__list li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--sp-2) var(--sp-6);
  padding-block: var(--sp-5); border-top: 1px solid var(--line-dark-strong);
}
.adv__item-title { font-size: var(--fs-md); line-height: 1.2; }
.adv__list p { font-size: var(--fs-sm); color: var(--paper-soft); }

/* ---------- Как это работает ---------- */
.process { padding-block: var(--sp-section); background: var(--navy-850); }
.steps {
  margin-top: var(--sp-8);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-6);
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1.5rem; height: 1px;
  background: var(--line-dark-strong);
}
.step { position: relative; }
.step__num {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--navy-850); border: 1px solid var(--line-dark-strong);
  font-family: var(--font-display); font-size: var(--fs-md); color: var(--paper);
  position: relative;
}
.step:first-child .step__num { border-color: var(--yellow); color: var(--yellow); }
.step__title { margin-top: var(--sp-5); font-size: var(--fs-lg); line-height: 1.1; }
.step p { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--paper-soft); max-width: 30ch; }

/* ---------- Документы ---------- */
.docs { padding-block: var(--sp-section); background: var(--navy-800); }
.docs__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem); align-items: center;
}
.docs__status {
  margin-top: var(--sp-7);
  display: flex; gap: var(--sp-3); align-items: baseline;
  font-size: var(--fs-md); line-height: 1.4; max-width: 30ch;
}
.docs__dot { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--yellow); transform: translateY(-0.1em); }
.docs__body { margin-top: var(--sp-4); max-width: 46ch; color: var(--paper-soft); padding-left: calc(0.6rem + var(--sp-3)); }

.sheet {
  justify-self: center;
  width: min(100%, 26rem);
  aspect-ratio: 210 / 297;
  background: var(--mist-50);
  color: var(--ink);
  border-radius: var(--r-xs);
  box-shadow: var(--shadow-sheet);
  padding: 7%;
}
.sheet__inner {
  height: 100%;
  border: 1.5px dashed var(--mist-200);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 10% 8%;
  text-align: center;
}
.sheet__logo { width: 42%; opacity: 0.55; }
.sheet__lines { display: grid; gap: 0.7rem; width: 80%; }
.sheet__lines i { display: block; height: 6px; border-radius: 3px; background: var(--mist-100); }
.sheet__lines i:nth-child(2) { width: 86%; }
.sheet__lines i:nth-child(4) { width: 70%; }
.sheet__lines i:nth-child(5) { width: 54%; }
.sheet__label { font-size: var(--fs-sm); color: var(--ink-soft); max-width: 22ch; }

/* ---------- Форма (светлая секция) ---------- */
.quote { padding-block: var(--sp-section); background: var(--mist-50); color: var(--ink); }
.quote__grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 7rem); align-items: start;
}
.quote .h2 { color: var(--navy-800); }
.quote__lead { margin-top: var(--sp-6); font-size: var(--fs-md); line-height: 1.5; color: var(--ink-soft); max-width: 32ch; }
.quote__alt { margin-top: var(--sp-6); line-height: 2.2; color: var(--ink); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-5); }
.form__summary {
  grid-column: 1 / -1;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--err-light); border-radius: var(--r-sm);
  color: var(--err-light); font-size: var(--fs-sm); font-weight: 500;
  background: rgba(168, 58, 63, 0.06);
}
.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field__req { color: var(--navy-700); }
.field__opt { color: var(--slate-500); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  background: #fbfcfe;
  border: 1px solid var(--mist-200);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease-ui), box-shadow var(--dur-fast) var(--ease-ui);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8391a8; }
.field input:hover, .field textarea:hover { border-color: var(--slate-500); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--navy-800);
  box-shadow: 0 0 0 3px var(--yellow);
}
.field__hint { font-size: var(--fs-xs); color: var(--slate-500); }
.field__error { font-size: var(--fs-xs); font-weight: 500; color: var(--err-light); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err-light); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; margin-top: var(--sp-3); }
.btn--submit { min-width: 15rem; }
.btn--submit:focus-visible { outline-color: var(--navy-800); }
.form__consent { flex: 1 1 20rem; font-size: var(--fs-xs); line-height: 1.55; color: var(--ink-soft); }
.form__consent a { color: var(--ink); }
.form.is-sending { opacity: 0.85; }

.success {
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--line-light-strong);
}
.success__title { font-size: var(--fs-xl); color: var(--navy-800); }
.success__title:focus { outline: none; }
.success__title:focus-visible { outline: 2px solid var(--yellow); }
.success p { margin-top: var(--sp-4); max-width: 44ch; color: var(--ink-soft); }
.success .btn { margin-top: var(--sp-6); }
.quote :focus-visible { outline-color: var(--navy-800); }
.quote .field input:focus-visible, .quote .field textarea:focus-visible { outline: none; }
.quote .btn--primary:focus-visible { outline: 2px solid var(--navy-800); }

/* ---------- Контакты ---------- */
.contacts { padding-block: var(--sp-section) var(--sp-9); background: var(--navy-850); }
.contacts__list {
  margin-top: var(--sp-8);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 6vw, 7rem);
}
.contacts__item { padding-block: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line-dark-strong); min-width: 0; }
.contacts__item dt { font-size: var(--fs-sm); color: var(--paper-mute); }
.contacts__item dd { margin-top: var(--sp-2); color: var(--paper); }
.contacts__item--big dd { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.2; overflow-wrap: anywhere; }

/* ---------- Политика ---------- */
.privacy { padding-block: var(--sp-8); background: var(--mist-50); color: var(--ink); }
.privacy__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--sp-5) clamp(2.5rem, 6vw, 7rem); align-items: baseline; }
.privacy .h3 { color: var(--navy-800); }
.privacy p { max-width: 62ch; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Подвал ---------- */
.footer { background: var(--navy-950); color: var(--paper-soft); padding-top: var(--sp-8); font-size: var(--fs-sm); }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: var(--sp-6); padding-bottom: var(--sp-7);
}
.footer__brand img { width: 160px; }
.footer__brand p { margin-top: var(--sp-4); }
.footer__contacts, .footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
.footer__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 var(--sp-6); }
.footer .link { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; background-size: 0 1px; background-position: 0 calc(100% - 10px); color: var(--paper); }
.footer .link:hover { background-size: 100% 1px; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); align-items: center;
  padding-block: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line-dark);
}
.footer__legal p { margin-right: auto; color: var(--paper-mute); }
.footer__legal .link { color: var(--paper-soft); }

/* Ховер фото: лёгкое приближение внутри рамки */
@media (hover: hover) {
  .frame:hover img { transform: scale(1.025); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1023.98px) {
  .about__grid, .docs__grid, .quote__grid, .fleet__head, .privacy__inner, .adv__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo { aspect-ratio: 4 / 3; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .fleet__photo .frame { aspect-ratio: 16 / 9; }

  /* Шкала становится вертикальной */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { display: none; }
  .step:not(:last-child)::before {
    content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0; width: 1px;
    background: var(--line-dark-strong);
  }
  .step {
    display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--sp-5);
    padding-bottom: var(--sp-6);
  }
  .step__num { grid-row: 1 / span 2; }
  .step__title { margin-top: 0.55rem; }
  .step p { grid-column: 2; max-width: 46ch; }
  .step:last-child { padding-bottom: 0; }
}

@media (max-width: 639.98px) {
  :root { --header-h: 4.25rem; }
  .hero { align-items: stretch; }
  .hero__body { padding-top: calc(var(--header-h) + 2rem); padding-bottom: var(--sp-6); }
  .hero__img { object-position: 50% 60%; }
  .hero__foot { flex-direction: column; align-items: stretch; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(12, 26, 51, 0.82) 0%, rgba(12, 26, 51, 0.45) 45%, rgba(12, 26, 51, 0.15) 65%, rgba(12, 26, 51, 0.7) 100%);
  }
  .menu-btn__text { font-size: var(--fs-xs); }
  .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .menu__cta { display: inline-flex; align-self: stretch; min-height: 3.25rem; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .btn--submit { width: 100%; }
  .contacts__list { grid-template-columns: minmax(0, 1fr); }
  .adv__list li { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
  .hero__lead { font-size: var(--fs-base); }
  .specs th, .specs td { display: block; width: auto; padding: 0; }
  .specs tr { display: block; padding-block: var(--sp-4) var(--sp-5); }
  .specs th { padding-bottom: var(--sp-2); }
  .footer__legal p { width: 100%; }
  .adv__body { gap: var(--sp-7); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover, .btn:active { transform: none; }
  .frame:hover img { transform: none; }
}

/* Первый экран с фото A320 (самолёт крупно в кадре): на десктопе фото справа,
   слева ровный синий под текстом, переход мягким градиентом. */
@media (min-width: 1024px) {
  .hero__media { left: 34%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--navy-950) 0%, rgba(12, 26, 51, 0.72) 18%, rgba(12, 26, 51, 0.12) 52%, rgba(12, 26, 51, 0) 100%),
      linear-gradient(180deg, rgba(12, 26, 51, 0.55) 0%, rgba(12, 26, 51, 0) 28%, rgba(12, 26, 51, 0) 70%, rgba(12, 26, 51, 0.55) 100%);
  }
  .hero { background: var(--navy-950); }
  .hero__img { object-position: 40% 50%; }
  .hero__title { max-width: 11ch; }
}
