/* Swaysbuddybord GameStation — Dark glassmorphism + data grid cards */
:root {
  --charcoal: #16181b;
  --charcoal-2: #1e2125;
  --charcoal-3: #272b30;
  --lime: #b6f23a;
  --lime-bright: #d2ff72;
  --amber: #ffb020;
  --white: #f4f6f2;
  --muted: #bcc1b8;
  --danger: #ff8a80;
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;
  --radius: 14px;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  background-color: var(--charcoal);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(182, 242, 58, 0.10), transparent 40%),
    radial-gradient(circle at 92% 18%, rgba(255, 176, 32, 0.08), transparent 36%),
    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: auto, auto, 40px 40px, 40px 40px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s3); overflow-wrap: anywhere; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--s3); }
img, svg { max-width: 100%; }

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: var(--lime-bright); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -100px;
  z-index: 200;
  padding: var(--s2) var(--s3);
  background: var(--lime);
  color: #111;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: var(--s2); color: #111; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s4); }

.section { padding: var(--s6) 0; }
.section-tight { padding-top: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: var(--s3);
  overflow-wrap: anywhere;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 68ch; }

/* Glass panel with neon gradient edge */
.glass {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(30, 33, 37, 0.82), rgba(30, 33, 37, 0.82)) padding-box,
    linear-gradient(135deg, rgba(182, 242, 58, 0.75), rgba(255, 255, 255, 0.07) 45%, rgba(255, 176, 32, 0.7)) border-box;
  color: var(--white);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: center;
}
.btn-primary { background: var(--lime); color: #111; border-color: var(--lime); }
.btn-primary:hover { background: var(--lime-bright); color: #111; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(182, 242, 58, 0.6); }
.btn-ghost:hover { background: rgba(182, 242, 58, 0.14); color: var(--white); }
.btn-compact { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s5); }
.button-row > * { min-width: 0; }

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  height: 60px;
  background: rgba(22, 24, 27, 0.94);
  color: var(--white);
  border-bottom: 1px solid rgba(182, 242, 58, 0.25);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s3);
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s4);
}
.header-inner > * { min-width: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.brand:hover { color: var(--lime); }
.brand-mark { flex-shrink: 0; }
.brand-name { overflow-wrap: anywhere; min-width: 0; line-height: 1.15; }

.primary-nav { justify-self: center; overflow-wrap: anywhere; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s4); align-items: center; }
.nav-list > li { min-width: 0; }
.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--s2) 0;
  border-bottom: 2px solid transparent;
  overflow-wrap: anywhere;
}
.nav-link:hover { color: var(--lime); border-bottom-color: var(--lime); }
.nav-link[aria-current="page"] { color: var(--lime); }
.nav-topic { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s2); justify-self: end; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid rgba(182, 242, 58, 0.5);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--white); color: var(--white); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { padding-top: var(--s6); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: 0; }
.hero-stat {
  display: flex; flex-direction: column; gap: 12px;
  padding: var(--s3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}
.hero-visual { padding: var(--s4); }
.rig-assembly { display: block; width: 100%; height: auto; }

/* Rig assembly animation */
.rig-part { animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); animation-fill-mode: both; }
.part-case { animation-name: rig-fade-scale; animation-delay: 0s; transform-box: fill-box; transform-origin: center; }
.part-board { animation-name: rig-from-left; animation-delay: 0.4s; }
.part-cpu { animation-name: rig-from-top; animation-delay: 0.8s; }
.part-ram { animation-name: rig-from-top; animation-delay: 1.1s; }
.part-ssd { animation-name: rig-from-left; animation-delay: 1.3s; }
.part-gpu { animation-name: rig-from-right; animation-delay: 1.5s; }
.part-psu { animation-name: rig-from-bottom; animation-delay: 1.8s; }
.part-fans { animation-name: rig-from-right; animation-delay: 2.1s; }
.part-led { animation-name: rig-glow; animation-delay: 2.5s; animation-duration: 1.2s; }
.part-status { animation-name: rig-from-bottom; animation-delay: 2.8s; }
.fan-rotor { transform-box: fill-box; transform-origin: center; animation: rig-fan-spin 1.4s linear 3s infinite; }

@keyframes rig-fade-scale { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes rig-from-left { from { opacity: 0; transform: translateX(-180px); } to { opacity: 1; transform: translateX(0); } }
@keyframes rig-from-right { from { opacity: 0; transform: translateX(180px); } to { opacity: 1; transform: translateX(0); } }
@keyframes rig-from-top { from { opacity: 0; transform: translateY(-160px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rig-from-bottom { from { opacity: 0; transform: translateY(140px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rig-glow { 0% { opacity: 0; } 40% { opacity: 1; } 60% { opacity: 0.4; } 100% { opacity: 1; } }
@keyframes rig-fan-spin { to { transform: rotate(360deg); } }

/* Section head */
.section-head { max-width: 760px; margin-bottom: var(--s5); }
.section-head p { color: var(--muted); }

/* Data grid cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.card-grid > * { min-width: 0; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(30, 33, 37, 0.85), rgba(30, 33, 37, 0.85)) padding-box,
    linear-gradient(135deg, rgba(182, 242, 58, 0.7), rgba(255, 255, 255, 0.07) 50%, rgba(255, 176, 32, 0.6)) border-box;
  color: var(--white);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(182, 242, 58, 0.25); }
.card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  margin: 0;
  background: rgba(182, 242, 58, 0.07);
  color: var(--white);
  border-bottom: 1px solid rgba(182, 242, 58, 0.3);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--s3);
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.stat-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.card-body { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s4); flex: 1; }
.card-body > * { margin: 0; min-width: 0; }
.card-title { margin: 0; }
.card-link { margin-top: auto; font-weight: 700; color: var(--lime); text-decoration: none; }
.card-link:hover { color: var(--lime-bright); text-decoration: underline; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: var(--s1) 10px;
  border-radius: 999px;
  background: rgba(255, 176, 32, 0.12);
  color: #ffd27a;
  border: 1px solid rgba(255, 176, 32, 0.4);
}

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 2px; background: var(--lime); color: var(--white); }
.card .check-list { margin: 0; }

/* Calculator */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s4); align-items: start; }
.calc-layout > * { min-width: 0; }
.calc-form, .calc-result, .contact-form { padding: var(--s4); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
.form-grid > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.form-label { font-weight: 600; font-size: 0.9rem; }
.form-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--charcoal);
  color: var(--white);
}
.form-input:hover { border-color: rgba(182, 242, 58, 0.6); }
.form-input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.form-textarea { resize: vertical; min-height: 140px; }
.field-error { margin: 0; font-size: 0.85rem; color: var(--danger); }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--lime); }
.check-row input.is-invalid { outline: 2px solid var(--danger); outline-offset: 2px; }
.form-success {
  margin: var(--s4) 0 0;
  padding: var(--s3);
  border-radius: 10px;
  background: rgba(182, 242, 58, 0.12);
  color: var(--white);
  border: 1px solid rgba(182, 242, 58, 0.5);
}

.verdict {
  margin: 0 0 var(--s3);
  padding: var(--s3);
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.verdict.is-pass { background: rgba(182, 242, 58, 0.14); color: var(--lime-bright); border-color: var(--lime); }
.verdict.is-warn { background: rgba(255, 176, 32, 0.14); color: #ffd27a; border-color: var(--amber); }
.verdict.is-fail { background: rgba(255, 138, 128, 0.12); color: #ffb3ab; border-color: var(--danger); }
.calc-note { color: var(--muted); margin-bottom: var(--s4); }

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill.is-rec { background: var(--lime); color: #111; }
.status-pill.is-min { background: var(--amber); color: #111; }
.status-pill.is-below { background: var(--danger); color: #111; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; margin-bottom: var(--s4); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table caption { text-align: left; padding: var(--s3); font-weight: 700; color: var(--amber); caption-side: top; }
.spec-table th, .spec-table td { padding: 12px var(--s3); text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.spec-table th { background: var(--charcoal-3); color: var(--white); font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.spec-table tbody tr:hover { background: rgba(182, 242, 58, 0.05); color: var(--white); }
.spec-table tbody tr:last-child td { border-bottom: 0; }

/* Sub-pages */
.page-hero { padding-bottom: var(--s5); }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: var(--s4); overflow-wrap: anywhere; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--lime); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: var(--s5); padding-bottom: var(--s6); align-items: start; }
.article-layout > * { min-width: 0; }
.prose h2 { margin-top: var(--s5); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #dfe3db; }
.prose p { max-width: 72ch; }
.aside-panel { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.aside-title { margin: 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--amber); }
.aside-links { list-style: none; padding: 0; margin: 0 0 var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.aside-links a { color: var(--white); text-decoration: none; }
.aside-links a:hover { color: var(--lime); text-decoration: underline; }
.callout { padding: var(--s4); margin: var(--s4) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 800; color: var(--lime); }

.legal-wrap { padding-bottom: var(--s6); }
.legal-panel { padding: var(--s5); max-width: 880px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.contact-layout > * { min-width: 0; }
.contact-details { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.contact-panel { padding: var(--s4); }
.contact-heading { font-size: 1.3rem; }
.contact-address { font-style: normal; margin-bottom: var(--s3); line-height: 1.7; }
.map-block { padding: var(--s3); }
.map-street-grid {
  position: relative;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #1a1d20;
  color: var(--white);
  background-image:
    linear-gradient(rgba(182, 242, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 242, 58, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.map-road { position: absolute; background: #3a4047; color: var(--white); }
.map-road-h { left: 0; right: 0; height: 14px; }
.map-road-v { top: 0; bottom: 0; width: 14px; }
.map-road-1 { top: 30%; }
.map-road-2 { top: 72%; height: 10px; }
.map-road-3 { left: 28%; }
.map-road-4 { left: 70%; width: 10px; }
.map-park-area { position: absolute; left: 36%; top: 40%; width: 26%; height: 24%; border-radius: 8px; background: rgba(182, 242, 58, 0.18); color: var(--white); }
.map-pin { position: absolute; left: calc(70% - 11px); top: calc(30% - 38px); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.map-label { margin: var(--s3) 0 0; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid rgba(182, 242, 58, 0.25); background: #121416; color: var(--white); padding-top: var(--s6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); padding-bottom: var(--s5); }
.footer-grid > * { min-width: 0; }
.footer-text { color: var(--muted); margin-top: var(--s3); }
.footer-address { font-style: normal; color: var(--muted); font-size: 0.9rem; line-height: 1.7; overflow-wrap: anywhere; }
.footer-heading { font-size: 0.85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--lime); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: var(--s4); padding-bottom: 120px; font-size: 0.85rem; color: var(--muted); }
.footer-bottom p { overflow-wrap: anywhere; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--s3);
  right: var(--s3);
  bottom: var(--s3);
  z-index: 100;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--s4);
}
.cookie-content { display: flex; flex-direction: column; gap: var(--s3); }
.cookie-content > * { margin: 0; min-width: 0; }
.cookie-title { font-weight: 800; color: var(--lime); }
.cookie-text { color: #dfe3db; font-size: 0.92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cookie-prefs { display: flex; flex-direction: column; gap: 12px; padding: var(--s3); border-radius: 10px; background: rgba(0, 0, 0, 0.25); color: var(--white); }
.cookie-prefs .btn { align-self: flex-start; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .site-header { height: 50px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; padding: 0 var(--s3); }
  .brand { font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: var(--s3) var(--s4) var(--s4);
    background: rgba(22, 24, 27, 0.98);
    color: var(--white);
    border-bottom: 1px solid rgba(182, 242, 58, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-topic { display: block; }
  .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-link:hover { border-bottom-color: var(--lime); }
  .container { padding: 0 var(--s3); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .legal-panel { padding: var(--s4); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .card:hover { transform: none; }
}

@media (max-width: 399px) {
  body { font-size: 15px; }
  .brand { font-size: 0.9rem; gap: 6px; }
  .brand-mark { width: 24px; height: 24px; }
  .header-actions { gap: 6px; }
  .btn-compact { padding: 6px 10px; font-size: 0.8rem; }
  .nav-toggle { width: 36px; height: 36px; padding: 9px 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .calc-form, .calc-result, .contact-form, .contact-panel, .aside-panel, .legal-panel, .card-body, .callout, .cookie-banner { padding: var(--s3); }
  .hero-visual { padding: var(--s3); }
  .stat-value { font-size: 1rem; }
  .card-stats { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .stat:last-child { border-bottom: 0; }
  .cookie-banner { left: var(--s2); right: var(--s2); bottom: var(--s2); }
  .map-street-grid { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}