:root {
  --ink: #14243b;
  --ink-2: #1f3556;
  --ink-3: #2c4772;
  --paper: #f6f3ec;
  --card: #ffffff;
  --line: #e3ddd0;
  --text: #1b2330;
  --muted: #5b6474;
  --accent: #c9973f;
  --accent-d: #a87b2c;
  --accent-soft: #f4e9d4;
  --ok: #2f7a4b;
  --err: #b3261e;
  --r: 14px;
  --sh: 0 1px 2px rgba(20, 36, 59, .06), 0 8px 24px rgba(20, 36, 59, .07);
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--ink-3); text-underline-offset: 3px; }
a:hover { color: var(--accent-d); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
h3 { font-size: 20px; margin-top: 1.3em; font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 10px; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-d); color: #fff; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo b { display: block; font: 700 21px/1.1 var(--serif); }
.logo small { display: block; font-size: 12.5px; color: var(--muted); }
.logo--light { color: #fff; }
.logo--light small { color: rgba(255,255,255,.65); }
.hdr-contact { text-align: right; line-height: 1.25; }
.hdr-phone { font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hdr-contact small { display: block; font-size: 12.5px; color: var(--muted); }
.nav { background: var(--ink); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.nav a { display: block; padding: 11px 10px; color: rgba(255,255,255,.88); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 14px 0 0; margin: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: #b0a896; }
.crumbs a { color: var(--muted); }

/* герой */
.hero { background: var(--ink) radial-gradient(1200px 500px at 85% -10%, #2a4470 0%, transparent 60%); color: #fff; padding: 48px 0 56px; position: relative; overflow: hidden; }
.crumbs + main .hero { margin-top: 14px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.88); max-width: 680px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.facts li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 9px 14px; font-size: 15px; line-height: 1.35; }
.facts b { display: block; color: var(--accent); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hero-card { background: #fff; color: var(--text); border-radius: var(--r); padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-card h2 { font-size: 22px; margin: 0 0 6px; }
.hero-card .muted { font-size: 15px; }
.hero--home { padding: 64px 0 72px; }
.hero--home .lead { font-size: 20px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 32px; max-width: 720px; }
.trust div { border-left: 3px solid var(--accent); padding-left: 12px; font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.4; }
.trust b { display: block; color: #fff; font-size: 17px; }

/* формы */
.lead-form { display: grid; gap: 12px; }
.fld span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; color: var(--muted); }
.fld input, .fld textarea, .fld select { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(44,71,114,.15); }
.chk { display: flex; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; align-items: flex-start; }
.chk input { margin-top: 2px; }
.form-status { margin: 0; font-size: 15px; min-height: 1em; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--err); }

/* раскладка статьи */
.section { padding: 56px 0; }
.section--white { background: #fff; }
.section--tight { padding: 36px 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 38px; margin-bottom: 10px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 0 0 1.4em; }
.note p:last-child { margin: 0; }
.answer { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 28px; box-shadow: var(--sh); }
.answer > b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-d); margin-bottom: 6px; }
.answer p:last-child { margin: 0; }

.aside { position: sticky; top: 130px; display: grid; gap: 16px; }
.toc, .side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.toc p { font-weight: 700; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc li { margin: 5px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-d); }
.side-card { background: var(--ink); color: #fff; border: 0; }
.side-card h3 { color: #fff; margin: 0 0 8px; font-size: 19px; }
.side-card p { font-size: 15px; color: rgba(255,255,255,.8); }
.side-card .hdr-phone { color: #fff; display: block; margin-bottom: 12px; }
.side-card .btn { width: 100%; }

/* этапы */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 20px; counter-increment: s; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 700 28px/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.steps b { display: block; color: var(--ink); margin-bottom: 4px; }
.steps span { font-size: 15px; color: var(--muted); }

/* цены */
.price { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); margin: 8px 0 12px; }
.price th, .price td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price th { background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.price td:last-child { white-space: nowrap; font-weight: 700; color: var(--ink); text-align: right; }
.price tr:last-child td { border-bottom: 0; }
.price-note { font-size: 14px; color: var(--muted); }

/* документы */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.docs li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 12px 42px; position: relative; font-size: 15.5px; }
.docs li::before { content: ''; position: absolute; left: 14px; top: 14px; width: 16px; height: 18px; border: 2px solid var(--ink-3); border-radius: 2px; }
.docs li::after { content: ''; position: absolute; left: 18px; top: 20px; width: 8px; height: 2px; background: var(--ink-3); box-shadow: 0 4px 0 var(--ink-3); }

/* вопросы */
.faq { display: grid; gap: 10px; margin-top: 16px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 12px; font-size: 24px; color: var(--accent-d); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 20px 16px; }
.faq details > div p:last-child { margin: 0; }

/* карточки разделов и услуг */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--sh); border-color: #d6cdb9; }
.card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ' →'; color: var(--accent); }
.card p { font-size: 15px; color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: auto 0 0; font-size: 15px; }
.card ul li { padding: 6px 0; border-top: 1px solid #f0ebe0; }
.card ul a { color: var(--text); text-decoration: none; }
.card ul a:hover { color: var(--accent-d); }
.links { columns: 2 280px; column-gap: 32px; list-style: none; padding: 0; margin: 16px 0 0; }
.links li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); }
.links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.links a:hover { color: var(--accent-d); }
.links small { display: block; color: var(--muted); font-size: 14px; }

/* блок призыва */
.cta { background: var(--ink); color: #fff; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 40px; align-items: center; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: rgba(255,255,255,.82); }
.cta .lead-form { background: #fff; color: var(--text); padding: 22px; border-radius: var(--r); }
.cta-phone { font-size: 24px; font-weight: 700; color: #fff; text-decoration: none; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; }
.law { font-size: 14px; color: var(--muted); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.disclaimer { font-size: 13.5px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 24px; }
.features div { border-top: 3px solid var(--accent); padding-top: 14px; }
.features b { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.features p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* калькулятор */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--sh); display: grid; gap: 14px; }
.calc .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.calc-result { background: var(--ink); color: #fff; border-radius: 12px; padding: 18px 20px; }
.calc-result b { display: block; font: 700 30px/1.2 var(--serif); color: var(--accent); }
.calc-result p { margin: 4px 0 0; font-size: 15px; color: rgba(255,255,255,.8); }

/* подвал */
.ftr { background: #0f1c2f; color: rgba(255,255,255,.75); padding: 48px 0 100px; margin-top: 64px; font-size: 15px; }
.ftr a { color: rgba(255,255,255,.8); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ftr-contact { display: grid; gap: 4px; text-align: right; }
.ftr-phone { font-size: 22px; font-weight: 700; color: #fff !important; }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; padding: 28px 0; }
.ftr-h { font-weight: 700; margin: 0 0 8px; }
.ftr-h a { color: #fff; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { padding: 3px 0; }
.ftr-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.5); }

/* нижняя панель на телефоне */
.callbar { display: none; }

/* окно заявки */
.modal { border: 0; border-radius: 18px; padding: 28px; width: min(460px, calc(100% - 24px)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(15, 28, 47, .6); }
.modal h2 { margin-top: 0; font-size: 24px; padding-right: 30px; }
.modal-x { position: absolute; right: 14px; top: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; cursor: pointer; color: var(--muted); }
.modal .lead-form { position: static; }

@media (max-width: 1100px) {
  .hdr-contact small { display: none; }
  .nav a { padding: 10px 8px; font-size: 14.5px; }
}
@media (max-width: 960px) {
  .hero-grid, .layout, .cta { grid-template-columns: 1fr; }
  .aside { position: static; }
  .toc { display: none; }
  .hero-card { max-width: 520px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hdr-in { min-height: 60px; gap: 10px; }
  .hdr-contact, .hdr-cta { display: none; }
  .burger { display: block; }
  .logo b { font-size: 19px; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero, .hero--home { padding: 32px 0 40px; }
  .hero .lead, .hero--home .lead { font-size: 17px; }
  .trust { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 40px 0; }
  .cta { padding: 24px 18px; border-radius: 16px; }
  .price th, .price td { padding: 11px 12px; font-size: 15px; }
  .price td:last-child { white-space: normal; }
  .ftr-contact { text-align: left; }
  .callbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.12); padding: 8px; gap: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .callbar a, .callbar button { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; font: 600 15px var(--sans); text-decoration: none; border: 0; cursor: pointer; }
  .callbar a:first-child { background: var(--ink); color: #fff; }
  .callbar a + a { background: var(--paper); color: var(--ink); }
  .callbar button { background: var(--accent); color: #fff; }
}

/* сброс маркеров .prose для компонентов внутри текста */
.prose .docs li, .prose .links li, .prose .steps li, .prose .facts li, .prose .pill-list li { padding-left: revert-layer; margin-bottom: 0; }
.prose .links li { padding-left: 0; }
.prose .links li::before, .prose .pill-list li::before { content: none; }
.prose .docs li { padding-left: 42px; }
.prose .docs li::before { content: ''; left: 14px; top: 14px; width: 16px; height: 18px; background: none; border: 2px solid var(--ink-3); border-radius: 2px; transform: none; }
.prose .steps li { padding: 22px 20px 20px; }
.prose .steps li::before { content: counter(s, decimal-leading-zero); position: static; width: auto; height: auto; background: none; border-radius: 0; display: block; font: 700 28px/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.prose .steps { counter-reset: s; }
.hero-grid { align-items: center; }
.prose .steps li { counter-increment: s; }

.answer-h { font-size: 22px; margin: 0 0 8px; }
