:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #617080;
  --line: #d8e0e7;
  --soft: #f4f7f9;
  --accent: #1e5b78;
  --accent-dark: #16465d;
  --success: #1e6a4b;
  --warning-bg: #fff7df;
  --warning-line: #e9cb73;
  --error-bg: #fff0ef;
  --error: #9b2c24;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); line-height: 1.55; }
.shell { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.site-header { padding: 48px 0 38px; background: linear-gradient(135deg, #edf4f7, #f8fafb); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin-bottom: 12px; font-size: 1.35rem; }
.intro { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.main-content { padding-block: 36px 64px; }
.search-panel { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 35px rgba(31, 51, 67, .08); }
.example { color: var(--muted); }
.example-button { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
label { display: block; margin-bottom: 7px; font-weight: 700; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #aebbc5; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
input:focus { outline: 3px solid rgba(30, 91, 120, .18); border-color: var(--accent); }
button[type="submit"] { min-height: 48px; padding: 11px 20px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
button[type="submit"]:hover { background: var(--accent-dark); }
button:disabled { opacity: .62; cursor: wait; }
.help { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.optional-fields { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 18px; }
.notice { margin-top: 24px; padding: 18px 20px; border-radius: 10px; }
.loading { background: var(--soft); color: var(--accent); border: 1px solid var(--line); }
.error { background: var(--error-bg); color: var(--error); border: 1px solid #efb5b0; }
.follow-up { background: var(--warning-bg); border: 1px solid var(--warning-line); }
.follow-up h2 { margin-bottom: 5px; }
.follow-up p { margin-bottom: 0; }
#results { margin-top: 38px; }
#vehicle-overview { margin-top: 38px; }
.group-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.group-button { padding: 9px 13px; border: 1px solid #9eb1bd; border-radius: 999px; background: #fff; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.group-button:hover, .group-button:focus { border-color: var(--accent); background: #edf5f8; }
.vehicle-help { padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--soft); }
.back-button { margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent); font: inherit; font-weight: 750; cursor: pointer; }
.back-button:hover { background: #edf5f8; }
.selection-heading { margin: 32px 0 14px; border-bottom: 1px solid var(--line); }
.selection-heading h3 { margin-bottom: 3px; font-size: 1.15rem; }
.selection-heading p { color: var(--muted); }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.results-count { color: var(--muted); white-space: nowrap; }
.product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: stretch; }
.product-card { display: flex; flex-direction: column; min-height: 230px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-card h3 { margin-bottom: 4px; font-size: 1.15rem; }
.article-number { margin-bottom: 14px; color: var(--muted); font-size: .9rem; }
.facts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.warning { padding: 5px 9px; border-radius: 7px; background: var(--warning-bg); color: #755600; border: 1px solid var(--warning-line); font-size: .82rem; }
.price-badge { font-size: 1.08rem; font-weight: 750; }
.product-link { display: inline-block; align-self: flex-start; margin-top: auto; padding: 11px 18px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 750; text-decoration: none; }
.product-link:hover, .product-link:focus { background: var(--accent-dark); }
footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .85rem; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .site-header { padding-top: 34px; }
  .search-row { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .results-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  .shell { width: min(100% - 20px, 1080px); }
  .field-grid { grid-template-columns: 1fr; }
  .search-panel, .product-card { padding: 18px; }
}
