:root {
  --ink: #17191e;
  --muted: #5b6270;
  --bg: #fbfaf8;
  --card: #ffffff;
  --line: #ebe7e1;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-soft: #fff1e8;
  --accent-line: #fdd5bd;
  --marker: #ffd9c0;
  --ok: #16a34a;
  --bad: #dc2626;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

.wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; }

/* Первый экран */
.hero { padding: 28px 0 8px; }
.pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px;
  padding: 10px 14px; font-size: 15px; font-weight: 700; line-height: 1.3;
}
.pill::before {
  content: ""; flex: 0 0 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(234, 88, 12, .15);
}
h1 {
  margin: 20px 4px 22px; font-size: clamp(25px, 4.6vw, 34px); line-height: 1.22;
  font-weight: 800; letter-spacing: -.015em;
}
h1 mark {
  color: inherit; background: linear-gradient(transparent 8%, var(--marker) 8%, var(--marker) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 4px;
}

.benefits { display: grid; gap: 10px; }
.benefit {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(30, 24, 16, .05);
}
.benefit-icon {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 11px; color: var(--accent-dark);
}
.benefit-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.benefit strong { display: block; font-size: 16px; line-height: 1.3; margin: 1px 0 3px; }
.benefit span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.45; }

.quiz-intro { margin: 22px 4px 0; font-size: 16px; line-height: 1.45; }
.quiz-intro b {
  display: inline-block; background: var(--accent); color: #fff; border-radius: 7px; padding: 1px 8px; margin: 0 2px;
}
.quiz-intro span { display: block; font-weight: 700; margin-top: 4px; }

/* Квиз */
.quiz-section { background: #f3f1ed; border-top: 1px solid var(--line); margin-top: 18px; padding: 26px 0 30px; }
.quiz {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: 16px; padding: 20px 20px 22px; box-shadow: 0 10px 30px rgba(30, 24, 16, .08);
}
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.quiz-bar { flex: 1; height: 6px; background: #eeebe6; border-radius: 6px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .3s ease; }
.quiz-step { font-size: 13px; color: var(--muted); white-space: nowrap; }
.quiz-body { transition: opacity .14s ease; }
.quiz-body.fade { opacity: 0; }
.quiz h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.3; font-weight: 800; }
.quiz-sub { margin: -6px 0 16px; color: var(--muted); font-size: 15px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; text-align: left;
  background: #faf9f7; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  cursor: pointer; font-size: 15.5px; line-height: 1.3; transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--accent-line); background: #fff; }
.option:focus-visible, .submit:focus-visible, .back:focus-visible, .field input:focus-visible { outline: 3px solid rgba(234, 88, 12, .35); outline-offset: 2px; }
.radio { flex: 0 0 20px; height: 20px; border: 2px solid var(--accent); border-radius: 50%; position: relative; }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option.selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.backline { margin-top: 14px; }
.back { background: none; border: 0; padding: 6px 0; color: var(--muted); cursor: pointer; font-size: 14.5px; }
.back:hover { color: var(--ink); }

.field { display: block; margin: 0 0 12px; }
.field-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%; height: 52px; border: 1px solid #ddd8d0; border-radius: 11px; padding: 0 14px; background: #fff; font-size: 17px;
}
.phone { display: flex; align-items: center; border: 1px solid #ddd8d0; border-radius: 11px; background: #fff; overflow: hidden; }
.phone b { padding: 0 4px 0 14px; font-weight: 600; }
.phone input { border: 0; height: 50px; padding-left: 4px; }
.phone input:focus-visible { outline: none; }
.phone:focus-within { outline: 3px solid rgba(234, 88, 12, .35); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin: 4px 0 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 18px; }
.submit-row { display: flex; align-items: center; gap: 16px; }
.submit {
  flex: 1; min-height: 54px; border: 0; border-radius: 12px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 17px; cursor: pointer; box-shadow: 0 8px 18px rgba(234, 88, 12, .28);
}
.submit:hover { background: var(--accent-dark); }
.submit:disabled { opacity: .6; cursor: default; }
.error { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 1px; }
.thanks { text-align: center; padding: 10px 4px 4px; }
.thanks .tick {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #e8f7ee; color: var(--ok);
  display: grid; place-items: center; font-size: 30px; font-weight: 800;
}
.thanks p { color: var(--muted); margin: 0 0 8px; }
.tg-link { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent-dark); }

/* Доказательства и оговорки */
.block { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px; }
.block h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.3; font-weight: 800; }
.proof a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.proof figcaption { font-size: 13.5px; color: var(--muted); margin: 8px 0 14px; line-height: 1.4; }
.proof table { width: 100%; border-collapse: collapse; font-size: 15px; }
.proof th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 0 6px 6px; border-bottom: 2px solid var(--ink); }
.proof td { padding: 9px 6px; border-bottom: 1px solid #f0ede8; }
.proof .r { text-align: right; white-space: nowrap; }
.proof tr:first-child td { font-weight: 700; background: var(--accent-soft); }
.proof .note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.notfit { border-left: 4px solid var(--bad); }
.notfit ul { list-style: none; margin: 0; padding: 0; }
.notfit li { position: relative; padding-left: 22px; margin: 0 0 9px; font-size: 15px; line-height: 1.45; }
.notfit li:last-child { margin-bottom: 0; }
.notfit li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }

.legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid #ddd8d0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.legal p { margin: 0 0 8px; }

.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; max-width: 560px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.cookie a { color: #ffb48a; }
.cookie button { flex: 0 0 auto; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; padding: 9px 14px; cursor: pointer; }

/* Страницы политики */
.doc { padding: 28px 0 40px; font-size: 15.5px; }
.doc h1 { font-size: 26px; margin: 0 0 18px; }
.doc h2 { font-size: 18px; margin: 24px 0 8px; }

@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .hero { padding-top: 16px; }
  .pill { font-size: 14px; }
  h1 { margin: 16px 2px 18px; }
  .benefit { padding: 12px 13px; gap: 12px; }
  .benefit-icon { flex-basis: 40px; height: 40px; }
  .options { grid-template-columns: 1fr; }
  .quiz { padding: 16px 14px 18px; }
  .quiz h2 { font-size: 18.5px; }
  .block { padding: 16px 14px 18px; }
  .submit-row { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .back { align-self: flex-start; }
}
