/* =========================================================
   Buddyboardtinkers — GameStation
   Aesthetic: Dark glassmorphism · Card: Data grid
   Spacing scale: 4, 8, 16, 24, 40, 64
   ========================================================= */

:root {
  --black: #07070b;
  --graphite: #16161d;
  --graphite-2: #1f1f29;
  --purple: #b56cff;
  --purple-light: #d4b3ff;
  --purple-deep: #7c3aed;
  --orange: #ff7a1a;
  --orange-light: #ff9a4d;
  --text: #ecebf5;
  --muted: #b3b2c6;
  --line: rgba(181, 108, 255, 0.28);
  --glass: rgba(22, 22, 32, 0.62);
  --radius: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --edge-gradient-neon: linear-gradient(135deg, rgba(181, 108, 255, 0.9), rgba(255, 122, 26, 0.6) 50%, rgba(181, 108, 255, 0.15));
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(255, 122, 26, 0.12), transparent 60%),
    linear-gradient(rgba(181, 108, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(181, 108, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--black);
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--space-3);
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  color: #ffffff;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 var(--space-3); }

a { color: var(--purple-light); text-underline-offset: 3px; }
a:hover { color: #ffffff; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.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(--space-3);
  top: var(--space-2);
  z-index: 200;
  padding: var(--space-2) var(--space-3);
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); color: var(--black); }

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

.eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  overflow-wrap: anywhere;
}

.lede { font-size: 1.12rem; color: var(--muted); max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px var(--space-4);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.35);
}
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--orange-light); color: var(--black); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(124, 58, 237, 0.16);
  color: var(--text);
  border-color: rgba(181, 108, 255, 0.55);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--purple-deep); color: #ffffff; }
.btn--sm { padding: 8px var(--space-3); font-size: 0.85rem; }

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-light);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { background: transparent; color: #ffffff; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(7, 7, 11, 0.92);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header__inner {
  max-width: 1200px;
  height: 60px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.site-header__inner > * { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.brand:hover { color: #ffffff; }
.brand__mark { flex: 0 0 auto; }
.brand__text { min-width: 0; overflow-wrap: anywhere; }
.brand__accent { color: var(--purple); }

.site-nav { min-width: 0; overflow-wrap: anywhere; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list li { min-width: 0; }
.site-nav a {
  display: block;
  padding: var(--space-2) 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav a:hover { background: rgba(124, 58, 237, 0.25); color: #ffffff; }
.site-nav a[aria-current="page"] { background: rgba(124, 58, 237, 0.3); color: #ffffff; box-shadow: inset 0 -2px 0 var(--orange); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--graphite);
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) and (max-width: 1080px) {
  .site-header__inner { padding: 0 var(--space-3); gap: var(--space-2); }
  .brand { font-size: 0.92rem; }
  .site-nav a { padding: var(--space-2) 6px; font-size: 0.78rem; }
}

/* ---------- Glass & cards ---------- */
.glass,
.card {
  position: relative;
  background: var(--glass);
  color: var(--text);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.glass::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--edge-gradient-neon);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.card-grid > * { min-width: 0; }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(124, 58, 237, 0.35); }
.card > * { min-width: 0; margin: 0; }

.card__stats {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 84px), 1fr));
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: var(--space-3);
  background: rgba(7, 7, 11, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat__value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--orange);
  overflow-wrap: anywhere;
}
.stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--graphite-2), #2a1a4a);
}
.card__title { font-size: 1.2rem; }
.card__text { color: var(--muted); }
.card__cta {
  align-self: flex-start;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.card__cta:hover { color: var(--orange-light); text-decoration: underline; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag {
  padding: var(--space-1) 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  color: #e8dcff;
  border: 1px solid rgba(181, 108, 255, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head p { color: var(--muted); }
.content-section { margin-top: var(--space-6); }
main > .container:last-child { padding-bottom: var(--space-6); }

/* ---------- Hero ---------- */
.hero { padding: var(--space-6) 0; }
.hero__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}
.hero__grid > * { min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); }
.hero__readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 3D rotating rig ---------- */
.rig-wrap { container-type: inline-size; width: min(100%, 440px); margin: 0 auto; }
.rig {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 260cqw;
  background: radial-gradient(circle at 50% 60%, rgba(124, 58, 237, 0.28), transparent 62%);
  border-radius: 50%;
}
.rig__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(-28deg);
  animation: rig-spin 28s linear infinite;
}
@keyframes rig-spin {
  from { transform: rotateX(-14deg) rotateY(0deg); }
  to { transform: rotateX(-14deg) rotateY(360deg); }
}
.rig__stage > div { position: absolute; left: 50%; top: 50%; }

.rig__desk {
  width: 72cqw;
  height: 40cqw;
  transform: translate(-50%, -50%) translateY(17cqw) rotateX(90deg);
  background:
    linear-gradient(rgba(181, 108, 255, 0.25) 1px, transparent 1px) 0 0 / 4cqw 4cqw,
    linear-gradient(90deg, rgba(181, 108, 255, 0.25) 1px, transparent 1px) 0 0 / 4cqw 4cqw,
    linear-gradient(135deg, #1f1f29, #101018);
  border: 1px solid rgba(181, 108, 255, 0.6);
  border-radius: 2cqw;
  box-shadow: 0 0 6cqw rgba(124, 58, 237, 0.45);
}
.rig__monitor {
  width: 46cqw;
  height: 28cqw;
  padding: 1.5cqw;
  transform: translate(-50%, -50%) translateY(-3cqw) translateZ(-8cqw);
  background: #0c0c12;
  border: 0.8cqw solid #2a2a36;
  border-radius: 1.5cqw;
  box-shadow: 0 0 6cqw rgba(181, 108, 255, 0.55);
  backface-visibility: hidden;
}
.rig__monitor-back {
  width: 46cqw;
  height: 28cqw;
  transform: translate(-50%, -50%) translateY(-3cqw) translateZ(-8.4cqw) rotateY(180deg);
  background: linear-gradient(160deg, #2a2a36, #16161d);
  border-radius: 1.5cqw;
  backface-visibility: hidden;
}
.rig__screen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.2cqw;
  height: 100%;
}
.screen-tile {
  border-radius: 1cqw;
  background: linear-gradient(135deg, var(--purple-deep), #2a1a4a);
  animation: tile-pulse 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.screen-tile:nth-child(even) { background: linear-gradient(135deg, var(--orange), #5a2a0a); }
@keyframes tile-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}
.rig__monitor-stand {
  width: 4cqw;
  height: 6cqw;
  transform: translate(-50%, -50%) translateY(14cqw) translateZ(-8cqw);
  background: linear-gradient(#3a3a48, #22222c);
  border-radius: 0.6cqw;
}
.rig__tower {
  width: 12cqw;
  height: 24cqw;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) translate3d(28cqw, 5cqw, -4cqw);
}
.rig__face {
  position: absolute;
  left: 0;
  top: 0;
  width: 12cqw;
  height: 24cqw;
  background: linear-gradient(180deg, #22222c, #121218);
  border: 1px solid rgba(181, 108, 255, 0.5);
}
.rig__face--front {
  transform: translateZ(6cqw);
  background:
    linear-gradient(180deg, transparent 20%, rgba(255, 122, 26, 0.9) 20%, rgba(255, 122, 26, 0.9) 22%, transparent 22%),
    radial-gradient(circle at 50% 45%, rgba(181, 108, 255, 0.9) 0 18%, transparent 20%),
    radial-gradient(circle at 50% 75%, rgba(181, 108, 255, 0.6) 0 16%, transparent 18%),
    linear-gradient(180deg, #22222c, #121218);
}
.rig__face--back { transform: rotateY(180deg) translateZ(6cqw); }
.rig__face--left { transform: rotateY(-90deg) translateZ(6cqw); }
.rig__face--right {
  transform: rotateY(90deg) translateZ(6cqw);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(255, 122, 26, 0.35)), #121218;
}
.rig__keyboard {
  width: 30cqw;
  height: 9cqw;
  transform: translate(-50%, -50%) translateY(16.6cqw) translateZ(8cqw) rotateX(90deg);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 2cqw 3cqw,
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 2cqw 3cqw,
    linear-gradient(90deg, var(--purple-deep), var(--orange));
  border-radius: 1cqw;
  box-shadow: 0 0 4cqw rgba(255, 122, 26, 0.5);
}
.rig__pad {
  width: 14cqw;
  transform: translate(-50%, -50%) translate3d(-24cqw, 16.6cqw, 9cqw) rotateX(90deg) rotateZ(18deg);
}
.rig__pad svg { width: 100%; height: auto; display: block; }

.rig__orbit {
  inset: 0;
  left: 0 !important;
  top: 0 !important;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: orbit-spin 18s linear infinite reverse;
}
@keyframes orbit-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.orbit-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14cqw;
  height: 18cqw;
  transform: translate(-50%, -50%) rotateY(calc(var(--i) * 60deg)) translateZ(34cqw) translateY(-16cqw);
}
.orbit-tile__face {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.5cqw;
  border-radius: 2cqw;
  color: #ffffff;
  font-size: 3cqw;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 4cqw rgba(181, 108, 255, 0.6);
  animation: tile-bob 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.5s);
}
.orbit-tile__face span { background: rgba(7, 7, 11, 0.7); color: #ffffff; padding: 0.4cqw 1.2cqw; border-radius: 1cqw; }
.orbit-tile__face--rpg { background: linear-gradient(160deg, #7c3aed, #2a1a4a); color: #ffffff; }
.orbit-tile__face--fps { background: linear-gradient(160deg, #ff7a1a, #5a2a0a); color: #ffffff; }
.orbit-tile__face--race { background: linear-gradient(160deg, #b56cff, #ff7a1a); color: #ffffff; }
.orbit-tile__face--coop { background: linear-gradient(160deg, #3b2a66, #7c3aed); color: #ffffff; }
.orbit-tile__face--indie { background: linear-gradient(160deg, #ff9a4d, #7c3aed); color: #ffffff; }
.orbit-tile__face--sim { background: linear-gradient(160deg, #1f1f29, #b56cff); color: #ffffff; }
@keyframes tile-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2cqw); }
}

/* ---------- Finder ---------- */
.finder { padding: var(--space-5); }
.finder__controls { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
.finder__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.finder__legend {
  margin-bottom: var(--space-3);
  padding: 0;
  font-weight: 700;
  color: #ffffff;
}
.chip-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(22, 22, 32, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { background: rgba(124, 58, 237, 0.4); color: #ffffff; }
.chip[aria-pressed="true"] {
  background: var(--purple-deep);
  color: #ffffff;
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.55);
}
.finder__status { margin-bottom: var(--space-4); }
.finder__count { font-size: 1.1rem; margin-bottom: var(--space-2); }
.finder__count-value { font-weight: 800; color: var(--orange); }
.finder__note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.finder__empty { color: var(--muted); }

/* Finder results: stacked row-style list, one card after another */
.card-grid--compact {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}
.card-grid--compact .card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  grid-template-areas:
    "title stats"
    "text  stats"
    "tags  stats";
  grid-template-rows: auto auto 1fr;
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  align-items: start;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--orange);
}
.card-grid--compact .card:hover { transform: translateX(4px); }
.card-grid--compact .card__title { grid-area: title; font-size: 1.05rem; }
.card-grid--compact .card__text { grid-area: text; }
.card-grid--compact .tag-list { grid-area: tags; }
.card-grid--compact .card__stats {
  grid-area: stats;
  align-self: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-grid--compact .stat { padding: 10px 12px; gap: 6px; }
.card-grid--compact .stat__value { font-size: 0.95rem; }

@media (max-width: 767px) {
  .card-grid--compact .card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "text"
      "tags"
      "stats";
    grid-template-rows: auto;
    row-gap: var(--space-3);
  }
  .card-grid--compact .card__stats { align-self: stretch; }
}

/* ---------- Page hero & content ---------- */
.page-hero { padding: var(--space-6) 0 0; }
.page-hero__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
}
.page-hero__grid > * { min-width: 0; }
.page-hero__panel { padding: var(--space-4); }
.breadcrumb { margin-bottom: var(--space-3); font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.breadcrumb span { color: var(--muted); }

.prose { max-width: 800px; }
.prose h2 { margin-bottom: var(--space-3); }
.content-intro { max-width: 800px; color: var(--muted); margin-bottom: var(--space-4); }
.content-note { margin-top: var(--space-4); color: var(--muted); }
.content-muted { color: var(--muted); font-size: 0.9rem; }

.check-list,
.number-list { margin: 0 0 var(--space-3); padding-left: var(--space-4); }
.check-list li,
.number-list li { margin-bottom: var(--space-2); }
.check-list li::marker { color: var(--orange); }
.check-list--cons li::marker { color: var(--purple); }

.proscons {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.proscons > * { min-width: 0; }
.panel { padding: var(--space-4); }
.panel h3 { margin-bottom: var(--space-3); }
.panel .check-list + .check-list { margin-top: var(--space-4); }

.table-wrap { overflow-x: auto; padding: var(--space-2); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th,
.data-table td {
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table thead th { background: rgba(124, 58, 237, 0.24); color: #ffffff; }
.data-table tbody th { color: var(--orange); font-weight: 700; }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

.legal { padding-bottom: var(--space-2); }
.legal__section { margin-top: var(--space-5); }
.legal__section:first-child { margin-top: var(--space-5); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  margin-top: var(--space-5);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-form-panel { padding: var(--space-5); }
.contact-aside { display: grid; gap: var(--space-4); }
.contact-aside > * { min-width: 0; }
.contact-form { display: grid; gap: var(--space-4); }

.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field__label { font-weight: 700; color: #ffffff; }
.field__input {
  width: 100%;
  padding: 12px var(--space-3);
  font: inherit;
  color: var(--text);
  background: rgba(7, 7, 11, 0.85);
  border: 1px solid rgba(181, 108, 255, 0.45);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input:hover { border-color: var(--purple); }
.field__input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--orange); }
select.field__input option { background: var(--graphite); color: var(--text); }
.field__check { display: flex; gap: 12px; align-items: flex-start; }
.field__check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--purple-deep); flex: 0 0 auto; }
.field__error { display: none; margin: 0; font-size: 0.88rem; color: #ffb4b4; }
.field.is-invalid .field__input { border-color: #ff6b6b; box-shadow: 0 0 0 1px #ff6b6b; }
.field.is-invalid .field__error { display: block; }
.form-success {
  margin: 0;
  padding: var(--space-3);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.16);
  color: #d1fae5;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.map {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 55% 45%, rgba(124, 58, 237, 0.35), transparent 55%),
    linear-gradient(135deg, #111118, #1a1a24);
  color: var(--text);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map__streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin {
  position: absolute;
  left: 52%;
  top: 40%;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--orange);
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 0 0 8px rgba(255, 122, 26, 0.25), 0 0 24px rgba(255, 122, 26, 0.8);
}
.map__pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--black);
}
.map__label {
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  border-radius: 10px;
  background: rgba(7, 7, 11, 0.85);
  color: var(--text);
  border: 1px solid var(--line);
}
.map__label span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-6) 0 var(--space-4);
  background: rgba(7, 7, 11, 0.94);
  color: var(--text);
  border-top: 1px solid var(--line);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}
.site-footer__grid > * { min-width: 0; }
.site-footer__brand .brand { margin-bottom: var(--space-3); }
.site-footer__brand p { color: var(--muted); }
.site-footer__company { font-size: 0.9rem; overflow-wrap: anywhere; }
.site-footer__heading { font-size: 1rem; margin-bottom: var(--space-3); }
.site-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.site-footer__list a { color: var(--text); text-decoration: none; }
.site-footer__list a:hover { color: var(--orange); text-decoration: underline; }
.site-footer__list a[aria-current="page"] { color: var(--orange); }
.site-footer__bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.site-footer__bottom p { margin-bottom: var(--space-2); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 100;
  max-width: 960px;
  margin: 0 auto;
}
.cookie__inner {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.97);
  color: var(--text);
  border: 1px solid rgba(181, 108, 255, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 32px rgba(124, 58, 237, 0.3);
}
.cookie__title { font-size: 1.1rem; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cookie__prefs {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.cookie__option { display: flex; gap: 12px; align-items: flex-start; }
.cookie__option input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--purple-deep); flex: 0 0 auto; }
.cookie__prefs .btn { justify-self: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid,
  .page-hero__grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
}

@media (max-width: 767px) {
  .site-header__inner { height: 50px; padding: 0 var(--space-3); }
  .brand { font-size: 0.9rem; }
  .brand__mark { width: 26px; height: 26px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-3);
    background: rgba(14, 14, 20, 0.98);
    color: var(--text);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .site-nav a { padding: 12px var(--space-3); font-size: 1rem; white-space: normal; }
  .finder,
  .contact-form-panel { padding: var(--space-4); }
}

@media (max-width: 399px) {
  .container { padding: 0 var(--space-3); }
  .site-header__inner { padding: 0 12px; gap: var(--space-2); }
  .brand { font-size: 0.8rem; gap: 6px; }
  .btn--sm { padding: 6px 10px; font-size: 0.75rem; }
  .nav-toggle { width: 36px; height: 36px; }
  .card,
  .panel,
  .page-hero__panel { padding: var(--space-3); }
  .finder,
  .contact-form-panel { padding: var(--space-3); }
  .hero__actions .btn { width: 100%; }
  .cookie { left: var(--space-2); right: var(--space-2); bottom: var(--space-2); }
  .cookie__inner { padding: var(--space-3); }
  .data-table th,
  .data-table td { padding: 12px; }
  .card-grid--compact .card__stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 84px), 1fr)); }
}

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