:root {
  --bg: #0b0d10;
  --elev: #14181f;
  --elev-2: #1c222c;
  --text: #f4f7fb;
  --muted: #9aa6b4;
  --accent: #2ee6c5;
  --accent-dim: rgba(46, 230, 197, 0.16);
  --danger: #ff5c7a;
  --warn: #f5c542;
  --ok: #3dd68c;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100dvh; padding-bottom: calc(64px + var(--safe-b)); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #000; padding: 8px; z-index: 99; }
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 12px 20px; min-height: var(--nav-h); border-bottom: 1px solid var(--line); }
.glass { background: rgba(11, 13, 16, 0.86); }
@supports (backdrop-filter: blur(12px)) {
  .glass { backdrop-filter: blur(14px); background: rgba(11, 13, 16, 0.72); }
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.03em; font-size: 1.15rem; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: radial-gradient(circle at 30% 30%, #fff, var(--accent) 40%, #0a3 90%); box-shadow: 0 0 18px var(--accent); }
.nav-links { display: none; gap: 18px; }
.nav-cta { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--elev); color: var(--text); cursor: pointer; font: inherit; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-primary { background: var(--accent); color: #04241e; border-color: transparent; font-weight: 700; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); color: #1a0008; border: 0; }
.btn-lg { min-height: 52px; padding: 0 22px; }
.hero { display: grid; gap: 32px; padding: 28px 20px 12px; max-width: 1120px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.045em; line-height: 1.05; margin: 0 0 12px; }
.lede { font-size: 1.12rem; color: var(--muted); line-height: 1.6; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--accent); margin: 0 0 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pills li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: 0.85rem; }
.phone { width: min(280px, 70vw); margin: 0 auto; padding: 12px; border-radius: 36px; background: #080a0d; border: 2px solid #2a313c; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 40px var(--accent-dim); }
.phone-screen { border-radius: 24px; overflow: hidden; background: #10141a; min-height: 380px; position: relative; }
.fake-map { height: 340px; background: radial-gradient(circle at 40% 40%, #1b3d36, #10141a 55%); position: relative; }
.dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.dot.green { color: var(--ok); background: var(--ok); top: 40%; left: 42%; }
.dot.yellow { color: var(--warn); background: var(--warn); top: 55%; left: 60%; }
.dot.gray { color: #889; background: #889; top: 62%; left: 30%; }
.radar { position: absolute; inset: 18% 18%; border: 1px dashed var(--accent); border-radius: 50%; opacity: .5; }
.phone-screen p { margin: 0; padding: 8px; text-align: center; color: var(--muted); font-size: 0.8rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px 20px 32px; max-width: 1120px; margin: 0 auto; }
.stats div { background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stats strong { display: block; font-size: 1.6rem; color: var(--accent); }
.stats span { color: var(--muted); font-size: 0.85rem; }
.prose, .cards, .faq, .cta-band, .auth-card, .account, .admin, .legal { max-width: 760px; margin: 0 auto; padding: 12px 20px 36px; }
.cards { max-width: 1120px; }
.prose h2, .cards h2, .faq h2 { letter-spacing: -0.03em; font-size: 1.7rem; }
.prose p, .prose li { color: #d5dde6; line-height: 1.7; font-size: 1.05rem; }
.card-grid { display: grid; gap: 14px; }
.card-grid article { background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.faq details { background: var(--elev); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.map-embed { max-width: 1120px; margin: 0 auto; padding: 12px 20px 48px; }
.map-canvas { height: 70vh; min-height: 320px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--elev); }
.map-full { height: calc(100dvh - var(--nav-h)); min-height: 420px; border-radius: 0; }
body.page-map { padding-bottom: 0; }
body.page-map .site-footer,
body.page-map .bottom-nav { display: none; }
body.page-map main { padding: 0; }
.map-app { position: relative; }
.map-toolbar { position: absolute; z-index: 500; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 16px; }
.accuracy { color: var(--muted); font-size: 0.8rem; align-self: center; margin-left: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--elev); border-radius: 20px 20px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); max-height: 70vh; overflow: auto; box-shadow: 0 -12px 40px rgba(0,0,0,.45); }
.sheet-handle { width: 44px; height: 4px; background: #445; border-radius: 4px; margin: 6px auto 12px; }
.cta-band { text-align: center; padding-bottom: 80px; }
.auth-card { max-width: 440px; }
.form { display: grid; gap: 12px; }
.form label, .form-row label { display: grid; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.form input, .form select, .form textarea, .form-row input, .form-row select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--elev-2); color: var(--text); padding: 8px 12px; font: inherit; }
.hp { position: absolute; left: -9999px; }
.check { display: flex !important; align-items: center; gap: 8px; }
.inline { display: inline; }
.toast { margin: 8px 20px; padding: 12px 16px; border-radius: 12px; }
.toast.ok { background: rgba(61,214,140,.15); }
.toast.err { background: rgba(255,92,122,.15); }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: var(--elev); border-top: 1px solid var(--line); padding: 8px 8px var(--safe-b); z-index: 50; }
.bottom-nav a { color: var(--text); min-height: 44px; display: flex; align-items: center; }
.site-footer { padding: 24px 20px 90px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.legal-block { white-space: pre-wrap; background: var(--elev); padding: 16px; border-radius: 12px; overflow: auto; }
.log { background: #000; padding: 12px; border-radius: 8px; overflow: auto; max-height: 320px; }
.marker-pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #041; box-shadow: 0 0 10px currentColor; }
body.is-mobile .nav-cta .btn { min-width: 44px; }
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .nav-links { display: flex; }
  .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding-top: 48px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .map-canvas { height: 80vh; }
  .sheet { left: auto; right: 16px; top: 90px; bottom: auto; width: 360px; border-radius: 16px; max-height: calc(100vh - 120px); }
}
.leaflet-container { background: #10141a; font-family: var(--font); }
.heat-dot { width: 18px; height: 18px; border-radius: 50%; background: rgba(46,230,197,.35); border: 0; }
.noscript { padding: 24px; }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 700; display: grid; place-items: end; }
.modal { background: var(--elev); width: 100%; max-width: 480px; margin: 0 auto; padding: 16px; border-radius: 16px 16px 0 0; }
@media (min-width: 860px) {
  .modal-back { place-items: center; }
  .modal { border-radius: 16px; }
}
