/* Шрифт лежит на самом сайте (корень сайта), без обращений к серверам Google */
@font-face {
  font-family: "Montserrat";
  src: url("Montserrat-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #000f6b;
  --navy-2: #0a1a85;
  --pink: #ff26be;
  --blue: #2b4bff;
  --violet: #a63be6;
  --green: #22bb4d;
  --green-text: #148a37;
  --white: #ffffff;
  --ink: #0b1030;
  --muted: #8f98d6;
  --grad: linear-gradient(135deg, #4a4cff, #a63be6);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { margin: 0 0 12px; font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(28px, 8vw, 40px); text-wrap: balance; }
h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(22px, 6vw, 30px); }
h3 { font-size: 22px; }
p { margin: 0 0 12px; }

.lead { color: #d6dbff; font-size: 17px; margin-bottom: 24px; }
.label { font-weight: 700; margin: 20px 0 8px; display: block; }
.muted { color: var(--muted); font-weight: 400; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--pink); margin-bottom: 6px; }

/* Экраны */
.screen { display: none; flex: 1; animation: fade .3s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Декор на старте */
.deco { width: 72px; margin-bottom: 20px; }

/* Прогресс */
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.progress[hidden] { display: none; }
.back {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: var(--white);
  font-size: 20px; cursor: pointer; flex: none;
}
.bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--pink); transition: width .3s ease; }
.count { font-size: 14px; color: #d6dbff; white-space: nowrap; }

/* Кнопки */
.btn {
  display: block; width: 100%; min-height: 52px; padding: 14px 20px;
  border: 0; border-radius: 14px; background: var(--grad); color: var(--white);
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Варианты ответов */
.options { display: grid; gap: 10px; margin-bottom: 16px; }
.option {
  min-height: 52px; padding: 14px 16px; text-align: left;
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 14px;
  background: rgba(255,255,255,.04); color: var(--white); font: inherit; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option:hover { border-color: var(--pink); }
.option.selected { border-color: var(--pink); background: rgba(255,38,190,.18); }

/* Автор */
.author { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.author p { margin: 0; font-size: 14px; color: #d6dbff; line-height: 1.4; }
.author strong { color: var(--white); }
.photo {
  width: 72px; height: 72px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Карточки (светлые) */
.card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 24px 20px; margin-bottom: 16px;
}
.card.accent { background: var(--blue); color: var(--white); }
.card .lead { color: #444b7a; }
.card .hint { color: #444b7a; margin: 16px 0 0; font-size: 15px; }

/* Форма */
.field {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1.5px solid #c9cdea; border-radius: 12px; background: #fff; color: var(--ink);
}
.field:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.options + .field { margin-bottom: 16px; }
.error { color: #d6168f; font-size: 14px; margin: 6px 0 0; }
.error[hidden] { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue); }
.card .btn { margin-top: 8px; }

/* Результат */
.score { font-size: 64px; font-weight: 800; line-height: 1; color: var(--blue); margin-bottom: 8px; }
.score small { font-size: 22px; color: #6b72a8; font-weight: 500; }
.risk { background: #fdeaf8; border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.risk p:last-child { margin: 0; font-weight: 700; }
.pilot { background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.card.accent .btn { background: var(--white); color: var(--blue); }

/* Карта зон */
.card h3 { color: var(--navy); }
.card.accent h3 { color: var(--white); }
.zones { list-style: none; margin: 16px 0 12px; padding: 0; display: grid; gap: 14px; }
.zone-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.zone-state { font-weight: 700; white-space: nowrap; }
.zone-track { height: 10px; border-radius: 5px; background: #e6e8f7; overflow: hidden; }
.zone-fill { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.weak .zone-fill, .dot.weak { background: var(--pink); }
.mid .zone-fill, .dot.mid { background: var(--violet); }
.strong .zone-fill, .dot.strong { background: var(--green); }
.weak .zone-state { color: #d6168f; }
.mid .zone-state { color: var(--violet); }
.strong .zone-state { color: var(--green-text); }
.legend { display: flex; gap: 16px; font-size: 13px; color: #444b7a; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.zone.is-risk .zone-head { color: #d6168f; }

/* Списки в карточках */
.list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 22px; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--pink);
}
.list.light li::before { background: var(--white); }
.steps { list-style: none; counter-reset: step; margin: 16px 0; padding: 0; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 40px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; margin-bottom: 2px; color: var(--navy); }
.label-sm { font-weight: 700; margin: 16px 0 0; }
.cta-note { text-align: center; font-size: 14px; color: #dfe4ff; margin: 12px 0 0; }
.author.on-accent { margin: 0 0 16px; }
.author.on-accent p { color: #dfe4ff; }

/* Баннер cookies */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
  max-width: 536px; margin: 0 auto; padding: 14px 16px;
  background: var(--white); color: var(--ink); border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35); font-size: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 10px; line-height: 1.45; }
.cookie a { color: var(--blue); }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btn {
  flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: var(--grad);
  color: var(--white); font: inherit; font-weight: 700; cursor: pointer;
}
.cookie-btn.ghost { background: #eef0fb; color: var(--ink); }

/* Подвал */
.footer {
  margin-top: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.footer a { color: var(--muted); }

@media (min-width: 700px) {
  .app { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .bar span, .btn { transition: none; }
}

