:root {
  color-scheme: light;
  --wine: #74204f;
  --wine-dark: #4f1235;
  --pink: #f8e8f0;
  --paper: #fffdfb;
  --ink: #261b22;
  --muted: #756871;
  --line: #eadde4;
  --green: #177a4b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #f9dfe9 0, transparent 32rem),
    linear-gradient(160deg, #fff9f7 0%, #f7edf2 100%);
  min-height: 100vh;
}
.shell { width: min(100% - 28px, 720px); margin: 0 auto; padding: 40px 0 28px; }
.hero { padding: 10px 6px 26px; }
.eyebrow { color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 12px 0 12px; font-family: Georgia, serif; font-size: clamp(34px, 9vw, 56px); line-height: .98; letter-spacing: -.04em; }
.hero p { max-width: 570px; color: var(--muted); line-height: 1.55; margin: 0; }
.card { background: rgba(255,255,255,.92); border: 1px solid rgba(116,32,79,.11); border-radius: 24px; padding: 22px; box-shadow: 0 24px 70px rgba(79,18,53,.12); }
.progress { height: 5px; background: var(--pink); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: var(--wine); transition: width .25s ease; }
.step-label { color: var(--muted); font-size: 13px; margin: 14px 0 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, h2 { font-family: Georgia, serif; font-size: 29px; font-weight: 700; margin-bottom: 18px; }
.step { display: none; }
.step.active { display: block; animation: enter .22s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.choice-grid, .brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice, .brand {
  border: 1px solid var(--line); background: var(--paper); border-radius: 15px;
  min-height: 64px; padding: 13px; text-align: left; color: var(--ink); font: inherit;
  font-weight: 650; cursor: pointer; transition: .18s ease;
}
.choice:hover, .brand:hover, .brand.selected { border-color: var(--wine); background: var(--pink); transform: translateY(-1px); }
.choice span { display: block; font-size: 21px; margin-bottom: 4px; }
.hint { color: var(--muted); margin: -8px 0 16px; }
.field { display: grid; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 700; }
input, select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 15px;
  font: inherit; color: var(--ink); background: #fff; outline: none;
}
input:focus, select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(116,32,79,.09); }
.optional-filters { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.optional-filters summary { color: var(--wine); font-weight: 750; cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
.primary, .secondary {
  width: 100%; border: 0; border-radius: 14px; padding: 15px 18px; margin-top: 18px;
  font: inherit; font-weight: 800; cursor: pointer;
}
.primary { background: var(--wine); color: white; }
.secondary { background: var(--ink); color: white; }
.back { border: 0; background: transparent; padding: 0; color: var(--wine); font-weight: 750; margin-bottom: 18px; cursor: pointer; }
.hidden { display: none !important; }
.loading { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; }
.loading small { color: var(--muted); }
.spinner { width: 38px; height: 38px; border: 3px solid var(--pink); border-top-color: var(--wine); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-kicker { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.result-note {
  color: var(--muted); background: #fff8e8; border: 1px solid #f0dfb4;
  border-radius: 13px; padding: 12px 14px; line-height: 1.45; margin: -7px 0 18px;
}
.product {
  display: grid; grid-template-columns: 92px 1fr; gap: 15px; padding: 15px 0;
  border-top: 1px solid var(--line);
}
.product.product-without-image { grid-template-columns: 1fr; }
.product img { width: 92px; height: 108px; object-fit: contain; background: white; border-radius: 12px; border: 1px solid var(--line); }
.product h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.35; }
.prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.current { font-size: 19px; font-weight: 850; }
.discount { color: var(--green); font-size: 12px; font-weight: 850; }
.deal-link { display: inline-block; color: var(--wine); font-weight: 800; margin-top: 10px; text-decoration: none; }
.alert-box { background: var(--pink); border-radius: 18px; padding: 18px; margin-top: 22px; }
.alert-box h3 { margin: 0 0 7px; }
.alert-box p { color: var(--muted); line-height: 1.45; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.35; }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.feedback { min-height: 20px; color: #a32b3c; font-size: 13px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 12px 0; }
@media (max-width: 480px) {
  .shell { width: min(100% - 18px, 720px); padding-top: 20px; }
  .card { padding: 18px; border-radius: 20px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
}
