@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700&family=Rubik:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #15803d;
  --color-primary-dark: #14532d;
  --color-on-primary: #ffffff;
  --color-secondary: #22c55e;
  --color-accent: #0369a1;
  --color-accent-dark: #075985;
  --color-background: #f6faf7;
  --color-surface: #ffffff;
  --color-foreground: #14241c;
  --color-muted-foreground: #4b5b52;
  --color-muted: #eef3ef;
  --color-border: #d8e3db;
  --color-night: #0e1512;
  --color-night-soft: #16201b;
  --color-on-night: #eef5f0;
  --color-on-night-muted: #aebcb3;
  --color-destructive: #b91c1c;
  --color-ring: #15803d;
  --font-heading: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 36, 28, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 36, 28, 0.10);
  --shadow-lg: 0 18px 48px rgba(20, 36, 28, 0.16);
  --maxw: 1200px;
  --header-h: 68px;
  --z-header: 100;
  --z-overlay: 400;
  --z-cookie: 600;
  --z-toast: 800;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-foreground);
  background-color: var(--color-background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.18;
  margin: 0 0 var(--space-4);
  color: var(--color-foreground);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h4 { font-size: 1.05rem; }

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

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

a:hover { text-decoration: underline; }

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

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

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

.section {
  padding-block: var(--space-7);
}

.section-tight {
  padding-block: var(--space-6);
}

.section-night {
  background: var(--color-night);
  color: var(--color-on-night);
}

.section-night h1,
.section-night h2,
.section-night h3 {
  color: var(--color-on-night);
}

.section-muted {
  background: var(--color-muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-night .eyebrow {
  color: var(--color-secondary);
}

.lead {
  font-size: 1.12rem;
  color: var(--color-muted-foreground);
  max-width: 62ch;
}

.section-night .lead {
  color: var(--color-on-night-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 160ms ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--color-accent-dark);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.section-night .btn-outline {
  color: var(--color-on-night);
  border-color: rgba(238, 245, 240, 0.5);
}

.section-night .btn-outline:hover {
  background: var(--color-on-night);
  color: var(--color-night);
}

.btn-ghost {
  background: var(--color-muted);
  color: var(--color-foreground);
}

.btn-ghost:hover {
  background: var(--color-border);
}

.btn-block {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-foreground);
}

.brand:hover { text-decoration: none; }

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-name { white-space: nowrap; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-2);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-foreground);
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 0.96rem;
}

.main-nav a:hover {
  background: var(--color-muted);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-muted);
}

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-foreground);
}

.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.hero {
  position: relative;
  color: var(--color-on-night);
  background-color: var(--color-night);
  background-image:
    linear-gradient(180deg, rgba(14, 21, 18, 0.55), rgba(14, 21, 18, 0.80)),
    var(--hero-img, none),
    radial-gradient(120% 120% at 15% 10%, rgba(34, 197, 94, 0.30), rgba(34, 197, 94, 0) 55%),
    radial-gradient(120% 120% at 85% 90%, rgba(3, 105, 161, 0.40), rgba(3, 105, 161, 0) 55%),
    linear-gradient(135deg, #15803d 0%, #0e3a2a 45%, #075985 100%);
  background-size: cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
}

.hero-inner {
  padding-block: clamp(var(--space-7), 12vw, 120px);
  max-width: 720px;
}

.hero h1 { color: var(--color-on-night); }

.hero .lead { color: var(--color-on-night-muted); }

.hero .btn-outline {
  color: var(--color-on-night);
  border-color: rgba(238, 245, 240, 0.55);
}

.hero .btn-outline:hover {
  background: var(--color-on-night);
  color: var(--color-night);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.section-head {
  max-width: 64ch;
  margin-bottom: var(--space-6);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card .media {
  aspect-ratio: 4 / 5;
  background: var(--color-muted);
  overflow: hidden;
}

.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  flex: 1;
}

.product-theme {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary);
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.product-title a { color: var(--color-foreground); }
.product-title a:hover { color: var(--color-primary); text-decoration: none; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.88rem;
  color: var(--color-muted-foreground);
}

.price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-foreground);
}

.product-body .btn { margin-top: auto; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  border: 1px solid var(--color-border);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.feature-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-muted);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.feature-card .ico svg { width: 26px; height: 26px; }

.split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-muted);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 160px;
  flex: 1;
}

.filter-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted-foreground);
}

select,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground);
}

textarea { min-height: 120px; resize: vertical; padding-top: var(--space-3); }

select:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--color-ring);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.filter-result-count {
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-4);
}

.no-results {
  display: none;
  padding: var(--space-6);
  text-align: center;
  background: var(--color-muted);
  border-radius: var(--radius-md);
  color: var(--color-muted-foreground);
}

.detail-gallery {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.detail-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-muted);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.detail-main img { width: 100%; height: 100%; object-fit: cover; }

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.detail-thumbs .thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-muted);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
}

.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-layout {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-weight: 600;
  font-family: var(--font-heading);
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-2);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-list .k { color: var(--color-muted-foreground); }
.spec-list .v { font-weight: 600; text-align: right; }

.prose > * { max-width: 72ch; }
.prose h2 { margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }

.table-wrap { overflow-x: auto; margin-bottom: var(--space-5); }

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

table.data th,
table.data td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-variant-numeric: tabular-nums;
}

table.data th {
  background: var(--color-muted);
  font-family: var(--font-heading);
  font-weight: 600;
}

table.data tr:last-child td { border-bottom: none; }

.prevnext {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.prevnext a {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-foreground);
  background: var(--color-surface);
  max-width: 48%;
}

.prevnext a:hover { border-color: var(--color-primary); text-decoration: none; }
.prevnext .lbl { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted-foreground); }
.prevnext .next { text-align: right; align-items: flex-end; margin-left: auto; }

.breadcrumb {
  font-size: 0.88rem;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-4);
}

.breadcrumb a { color: var(--color-muted-foreground); }
.breadcrumb a:hover { color: var(--color-primary); }

.form-grid {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
}

.field .hint {
  font-size: 0.82rem;
  color: var(--color-muted-foreground);
}

.req { color: var(--color-destructive); }

.consent-line {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

.consent-line input { width: 20px; height: 20px; min-height: 20px; margin-top: 3px; flex: none; }

.form-status {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: #e7f6ed;
  border: 1px solid var(--color-secondary);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.form-status.is-visible { display: block; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-muted-foreground);
  border-bottom: 2px solid var(--color-muted-foreground);
  transform: rotate(45deg);
  transition: transform 200ms ease;
  flex: none;
}

.faq-item[open] summary::after { transform: rotate(-135deg); }

.faq-item .faq-body { padding: 0 var(--space-4) var(--space-4); color: var(--color-muted-foreground); }

.palette {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.swatch {
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.06);
}

.site-footer {
  background: var(--color-night);
  color: var(--color-on-night-muted);
  padding-block: var(--space-7) var(--space-5);
}

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

.footer-brand .brand { color: var(--color-on-night); }
.footer-brand p { color: var(--color-on-night-muted); max-width: 40ch; }

.footer-col h4 {
  color: var(--color-on-night);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--color-on-night-muted); }
.footer-col a:hover { color: var(--color-on-night); }

.footer-bottom {
  border-top: 1px solid rgba(174, 188, 179, 0.2);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--color-on-night-muted); }

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(20, 36, 28, 0.12);
  transform: translateY(110%);
  transition: transform 280ms ease;
}

.cookie-bar.is-open { transform: translateY(0); }

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
}

.cookie-text { flex: 1; min-width: 240px; font-size: 0.92rem; color: var(--color-muted-foreground); margin: 0; }
.cookie-text strong { color: var(--color-foreground); }

.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cookie-actions .btn { min-height: 44px; padding: 0 var(--space-4); font-size: 0.92rem; }

.cookie-prefs {
  display: none;
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-4);
}

.cookie-prefs.is-open { display: block; }

.pref-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.pref-row:last-of-type { border-bottom: none; }
.pref-row .meta { flex: 1; }
.pref-row .meta strong { font-family: var(--font-heading); }
.pref-row .meta p { margin: 2px 0 0; font-size: 0.86rem; color: var(--color-muted-foreground); }
.pref-row input[type="checkbox"] { width: 22px; height: 22px; margin-top: 4px; flex: none; }
.pref-always { font-size: 0.82rem; color: var(--color-primary); font-weight: 600; margin-top: 4px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: var(--z-toast);
  background: var(--color-night);
  color: var(--color-on-night);
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.interest-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  margin-top: var(--space-4);
}

.interest-count { font-weight: 700; color: var(--color-primary); }

.note {
  background: var(--color-muted);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-5);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}

.stat .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-primary);
  display: block;
}

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.testimonial .who { font-weight: 700; font-family: var(--font-heading); margin-top: var(--space-3); }

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

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .palette { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-5); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-surface);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 280ms ease, visibility 280ms ease;
    z-index: var(--z-overlay);
    padding: var(--space-4);
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: var(--space-1); }
  .main-nav a { width: 100%; min-height: 52px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
