/* Бренд из продюсерского пакета: тёмно-синий, белый, жёлтый акцент на цифрах.
   Верстаем от телефона: почти весь трафик приходит из вертикальных роликов. */
:root {
  --navy: #0f2140;
  --navy-soft: #17305c;
  --ink: #101828;
  --muted: #5b6577;
  --line: #e3e7ee;
  --yellow: #ffd233;
  --bg: #f6f8fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 33, 64, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: 28px; }
h2 { font-size: 23px; }
p { margin: 0 0 14px; }
a { color: #14418c; }
b, strong { font-weight: 700; }
.fine { font-size: 14px; color: var(--muted); }
.hint { font-size: 15px; color: var(--muted); margin-top: -6px; }
.lead { font-size: 18px; }

.btn {
  display: inline-block; width: 100%; padding: 16px 20px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; font: 600 17px/1.2 inherit; border-radius: var(--radius);
  text-align: center; text-decoration: none; transition: transform .06s ease, background .15s ease;
}
.btn:hover { background: #17305c; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- квиз ---------- */
.quiz-body { background: var(--navy); }
.quiz {
  max-width: 560px; margin: 0 auto; min-height: 100dvh; background: #fff;
  padding: 18px 20px 40px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.quiz-head { margin-bottom: 18px; }
.quiz-expert { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.quiz-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--yellow);
  display: grid; place-items: center; font-weight: 700; letter-spacing: .5px;
}
.quiz-name { font-weight: 700; }
.quiz-role { font-size: 13px; color: var(--muted); }
.quiz-progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .25s ease; }

.step { animation: in .2s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.options { display: grid; gap: 10px; margin: 16px 0; }
.opt {
  width: 100%; text-align: left; padding: 15px 16px; border: 2px solid var(--line); background: #fff;
  border-radius: var(--radius); font: 500 16px/1.3 inherit; color: var(--ink); cursor: pointer;
}
.opt:hover { border-color: #c9d2e2; }
.opt.on { border-color: var(--navy); background: #f2f6ff; }
.multi .opt.on::after { content: " ✓"; color: var(--navy); font-weight: 700; }

form label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
form input:not([type=checkbox]) {
  width: 100%; margin-top: 6px; padding: 14px 14px; border: 2px solid var(--line); border-radius: var(--radius);
  font: 16px/1.2 inherit; color: var(--ink); background: #fff;
}
form input:focus { outline: none; border-color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.check input { margin-top: 3px; width: 18px; height: 18px; }
.result { background: #f2f6ff; border-left: 4px solid var(--yellow); padding: 14px 16px; border-radius: 8px; }

/* ---------- лендинг ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.top { background: var(--navy); color: #fff; padding: 34px 0 40px; }
.top .wrap { display: grid; gap: 22px; }
.top h1 { font-size: 30px; }
.top p { color: #d7e0f0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.badge { background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.top .btn { background: var(--yellow); color: var(--navy); max-width: 340px; }
.top .btn:hover { background: #ffdc5c; }

section.block { padding: 34px 0; }
section.block:nth-child(even) { background: #fff; }
.cards { display: grid; gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
section.block:nth-child(even) .card { background: var(--bg); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.num { font-size: 26px; font-weight: 700; color: var(--navy); }
.num em { font-style: normal; background: var(--yellow); padding: 0 6px; border-radius: 4px; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before {
  counter-increment: s; content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.cta { background: var(--navy); color: #fff; text-align: center; }
.cta .btn { background: var(--yellow); color: var(--navy); max-width: 360px; margin: 0 auto; }
.foot { padding: 26px 0 40px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (min-width: 720px) {
  h1 { font-size: 38px; }
  .top h1 { font-size: 40px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .btn { width: auto; min-width: 260px; }
}

/* Фото юриста: лицо на первом экране и в шапке квиза — доверие в этой нише строится на человеке. */
.hero-photo { width: 100%; max-width: 300px; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
img.quiz-avatar { object-fit: cover; object-position: center 20%; }
@media (min-width: 720px) {
  .top .wrap { grid-template-columns: 1.35fr .85fr; align-items: center; }
  .hero-photo { max-width: 340px; justify-self: end; }
}
