/* ============================================================
   Банкротство 54 — стили сайта
   Без внешних зависимостей, без шрифтов из сети (скорость + CSP).
   Mobile-first: базовые правила для мобильных, медиазапросы — расширение.
   ============================================================ */

/* ---------- 1. Переменные ---------- */
:root {
    --ink: #0f2137;
    --body: #2b3a4f;
    --muted: #64748b;
    --brand: #1a4d8f;
    --brand-dark: #123a6b;
    --brand-light: #e8f0fa;
    --accent: #e2622b;
    --accent-dark: #c44f1d;
    --ok: #15803d;
    --ok-light: #e7f6ec;
    --warn: #b45309;
    --warn-light: #fdf3e3;
    --bad: #b91c1c;
    --bad-light: #fdecec;
    --bg: #f5f7fa;
    --card: #ffffff;
    --line: #dbe3ec;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15, 33, 55, .06), 0 4px 16px rgba(15, 33, 55, .06);
    --shadow-lg: 0 8px 32px rgba(15, 33, 55, .12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1180px;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    background: var(--bg);
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
small { font-size: .85em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- 3. Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 11px 20px; border: 0; border-radius: var(--radius-sm);
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .15s, transform .05s;
    min-height: 44px; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .9rem; min-height: 38px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 4. Шапка ---------- */
.site-header {
    background: #fff; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.hdr-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 9px; background: var(--brand);
    color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { color: var(--ink); font-size: 1.02rem; }
.logo-text small { color: var(--muted); font-size: .72rem; }

.burger {
    margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
    background: #fff; border-radius: var(--radius-sm); padding: 11px 10px;
    display: flex; flex-direction: column; justify-content: space-between; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.nav-main { display: none; }
.nav-main.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 8px 16px 16px;
}
.nav-main ul { list-style: none; margin: 0; padding: 0; }
.nav-main a {
    display: block; padding: 12px 4px; text-decoration: none;
    color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line);
}
.nav-main a.is-active { color: var(--accent-dark); font-weight: 700; }

.hdr-actions { display: none; }

/* Мобильная нижняя панель */
.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(15, 33, 55, .08);
}
.mobile-bar a {
    display: flex; align-items: center; justify-content: center;
    min-height: 44px; border-radius: var(--radius-sm); font-weight: 600;
    text-decoration: none; font-size: .95rem;
}
.mb-call { background: var(--brand-light); color: var(--brand-dark); }
.mb-calc { background: var(--accent); color: #fff; }

body { padding-bottom: 68px; }

/* ---------- 5. Хлебные крошки ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }
.crumb-sep { margin: 0 6px; color: var(--line); }

/* ---------- 6. Hero ---------- */
.hero { background: linear-gradient(160deg, #12365f 0%, #1a4d8f 100%); color: #fff; padding: 40px 0; }
.hero h1 { color: #fff; font-size: 1.65rem; }
.hero-lead { font-size: 1.05rem; color: #d5e3f5; max-width: 46em; }
.hero-badge {
    display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 100px;
    background: rgba(255, 255, 255, .14); color: #eaf2fd; font-size: .82rem; font-weight: 600;
}
.hero-list { list-style: none; padding: 0; margin: 0 0 22px; }
.hero-list li { position: relative; padding-left: 26px; margin-bottom: 8px; color: #e2ecf9; }
.hero-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: #7ddba0; font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-actions .btn { flex: 1 1 240px; }
.hero-note { font-size: .88rem; color: #b9cde6; margin: 0; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- 7. Секции ---------- */
.section { background: var(--card); border-radius: var(--radius); padding: 22px 18px; margin: 16px auto; max-width: var(--wrap); box-shadow: var(--shadow); }
.section > h2:first-child { margin-top: 0; }
main > .section:first-of-type { margin-top: 20px; }

/* ---------- 8. Карточки ---------- */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.card {
    display: block; background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 16px; text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--brand-dark); }
.card p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- 9. Уведомления ---------- */
.notice {
    display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
    margin: 0 0 16px; border-left: 4px solid var(--brand); background: var(--brand-light);
}
.notice p { margin: 0; }
.notice strong { color: var(--ink); display: block; margin-bottom: 2px; }
.notice-ico { font-weight: 700; flex-shrink: 0; }
.notice-info { background: var(--brand-light); border-color: var(--brand); }
.notice-ok { background: var(--ok-light); border-color: var(--ok); }
.notice-ok .notice-ico { color: var(--ok); }
.notice-warn { background: var(--warn-light); border-color: var(--warn); }
.notice-warn .notice-ico { color: var(--warn); }
.notice-alert { background: var(--bad-light); border-color: var(--bad); }
.notice-alert .notice-ico { color: var(--bad); }

/* ---------- 10. Таблицы ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: 8px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--brand-light); color: var(--ink); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- 11. Квиз ---------- */
.quiz { background: var(--card); padding: 26px 0; margin: 16px 0; }
.quiz-head { text-align: center; margin-bottom: 16px; }
.quiz-head h2 { margin-bottom: 6px; }
.quiz-head p { color: var(--muted); margin: 0; }
.quiz-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow);
    max-width: 720px; margin: 0 auto;
}
.quiz-progress { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; position: relative; margin-bottom: 20px; }
.quiz-progress-bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.quiz-progress-text { position: absolute; right: 0; top: 12px; font-size: .8rem; color: var(--muted); }

.quiz-q { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.quiz-hint { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; font: inherit; text-align: left; cursor: pointer;
    min-height: 48px; transition: border-color .12s, background .12s;
}
.quiz-opt:hover { border-color: var(--brand); background: var(--brand-light); }
.quiz-opt.is-selected { border-color: var(--accent); background: #fff4ee; }
.quiz-opt-mark {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
    flex-shrink: 0; display: grid; place-items: center; font-size: .75rem; color: #fff;
}
.quiz-opt[aria-pressed="true"] .quiz-opt-mark { background: var(--accent); border-color: var(--accent); }
.quiz-opt-text { flex: 1; }
.quiz-opt-note { display: block; font-size: .82rem; color: var(--muted); }
.quiz-nav { display: flex; gap: 10px; margin-top: 18px; }
.quiz-nav .btn { flex: 1; }

.quiz-result { max-width: 860px; margin: 0 auto; }
.result-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; box-shadow: var(--shadow);
}
.result-top { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 20px; }
.result-ring {
    --pct: 0;
    width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(var(--ok) calc(var(--pct) * 1%), var(--line) 0);
    display: grid; place-items: center; position: relative;
}
.result-ring::after { content: ""; position: absolute; inset: 13px; background: #fff; border-radius: 50%; }
.result-ring-val { position: relative; z-index: 1; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.result-ring-cap { position: relative; z-index: 1; font-size: .72rem; color: var(--muted); display: block; }
.result-band { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.result-sub { color: var(--muted); font-size: .92rem; margin: 0; }
.result-ring.is-medium { background: conic-gradient(var(--warn) calc(var(--pct) * 1%), var(--line) 0); }
.result-ring.is-low, .result-ring.is-blocked { background: conic-gradient(var(--bad) calc(var(--pct) * 1%), var(--line) 0); }

.result-grid { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 18px; }
.result-tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.result-tile dt { font-size: .8rem; color: var(--muted); margin-bottom: 3px; }
.result-tile dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .96rem; }
.result-tile.t-ok { border-color: #bfe3cb; background: var(--ok-light); }
.result-tile.t-warn { border-color: #f0dcb4; background: var(--warn-light); }
.result-tile.t-bad { border-color: #f0c2c2; background: var(--bad-light); }

.result-next { margin: 18px 0; }
.result-next ol { counter-reset: rn; list-style: none; padding: 0; }
.result-next li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.result-next li::before {
    counter-increment: rn; content: counter(rn);
    position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
    background: var(--brand); color: #fff; display: grid; place-items: center;
    font-size: .8rem; font-weight: 700;
}

/* ---------- 12. Форма заявки ---------- */
.lead-form { padding: 26px 0; background: linear-gradient(180deg, #eef4fb 0%, #f5f7fa 100%); }
.lf-card {
    background: var(--card); border-radius: var(--radius); padding: 22px 18px;
    box-shadow: var(--shadow-lg); max-width: 620px; margin: 0 auto;
    border-top: 4px solid var(--accent);
}
.lf-card h2 { margin-bottom: 6px; }
.lf-lead { color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .93rem; }
.field .req { color: var(--bad); }
.field .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; font-size: 1rem;
    background: #fff; color: var(--ink); min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(26, 77, 143, .12);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input.is-error, .field textarea.is-error { border-color: var(--bad); }
.field-err { color: var(--bad); font-size: .85rem; margin: 6px 0 0; }
.field-check { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.check a { color: var(--brand); }
.lf-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.lf-note-sm { font-size: .78rem; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 13. FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
    cursor: pointer; padding: 14px 30px 14px 0; font-weight: 600; color: var(--ink);
    position: relative; list-style: none; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 16px; color: var(--body); font-size: .96rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- 14. Шаги ---------- */
.steps-list { list-style: none; padding: 0; counter-reset: st; }
.step { display: flex; gap: 14px; margin-bottom: 18px; }
.step-num {
    width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
    display: grid; place-items: center; font-weight: 700; flex-shrink: 0; font-size: .95rem;
}
.step h3 { margin: 4px 0 4px; font-size: 1.02rem; }
.step p { margin: 0; font-size: .94rem; color: var(--muted); }

/* ---------- 15. Содержание, коротко, кейс ---------- */
.toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 20px; }
.toc-title { font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .94rem; }

.keypoints { background: var(--brand-light); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 20px; border-left: 4px solid var(--brand); }
.kp-title { font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.keypoints ul { margin: 0; padding-left: 1.2em; }
.keypoints li { margin-bottom: 6px; }

.case { background: #fffdf7; border: 1px solid #f0e2c0; border-radius: var(--radius-sm); padding: 18px; margin: 0 0 20px; }
.case-badge { display: inline-block; background: var(--warn-light); color: var(--warn); font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.case h3 { margin: 0 0 6px; }
.case-nomer { font-size: .85rem; color: var(--muted); margin: 0 0 12px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.case-dl { margin: 0 0 12px; }
.case-dl dt { font-weight: 700; color: var(--ink); font-size: .88rem; margin-top: 10px; }
.case-dl dd { margin: 2px 0 0; font-size: .94rem; }
.case-note { font-size: .78rem; color: var(--muted); margin: 0; }

.expert { margin: 0 0 20px; padding: 16px 18px 16px 20px; background: var(--bg); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.expert footer { margin-top: 10px; font-style: normal; font-weight: 600; color: var(--ink); font-size: .9rem; }

/* ---------- 16. Автор и дата ---------- */
.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; }
.author-ava { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.author-name { margin: 0; font-weight: 700; color: var(--ink); }
.author-job { margin: 2px 0; font-size: .88rem; color: var(--brand); }
.author-note { margin: 0; font-size: .85rem; color: var(--muted); }
.updated { font-size: .84rem; color: var(--muted); margin: 0 0 16px; }
.disclaimer { font-size: .82rem; color: var(--muted); background: var(--bg); border-left: 3px solid var(--line); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- 16-бис. Обязательное предупреждение (ч. 2 ст. 28.1 38-ФЗ) ---------- */
/* Должно быть заметным: норма требует не менее 7 % рекламной площади. */
.mandatory-warning {
    background: #fff8e6;
    border: 1px solid #e8d9a8;
    border-left: 4px solid var(--warn);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 16px 0;
}
.mandatory-warning p {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    color: #7a4f00;
    line-height: 1.5;
}
.site-footer .mandatory-warning {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(226, 98, 43, .5);
    border-left-color: var(--accent);
}
.site-footer .mandatory-warning p { color: #f3d9c4; }

/* ---------- 17. Карточка локации ---------- */
.map-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 16px; }
.map-card h3 { margin: 0 0 10px; font-size: 1rem; }
.kv-list { margin: 0; }
.kv { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv dt { font-size: .8rem; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 500; color: var(--ink); font-size: .93rem; }

/* ---------- 18. Перелинковка и CTA ---------- */
.related-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.related-list li { margin: 0; }
.related-list a { display: block; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; }
.related-list a:hover { border-color: var(--brand); background: #fff; }

.cta { background: var(--brand-dark); color: #fff; padding: 28px 0; margin: 20px 0; }
.cta h2 { color: #fff; font-size: 1.25rem; }
.cta p { color: #cfdff2; margin: 0; }
.cta-inner { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 19. Футер ---------- */
.site-footer { background: #0f2137; color: #a9bacd; padding: 32px 0 24px; margin-top: 32px; }
.ftr-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 26px; }
.ftr-col h3 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.ftr-col ul { list-style: none; padding: 0; margin: 0; }
.ftr-col li { margin-bottom: 7px; }
.ftr-col a { color: #a9bacd; text-decoration: none; font-size: .9rem; }
.ftr-col a:hover { color: #fff; text-decoration: underline; }
.ftr-disclosure { background: rgba(255, 255, 255, .05); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 22px; font-size: .88rem; }
.ftr-disclosure p { margin: 0; }
.ftr-disclosure strong { color: #fff; }
.ftr-legal { display: grid; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 18px; font-size: .85rem; }
.ftr-req p { margin: 0 0 4px; }
.ftr-docs { list-style: none; padding: 0; margin: 0; }
.ftr-docs li { margin-bottom: 6px; }
.ftr-docs a { color: #a9bacd; }
.ftr-disclaimer { font-size: .78rem; color: #7d8fa3; margin: 0 0 10px; }
.ftr-copy { font-size: .8rem; color: #7d8fa3; margin: 0; }

/* ---------- 20. Служебные ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   Планшет и десктоп
   ============================================================ */
@media (min-width: 700px) {
    body { font-size: 17px; padding-bottom: 0; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .hero { padding: 56px 0; }
    .hero h1 { font-size: 2.3rem; }
    .hero-actions .btn { flex: 0 0 auto; }
    .section { padding: 30px 28px; margin: 20px auto; }
    .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .result-grid { grid-template-columns: repeat(2, 1fr); }
    .result-top { flex-direction: row; text-align: left; }
    .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .cta-inner > div { max-width: 60%; }
    .lf-card { padding: 32px 30px; }
    .quiz-card { padding: 28px 26px; }
    .ftr-grid { grid-template-columns: repeat(3, 1fr); }
    .ftr-legal { grid-template-columns: 1.4fr 1fr; }
    .kv { flex-direction: row; gap: 12px; }
    .kv dt { flex: 0 0 42%; }
    .step-num { width: 38px; height: 38px; }
    .mobile-bar { display: none; }
    .related-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    h1 { font-size: 2.35rem; }
    .burger { display: none; }
    .nav-main {
        display: block; position: static; box-shadow: none; border: 0;
        background: transparent; padding: 0; margin-left: 8px; flex: 1;
    }
    .nav-main ul { display: flex; gap: 2px; flex-wrap: wrap; }
    .nav-main a { border-bottom: 0; padding: 9px 11px; font-size: .92rem; border-radius: var(--radius-sm); }
    .nav-main a:hover { background: var(--brand-light); }
    .nav-main a.is-active { background: var(--brand-light); }
    .hdr-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
    .hdr-phone { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; }
    .hdr-phone:hover { color: var(--accent-dark); }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .ftr-grid { grid-template-columns: repeat(5, 1fr); }
    .result-grid { grid-template-columns: repeat(2, 1fr); }
    .related-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Образцы документов (шаблон doc) ---------- */
.doc-sample {
    margin: 18px 0;
    padding: 16px 18px;
    background: #fbfcfe;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .85rem;
    line-height: 1.6;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------- Печать ---------- */
@media print {
    .site-header, .mobile-bar, .site-footer, .quiz, .lead-form, .cta { display: none; }
    body { background: #fff; }
    .section { box-shadow: none; border: 0; }
}
