/* Черновой дизайн. Цвета и шрифты — переменные ниже: стиль меняется здесь, без правки страниц.
   Никаких внешних шрифтов и CDN: сайт про 152-ФЗ сам не должен передавать данные за рубеж. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1b1d21;
  --muted: #5d6470;
  --line: #e3e4e0;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e5f1ed;
  --warn: #b4452f;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface: #1a1d20;
    --text: #eceeef;
    --muted: #9aa2ab;
    --line: #2b3035;
    --accent: #4fb397;
    --accent-ink: #0e1a16;
    --accent-soft: #1b2b26;
    --warn: #e07a62;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--font);
}
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
nav.menu a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav.menu a:hover { color: var(--text); }
@media (max-width: 720px) { nav.menu { display: none; } }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 600;
  border: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 24px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.muted { color: var(--muted); }

.hero { padding-top: 72px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--muted); }
.stat { font-size: 30px; font-weight: 700; color: var(--warn); letter-spacing: -0.02em; margin-bottom: 6px; }

.price { display: flex; flex-direction: column; }
.price .sum { font-size: 30px; font-weight: 700; margin: 6px 0 12px; letter-spacing: -0.02em; }
.price .sum small { font-size: 15px; font-weight: 400; color: var(--muted); }
.price ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); flex: 1; }
.price li { margin-bottom: 6px; }
.price.featured { border: 2px solid var(--accent); }
.tag { display: inline-block; font-size: 13px; background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.launch { margin: 0 0 12px; font-size: 14px; color: var(--accent); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

form.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 560px; }
label { display: block; font-size: 15px; margin: 0 0 6px; font-weight: 600; }
input[type=text], input[type=url], input[type=email], textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; margin-bottom: 16px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 4px; }
.form-msg { margin-top: 12px; font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Документы */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px clamp(16px, 4vw, 48px); margin: 32px 0; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 21px; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--text); }
.draft { background: var(--accent-soft); color: var(--accent); padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* Cookie-баннер */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.12); font-size: 14px; display: none; z-index: 10; }
.cookie.show { display: block; }
.cookie .row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cookie .btn { padding: 9px 16px; font-size: 14px; }

.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 12px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 360px) { .grid.three { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Первый экран с примером отчёта */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0,0,0,.18); overflow: hidden; font-size: 15px; }
.report-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.report-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.report-url { margin-left: 8px; color: var(--muted); font-size: 13px; }
.report-list { list-style: none; margin: 0; padding: 6px 16px; }
.report-list li { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.report-list li:last-child { border-bottom: 0; }
.report-list li::before { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.report-list li.bad::before { content: "✕"; background: #fbe4df; color: var(--warn); }
.report-list li.ok::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.report-list b { font-weight: 600; }
.report-list span { color: var(--muted); font-size: 14px; }
.report-foot { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }

/* --- Полировка по web-design-guidelines и taste skill --- */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
section[id], #content { scroll-margin-top: 80px; }
#content:focus { outline: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.sum, .stat { font-variant-numeric: tabular-nums; }
.price .btn { text-align: center; }

/* Отклик на наведение и нажатие */
.btn { transition: transform .15s ease, filter .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.price:hover { transform: translateY(-2px); }
nav.menu a, footer a { transition: color .15s ease; }
details summary { transition: color .15s ease; }
details summary:hover { color: var(--accent); }

/* Появление первого экрана один раз при загрузке */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-enter] .hero-text > * { animation: enter .6s cubic-bezier(.2,.7,.2,1) both; }
[data-enter] .hero-text > *:nth-child(2) { animation-delay: .06s; }
[data-enter] .hero-text > *:nth-child(3) { animation-delay: .12s; }
[data-enter] .hero-text > *:nth-child(4) { animation-delay: .18s; }
[data-enter] .report { animation: enter .7s .2s cubic-bezier(.2,.7,.2,1) both; }
[data-enter] .report-list li { animation: enter .4s cubic-bezier(.2,.7,.2,1) both; }
[data-enter] .report-list li:nth-child(1) { animation-delay: .45s; }
[data-enter] .report-list li:nth-child(2) { animation-delay: .55s; }
[data-enter] .report-list li:nth-child(3) { animation-delay: .65s; }
[data-enter] .report-list li:nth-child(4) { animation-delay: .75s; }
[data-enter] .report-list li:nth-child(5) { animation-delay: .85s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Телефон */
@media (max-width: 600px) {
  header.top .btn { padding: 9px 14px; font-size: 15px; }
  .hero { padding-top: 40px; }
  .hero .actions .btn { width: 100%; text-align: center; }
  section { padding: 48px 0; }
  .lead { font-size: 18px; }
}
.price .btn { width: 100%; white-space: nowrap; padding-left: 10px; padding-right: 10px; font-size: 15px; }

/* Услуги */
.service-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.service-card p { flex: 1; }
.service-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.service-more { color: var(--accent); font-weight: 600; }
.price-inline { font-size: 24px; font-weight: 600; align-self: center; font-variant-numeric: tabular-nums; }
.hero .tag[href] { text-decoration: none; }
