/* ===========================================================
   Экспресс-проверка 152-ФЗ
   Спокойный современный лендинг: светлый фон, скругления,
   мягкие тени, сдержанный зелёно-бирюзовый акцент. Manrope.
   Mobile-first, без зависимостей.
   =========================================================== */

:root {
  --bg:        #f6f8f7;
  --surface:   #ffffff;
  --tint:      #eef4f1;   /* мягкая заливка секций */

  --ink:       #1c2b28;
  --ink-2:     #465450;
  --muted:     #7b8783;
  --faint:     #a7b0ac;

  --line:      #e5eae7;
  --line-2:    #d7ded9;

  --accent:      #12a37c;   /* спокойный зелёно-бирюзовый «комплаенс» */
  --accent-dark: #0c805f;
  --accent-soft: #e6f5ef;
  --accent-ring: #12a37c;
  --pass:        #12a37c;   /* алиас для кольца результата (app.js) */

  --warn:      #c98a1e;
  --warn-soft: #fbf1dd;
  --fail:      #d7615a;
  --fail-soft: #fbecea;

  --radius:    16px;
  --radius-sm: 11px;
  --shadow:    0 1px 2px rgba(28,43,40,.04), 0 12px 30px -16px rgba(28,43,40,.18);
  --shadow-sm: 0 1px 2px rgba(28,43,40,.05), 0 6px 16px -10px rgba(28,43,40,.16);

  --maxw:      1100px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0 0 0.5em; font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }

/* Плейсхолдеры владельца */
.ph {
  font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 6px; padding: 0.03em 0.4em; white-space: nowrap;
}
.ph-link { color: var(--accent-dark); border-bottom: 1px dashed var(--accent); }

/* ---- Кнопки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: inherit; font-weight: 700; font-size: 0.97rem; line-height: 1;
  padding: 0.85em 1.5em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  white-space: nowrap; transition: transform .12s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(18,163,124,.7); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 12px 26px -10px rgba(18,163,124,.8); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-soft:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---- Шапка ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,248,247,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; color: #fff; background: var(--accent); width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; }
.brand-accent { color: var(--accent); }
.header-nav { display: none; margin-left: auto; gap: 26px; }
.header-nav a { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.header-nav a:hover { color: var(--accent-dark); text-decoration: none; }
.header-cta { margin-left: auto; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(12px); animation: reveal .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d,0) * 80ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---- HERO ---- */
.hero { padding: 66px 0 58px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 50% -5%, var(--accent-soft) 0%, transparent 65%);
}
.hero-inner { text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.82rem; font-weight: 600; color: var(--accent-dark);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  border-radius: 999px; padding: 0.45em 1em; margin-bottom: 24px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.35rem); font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; margin: 0 auto 0.5em; }
.hero-sub { font-size: clamp(1.02rem, 2.3vw, 1.22rem); color: var(--ink-2); max-width: 60ch; margin: 0 auto 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 16px; }
.hero-fine { font-size: 0.9rem; color: var(--muted); margin-bottom: 40px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 16px; box-shadow: var(--shadow-sm); }
.stat-num { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; color: var(--accent-dark); letter-spacing: -0.02em; }
.stat-cap { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ---- Секции ---- */
.section { padding: 66px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 0.35em 0.9em; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.55rem, 4.2vw, 2.3rem); }
.lead { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

/* ---- Карточка ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Аудит ---- */
.audit-card { max-width: 720px; margin: 0 auto; padding: 30px 24px; }
.audit-progress { margin-bottom: 26px; }
.audit-progress-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.audit-progress-meta b { color: var(--accent-dark); }
.audit-progress-bar { height: 8px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.audit-progress-bar span { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.1,1); }

.q-category { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }
.q-text { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 26px; min-height: 2.2em; }
.q-answers { display: grid; grid-template-columns: 1fr; gap: 11px; }
.ans {
  font-family: inherit; font-size: 1.02rem; font-weight: 700; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0.95em 1.1em; text-align: center; transition: all .14s ease;
}
.ans:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ans-yes:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.ans-no:hover { border-color: var(--fail); background: var(--fail-soft); color: var(--fail); }
.ans-idk:hover { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.q-back { margin-top: 20px; background: none; border: none; color: var(--muted); font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 0; }
.q-back:hover { color: var(--accent-dark); }

/* ---- Результат ---- */
.result-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; margin-bottom: 30px; }
.score-ring {
  --pct: 0; --ring: var(--accent-ring);
  width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: conic-gradient(var(--ring) calc(var(--pct) * 3.6deg), var(--tint) 0);
}
.score-inner { width: 108px; height: 108px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2.1rem; color: var(--ink); box-shadow: var(--shadow-sm); }
.score-inner i { font-style: normal; font-size: 1.1rem; color: var(--muted); margin-left: 1px; }
.result-verdict { text-align: center; }
.verdict-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.3em 0.8em; border-radius: 999px; margin-bottom: 10px; }
.verdict-tag.lvl-pass { background: var(--accent-soft); color: var(--accent-dark); }
.verdict-tag.lvl-warn { background: var(--warn-soft); color: var(--warn); }
.verdict-tag.lvl-fail { background: var(--fail-soft); color: var(--fail); }
#verdict-title { font-size: 1.4rem; margin-bottom: 6px; }
#verdict-text { color: var(--ink-2); margin: 0; max-width: 52ch; }

.result-gaps { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 26px; }
.result-gaps h4 { font-size: 1.05rem; margin-bottom: 14px; }
#gaps-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
#gaps-list li:last-child { border-bottom: none; }
#gaps-list li::before { content: ""; flex-shrink: 0; margin-top: 5px; width: 10px; height: 10px; border-radius: 50%; }
#gaps-list li.gap-high::before { background: var(--fail); box-shadow: 0 0 0 4px var(--fail-soft); }
#gaps-list li.gap-med::before { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.gap-body { flex: 1; line-height: 1.45; }
.gap-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; margin-left: 8px; padding: 0.08em 0.5em; border-radius: 6px; }
#gaps-list li.gap-high .gap-tag { background: var(--fail-soft); color: var(--fail); }
#gaps-list li.gap-med .gap-tag { background: var(--warn-soft); color: var(--warn); }
.gaps-empty { color: var(--ink-2); margin: 0; }
.result-cta { display: flex; flex-direction: column; gap: 12px; }

/* ---- Форма ---- */
.lead-form { padding: 28px 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.field input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0.8em 1em; transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input.invalid { border-color: var(--fail); box-shadow: 0 0 0 4px var(--fail-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); margin-bottom: 22px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.form-status { margin: 16px 0 0; text-align: center; font-size: 0.95rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: var(--fail); }

/* ---- Оффер ---- */
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.offer-includes h3 { font-size: 1.2rem; margin-bottom: 18px; }
.check-list li { position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); color: var(--ink); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: 20px; width: 5px; height: 9px; border: solid var(--accent-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.offer-card { padding: 28px 24px; text-align: center; align-self: start; }
.offer-price-label { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.offer-price { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; margin: 8px 0; color: var(--ink); }
.offer-term { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.offer-card .btn { margin-bottom: 16px; }
.offer-mini { font-size: 0.85rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }

/* ---- Обо мне ---- */
.about-body p { color: var(--ink-2); }
.about-body strong { color: var(--ink); }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.fact-num { font-size: 1.55rem; font-weight: 800; color: var(--accent-dark); }
.fact-num.ph { font-size: 1rem; }
.fact-cap { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.about-note { font-size: 0.9rem; color: var(--muted); }

/* ---- Футер ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 50px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 34px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-tagline { color: var(--muted); font-size: 0.92rem; }
.footer-col h5 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.footer-col li { padding: 5px 0; color: var(--ink-2); font-size: 0.92rem; }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 0.82rem; color: var(--muted); }

/* =====================  ПЛАНШЕТ / ДЕСКТОП  ===================== */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .q-answers { grid-template-columns: repeat(3, 1fr); }
  .result-top { flex-direction: row; text-align: left; }
  .result-verdict { text-align: left; }
  .result-cta { flex-direction: row; justify-content: center; }
  .header-nav { display: flex; }
  .header-cta { margin-left: 0; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 880px) {
  .offer-grid { grid-template-columns: 1.5fr 1fr; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; }
}
