/* ============================================================
   «Человек без долгов» — стили лендинга
   Палитра по логике решения должника:
   — глубокий сине-зелёный (teal): спокойствие и доверие — снижает тревогу;
   — свежий зелёный: облегчение, «долг = 0», чистый лист;
   — тёплый янтарь только на кнопках: действие и надежда, без тревожного красного;
   — красный не используем совсем: у должника он связан с просрочкой и угрозой.
   ============================================================ */
:root {
  --deep: #0e4a52;
  --deep-900: #0a353b;
  --deep-700: #135f69;
  --fresh: #2bb37b;
  --fresh-soft: #e6f6ee;
  --cta: #f4a63a;
  --cta-600: #e2922a;
  --cta-ink: #3a2400;
  --bg: #ffffff;
  --soft: #f3f8f7;
  --line: #dfe9e7;
  --ink: #17302f;
  --muted: #557170;
  --warn: #b5651d;

  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14, 74, 82, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 53, 59, 0.22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; padding-bottom: 56px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section--deep { background: linear-gradient(160deg, var(--deep-900), var(--deep)); color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 12px; }
.section-title { font-size: clamp(26px, 4vw, 40px); color: var(--deep-900); }
.eyebrow { color: var(--fresh); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 10px; }
.eyebrow--light { color: #7fe0b4; }
.muted { color: var(--muted); margin-top: 12px; }

/* ── Кнопки ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 800; font-size: 16px; padding: 14px 24px; border: none; border-radius: 12px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; text-align: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 24px rgba(244, 166, 58, .38); }
.btn--cta:hover { background: var(--cta-600); transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); }
.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--block { width: 100%; }

/* ── Хедер ──────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header.scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--fresh); color: #fff; display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__name { display: block; font-weight: 800; color: var(--deep-900); font-size: 18px; line-height: 1.1; }
.brand__sub { display: block; font-size: 11px; color: var(--muted); }
.nav { display: none; gap: 22px; margin-left: 20px; }
.nav a { font-size: 15px; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--deep); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header__phone { display: none; align-items: center; gap: 8px; font-weight: 800; color: var(--deep-900); white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; color: var(--fresh); }
.header__cta { display: none; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: none; background: none; color: var(--deep-900); cursor: pointer; }
.burger svg { width: 26px; height: 26px; }
.mnav { display: none; padding: 4px 16px 16px; }
.mnav.open { display: block; }
.mnav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mnav .btn { margin-top: 14px; border: none; }

/* ── Первый экран ───────────────────────────────────────── */
.hero { background: radial-gradient(1200px 500px at 85% 10%, rgba(43,179,123,.28), transparent 60%), linear-gradient(160deg, var(--deep-900) 0%, var(--deep) 70%); color: #fff; overflow: hidden; }
.hero__inner { display: grid; gap: 36px; padding: 48px 16px 60px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 54px); }
.hl { color: #7fe0b4; }
.hero__sub { margin-top: 18px; font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,.86); max-width: 620px; }
.hero__points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero__points li { position: relative; padding-left: 32px; color: rgba(255,255,255,.92); }
.hero__points li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--fresh); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.65); }

.debt-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); max-width: 440px; width: 100%; justify-self: center; }
.debt-card__top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.debt-card__badge { background: var(--fresh-soft); color: #167a52; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; font-size: 12px; }
.debt-card__amounts { display: flex; align-items: baseline; gap: 16px; margin: 14px 0 18px; flex-wrap: wrap; }
.debt-card__old { font-size: 22px; color: #9aaeac; text-decoration: line-through; text-decoration-thickness: 2px; }
.debt-card__new { font-size: 54px; font-weight: 800; color: var(--fresh); letter-spacing: -0.03em; line-height: 1; }
.debt-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.debt-card__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.debt-card__list i { width: 20px; height: 20px; border-radius: 6px; background: var(--fresh); flex: none; position: relative; }
.debt-card__list i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.debt-card__foot { margin-top: 16px; font-size: 12px; color: var(--muted); }

/* ── Боль ───────────────────────────────────────────────── */
.pain { display: grid; gap: 12px; }
.pain__item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 600; }
.pain__item span { font-size: 24px; flex: none; }

/* ── Калькулятор ────────────────────────────────────────── */
.calc { display: grid; gap: 28px; align-items: center; }
.calc__box { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 20px; }
.calc__row { display: grid; gap: 10px; }
.calc__row span { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.calc__row b { color: var(--deep-900); }
.calc input[type=range] { width: 100%; accent-color: var(--fresh); height: 28px; }
.calc__result { background: var(--soft); border-radius: 14px; padding: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 10px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__grid span { display: block; font-size: 13px; }
.calc__grid b { display: block; font-size: 22px; color: var(--deep-900); line-height: 1.2; }
.calc__grid b.warn, .calc__big--warn { color: var(--warn); }
.calc__big { font-size: 22px; font-weight: 800; }

/* ── Что сохранится ─────────────────────────────────────── */
.keep { display: grid; gap: 14px; }
.keep__item { padding: 24px; border-radius: var(--radius); background: var(--fresh-soft); }
.keep__icon { font-size: 30px; }
.keep__item h3 { margin-top: 10px; font-size: 19px; color: var(--deep-900); }
.keep__item p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ── Честно о минусах ───────────────────────────────────── */
.honest { display: grid; gap: 24px; }
.honest__lead { margin-top: 14px; color: rgba(255,255,255,.82); }
.honest__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.honest__list li { padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.honest__list b { color: #ffd08a; }
.honest__note { color: #7fe0b4; font-weight: 600; }

/* ── Этапы ──────────────────────────────────────────────── */
.road { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.road__step { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.road__n { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 800; display: grid; place-items: center; }
.road__step h3 { font-size: 18px; color: var(--deep-900); }
.road__step p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.road__step--final { border-color: var(--fresh); background: var(--fresh-soft); }
.road__step--final .road__n { background: var(--fresh); }

/* ── Почему мы ──────────────────────────────────────────── */
.why { display: grid; gap: 14px; }
.why__item { padding: 24px; border-radius: var(--radius); background: #fff; border-top: 4px solid var(--fresh); box-shadow: var(--shadow); }
.why__item h3 { font-size: 19px; color: var(--deep-900); }
.why__item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ── Квиз ───────────────────────────────────────────────── */
.check { display: grid; gap: 28px; align-items: start; }
.check__ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.check__ticks li::before { content: "✓  "; color: #7fe0b4; font-weight: 800; }
.form { display: flex; flex-direction: column; gap: 12px; }
.quiz { background: #fff; color: var(--ink); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); }
.quiz__progress { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--fresh); transition: width .3s; }
.quiz__count { font-size: 13px; color: var(--muted); font-weight: 700; }
.quiz__step { display: none; border: 0; margin: 0; padding: 0; flex-direction: column; gap: 10px; }
.quiz__step.is-active { display: flex; }
.quiz__step legend { font-size: 20px; font-weight: 800; color: var(--deep-900); margin-bottom: 8px; padding: 0; }
.quiz__step label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.quiz__step label:hover { border-color: var(--fresh); background: var(--fresh-soft); }
.quiz__step input[type=radio] { width: 20px; height: 20px; accent-color: var(--fresh); flex: none; }
.quiz__done { font-size: 20px; font-weight: 800; color: var(--deep-900); }
.quiz input[type=text], .quiz input[type=tel] { width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; }
.quiz input:focus { outline: none; border-color: var(--deep); }
.quiz__back { background: none; border: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }
.form .field-error { color: var(--warn); font-size: 13px; margin-top: 4px; }
.form .note { font-size: 12px; color: var(--muted); }
.form .note a { text-decoration: underline; }
.form .form-msg { font-size: 14px; }
.form .form-msg.ok { color: #167a52; font-weight: 700; }
.form .form-msg.err { color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Вопросы ────────────────────────────────────────────── */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; color: var(--deep-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 24px; color: var(--fresh); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* ── Контакты ───────────────────────────────────────────── */
.contacts { display: grid; gap: 28px; align-items: center; }
.contacts__list { margin-top: 20px; display: grid; gap: 8px; }
.contacts__phone { font-size: 28px; font-weight: 800; color: var(--deep-900); }
.messenger { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.messenger h3 { font-size: 22px; color: var(--deep-900); }
.messenger p { color: var(--muted); margin-bottom: 6px; }

/* ── Подвал ─────────────────────────────────────────────── */
.footer { background: var(--deep-900); color: rgba(255,255,255,.7); font-size: 14px; }
.footer__inner { display: grid; gap: 24px; padding: 40px 16px; }
.brand--footer .brand__name { color: #fff; }
.footer__req { margin-top: 12px; }
.footer__disc { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.45); max-width: 520px; }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px; text-align: center; font-size: 13px; color: rgba(255,255,255,.45); }

.fab-top { position: fixed; right: 16px; bottom: 72px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--deep); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s; cursor: pointer; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top svg { width: 22px; height: 22px; }
.mobile-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; }
.mobile-call a { flex: 1; text-align: center; padding: 15px; font-weight: 800; }
.mobile-call .call { background: var(--deep); color: #fff; }
.mobile-call .lead { background: var(--cta); color: var(--cta-ink); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

@media (min-width: 640px) {
  .pain { grid-template-columns: repeat(2, 1fr); }
  .keep { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .header__phone { display: inline-flex; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-call { display: none; }
  .fab-top { bottom: 24px; }
  .burger { display: none; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 72px 16px 84px; }
  .pain { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: .9fr 1.1fr; }
  .keep { grid-template-columns: repeat(4, 1fr); }
  .honest { grid-template-columns: 1fr 1fr; align-items: start; }
  .honest__note { grid-column: 1 / -1; }
  .road { grid-template-columns: repeat(5, 1fr); }
  .road__step { flex-direction: column; }
  .why { grid-template-columns: repeat(3, 1fr); }
  .check { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1.1fr .9fr; }
  .footer__inner { grid-template-columns: 1.4fr 1fr; }
}
