/* ==========================================================================
   AHD-IP — Design system
   Dark, technical, security/CCTV-grade aesthetic.
   Signature motif: camera on-screen-display (OSD) readouts + viewfinder
   corner brackets, echoing real security-camera footage overlays.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --bg: #0A0C0F;
  --bg-elevated: #14171D;
  --bg-elevated-2: #1B1F27;
  --border: #262B34;
  --border-soft: #1D2129;
  --text: #EDEFF2;
  --text-muted: #9AA2AE;
  --text-faint: #7A828E; /* WCAG AA: 5.05:1 on --bg, 4.62:1 on --bg-elevated */
  --accent: #2E8CFF;
  --accent-2: #63B3FF;
  --accent-dim: #1B5FBD;
  --accent-glow: rgba(46, 140, 255, 0.16);
  --rec: #FF4438;
  --success: #35C48A;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  /* Spacing (8px system) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.45);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle ambient grid across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 90%);
}

main { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 4.4vw + 1rem, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 2.6vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.4rem); }

p { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.65; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--s-3); }
}

section { padding: var(--s-8) 0; position: relative; }
@media (max-width: 780px) {
  section { padding: var(--s-7) 0; }
}
@media (max-width: 480px) {
  section { padding: var(--s-6) 0; }
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  border: 0;
}

/* ---------- Eyebrow / OSD readout labels (signature motif) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.eyebrow.is-rec::before {
  background: var(--rec);
  box-shadow: 0 0 0 3px rgba(255,68,56,0.18);
  animation: rec-pulse 1.8s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.osd-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: var(--s-1) var(--s-2);
  border-radius: 4px;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: #04101F;
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-glow); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-2); }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 12, 15, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.brand { display: flex; align-items: center; gap: var(--s-2); }
.brand img { height: 38px; width: auto; }

.main-nav { display: flex; align-items: center; gap: var(--s-6); }
.nav-links { display: flex; align-items: center; gap: var(--s-5); }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: var(--s-4); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
}
.lang-switch a {
  padding: 5px 9px;
  border-radius: 4px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.lang-switch a.is-active { background: var(--bg-elevated-2); color: var(--accent-2); }
.lang-switch a:hover:not(.is-active) { color: var(--text-muted); }

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.phone-link:hover { border-color: var(--accent); color: var(--accent-2); }
.phone-link svg { width: 16px; height: 16px; flex: none; }

.header-cta { display: none; }
@media (min-width: 1080px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
@media (max-width: 1079px) {
  .nav-links, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .phone-link span.phone-text { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}
.mobile-drawer.is-open { visibility: visible; }
.mobile-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4,6,9,0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-drawer.is-open .mobile-drawer__scrim { opacity: 1; }
.mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(360px, 88vw);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-drawer__close {
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text);
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: var(--s-2); }
.mobile-drawer nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.mobile-drawer nav a.is-active { color: var(--accent-2); }
.mobile-drawer__footer { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-3); }
.mobile-drawer .lang-switch { align-self: flex-start; }

body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: var(--s-7) 0 var(--s-8); overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero { padding-top: var(--s-5); padding-bottom: var(--s-6); }
}

.hero h1 { margin-bottom: var(--s-4); }
.hero h1 .accent-text { color: var(--accent-2); }
.hero .lead { margin-bottom: var(--s-5); max-width: 46ch; }

.hero-badges { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-badge {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; }

/* Viewfinder / monitor frame — signature element */
.viewfinder {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 130% at 20% 15%, rgba(46,140,255,0.16), transparent 55%),
    linear-gradient(155deg, #12151B 0%, #0C0E12 60%, #0A0C0F 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.viewfinder__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 14.2857% 16.666%;
  opacity: 0.5;
}
.viewfinder__scan {
  position: absolute; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(46,140,255,0.09), transparent);
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0% { top: -120px; }
  100% { top: 100%; }
}
.viewfinder__mark {
  position: absolute; width: 34px; height: 34px;
  border-color: var(--accent-2);
  opacity: 0.85;
}
.viewfinder__mark.tl { top: 18px; left: 18px; border-top: 2px solid; border-left: 2px solid; }
.viewfinder__mark.tr { top: 18px; right: 18px; border-top: 2px solid; border-right: 2px solid; }
.viewfinder__mark.bl { bottom: 18px; left: 18px; border-bottom: 2px solid; border-left: 2px solid; }
.viewfinder__mark.br { bottom: 18px; right: 18px; border-bottom: 2px solid; border-right: 2px solid; }

.viewfinder__hud-top, .viewfinder__hud-bottom {
  position: absolute; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: rgba(237,239,242,0.75);
  text-transform: uppercase;
}
.viewfinder__hud-top { top: 18px; }
.viewfinder__hud-bottom { bottom: 18px; }
.viewfinder__hud-top .rec { display: flex; align-items: center; gap: 6px; color: var(--rec); }
.viewfinder__hud-top .rec::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec);
  animation: rec-pulse 1.6s ease-in-out infinite;
}

.viewfinder__center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.viewfinder__lens {
  width: 42%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 38% 32%, #2C6FCE 0%, #123055 32%, #060A10 72%);
  border: 1px solid rgba(99,179,255,0.35);
  box-shadow: 0 0 60px rgba(46,140,255,0.14), inset 0 0 40px rgba(0,0,0,0.6);
}
.viewfinder__lens::before {
  content: "";
  position: absolute; inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(99,179,255,0.3);
}
.viewfinder__lens::after {
  content: "";
  position: absolute; inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0) 45%), #05070A;
}

.viewfinder__caption {
  position: absolute; bottom: 46px; left: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint);
  display: flex; justify-content: space-between;
}

/* ---------- Stats / key advantages ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
}
.stat-strip__item {
  padding: var(--s-5) var(--s-4);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.stat-strip__item:last-child { border-right: none; }
.stat-strip__item svg { width: 22px; height: 22px; color: var(--accent-2); }
.stat-strip__item strong {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--text);
}
.stat-strip__item span { font-size: 0.87rem; color: var(--text-faint); line-height: 1.4; }

@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip__item { border-bottom: 1px solid var(--border); }
  .stat-strip__item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-strip__item:nth-child(even) { border-right: none; }
}
@media (max-width: 520px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip__item { border-right: none !important; }
}

/* ---------- Section headers ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: var(--s-6);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: var(--s-3); }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: var(--s-4);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  /* Collapsed two-column layouts sometimes carry a large inline column-gap
     (e.g. "gap:64px") meant for side-by-side columns; once stacked into a
     single column that same value becomes an oversized row-gap. Cap it. */
  .grid-2 { row-gap: 28px !important; }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: rgba(46,140,255,0.4); background: var(--bg-elevated-2); }
.card .card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(46,140,255,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.card .card-icon svg { width: 22px; height: 22px; color: var(--accent-2); }
.card h3 { margin-bottom: var(--s-2); }
.card p { font-size: 0.95rem; }
.card .osd-tag { margin-top: var(--s-4); display: inline-block; }

/* Service card with index (real sequence only where noted separately) */
.service-card { display: flex; flex-direction: column; height: 100%; }

/* ---------- Process steps (real ordered sequence) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}
@media (max-width: 780px) { .process { grid-template-columns: 1fr; } }
.process-step {
  position: relative;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}
.process-step__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  border: 1px solid var(--border);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.process-step h3 { margin-bottom: var(--s-2); }
.process-step p { font-size: 0.94rem; }
.process-connector {
  display: none;
}
@media (min-width: 781px) {
  .process { position: relative; }
}

/* ---------- Feature list (icon + text rows) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--border-soft);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.feature-row .icon svg { width: 21px; height: 21px; color: var(--accent-2); }
.feature-row h3 { margin-bottom: 6px; font-size: 1.1rem; }
.feature-row p { font-size: 0.95rem; }
.feature-row .note {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-6);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(46,140,255,0.14), transparent 55%),
    var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: var(--s-2); }
.cta-band p { max-width: 44ch; }
.cta-band__text { flex: 1 1 380px; }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--s-3); flex: 0 0 auto; }

@media (max-width: 640px) {
  .cta-band { padding: var(--s-6) var(--s-4); flex-direction: column; align-items: stretch; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
}

/* ---------- Testimony / trust strip (no invented reviews; used for coverage-area chips) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--border-soft);
}
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: var(--s-4);
  letter-spacing: 0.02em;
}
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--accent-2); }
.page-header h1 { max-width: 20ch; }
.page-header .lead { margin-top: var(--s-3); max-width: 56ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.contact-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: var(--s-5);
}
.contact-info-row {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 9px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-row .icon svg { width: 18px; height: 18px; color: var(--accent-2); }
.contact-info-row h3 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-row p, .contact-info-row a { font-size: 0.94rem; color: var(--text-muted); }
.contact-info-row a:hover { color: var(--accent-2); }
.contact-info-row .badge-emergency {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--rec);
  margin-top: 6px; letter-spacing: 0.04em;
}
.contact-info-row .badge-emergency::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rec);
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: var(--s-6);
}
@media (max-width: 560px) { .contact-form { padding: var(--s-4); } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field label .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #333A45; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%239AA2AE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-muted);
}
.field-check input {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none;
}
.field-check a { color: var(--accent-2); }
.field-check a:hover { text-decoration: underline; }

.field-error {
  display: none;
  font-size: 0.8rem;
  color: #FF7A6E;
  margin-top: 6px;
  font-family: var(--font-mono);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #FF5A4D; }
.field.has-error .field-error { display: block; }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(53,196,138,0.1); border: 1px solid rgba(53,196,138,0.35); color: #6FE0B2; }
.form-status.error { background: rgba(255,90,77,0.1); border: 1px solid rgba(255,90,77,0.35); color: #FF9186; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Map placeholder ---------- */
.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--s-5);
}
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--s-7) 0 var(--s-5);
  background: #08090C;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); } }

.footer-brand img { height: 46px; margin-bottom: var(--s-3); }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: var(--s-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-bottom .osd-tag { font-size: 0.7rem; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-8) 0;
}
.error-page .code {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
  white-space: normal;
}
.error-page h1 { margin-bottom: var(--s-3); }
.error-page p { max-width: 46ch; margin: 0 auto var(--s-5); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 76ch; }
.legal-content h2 { margin-top: var(--s-6); margin-bottom: var(--s-3); font-size: 1.3rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: var(--s-3); font-size: 0.98rem; }
.legal-content ul { margin: 0 0 var(--s-3); padding-left: 1.3em; list-style: disc; }
.legal-content li { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 8px; }
.legal-content strong { color: var(--text); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute;
  top: -50px; left: var(--s-3);
  background: var(--accent);
  color: #04101F;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 300;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--s-3); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
