:root {
  --bg: #0d1117;
  --panel: #161b22;
  --text: #e6edf3;
  --muted: #9da7b3;
  --primary: #1f6feb;
  --primary-hover: #388bfd;
  --border: #30363d;
  --max-width: 1100px;
}
* { box-sizing: border-box; }
html {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
main {
  flex: 1 0 auto;
  width: 100%;
}
.page-contact main {
  display: grid;
  align-content: center;
  justify-items: stretch;
  min-height: 0;
}
.page-contact .site-header {
  background: var(--bg);
  backdrop-filter: none;
}
.page-contact .contact-section {
  background: var(--bg);
}
.page-contact .contact-section.section {
  padding-block: clamp(1.5rem, 4vh, 3rem);
}
.page-contact .contact-section .container > h2 {
  margin-block: 0 0.5rem;
}
.page-contact .contact-section .container > p:not(.form-feedback) {
  margin-block: 0 1rem;
}
.page-contact .contact-section .contact-form {
  margin-top: 0;
}
.page-about .site-header {
  background: var(--bg);
  backdrop-filter: none;
}
.about-hero {
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #1d2940 0%, var(--bg) 58%);
}
.about-layout {
  width: 100%;
  max-width: 64rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}
.about-card {
  text-align: left;
}
.about-card h2 {
  margin-top: 0;
}
.about-disclaimer {
  width: 100%;
  max-width: 64rem;
  text-align: left;
}
.about-disclaimer h2 {
  margin-top: 0;
}
.page-home .site-header {
  background: var(--bg);
  backdrop-filter: none;
}
.page-home main > .section:not(:first-child) {
  border-top: 1px solid var(--border);
}
.page-home .section-alt {
  background: var(--bg);
}
.page-home .hero {
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #1d2940 0%, var(--bg) 58%);
}
.page-home .hero .hero-content {
  margin-inline: auto;
  max-width: 40rem;
  text-align: center;
}
.page-home .hero-actions {
  justify-content: center;
}
.page-home main .section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-home .section-intro {
  margin-inline: auto;
}
.page-home .cards {
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  margin-top: 1.2rem;
  grid-template-columns: 1fr;
  justify-items: stretch;
}
.page-home .docs-grid {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  margin-top: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.page-home #about .container > p {
  max-width: 36rem;
  width: 100%;
  margin-block: 0;
}
.page-home .card {
  text-align: center;
}
.page-home .site-footer .footer-content {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}
@media (max-width: 640px) {
  .page-home .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.container { width: min(var(--max-width), 92%); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; background: rgba(13, 17, 23, 0.9);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); z-index: 5;
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; flex-direction: column; }
.brand-link { text-decoration: none; color: inherit; }
.brand-link:hover .brand-mark { color: var(--primary-hover); }
.main-nav a[aria-current="page"] { color: var(--primary-hover); }
.brand-mark { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; }
.brand-subtitle { color: var(--muted); font-size: 0.85rem; }
.main-nav { display: flex; gap: 1rem; }
.main-nav a { color: var(--text); text-decoration: none; }
.main-nav a:hover { color: var(--primary-hover); }
.menu-toggle {
  display: none; border: 1px solid var(--border); background: transparent;
  color: var(--text); padding: 0.45rem 0.8rem; border-radius: 8px; cursor: pointer;
}
.hero { padding: 5rem 0; background: radial-gradient(circle at top right, #1d2940 0%, var(--bg) 55%); }
.hero-content { max-width: 760px; }
.eyebrow { color: var(--primary-hover); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.8rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { margin-top: 0; font-size: clamp(1.9rem, 5vw, 3rem); }
.hero-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; border-radius: 10px; padding: 0.7rem 1rem; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary-hover); }
.section { padding: 4rem 0; }
.section-alt { background: var(--panel); }
.section-intro { color: var(--muted); max-width: 650px; }
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.2rem; }
.card { border: 1px solid var(--border); border-radius: 12px; background: rgba(22, 27, 34, 0.5); padding: 1.1rem; }
.docs-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 1.2rem; }
.doc-link { border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); padding: 0.9rem; background: rgba(13, 17, 23, 0.5); }
.doc-link:hover { border-color: var(--primary-hover); }
.doc-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.doc-section .doc-photo-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.doc-section.docs-preview-active .doc-photo-layer {
  opacity: 1;
  transform: scale(1);
}
.doc-section > .container {
  position: relative;
  z-index: 1;
}
.doc-link--car-preview {
  position: relative;
  z-index: 2;
}
.contact-section { background: linear-gradient(180deg, var(--bg), #0a0d13); }
.contact-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-section .contact-form {
  width: min(560px, 100%);
  margin-top: 0.5rem;
  text-align: left;
}
.contact-form { display: grid; gap: 0.9rem; max-width: 560px; }
.contact-form label { display: grid; gap: 0.35rem; color: var(--muted); }
input, textarea {
  border-radius: 8px; border: 1px solid var(--border); background: #0d1117;
  color: var(--text); padding: 0.6rem 0.7rem; font: inherit;
}
input:focus, textarea:focus { outline: 1px solid var(--primary); border-color: var(--primary); }
.form-feedback { min-height: 1.2em; color: var(--primary-hover); }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.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;
}
.is-hidden { display: none !important; }
.products-section h1 { margin-top: 0; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 1.25rem;
}
.products-search { flex: 1 1 220px; min-width: 0; }
.filter-toggle {
  white-space: nowrap;
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}
.filter-toggle:hover {
  border-color: var(--primary-hover);
}
.filters-panel {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.5);
  padding: 1rem;
  margin: 0 0 1.25rem;
}
.filters-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  align-items: stretch;
}
.filter-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.45);
  padding: 0.7rem;
}
.practicality-block {
  justify-content: flex-start;
  min-height: 0;
}
.products-search input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font: inherit;
}
.products-search input:focus {
  outline: 1px solid var(--primary);
  border-color: var(--primary);
}
.products-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
}
.products-filter-label {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--muted);
}
.model-picker-toggle {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.model-picker-toggle:hover {
  border-color: var(--primary-hover);
}
.model-picker {
  margin-top: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1117;
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  overflow: hidden;
  height: min(56vh, 390px);
}
.model-picker-bases {
  border-right: 1px solid var(--border);
  display: grid;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
}
.model-base-option {
  border: 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.7);
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0.6rem 0.75rem;
  font: inherit;
  cursor: pointer;
}
.model-base-option:hover,
.model-base-option:focus-visible,
.model-base-option.is-active {
  color: var(--text);
  background: rgba(31, 111, 235, 0.14);
}
.model-picker-iterations {
  padding: 0.45rem;
  min-height: 0;
  overflow-y: auto;
}
.iteration-group {
  display: none;
  gap: 0.35rem;
}
.iteration-group.is-active {
  display: grid;
}
.model-picker-hint {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.model-iteration-option {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: left;
  padding: 0.5rem 0.65rem;
  font: inherit;
  cursor: pointer;
}
.model-iteration-option:hover,
.model-iteration-option:focus-visible {
  color: var(--text);
  border-color: var(--primary-hover);
}
.products-filter select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  font: inherit;
  cursor: pointer;
}
.products-empty {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.55);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.product-sku {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-hover);
}
.product-title { margin: 0; font-size: 1.05rem; }
.product-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.product-desc { margin: 0; flex: 1; font-size: 0.9rem; color: var(--text); }
.product-price { margin: 0.35rem 0 0; font-weight: 700; color: var(--text); }
.card-more { margin: 0.75rem 0 0; font-size: 0.9rem; }
.card-more a { color: var(--primary-hover); text-decoration: none; }
.card-more a:hover { text-decoration: underline; }
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .main-nav {
    display: none; position: absolute; right: 4%; top: 64px; flex-direction: column;
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
    padding: 0.8rem; min-width: 190px;
  }
  .main-nav.open { display: flex; }
  .model-picker {
    grid-template-columns: 1fr;
    height: min(60vh, 460px);
  }
  .model-picker-bases {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .filters-grid {
    grid-template-columns: 1fr;
  }
}