:root {
  --paper: #fbfbfc;
  --ink: #18202e;
  --muted: #586274;
  --line: #dde1e8;
  --navy: #1e2b47;
  --stamp: #5a3fb0;
  --stamp-tint: #efeaf9;
  --error: #b3261e;
  --radius-s: 6px;
  --radius-l: 14px;
  --wrap: 1080px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
}
img { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* --- шапка --- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.brand { font: 600 15px/1.2 var(--display); color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 18px; font-size: 15px; }

/* --- hero --- */
.hero { padding: 36px 0 28px; }
.hero h1 {
  font: 600 clamp(30px, 5.4vw, 58px)/1.05 var(--display);
  letter-spacing: -0.025em;
  color: var(--navy);
  max-width: 17ch;
  margin: 0 0 20px;
}
.hero .lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-s); border: 2px solid var(--navy);
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  background: var(--navy); color: #fff;
}
.btn:hover { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--stamp-tint); color: var(--navy); border-color: var(--navy); }

/* --- образец ответа: главный визуальный элемент --- */
.specimen {
  position: relative;
  margin: 44px 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  border-radius: var(--radius-s);
  padding: 22px 22px 26px;
  overflow: hidden;
}
.specimen figcaption { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.specimen table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.specimen th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted);
  padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.specimen td { padding: 12px 12px 12px 0; border-bottom: 1px dashed var(--line); font-size: 16px; white-space: nowrap; }
.specimen tr:last-child td { border-bottom: 0; }
.specimen .dir-out { color: var(--stamp); font-weight: 600; }
.specimen table { max-width: calc(100% - 210px); }
.stamp {
  position: absolute; right: 40px; top: 50%; margin-top: -46px;
  transform: rotate(-9deg);
  border: 4px double var(--stamp); border-radius: 14px;
  padding: 14px 22px;
  color: var(--stamp);
  font: 600 28px/1.05 var(--display);
  letter-spacing: 0.04em;
  text-align: center;
  opacity: .82;
  mix-blend-mode: multiply;
  background: transparent;
  pointer-events: none;
}
.stamp small { display: block; font: 500 13px/1.3 var(--text); letter-spacing: 0; margin-top: 6px; }
@media (max-width: 640px) {
  .specimen { padding: 18px 14px 70px; }
  .specimen th:nth-child(4), .specimen td:nth-child(4) { display: none; }
  .specimen td { font-size: 14px; }
  .specimen table { max-width: none; }
  .stamp { right: 14px; top: auto; bottom: 12px; margin-top: 0; font-size: 18px; padding: 8px 14px; }
  .stamp small { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: press .5s cubic-bezier(.2,.9,.3,1.3) .6s both; }
  @keyframes press { from { transform: rotate(-9deg) scale(1.5); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: .82; } }
}

/* --- секции --- */
section { padding: 56px 0 8px; }
h2 { font: 600 clamp(22px, 3vw, 30px)/1.2 var(--display); letter-spacing: -0.015em; color: var(--navy); margin: 0 0 26px; }
h3 { font: 600 18px/1.3 var(--text); margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cases > div { border-top: 2px solid var(--navy); padding-top: 16px; }
.cases p { color: var(--muted); font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--stamp); color: var(--stamp);
  font: 600 16px/1 var(--display);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 19px; left: 48px; right: -14px;
  border-top: 2px dotted var(--line);
}
.steps p { color: var(--muted); font-size: 16px; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; }
.price { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; background: #fff; }
.price.express { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.price .amount { font: 600 34px/1.1 var(--display); color: var(--navy); margin: 6px 0 2px; }
.price .eur { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.price p { font-size: 16px; color: var(--muted); }
.terms { max-width: 62ch; color: var(--muted); font-size: 15px; margin-top: 18px; }

.quiz { background: var(--stamp-tint); border-radius: var(--radius-l); padding: 26px; max-width: 760px; }
.quiz h3 { margin-bottom: 14px; }
.quiz .opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.quiz button {
  font: 500 16px/1.2 var(--text); padding: 12px 16px; border-radius: var(--radius-s);
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer;
}
.quiz button:hover { background: var(--navy); color: #fff; }
.quiz .result { font-size: 17px; margin: 4px 0 16px; }
.quiz .link-btn { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 15px; color: var(--muted); }
.quiz .link-btn:hover { background: none; color: var(--stamp); }
[hidden] { display: none !important; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px/1 var(--text); color: var(--stamp); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 64ch; }

footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .links { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .cases, .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cases, .steps, .prices { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .btn { width: 100%; }
}

/* --- форма --- */
.form { max-width: 680px; padding-bottom: 40px; }
.form h1 { font: 600 clamp(26px, 4vw, 36px)/1.15 var(--display); color: var(--navy); letter-spacing: -0.02em; margin: 12px 0 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font: 600 17px/1.3 var(--text); margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.field .msg { font-size: 14px; color: var(--error); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], textarea, input[type=file] {
  width: 100%; font: 400 17px/1.4 var(--text); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #c5cbd6; border-radius: var(--radius-s); background: #fff;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--stamp-tint); }
.has-error input, .has-error textarea { border-color: var(--error); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: grid; gap: 10px; }
.choice label {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; font-weight: 500;
}
.choice label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input { margin-top: 4px; accent-color: var(--navy); }
.choice small { display: block; font-weight: 400; color: var(--muted); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.agree input { margin-top: 4px; accent-color: var(--navy); width: 18px; height: 18px; }
.alert { padding: 14px 16px; border-radius: var(--radius-s); background: #fdecea; color: var(--error); margin-bottom: 22px; }
.note { padding: 14px 16px; border-radius: var(--radius-s); background: var(--stamp-tint); margin: 0 0 22px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* --- статус --- */
.status { max-width: 680px; padding-bottom: 40px; }
.progress { list-style: none; display: flex; padding: 0; margin: 8px 0 28px; gap: 6px; }
.progress li { flex: 1; font-size: 14px; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.progress li.done { border-color: var(--navy); color: var(--ink); }
.progress li.now { border-color: var(--stamp); color: var(--stamp); font-weight: 600; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; background: #fff; margin-bottom: 18px; }
.legal { max-width: 72ch; padding-bottom: 40px; }
.legal h1 { font: 600 28px/1.2 var(--display); color: var(--navy); }
.status h1 { font: 600 clamp(24px, 4vw, 32px)/1.2 var(--display); color: var(--navy); letter-spacing: -0.02em; margin: 12px 0 4px; }
.panel h2 { font-size: 20px; margin-bottom: 12px; }
.docs { list-style: none; padding: 0; margin: 0 0 18px; }
.docs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.docs li:last-child { border-bottom: 0; }
.docs .ok { color: var(--stamp); font-weight: 600; }
