/* ===== Design tokens ===== */
:root {
  --navy: #0f2038;
  --navy-light: #1c3a5e;
  --orange: #ff7a1a;
  --sky: #2f8fd1;
  --cream: #f7f5f0;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --border: #e3e1da;
  --radius: 14px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(15, 32, 56, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.47059;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.021em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 1.5em; color: var(--navy); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }

.placeholder {
  background: rgba(255, 122, 26, 0.14);
  color: #b85200;
  padding: 0 4px;
  border-radius: 4px;
}

.placeholder-block {
  border: 2px dashed var(--border);
  background: #fff;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.35);
}
.btn-primary:hover { background: #e86a10; }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  padding: 8px 18px;
  font-size: 0.9rem;
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 32, 56, 0.92);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand img { border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; letter-spacing: 0.5px; }
.brand-tagline { font-size: 0.7rem; font-weight: 400; color: #a9b6c8; letter-spacing: 0.2px; }

.main-nav {
  display: none;
  gap: 28px;
}
.main-nav a {
  color: #dfe6ef;
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:hover { color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone { display: none; color: #fff; border-color: rgba(255,255,255,0.5); }
.header-phone:hover { background: rgba(255,255,255,0.12); color: #fff; }

.nav-toggle {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (min-width: 860px) {
  .main-nav { display: flex; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* mobile nav dropdown */
@media (max-width: 859px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 20px 24px;
    gap: 4px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,32,56,0.55) 0%, rgba(15,32,56,0.35) 40%, rgba(15,32,56,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 80px;
  text-align: center;
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 2.6vw + 0.9rem, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.5em;
}
@media (min-width: 900px) {
  .hero h1 { white-space: nowrap; }
}
.hero-subtitle { font-size: 1.05rem; font-weight: 400; color: #e6ebf2; max-width: 560px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; justify-content: center; }

/* ===== Информация о полёте (letter) ===== */
.letter {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.letter p {
  font-family: 'Marck Script', cursive;
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.4rem);
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--navy);
}
.letter p:last-child { margin-bottom: 0; }

.stamp {
  display: block;
  width: 120px;
  height: auto;
  margin: 28px auto 0;
  opacity: 0.9;
}
@media (min-width: 760px) {
  .letter { padding-right: 180px; }
  .stamp {
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 160px;
    margin: 0;
    transform: rotate(-8deg);
  }
}

/* ===== Trust ===== */
.trust { background: #fff; }
.pilot-block {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: 56px;
}
@media (min-width: 760px) {
  .pilot-block { grid-template-columns: 280px 1fr; }
}
.pilot-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.safety-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}
.safety-list li { margin-bottom: 8px; }

.testimonials-title { text-align: center; font-size: 1.3rem; color: var(--navy); }
.testimonials-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  border-radius: var(--radius);
  padding: 22px;
}
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-author { font-size: 0.9rem; color: var(--text-muted); }

/* ===== Form ===== */
.form-section { background: var(--cream); }
.lead-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-tabs {
  max-width: 640px;
  margin: 0 auto 24px;
  display: flex;
  background: #e9e5db;
  border-radius: 999px;
  padding: 4px;
}
.form-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
}
.form-tab.is-active {
  background: var(--navy);
  color: #fff;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
}

.tab-field.is-hidden { display: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.consent input { margin-top: 3px; }
.consent a { color: var(--sky); }

.btn-submit { width: 100%; }

.form-message {
  margin-top: 14px;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-message.is-success { color: #1a7a3d; }
.form-message.is-error { color: #c0392b; }

/* ===== Contacts ===== */
.contacts-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.contacts-list { list-style: none; padding: 0; margin: 0; }
.contacts-list li { margin-bottom: 12px; }
.contacts-list a { color: var(--sky); text-decoration: none; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cdd6e2; padding: 24px 0; font-size: 0.85rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.footer-inner a { color: #cdd6e2; }
