:root {
  /* Шрифты из системы устройства: сайт ничего не запрашивает у сторонних серверов */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #121110;
  --bg-2: #1b1917;
  --card: #1f1c1a;
  --line: #34302c;
  --text: #f1ece4;
  --muted: #a89f93;
  --gold: #c9a268;
  --gold-2: #e0bd85;
  --ink: #161412;
  --danger: #d9534f;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #2a231b 0%, var(--bg) 60%) fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

#app { display: flex; justify-content: center; }

.phone {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  padding: 0 0 env(safe-area-inset-bottom);
}

.screen { padding: 20px 20px 36px; animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .1px; }
h1 { font-size: 32px; line-height: 1.12; margin: 14px 0 14px; }
h2 { font-size: 27px; line-height: 1.15; margin: 8px 0 14px; }
h2 span { display: block; }
h3 { font-size: 19px; margin: 26px 0 8px; color: var(--gold-2); }

.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.lead { color: #ddd5c9; margin: 0 0 14px; }
.lead strong { color: var(--gold-2); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* start */
.hero-photo {
  height: 230px;
  margin: -20px -20px 14px;
  background: linear-gradient(to bottom, rgba(18,17,16,0) 55%, var(--bg) 100%), url("assets/vitalij.jpg") 60% 18% / cover no-repeat;
}
.start-note { margin: 18px 0 0; }
.start-note b { color: var(--text); font-weight: 600; }
.disclaimer { margin-top: 22px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* buttons */
.btn {
  display: block; width: 100%;
  appearance: none; border: 0; cursor: pointer; text-align: center; text-decoration: none;
  background: var(--gold); color: var(--ink);
  font: 600 16px/1.25 var(--sans);
  padding: 16px 18px; border-radius: 14px;
  margin-top: 18px;
  transition: transform .12s ease, background .2s ease;
}
.btn:hover { background: var(--gold-2); }
.btn:active { transform: scale(.985); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--bg-2); }
.btn.is-hidden { display: none; }
.btn.disabled { background: #50483c; color: #8c8272; cursor: not-allowed; }

/* quiz */
.progress { display: flex; gap: 4px; margin-bottom: 14px; }
.seg { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.seg.done { background: var(--gold); }
.seg.now { background: var(--gold-2); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.counter { font-size: 12px; letter-spacing: 1.4px; color: var(--gold); margin: 0; }
.back {
  appearance: none; background: none; border: 0; color: var(--muted); font: 500 13px var(--sans);
  cursor: pointer; padding: 4px 0;
}
.back:hover { color: var(--text); }
.question { font-family: var(--serif); font-size: 23px; line-height: 1.28; margin: 12px 0 22px; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  appearance: none; text-align: left; cursor: pointer;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  font: 500 15.5px/1.3 var(--sans);
  padding: 14px 16px;
  transition: border-color .15s ease, background .15s ease;
}
.option:hover { border-color: #5a5147; }
.option.selected { border-color: var(--gold); background: #2a2218; }
.option-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: #2d2924; color: var(--gold-2); font-size: 12.5px; font-weight: 600;
}
.option.selected .option-num { background: var(--gold); color: var(--ink); }
.hint { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }

/* map */
.map { margin: 22px 0 6px; display: flex; flex-direction: column; gap: 15px; }
.bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 6px; }
.bar-top strong { font-weight: 600; }
.bar-top .score { color: var(--gold-2); font-weight: 600; flex: 0 0 auto; }
.bar-top .short { color: var(--muted); }
.bar-shell { height: 9px; border-radius: 9px; background: var(--bg-2); overflow: hidden; border: 1px solid #2a2622; }
.bar-fill { height: 100%; border-radius: 9px; width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.adult-summary {
  margin-top: 22px; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); font-size: 14.5px; color: #ddd5c9;
}
.adult-summary strong { color: var(--gold-2); display: block; margin-bottom: 4px; }

/* detail */
.area-note { margin: 0 0 6px; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--bg-2); border-radius: 0 12px 12px 0; font-size: 14.5px; color: #ddd5c9; }
.scenario-detail p { margin: 0 0 13px; color: #e6dfd4; }
.step {
  margin: 22px 0 6px; padding: 16px; border-radius: var(--radius);
  background: #2a2218; border: 1px solid #4a3b26; color: #f0e4d0;
}
.safety { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid #5a2b2a; background: #231716; color: #ecd2cf; font-size: 14.5px; }

/* offer */
.offer { margin-top: 34px; padding-top: 6px; border-top: 1px solid var(--line); }
.product-card {
  margin-top: 22px; padding: 22px 18px; border-radius: 20px;
  background: linear-gradient(160deg, #2a2218 0%, #1d1a17 70%);
  border: 1px solid #4a3b26;
}
.product-kicker { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.product-title { font-family: var(--serif); font-size: 25px; line-height: 1.15; margin: 8px 0 8px; }
.product-meta { color: var(--gold-2); font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.product-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.product-list li { position: relative; padding-left: 26px; color: #e6dfd4; font-size: 15px; }
.product-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.author {
  display: flex; gap: 14px; align-items: center; margin-top: 24px;
}
.author-photo {
  flex: 0 0 76px; height: 76px; border-radius: 50%;
  /* лицо по центру круга, голова меньше и видны плечи: центр лица на фото около (1125, 260) из 1672x941 при ширине 215px */
  background: url("assets/vitalij.jpg") -107px -3px / 215px auto no-repeat; border: 1px solid var(--line);
}
.author p { margin: 0; font-size: 14px; color: #d3cabd; }
.author b { color: var(--text); }

.footer { margin-top: 28px; color: var(--muted); font-size: 12px; line-height: 1.45; }

@media (min-width: 560px) {
  body { padding: 28px 0; }
  .phone { min-height: 0; border-radius: 28px; border: 1px solid var(--line); background: rgba(18,17,16,.88); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
}

/* тип вопроса и вопрос-зеркало */
.kind { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.mirror {
  margin: 22px 0 6px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--text);
}
.mirror span {
  display: block; margin-bottom: 8px; font: 600 11.5px var(--sans);
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold);
}
.question { margin-top: 10px; }

/* правда, о которой обычно молчат */
.truth {
  margin: 22px 0 6px; padding: 16px 18px; border-radius: var(--radius);
  background: #231716; border: 1px solid #5a2b2a; color: #f1e2df;
  font-size: 16px; line-height: 1.5;
}
.truth span {
  display: block; margin-bottom: 8px; font: 600 11.5px var(--sans);
  letter-spacing: 1.6px; text-transform: uppercase; color: #e0705a;
}

/* форма заявки */
.lead { margin-top: 18px; padding-top: 4px; }
.lead-title { font-family: var(--serif); font-size: 20px; margin: 6px 0 12px; color: var(--text); }
.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.field > span i { font-weight: 400; color: var(--muted); font-style: normal; }
.field small { display: block; color: var(--muted); font-size: 12px; margin: -2px 0 5px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); font: 16px/1.3 var(--sans);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; font-size: 13px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.consent a { color: var(--gold-2); }
.lead-error { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #231716; border: 1px solid #5a2b2a; color: #f1c9c4; font-size: 13.5px; }
.lead-error a { color: var(--gold-2); }
.lead-ok { margin-top: 18px; padding: 18px; border-radius: 14px; background: #162319; border: 1px solid #2f5a3a; color: #dff3e4; }
.lead-ok b { display: block; font-size: 17px; margin-bottom: 4px; }
.lead-ok p { margin: 0; }
.btn:disabled { opacity: .6; cursor: wait; }

/* атрибут hidden должен скрывать элемент, даже если у него задан display */
[hidden] { display: none !important; }

.cta-hint { margin: 10px 2px 0; font-size: 13px; color: var(--muted); text-align: center; }
