/* =============================================
   ДИГВИЗ — Military HUD Design System
   Инженерное бюро, Тюмень
   ============================================= */

/* === LOCAL FONTS (zero external requests) === */

/* Inter — body text */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — monospace/data */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Oswald — headings */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === DESIGN TOKENS === */
:root {
  /* Backgrounds */
  --bg-void: #000000;
  --bg-surface: #0a0f0a;
  --bg-panel: #0d140d;
  --bg-elevated: #111a11;
  --bg-hover: #162016;

  /* Accent: Orange (CTA, prices, active) */
  --accent: #ff6b35;
  --accent-hover: #ff8255;
  --accent-pressed: #e55a28;
  --accent-dim: rgba(255, 107, 53, 0.12);
  --accent-glow: rgba(255, 107, 53, 0.4);

  /* Green (HUD system indicators) */
  --green: #00ff66;
  --green-dim: rgba(0, 255, 102, 0.08);
  --green-glow: rgba(0, 255, 102, 0.3);
  --green-muted: #33aa55;

  /* Blue (secondary data) */
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.15);

  /* Text */
  --text-primary: #e0ffe0;
  --text-secondary: #88aa88;
  --text-muted: #446644;
  --text-dim: #2a4a2a;
  --text-inverse: #000000;

  /* Borders */
  --border: #1a331a;
  --border-bright: #2a552a;
  --border-accent: var(--accent);

  /* Signal */
  --signal-danger: #ef4444;
  --signal-success: #22c55e;

  /* Scanline */
  --scanline: rgba(0, 255, 102, 0.03);

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-py: 80px;
  --section-px: 48px;

  /* Transitions */
  --ease: 200ms ease;
  --ease-slow: 400ms ease;
}

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

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

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

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    var(--scanline) 2px, var(--scanline) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea { font-family: var(--font-mono); }

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

/* === SPLASH SCREEN === */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: scale(0.8);
  animation: splashFadeIn 0.4s ease-out 0.1s forwards;
}

.splash-dig {
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

.splash-viz {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.splash-line {
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  width: 0;
  animation: splashLine 0.6s ease-out 0.3s forwards;
}

.splash-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-top: 12px;
  opacity: 0;
  animation: splashFadeIn 0.3s ease-out 0.6s forwards;
}

@keyframes splashFadeIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes splashLine {
  to { width: 120px; }
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 10, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px var(--section-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--green-glow);
}

.nav-logo span {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.nav-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green-glow);
  animation: blink 2s infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--ease);
}

.nav-links a:hover {
  color: var(--green);
  text-shadow: 0 0 8px var(--green-glow);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  transition: all 0.3s;
}

.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === TAG (section marker) === */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--bg-void);
  background: var(--green);
  padding: 3px 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* === BUTTONS === */
.btn-hud {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: all var(--ease);
  position: relative;
}

.btn-hud--primary {
  background: var(--accent-dim);
}

.btn-hud:hover {
  background: var(--accent-dim);
  text-shadow: 0 0 10px var(--accent-glow);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.15);
}

.btn-hud:active {
  transform: scale(0.98);
}

.btn-hud--full {
  width: 100%;
  justify-content: center;
}

.btn-hud svg {
  transition: transform var(--ease);
}

.btn-hud:hover svg {
  transform: translateX(3px);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
}

/* Spline 3D scenes — shared base with CSS fallback */
.spline-scene {
  background:
    radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

.spline-scene.spline-loaded {
  background: none;
}


.spline-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
}

.accent-word {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.9), 0 0 32px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.5);
}

.hero-left {
  max-width: 380px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 220px;
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 2s forwards;
}

.hero-scroll-hint svg {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes fadeInUp {
  to { opacity: 0.5; }
}

/* === HUD PANELS === */
.hud-panel {
  background: rgba(10, 15, 10, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  padding: 16px 18px;
  position: relative;
  transition: border-color var(--ease);
}

.hud-panel::before {
  content: attr(data-id);
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.hud-panel:hover {
  border-color: var(--border-bright);
}

.hud-panel-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 15px var(--green-glow);
  line-height: 1;
}

.hud-panel-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* === HUD BARS === */
.hud-bar {
  width: 100%;
  height: 2px;
  background: var(--border);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  box-shadow: 0 0 6px var(--green-glow);
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hud-bar--accent .hud-bar-fill {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.hud-bar--white .hud-bar-fill {
  background: var(--text-primary);
  box-shadow: none;
}

.hud-bar--dim .hud-bar-fill {
  background: var(--text-secondary);
  box-shadow: none;
}

.hud-bar--blue .hud-bar-fill {
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue-dim);
}

.hud-bar--green .hud-bar-fill {
  background: var(--green-muted);
}

/* === STATS SECTION === */
.stats {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.stats-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.stats-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}

.feature-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Progress Stats */
.progress-stat {
  margin-bottom: 32px;
}

.progress-stat-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.progress-stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.progress-stat-percent {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-secondary);
}

.progress-stat-text {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.progress-stat-text strong {
  color: var(--text-primary);
}

.progress-stat-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-stat-info {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* === SERVICES SECTION === */
.services {
  padding: var(--section-py) 0;
  background: var(--bg-void);
}

.services-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all var(--ease);
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.service-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-elevated);
}

.service-card:hover::after {
  width: 100%;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.service-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.service-card-desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.service-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.check-box {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-bright);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.check-box::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 4px var(--green-glow);
}

.service-card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.service-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Mobile accordion (hidden on desktop) */
.services-accordion {
  display: none;
}

.services-cta {
  text-align: center;
  margin-top: 48px;
}

/* === CALCULATOR === */
.calculator {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.calc-container {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 32px;
  margin-top: 32px;
  min-height: 500px;
}

/* Progress */
.calc-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.calc-progress-step {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--ease);
}

.calc-progress-step.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.calc-progress-step.done {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.calc-progress-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  position: relative;
}

.calc-progress-line-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width var(--ease-slow);
}

/* Steps */
.calc-steps {
  position: relative;
  overflow: hidden;
}

.calc-step {
  display: none;
  animation: calcFadeIn 0.3s ease;
}

.calc-step.active {
  display: block;
}

@keyframes calcFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.calc-step-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  text-align: center;
}

.calc-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--ease);
}

.calc-back-btn:hover {
  color: var(--accent);
}

/* Step 1: Type grid */
.calc-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.calc-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  border: 2px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--ease);
}

.calc-type-btn svg {
  stroke: var(--text-muted);
  transition: stroke var(--ease);
}

.calc-type-btn span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-type-btn:hover {
  border-color: var(--border-bright);
  background: var(--bg-hover);
}

.calc-type-btn:hover svg {
  stroke: var(--accent);
}

.calc-type-btn.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.calc-type-btn.selected svg {
  stroke: var(--accent);
}

.calc-type-btn.selected span {
  color: var(--accent);
}

/* Step 2: Area slider */
.calc-area-display {
  text-align: center;
  margin-bottom: 24px;
}

.calc-area-value {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.calc-area-unit {
  font-size: 20px;
  color: var(--text-muted);
  margin-left: 4px;
}

.calc-slider-wrap {
  max-width: 500px;
  margin: 0 auto 32px;
}

.calc-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  cursor: pointer;
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  border-radius: 0;
  cursor: pointer;
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.calc-next-btn {
  display: block;
  margin: 0 auto;
}

/* Step 3: Services checkboxes */
.calc-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 32px;
}

.calc-service-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 2px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--ease);
}

.calc-service-check:hover {
  border-color: var(--border-bright);
}

.calc-service-check input {
  display: none;
}

.calc-check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--ease);
}

.calc-service-check input:checked ~ .calc-check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.calc-service-check input:checked ~ .calc-check-box::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--bg-void);
}

.calc-service-check input:checked ~ span:last-child {
  color: var(--accent);
}

.calc-service-check svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
  transition: stroke var(--ease);
}

.calc-service-check input:checked ~ svg {
  stroke: var(--accent);
}

.calc-service-check span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--ease);
}

.calc-services-next:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Step 4: Result + Form */
.calc-result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.calc-cost-panel {
  background: var(--bg-void);
  border: 1px solid var(--border);
  padding: 28px;
}

.calc-cost-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calc-cost-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.calc-cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-cost-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.calc-cost-row .hud-bar {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.calc-cost-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.calc-low-budget {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--signal-danger);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 16px;
}

/* Form */
.calc-form-panel {
  padding: 8px 0;
}

.calc-form-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-input-group {
  position: relative;
}

.calc-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-void);
  color: var(--text-primary);
  font-size: 13px;
  border: 1px solid var(--border);
  outline: none;
  transition: border-color var(--ease);
}

.calc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.calc-input::placeholder {
  color: var(--text-dim);
}

.calc-input-error {
  display: none;
  font-size: 10px;
  color: var(--signal-danger);
  margin-top: 4px;
}

.calc-input-group.error .calc-input {
  border-color: var(--signal-danger);
}

.calc-input-group.error .calc-input-error {
  display: block;
}

/* Urgency radios */
.calc-urgency {
  margin-top: 8px;
}

.calc-urgency-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calc-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 0;
  cursor: pointer;
}

.calc-radio input {
  display: none;
}

.calc-radio-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--ease);
}

.calc-radio input:checked + .calc-radio-dot {
  border-color: var(--accent);
}

.calc-radio input:checked + .calc-radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent-glow);
}

/* Step 5: Success */
.calc-success {
  text-align: center;
  padding: 60px 20px;
  background: var(--accent);
  margin: -32px;
  min-height: 436px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calc-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.calc-success-icon svg {
  stroke: var(--accent);
}

.calc-success-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.calc-success-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.calc-timer {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 32px;
  letter-spacing: 0.1em;
}

/* === FOOTER === */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: var(--section-py) 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-slogan {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--ease);
}

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

.footer-contact {
  margin-bottom: 16px;
}

.footer-contact-role {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-contact p {
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-contact a {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--ease);
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* === ANIMATION CLASSES === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-px: 32px;
  }

  .hero-content {
    flex-direction: column;
    gap: 32px;
    padding: 0 32px;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-right {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .hud-panel {
    flex: 1;
    padding: 14px;
  }

  .hud-panel-number {
    font-size: 30px;
  }

  .stats-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .calc-result-layout {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-px: 20px;
    --section-py: 60px;
  }

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px var(--section-px);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-status {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 80px 0 40px;
  }

  .spline-hero {
    display: none;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-right {
    flex-direction: column;
    gap: 10px;
  }

  .hud-panel {
    padding: 14px 16px;
  }

  .hud-panel-number {
    font-size: 28px;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Services */
  .cards-grid {
    display: none;
  }

  .services-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
  }

  .accordion-item {
    border: 1px solid var(--border);
    background: var(--bg-panel);
  }

  .accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .accordion-trigger-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .accordion-trigger-left .service-icon {
    width: 20px;
    height: 20px;
  }

  .accordion-chevron {
    stroke: var(--accent);
    transition: transform 0.3s;
  }

  .accordion-trigger[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
  }

  .accordion-body {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--border);
  }

  .accordion-body .service-card-sub {
    margin-top: 12px;
  }

  .accordion-item.open .accordion-body {
    display: block;
  }

  /* Calculator */
  .calc-container {
    padding: 20px;
  }

  .calc-type-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .calc-type-btn {
    padding: 20px 12px;
  }

  .calc-type-btn svg {
    width: 24px;
    height: 24px;
  }

  .calc-services-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-area-value {
    font-size: 48px;
  }

  .calc-step-title {
    font-size: 22px;
  }

  .calc-result-layout {
    grid-template-columns: 1fr;
  }

  .calc-cost-value {
    font-size: 22px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* Stats */
  .progress-stat-number {
    font-size: 36px;
  }

  .progress-stat-header {
    flex-wrap: wrap;
  }
}
