/* ============================================================
   АВАРИЙНЫЙ КОМИССАР — Main Stylesheet
   Modern emergency service theme
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700;900&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors */
  --color-primary:       #0D1B2A;
  --color-primary-light: #1a2744;
  --color-primary-mid:   #243554;
  --color-accent:        #FF6B35;
  --color-accent-hover:  #e85a22;
  --color-accent-light:  #fff0ea;
  --color-whatsapp:      #25D366;
  --color-whatsapp-hover:#1dbc57;
  --color-white:         #ffffff;
  --color-off-white:     #f8fafc;
  --color-light:         #eef2f7;
  --color-muted:         #64748b;
  --color-text:          #1e293b;
  --color-text-light:    #475569;
  --color-border:        #e2e8f0;
  --color-overlay:       rgba(13, 27, 42, 0.85);

  /* Typography */
  --font-body:           'Inter', 'Roboto', sans-serif;
  --font-heading:        'Inter', 'Roboto', sans-serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-hero: 8rem;

  /* Sizing */
  --container-max:  1200px;
  --container-wide: 1400px;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      20px;
  --radius-pill:    9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.08);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.2);
  --shadow-accent: 0 8px 30px rgba(255, 107, 53, 0.35);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Header */
  --header-height: 70px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-accent-hover); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary);
}

p { line-height: 1.7; color: var(--color-text-light); }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section-title span {
  color: var(--color-accent);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85em 1.75em;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background: transparent;
  color: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-lg {
  padding: 1em 2.25em;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* Phone icon SVG inline */
.btn .icon-phone::before {
  content: '📞';
  font-size: 1em;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: all var(--transition-normal);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  width: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover { opacity: 0.9; }

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.site-nav a:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.header-phone {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4em;
  transition: color var(--transition-fast);
}

.header-phone:hover { color: var(--color-accent); }

.header-phone::before {
  content: '📞';
  font-size: 0.9em;
}

.header-btn {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5em 1.2em;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.header-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-toggle:hover { background: rgba(255,255,255,0.1); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-primary);
  z-index: 999;
  flex-direction: column;
  padding: var(--space-xl);
  gap: var(--space-sm);
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.85em 1em;
  border-radius: var(--radius-md);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: all var(--transition-fast);
}

.mobile-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
  padding-left: 1.5em;
}

.mobile-nav .mobile-cta {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.section-hero {
  position: relative;
  background: var(--color-primary);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-hero) 0;
}

/* Grid background pattern */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 39, 68, 0.8) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

/* Emergency light animation */
.hero-emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-xl);
}

.emergency-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--color-accent);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--color-accent);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* Trust badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 0.45em 1em;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: all var(--transition-normal);
}

.trust-badge:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.trust-badge-icon {
  font-size: 1em;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.section-services {
  padding: var(--space-4xl) 0;
  background: var(--color-off-white);
  position: relative;
}

.section-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent 60%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg), 0 0 0 0 transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--color-accent);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section-steps {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
  overflow: hidden;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(25% / 2 + 36px);
  right: calc(25% / 2 + 36px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-light), var(--color-accent));
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-white);
  margin: 0 auto var(--space-lg);
  border: 4px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-primary), var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.step-number .step-num {
  font-size: 0.85rem;
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  border: 2px solid var(--color-white);
}

.step-item:hover .step-number {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent), var(--shadow-lg);
  transform: scale(1.08);
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ============================================================
   DISTRICTS SECTION
   ============================================================ */
.section-districts {
  padding: var(--space-4xl) 0;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.section-districts::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.section-districts .section-title,
.section-districts .section-desc {
  color: var(--color-white);
}

.section-districts .section-tag {
  background: rgba(255,107,53,0.2);
  color: var(--color-accent);
}

.section-districts .section-desc {
  color: rgba(255,255,255,0.65);
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.district-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
}

.district-card:hover {
  background: rgba(255,107,53,0.1);
  border-color: rgba(255,107,53,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.district-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.district-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.district-detail {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.section-faq {
  padding: var(--space-4xl) 0;
  background: var(--color-off-white);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(255,107,53,0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--color-off-white);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.faq-item.open .faq-icon {
  background: var(--color-accent);
  color: var(--color-white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: 0.975rem;
  color: var(--color-text-light);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.section-cta .section-title,
.cta-desc {
  position: relative;
  z-index: 1;
}

.section-cta .section-title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  position: relative;
  z-index: 1;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.2em;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: #060e18;
  color: rgba(255,255,255,0.6);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  margin-bottom: var(--space-lg);
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.footer-logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.footer-contact a:hover { color: var(--color-accent); }

.footer-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.footer-links a::before {
  content: '→';
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover { color: var(--color-accent); }

/* ============================================================
   CONTENT PAGES
   ============================================================ */
.page-hero {
  background: var(--color-primary);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}

.page-content {
  padding: var(--space-4xl) 0;
}

.content-prose {
  max-width: 780px;
  margin: 0 auto;
}

.content-prose h2 {
  font-size: 1.6rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-prose h3 {
  font-size: 1.25rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.content-prose p {
  margin-bottom: var(--space-md);
}

.content-prose ul, .content-prose ol {
  list-style: revert;
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.content-prose li { margin-bottom: var(--space-sm); }

/* Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 2rem;
}

.post-card-body {
  padding: var(--space-xl);
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--color-accent); }

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 404 */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.error-404-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* ============================================================
   SKIP LINK & ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 0.5em 1em;
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus { top: 0; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */
.wp-block-image { margin: var(--space-xl) 0; }
.alignleft { float: left; margin-right: var(--space-xl); margin-bottom: var(--space-md); }
.alignright { float: right; margin-left: var(--space-xl); margin-bottom: var(--space-md); }
.aligncenter { text-align: center; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --header-height: 65px; }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .steps-grid::before { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --space-hero: 4rem;
    --space-4xl: 4rem;
  }

  .container { padding: 0 var(--space-lg); }

  /* Header */
  .site-nav { display: none; }

  .header-phone { display: none; }

  .header-btn {
    display: none;
  }

  .nav-toggle { display: flex; }

  /* Hero */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    display: flex;
    gap: var(--space-lg);
    text-align: left;
  }

  .step-number { margin: 0; flex-shrink: 0; }

  .step-content { padding-top: 8px; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Districts */
  .districts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Stats */
  .stats-bar {
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .hero-badges { flex-direction: column; align-items: flex-start; }
  .districts-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
