:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --alt: #ebe7dd;
  --text: #1f2421;
  --muted: #5d655f;
  --accent: #d9622b;
  --accent-dark: #b44c1c;
  --dark: #1f2a24;
  --border: #ddd8cc;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
a { color: var(--accent-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.alt { background: var(--alt); }
.section > h2, .section .wrap > h2 { font-size: 1.8rem; }
.lead { color: var(--muted); margin: 0 0 24px; }

.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 10; }
.nav { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.logo { color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: .5px; }
.nav nav a { color: #e8e4da; text-decoration: none; margin-left: 18px; font-size: .95rem; }

.hero { background: var(--dark); color: #fff; padding: 72px 0 80px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 14ch; }
.hero p { max-width: 56ch; color: #d7d3c8; font-size: 1.1rem; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn-big { padding: 14px 26px; font-size: 1.1rem; margin-top: 12px; }
.btn-small { padding: 6px 12px; font-size: .85rem; white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.calc .fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.calc label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; gap: 4px; }
.calc input, .calc select, .signup-form input {
  font: inherit; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
fieldset { border: 1px solid var(--border); border-radius: 8px; margin: 0 0 16px; padding: 12px; }
legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check { font-weight: 400 !important; flex-direction: row !important; align-items: center; gap: 6px !important; }

.results { margin-top: 16px; }
.result-list, .product-list { list-style: none; padding: 0; margin: 0; }
.result-list li, .product-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.result-list li:last-child, .product-list li:last-child { border-bottom: 0; }
.result-list small, .product-list small { display: block; color: var(--muted); font-size: .85rem; }

.kit { display: flex; flex-direction: column; }
.kit ul { padding-left: 18px; margin: 8px 0 16px; flex: 1; }
.kit-for { color: var(--muted); margin: 0; font-size: .9rem; }
.price { font-weight: 700; margin: 0 0 12px; }

.category summary { cursor: pointer; list-style: none; }
.category summary::-webkit-details-marker { display: none; }
.category summary p { color: var(--muted); margin: 0; }
.category[open] summary { margin-bottom: 8px; }

.signup { text-align: center; }
.signup .lead { margin-left: auto; margin-right: auto; max-width: 52ch; }
.signup-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.signup-form input[type="email"] { min-width: 240px; }
.signup-form input[name="zip"] { width: 120px; }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--alt); }
.hero .btn-ghost { color: #fff; border-color: #5d655f; margin-left: 8px; }
.hero .btn-ghost:hover { background: #2c3a32; }

.quiz { max-width: 640px; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.quiz legend { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; padding: 0; }
.quiz select { font: inherit; padding: 10px; border: 1px solid var(--border); border-radius: 8px; width: 100%; max-width: 360px; }
.quiz .fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.quiz .fields label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; gap: 4px; }
.quiz .fields input { font: inherit; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; }
.quiz-progress { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: #fdf1ea; }
.quiz-nav { display: flex; justify-content: space-between; }
.error { color: #b3261e; font-size: .9rem; margin: 8px 0 0; }

#result h3 { margin-top: 28px; }
.risks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.risk { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; }
.risk strong { display: block; }
.risk span { color: var(--muted); font-size: .9rem; }
.small-note { color: var(--muted); font-size: .85rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }

.site-footer { background: var(--dark); color: #bdb8ac; padding: 32px 0; font-size: .85rem; }
.site-footer strong { color: #fff; }

@media (max-width: 600px) {
  .nav nav a { margin-left: 12px; font-size: .85rem; }
  .hero { padding: 48px 0 56px; }
}
