/* ══════════════════════════════════════════════════════
   АэроГЛОНАСС — главная таблица стилей
   Дизайн: корпоративный стиль АО «ГЛОНАСС» (aoglonass.ru)
   ══════════════════════════════════════════════════════ */

/* ── Переменные (палитра aoglonass.ru) ────────────────── */
:root {
  /* Navy / Deep Blue — основные тёмные тона */
  --navy-950: #030c1d;
  --navy-900: #061233;
  --navy-800: #0b1d4e;
  --navy-700: #0d2560;
  --navy-600: #0e2f72;

  /* Brand Blue — фирменный синий АО ГЛОНАСС */
  --blue-700: #0044a0;
  --blue-600: #0057b8;
  --blue-500: #1a6dd5;
  --blue-400: #4a8fe8;
  --blue-300: #7ab4f5;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  /* Accent gold / amber */
  --gold-500: #e8a000;
  --gold-400: #f5b822;
  --gold-100: #fef3c7;

  /* Functional */
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --red-600:   #dc2626;
  --red-500:   #ef4444;
  --red-100:   #fee2e2;

  /* Grayscale */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  /* Typography & Geometry */
  --font:       'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.08);
  --transition: 0.2s ease;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Типография ───────────────────────────────────────── */
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; color: var(--gray-900); }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);    letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--gray-600); }

/* ── Layout ───────────────────────────────────────────── */
.container    { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; }
.container-xs { max-width: 520px; }

/* ── Сетка ────────────────────────────────────────────── */
.grid   { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex   { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}
.gap-4{gap:16px}.gap-6{gap:24px}.gap-8{gap:32px}

/* ═══════════════════════════════════════════════════════
   НАВИГАЦИЯ — тёмная тема (стиль aoglonass.ru)
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.07);
  height: 66px;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  white-space: nowrap;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,87,184,.5);
}
.logo-text { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-links a.active { font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Hamburger на тёмном фоне */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: var(--transition);
}

/* Мобильное меню */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 66px 0 0 0;
  background: var(--navy-900);
  z-index: 99;
  padding: 16px;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  margin-bottom: 2px;
  transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.mobile-nav hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin: 8px 0;
}

/* ── Кнопки ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
  box-shadow: 0 4px 14px rgba(0,87,184,.35);
}
.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 6px 20px rgba(0,87,184,.45);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-50); transform: translateY(-1px); }
.btn-white {
  background: #fff;
  color: var(--blue-700);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.btn-white:hover { background: var(--blue-50); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-ghost-dark {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.btn-ghost-dark:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-danger  { background: var(--red-500);   color: #fff; border-color: var(--red-500); }
.btn-danger:hover { background: var(--red-600); }
.btn-success { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.btn-gold    { background: var(--gold-500);  color: #fff; border-color: var(--gold-500); }
.btn-gold:hover { background: #c88a00; }
.btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: 10px; }
.btn-sm  { padding: 6px 14px;  font-size: 13px; border-radius: 6px; }
.btn-icon{ padding: 9px; aspect-ratio: 1; }

/* Google Play */
.btn-android {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--gray-900);
  color: #fff;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.15);
  transition: all var(--transition);
}
.btn-android:hover {
  background: var(--gray-800);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.btn-android .play-icon  { width: 30px; flex-shrink: 0; }
.btn-android .play-text  { text-align: left; }
.btn-android .play-text small  { display: block; font-size: 10px; opacity: .7; font-weight: 400; }
.btn-android .play-text strong { display: block; font-size: 15px; font-weight: 700; }

/* ── Карточки ─────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body   { padding: 24px; }
.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.card-hover { transition: all var(--transition); cursor: pointer; }
.card-hover:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Дашборд — статус-карточки */
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
  text-decoration: none;
}
.stat-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.stat-icon.blue   { background: #dbeafe; }
.stat-icon.indigo { background: #e0e7ff; }
.stat-icon.green  { background: #dcfce7; }
.stat-icon.purple { background: #f3e8ff; }
.stat-icon.amber  { background: #fef3c7; }
.stat-info  { flex: 1; min-width: 0; }
.stat-label { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-bottom: 2px; }
.stat-value { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.stat-sub   { font-size: 12px; color: var(--gray-500); }
.stat-badge { flex-shrink: 0; }

/* ── Формы ────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-label .required { color: var(--red-500); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-900);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(26,109,213,.12);
}
.form-control:invalid:not(:placeholder-shown) { border-color: var(--red-400); }
.form-control::placeholder { color: var(--gray-400); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint  { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red-600);  margin-top: 4px; display: none; }
.form-group.has-error .form-control { border-color: var(--red-400); }
.form-group.has-error .form-error   { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Значки ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success  { background: var(--green-100);  color: var(--green-600); }
.badge-danger   { background: var(--red-100);    color: var(--red-600);   }
.badge-warning  { background: var(--gold-100);   color: #92400e; }
.badge-info     { background: var(--blue-100);   color: var(--blue-700);  }
.badge-secondary{ background: var(--gray-100);   color: var(--gray-600);  }
.badge-primary  { background: var(--blue-600);   color: #fff; }

/* ── Алерты ───────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-100); border-color: #a7f3d0; color: #14532d; }
.alert-danger  { background: var(--red-100);   border-color: #fca5a5; color: #7f1d1d; }
.alert-warning { background: var(--gold-100);  border-color: #fde68a; color: #78350f; }
.alert-info    { background: var(--blue-50);   border-color: var(--blue-100); color: var(--navy-800); }

/* ── Дашборд — боковая панель ─────────────────────────── */
.dashboard-layout { display: flex; min-height: calc(100vh - 66px); }
.sidebar {
  width: 244px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  padding: 24px 12px;
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow-y: auto;
}
.sidebar-section  { margin-bottom: 8px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px 4px;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
  margin-bottom: 1px;
}
.sidebar a svg { flex-shrink: 0; opacity: .7; }
.sidebar a:hover  { background: var(--gray-100); color: var(--gray-900); }
.sidebar a.active { background: var(--blue-50);  color: var(--blue-700); font-weight: 600; }
.sidebar a.active svg { opacity: 1; }
.content-area { flex: 1; min-width: 0; padding: 32px; }

/* ── Прогресс-бар готовности ──────────────────────────── */
.readiness-card {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  margin-bottom: 24px;
}
.readiness-title  { font-size: 14px; opacity: .8; margin-bottom: 6px; }
.readiness-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.readiness-pct    { font-size: 2rem; font-weight: 800; }
.progress-bar-bg  {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  margin-bottom: 16px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.readiness-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.readiness-step  { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .7; }
.readiness-step.done { opacity: 1; }
.readiness-step .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.readiness-step.done .dot { background: #4ade80; }

/* ═══════════════════════════════════════════════════════
   HERO SLIDER — главный баннер
   ═══════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 580px;
  background: var(--navy-950);
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.slide-1 {
  background: linear-gradient(135deg, #030c1d 0%, #0b1d4e 45%, #0e2f72 100%);
}
.slide-2 {
  background: linear-gradient(135deg, #040e22 0%, #071a3e 45%, #0a2558 100%);
}
/* Декоративные блики на слайдах */
.slide::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(26,109,213,.2) 0%, transparent 65%);
  pointer-events: none;
}
.slide::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,160,0,.07) 0%, transparent 65%);
  pointer-events: none;
}
.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  align-items: center;
}
.slide-text { color: #fff; }
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(232,160,0,.15);
  border: 1px solid rgba(232,160,0,.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.slide-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.slide-title span { color: var(--gold-400); }
.slide-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.7;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slide-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide-image svg {
  max-width: 100%;
  max-height: 340px;
  filter: drop-shadow(0 12px 40px rgba(74,143,232,.45));
  animation: floatDrone 5s ease-in-out infinite;
}
@keyframes floatDrone {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%  { transform: translateY(-14px) rotate(1deg); }
  66%  { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Стрелки слайдера */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
  font-size: 18px;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover, .slider-next:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.35);
}

/* Точки-индикаторы */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s ease;
  border: none;
  padding: 0;
}
.slider-dot.active {
  background: #fff;
  width: 26px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════
   STATS BAR — полоска со статистикой
   ═══════════════════════════════════════════════════════ */
.stats-bar {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-600));
  padding: 28px 0;
  border-bottom: 2px solid rgba(255,255,255,.06);
}
.stats-bar-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.stats-bar-item { text-align: center; }
.stats-bar-item .sbi-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 4px;
}
.stats-bar-item .sbi-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   КАТЕГОРИИ ВС
   ═══════════════════════════════════════════════════════ */
.ac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ac-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.ac-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.ac-card:hover::before  { transform: scaleX(1); }
.ac-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}
.ac-icon  { font-size: 2.6rem; margin-bottom: 12px; }
.ac-type  {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue-500);
  margin-bottom: 6px;
}
.ac-card h4   { font-size: .95rem; margin-bottom: 8px; color: var(--gray-900); }
.ac-weight    { font-size: 1.1rem; font-weight: 800; color: var(--blue-600); }
.ac-date      { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.ac-badge     { margin-top: 10px; }

/* ═══════════════════════════════════════════════════════
   ШАГ ПОДКЛЮЧЕНИЯ
   ═══════════════════════════════════════════════════════ */
.connect-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.connect-step {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: all var(--transition);
}
.connect-step:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-300);
  transform: translateY(-2px);
}
.cs-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,87,184,.3);
}
.cs-icon  { font-size: 1.6rem; margin-bottom: 10px; }
.connect-step h4 { margin-bottom: 8px; font-size: 1rem; }
.connect-step p  { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════
   КАРТОЧКИ УСЛУГ (от nebo.aoglonass.ru)
   ═══════════════════════════════════════════════════════ */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-300);
}
.service-card-head {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  padding: 28px;
  color: #fff;
}
.service-card-head .sc-icon { font-size: 2.2rem; margin-bottom: 12px; }
.service-card-head h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.service-card-head p  { color: rgba(255,255,255,.7); font-size: 13px; }
.service-card-body    { padding: 24px; flex: 1; }
.service-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}
.service-price .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
}
.service-price .per   { font-size: 13px; color: var(--gray-500); }
.service-price .once  { font-size: 13px; font-weight: 600; color: var(--green-600); background: var(--green-100); padding: 2px 10px; border-radius: 99px; }
.sc-features          { list-style: none; margin-bottom: 20px; }
.sc-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.sc-features li:last-child { border-bottom: none; }
.sc-features .chk { color: var(--green-600); font-size: 16px; font-weight: 700; }
.service-card-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ═══════════════════════════════════════════════════════
   HERO (старый — для fallback / авторизованных)
   ═══════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 50%, #0e3070 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,109,213,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(232,160,0,.15);
  border: 1px solid rgba(232,160,0,.4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--gold-400); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.deadline-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 14px 20px;
  backdrop-filter: blur(8px);
}
.deadline-chip .date    { font-size: 1.5rem; font-weight: 800; color: var(--gold-400); }
.deadline-chip .label   { font-size: 12px; opacity: .7; }
.deadline-chip .sublabel{ font-size: 13px; font-weight: 500; }

/* ── Старые шаги "Как работает" ───────────────────────── */
.how-step     { text-align: center; position: relative; }
.how-step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(0,87,184,.3);
}
.how-step-icon { font-size: 2rem; margin-bottom: 10px; }
.how-step h4   { margin-bottom: 6px; }
.how-step p    { font-size: 14px; }

/* ── Ценообразование ──────────────────────────────────── */
.pricing-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 1px var(--blue-600), var(--shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 2.25rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.pricing-price sup  { font-size: .9rem; font-weight: 600; vertical-align: top; margin-top: 6px; }
.pricing-price span { font-size: 14px; font-weight: 400; color: var(--gray-500); }
.pricing-desc { font-size: 13px; color: var(--gray-500); margin: 8px 0 20px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--green-600); font-size: 16px; }

/* ═══════════════════════════════════════════════════════
   ФУТЕР — тёмная тема (стиль aoglonass.ru)
   ═══════════════════════════════════════════════════════ */
footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.65);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 12px; font-size: 13px; max-width: 260px; line-height: 1.7; }
.footer-col h5  { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul  { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-app-block h5 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.footer-app-block p  { font-size: 12px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); font-size: 13px; }
.footer-bottom a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER — 152-ФЗ
   ═══════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid var(--blue-600);
  box-shadow: 0 -4px 32px rgba(0,0,0,.15);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-icon { font-size: 1.8rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text p {
  font-size: 14px;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.5;
}
.cookie-text a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-card-header {
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}
.auth-logo { justify-content: center; margin-bottom: 20px; }
.auth-card-header h2 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-card-header p  { font-size: 14px; }
.auth-card-body { padding: 28px 32px 32px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ЕСИА / Госуслуги */
.btn-esia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #0064eb;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-esia:hover { background: #004fc2; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,100,235,.35); }
.esia-logo {
  width: 24px; height: 24px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 10px;
  color: #0064eb;
  letter-spacing: -.5px;
}
.auth-footer {
  text-align: center;
  padding: 16px 32px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-500);
}
.auth-footer a { color: var(--blue-600); font-weight: 600; }

/* Регистрация — двух-шаговый UI */
.reg-steps { display: flex; gap: 0; margin-bottom: 28px; }
.reg-step {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  padding: 8px;
  position: relative;
}
.reg-step::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gray-200);
}
.reg-step.active { color: var(--blue-600); }
.reg-step.active::after { background: var(--blue-600); }
.reg-step.done { color: var(--green-600); }
.reg-step.done::after { background: var(--green-500); }
.reg-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}
.reg-step.active .reg-step-num { background: var(--blue-600); color: #fff; }
.reg-step.done .reg-step-num   { background: var(--green-500); color: #fff; }

/* ── Таблицы ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }

/* ── Модальные окна ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(8px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 1.05rem; }
.modal-close {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  font-size: 18px;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-100); }
.modal-body   { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; justify-content: flex-end; }

/* ── Карта ────────────────────────────────────────────── */
#flight-map {
  height: 380px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  overflow: hidden;
}
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--gray-600); margin-top: 8px; }
.map-legend-item { display: flex; align-items: center; gap: 6px; }
.map-legend-dot  { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* ── Toast ──────────────────────────────────────────────*/
.toast-container {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  min-width: 280px; max-width: 380px;
  pointer-events: auto;
  animation: slideIn .25s ease;
  border-left: 4px solid var(--blue-400);
}
.toast.success { border-color: var(--green-500); }
.toast.error   { border-color: var(--red-500); background: #1a0505; }
.toast.warning { border-color: var(--gold-400); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Пустые состояния ──────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 24px; color: var(--gray-500); }
.empty-state .emoji { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; margin-bottom: 20px; }

/* ── Калькулятор веса ──────────────────────────────────── */
.weight-result { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-top: 6px; }
.weight-result.required { color: var(--red-600); }
.weight-result.optional { color: var(--green-600); }

/* ── Страница Политики конфиденциальности ──────────────── */
.privacy-page { max-width: 860px; margin: 0 auto; padding: 48px 24px; }
.privacy-page h1 { color: var(--navy-800); margin-bottom: 8px; }
.privacy-page .pp-date { font-size: 13px; color: var(--gray-500); margin-bottom: 36px; }
.privacy-page h2 {
  font-size: 1.15rem;
  color: var(--navy-800);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-100);
}
.privacy-page h3 { font-size: 1rem; color: var(--gray-800); margin: 20px 0 8px; }
.privacy-page p  { font-size: 14px; color: var(--gray-700); margin-bottom: 12px; line-height: 1.75; }
.privacy-page ul, .privacy-page ol { padding-left: 22px; margin-bottom: 12px; }
.privacy-page li { font-size: 14px; color: var(--gray-700); margin-bottom: 6px; line-height: 1.7; }
.privacy-page .pp-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.privacy-page .pp-box p { margin-bottom: 0; }
.pp-toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.pp-toc h3 { margin-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-bottom: 10px; }
.pp-toc ol { margin-bottom: 0; padding-left: 18px; }
.pp-toc li { margin-bottom: 4px; }
.pp-toc a  { color: var(--blue-600); font-size: 14px; }
.pp-toc a:hover { text-decoration: underline; }

/* ── Утилиты ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-500); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 11px; }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}
.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}
.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mb-8{margin-bottom:32px}
.w-full { width: 100%; }
.d-none { display: none !important; }
.section     { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-dark {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.7); }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title p { margin-top: 10px; font-size: 1.05rem; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--red-500);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}

/* ── Адаптив ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ac-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .connect-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .slide-content { grid-template-columns: 1fr; }
  .slide-image   { display: none; }
  .hero-slider   { height: 480px; }
  .service-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-desktop-only { display: none; }
  .hamburger { display: flex; }
  .sidebar   { display: none; }
  .content-area { padding: 20px; }
  .grid-3, .grid-2, .ac-grid, .connect-steps { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .hero        { padding: 64px 0 48px; }
  .section     { padding: 56px 0; }
  .hero-actions, .slide-actions { flex-direction: column; align-items: flex-start; }
  .readiness-steps { flex-direction: column; }
  .stats-bar-inner { justify-content: center; }
  .cookie-inner    { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .auth-card-body, .auth-card-header { padding-left: 24px; padding-right: 24px; }
  .container { padding: 0 16px; }
  .hero-slider { height: 420px; }
  .slide-title { font-size: 1.5rem; }
  .slider-prev, .slider-next { width: 36px; height: 36px; font-size: 14px; }
}
