:root {
  --bg: #0a1428;
  --bg-2: #112039;
  --bg-3: #162a45;
  --line: #1e3a5f;
  --line-soft: #15294a;

  --brand: #22d3ee;
  --brand-glow: #4fd1ff;
  --brand-dark: #0e7490;

  --ink: #e2e8f0;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --warn: #fbbf24;
  --ok: #34d399;
}
* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Century Gothic", "Montserrat", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Тонкая сетка на фоне (как карта) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: var(--brand); text-decoration: none; transition: .15s; }
a:hover { color: var(--brand-glow); }

/* Шапка */
header.site {
  background: rgba(10, 20, 40, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
  display: flex; align-items: center; gap: 24px;
  position: sticky; top: 0; z-index: 10;
}
header.site .logo {
  font-weight: 700; font-size: 17px; color: #fff;
  letter-spacing: .5px;
  display: flex; align-items: center; gap: 10px;
}
header.site .logo::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand), 0 0 24px rgba(34,211,238,.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.15); }
}
header.site nav { margin-left: auto; display: flex; gap: 22px; }
header.site nav a {
  color: var(--ink-soft); font-size: 14px;
  padding: 6px 0; position: relative;
}
header.site nav a:hover { color: #fff; }
header.site nav a.active {
  color: var(--brand); font-weight: 600;
}
header.site nav a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

main { max-width: 1160px; margin: 0 auto; padding: 32px 24px 80px; }

h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: -.5px; font-weight: 700; }
h2 { font-size: 22px; margin: 44px 0 16px; letter-spacing: -.2px; font-weight: 600;
     color: #fff; }
h2::before {
  content: ""; display: inline-block;
  width: 4px; height: 20px; margin-right: 12px; vertical-align: -3px;
  background: var(--brand); border-radius: 2px;
  box-shadow: 0 0 12px rgba(34,211,238,.6);
}
h3 { font-size: 17px; margin: 0 0 8px; color: #fff; font-weight: 600; }
p { color: var(--ink-soft); }
p.lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; }

/* Hero — тёмная карта с маршрутом */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(34,211,238,.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(79,209,255,.06) 0%, transparent 50%),
    linear-gradient(160deg, #0a1428 0%, #0d1a33 50%, #0a1d33 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 56px 44px 60px;
  margin-bottom: 40px;
  overflow: hidden;
}
/* Декоративная сетка внутри hero */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 85%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  color: #fff; font-size: 42px; line-height: 1.1;
  margin: 0 0 14px; letter-spacing: -.8px;
}
.hero h1 span { color: var(--brand); text-shadow: 0 0 24px rgba(34,211,238,.5); }
.hero p {
  color: var(--ink-soft); font-size: 17px;
  margin: 0 0 28px; max-width: 640px;
}
.hero .hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.3);
  color: var(--brand); font-size: 12px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero .hero-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 8px var(--brand);
}

/* Кнопки */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  background: var(--brand); color: #0a1428;
  font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; transition: .18s;
  letter-spacing: .2px;
}
.btn:hover {
  background: var(--brand-glow); color: #0a1428;
  box-shadow: 0 0 24px rgba(34,211,238,.45);
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: rgba(34,211,238,.08);
  border-color: var(--brand); color: var(--brand);
  box-shadow: none;
}

/* Сетка карточек */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

/* Карточки — как панели в системе мониторинга */
.card {
  background: linear-gradient(160deg, var(--bg-2) 0%, #0f1c34 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: .2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.4), transparent);
  opacity: 0; transition: .25s;
}
.card:hover {
  border-color: rgba(34,211,238,.5);
  box-shadow:
    0 0 0 1px rgba(34,211,238,.15),
    0 12px 32px rgba(0,0,0,.4),
    0 0 24px rgba(34,211,238,.08);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }
.card .icon {
  font-size: 28px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.2);
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(34,211,238,.05);
}
.card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

/* Метрики-плашки (как в диспетчерской) */
.metric {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  color: var(--brand);
}
.metric b {
  font-size: 28px; font-weight: 700; color: var(--brand);
  text-shadow: 0 0 16px rgba(34,211,238,.4);
}
.metric span { color: var(--muted); font-size: 14px; }

/* Футер */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center; font-size: 13px;
  background: #060f1f;
  color: var(--muted);
  margin-top: 80px;
}
.footer a { color: var(--brand); }

/* Формы */
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 13px; margin-bottom: 6px;
  color: var(--muted); letter-spacing: .2px;
}
.form-row input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10,20,40,.6);
  color: var(--ink);
  font-family: inherit; font-size: 14px;
  transition: .15s;
}
.form-row input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}
.form-row input::placeholder { color: #475569; }

/* Информационные блоки */
.notice {
  background: rgba(34,211,238,.06);
  border-left: 3px solid var(--brand);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 18px 0;
}
.notice b { color: #fff; }
.notice ul { margin: 10px 0 0; padding-left: 20px; }
.notice li { margin-bottom: 4px; }

/* Аккордеон-статус */
.status-line {
  display: flex; align-items: center; gap: 10px;
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 13px; color: var(--muted);
  padding: 8px 0;
}
.status-line .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

/* Мобильные правки */
@media (max-width: 700px) {
  .hero { padding: 40px 24px; }
  .hero h1 { font-size: 30px; }
  header.site { padding: 14px 18px; }
  header.site nav { gap: 14px; }
  header.site nav a { font-size: 13px; }
}