/* БАЗОВЫЕ НАСТРОЙКИ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.85);
  --glass-bg: rgba(15, 23, 42, 0.35);
  --glass-border: rgba(148, 163, 184, 0.4);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-strong: #f9fafb;
  --danger: #fb7185;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.6);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --transition-fast: 0.18s ease-out;
  --transition-mid: 0.25s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
}

/* КОНТЕЙНЕР СТРАНИЦЫ */

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.25), transparent 55%),
    radial-gradient(circle at bottom left, rgba(248, 250, 252, 0.06), transparent 60%),
    var(--bg-main);
  color: var(--text-main);
}

/* ОБЩИЙ ЛЕЙАУТ ДЛЯ СЕКЦИЙ */

.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 72px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  width: fit-content;
}

.section-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}

.section-subtitle {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ГРИДЫ */

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* КАРТОЧКИ */

.card,
.mechanic {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3,
.mechanic-title {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.list li + li {
  margin-top: 4px;
}

/* МЕХАНИКА/ШАГИ */

.mechanic-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.mechanic-label {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.mechanic-body {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.mechanic-footer {
  font-size: 13px;
  color: var(--text-soft);
}

/* КНОПКИ */

.btn-primary,
.btn-ghost,
.btn-footer,
.btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #22c55e);
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.6);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--accent);
}

.btn-footer {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.btn-footer:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 1);
}

.btn-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #e5faff, var(--accent-strong));
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.65);
}

/* КНОПКА ВВЕРХ */

.btn-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.6);
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  z-index: 30;
}

.btn-top:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

/* ШАПКА */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.6));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-accent {
  width: 3px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #22c55e, var(--accent-strong));
}

.header-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.tagline {
  font-size: 13px;
  color: var(--text-soft);
}

.author-line {
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.85;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* HERO С НЕЙРОСЕТЕВЫМ ФОНОМ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/ai-bg.jpg"); /* ← путь к твоему фону с нейросетями */
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: translateZ(0);
  will-change: transform;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.1), transparent 55%);
  z-index: -1;
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ГЛАВНЫЕ СТЕКЛЯННЫЕ БЛОКИ */

.glass-block {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-left.glass-block {
  padding: 28px 26px 22px;
}

.hero-right .glass-block {
  padding: 22px 22px 18px;
}

/* ТЕКСТЫ В HERO */

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 4px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
  margin-bottom: 12px;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-strong), transparent 70%);
}

.hero-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.hero-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.9;
}

/* БЛОК МАРШРУТА */

.flight-card {
  position: relative;
}

.flight-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

.flight-title {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.flight-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.flight-map {
  position: relative;
  height: 120px;
  margin-bottom: 10px;
}

.flight-path {
  position: absolute;
  inset: 0;
}

.flight-path path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.6);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
}

.flight-plane {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 48px;
  left: 20px;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.7));
  animation: plane-move 6s ease-in-out infinite alternate;
}

.flight-footer {
  font-size: 12px;
  color: var(--text-soft);
}

/* АНИМАЦИЯ МАРКЕРА ПО МАРШРУТУ (упрощённая) */
@keyframes plane-move {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -18px) scale(1.02);
  }
  100% {
    transform: translate(150px, -40px) scale(1.04);
  }
}

/* FOMO‑БЛОК */

.fomo-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

/* ФУТЕР */

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.footer-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.footer-caption {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ТЕКСТЫ ВО ВТОРОЙ ПОЛОВИНЕ */

.footer-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* АДАПТИВ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    padding: 60px 16px 54px;
  }

  .hero {
    padding: 68px 16px 54px;
  }

  .header-shell {
    padding: 8px 16px;
  }

  .brand {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-left.glass-block,
  .hero-right .glass-block {
    padding: 20px 18px 18px;
  }

  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn-top {
    right: 14px;
    bottom: 18px;
  }
}