:root {
  --bg: #05080E;
  --bg2: #0A101C;
  --text: #EAF2FA;
  --muted: #8CA3B8;
  --neon: #00E5FF;
  --neon2: #4CFF9E;
  --danger: #FF5252;
  --line: rgba(0, 229, 255, 0.16);
  --grad: linear-gradient(135deg, #00E5FF, #0086B3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }

.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(0,229,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}
.bg-glow {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,229,255,0.18), transparent);
}

/* NAV */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 22px; max-width: 1180px; margin: 0 auto;
  position: sticky; top: 0; z-index: 10;
  background: rgba(5,8,14,0.85); backdrop-filter: blur(10px);
}
.logo-img { height: 34px; display: block; }
.nav-links { display: flex; gap: 20px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--neon); }

/* BUTTONS */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.2s; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-neon { background: var(--grad); color: #06131A; box-shadow: 0 0 20px rgba(0,229,255,0.35); }
.btn-ghost { background: transparent; color: var(--neon); border: 1px solid rgba(0,229,255,0.4); }
.btn-small { padding: 9px 16px; font-size: 0.85rem; }
.btn-sm:hover { box-shadow: 0 0 26px rgba(0,229,255,0.5); }

/* HERO */
.hero { max-width: 1120px; margin: 0 auto; padding: 48px 22px 30px; text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.7rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; }
.hero-sub { color: var(--muted); margin: 14px auto 34px; font-size: clamp(0.95rem, 2vw, 1.1rem); max-width: 640px; }

.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .hub { grid-template-columns: 1fr; } }
.hub-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: linear-gradient(160deg, rgba(0,229,255,0.07), transparent 55%), var(--bg2);
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hub-card:hover { border-color: rgba(0,229,255,0.5); box-shadow: 0 0 34px rgba(0,229,255,0.15); transform: translateY(-3px); }
.hub-card.b2c { border-color: rgba(76,255,158,0.2); }
.hub-card.b2c:hover { border-color: rgba(76,255,158,0.55); box-shadow: 0 0 34px rgba(76,255,158,0.15); }
.hub-visual { height: 170px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-radius: 12px; }
.truck-main {
  width: 240px; max-width: 80%; height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.65));
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hub-title { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.hub-text { color: var(--muted); font-size: 0.9rem; line-height: 1.55; max-width: 380px; }
.badge-soon {
  position: absolute; top: 14px; right: 14px; font-size: 0.72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; color: #06131A;
  background: linear-gradient(135deg, #4CFF9E, #1BB87A);
}

/* truck animation */
.truck { position: relative; width: 190px; height: 90px; }
.truck-body {
  position: absolute; left: 30px; top: 18px; width: 140px; height: 44px;
  background: linear-gradient(135deg, #123, #0d2233); border-radius: 8px;
  border: 1px solid rgba(0,229,255,0.4);
}
.truck-cab {
  position: absolute; left: 10px; top: 30px; width: 40px; height: 34px;
  background: linear-gradient(135deg, #00E5FF, #0086B3); border-radius: 6px 6px 2px 2px;
}
.truck-wheel { position: absolute; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; background: #06131A; border: 3px solid var(--neon); }
.w1 { left: 48px; } .w2 { left: 110px; } .w3 { left: 150px; }
.pulse-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--neon2); box-shadow: 0 0 12px var(--neon2);
  animation: pulse 1.6s infinite;
}
.p1 { left: 28%; top: 30%; }
.p2 { right: 26%; bottom: 26%; animation-delay: 0.8s; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* mini map */
.mini-map {
  width: 230px; height: 150px; border-radius: 12px; position: relative;
  background: #060B12;
  border: 1px solid rgba(76,255,158,0.3); overflow: hidden;
}
.map-shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px; opacity: 0.92;
}
.road { position: absolute; background: rgba(140,163,184,0.25); border-radius: 4px; }
.r1 { width: 130%; height: 10px; top: 42%; left: -15%; transform: rotate(-14deg); }
.r2 { width: 120%; height: 8px; top: 68%; left: -10%; transform: rotate(9deg); }
.cam {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 10px var(--danger);
  animation: pulse 2s infinite;
}
.c1 { top: 22%; left: 30%; } .c2 { top: 55%; right: 24%; }
.c3 { bottom: 18%; left: 22%; animation-delay: 0.6s; }
.c4 { top: 32%; right: 8%; animation-delay: 1.2s; }

/* metrics */
.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; max-width: 1120px; margin: 40px auto 0; padding: 0 22px;
}
.metric {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; text-align: center;
}
.metric b {
  display: block; font-size: 1.7rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric span { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

/* live demo */
.section-title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; text-align: center; margin: 54px 0 22px; }
.demo-live { max-width: 900px; margin: 0 auto; padding: 0 22px; }
.phone-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: center; }
.phone {
  width: 240px; height: 470px; border-radius: 28px; background: #0B1220;
  border: 2px solid rgba(0,229,255,0.3); padding: 10px; position: relative;
  box-shadow: 0 0 40px rgba(0,229,255,0.12);
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 16px; background: #05080E; border-radius: 999px; z-index: 2;
}
.phone-screen {
  height: 100%; border-radius: 20px; background: #0E1626; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px; padding: 26px 8px 8px;
}
.tg-header { color: var(--muted); font-size: 0.8rem; text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.tg-msg {
  background: #14202F; border-radius: 12px; padding: 10px; animation: msgIn 2.4s ease;
}
.tg-caption { font-size: 0.72rem; line-height: 1.5; color: var(--text); }
.tg-photo {
  height: 150px; margin-top: 8px; border-radius: 8px; overflow: hidden;
  background: #0A1420; border: 1px solid var(--line);
}
.tg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes msgIn { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
.tg-buttons { margin-top: auto; display: grid; gap: 6px; }
.tg-btn {
  font-size: 0.75rem; padding: 8px; text-align: center; border-radius: 8px;
  background: rgba(0,229,255,0.08); border: 1px solid var(--line);
}
.demo-note { max-width: 380px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.demo-note b { color: var(--neon); }

/* profiles */
.profiles { max-width: 900px; margin: 0 auto; padding: 0 22px 20px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.tab {
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
  background: var(--bg2); color: var(--muted); border: 1px solid var(--line);
}
.tab.active { color: #06131A; background: var(--grad); border-color: transparent; }
.tab-panel {
  display: grid; gap: 10px; justify-items: center;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.tab-feature { color: var(--muted); font-size: 0.95rem; }
.tab-feature::before { content: '✓ '; color: var(--neon2); font-weight: 700; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 60px; background: rgba(8,13,22,0.9); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px; max-width: 1120px; margin: 0 auto; padding: 36px 22px 20px;
}
.f-title { font-weight: 700; margin-bottom: 12px; color: var(--text); }
.footer-grid a, .footer-grid span { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.9; }
.footer-grid a:hover { color: var(--neon); }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  max-width: 1120px; margin: 0 auto; padding: 14px 22px 26px;
  color: var(--muted); font-size: 0.8rem; border-top: 1px solid rgba(140,163,184,0.12);
}
#counter { color: var(--neon2); font-weight: 600; }


/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .nav { padding: 12px 14px; gap: 8px; }
  .nav-links { display: none; }
  .hero { padding: 34px 16px 20px; }
  .hub-card { padding: 22px 16px; }
  .hub-visual { height: 150px; }
  
  .metrics { grid-template-columns: 1fr 1fr; padding: 0 16px; margin-top: 26px; }
  .metric b { font-size: 1.4rem; }
  .phone { width: 210px; height: 420px; }
  .demo-live, .profiles { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; padding: 28px 16px 14px; }
  .footer-meta { flex-direction: column; align-items: center; text-align: center; }
  .section-title { margin: 40px 0 16px; }
  .legal-page { padding: 20px 16px 60px; }
  .legal-page h1 { font-size: 1.35rem; }
}


/* ===== MAP.RADAR.TJ ===== */
.map-hero { max-width: 720px; margin: 0 auto; padding: 56px 20px 60px; text-align: center; }
.map-hero h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; margin: 26px 0 12px; }
.map-hero p { color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.badge-soon.static { position: static; display: inline-block; margin-bottom: 24px; }
.map-radar {
  position: relative; width: 190px; height: 190px; margin: 0 auto;
  border-radius: 50%; border: 1px solid rgba(76,255,158,0.25);
  background: radial-gradient(circle, rgba(76,255,158,0.08), transparent 70%);
  display: flex; align-items: center; justify-content: center;
}
.map-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(76,255,158,0.3); inset: 0; animation: ringPulse 2.6s infinite; }
.ring2 { animation-delay: 0.85s; }
.ring3 { animation-delay: 1.7s; }
@keyframes ringPulse { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.map-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(76,255,158,0.4), transparent 70deg);
  animation: sweep 3s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.map-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 10px var(--danger);
  animation: pulse 2s infinite; z-index: 2;
}
.d1 { top: 24%; left: 32%; } .d2 { top: 58%; right: 22%; }
.d3 { bottom: 16%; left: 18%; animation-delay: 0.7s; }
.d4 { top: 34%; right: 12%; animation-delay: 1.3s; }
.map-features { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 30px; }
.map-features div {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 0.85rem; color: var(--muted);
}
.map-back { margin-top: 10px; }
@media (max-width: 640px) {
  .map-hero { padding: 40px 16px 50px; }
  .map-radar { width: 150px; height: 150px; }
  .map-features div { font-size: 0.8rem; padding: 8px 12px; }
}

/* кнопка назад на юридических страницах */
.legal-back { margin: 14px 0 0; }
.legal-back a { color: var(--neon); font-weight: 600; font-size: 0.9rem; }
.legal-back a:hover { text-decoration: underline; }
