/* Публичный сайт bankrotly.ru: посадочная, чек-лист, политика ПДн.
   Палитра — из дизайн-системы интерфейса (styles.scss): бумага, чернила, печатная зелень.
   Только светлая тема — тёмная системная тема посетителя не применяется. */
@import url("/site/fonts.css");

:root {
  --paper: #F7F7F5;
  --sheet: #FFFFFF;
  --sheet-2: #F2F2EE;
  --ink: #15171A;
  --ink-2: #4B5058;
  --ink-3: #62676E;
  --rule: #E5E5E0;
  --rule-strong: #CFCFC8;
  --brand: #12694C;
  --brand-ink: #0A4230;
  --brand-hover: #0E543C;
  --brand-soft: #EFF6F2;
  --brand-line: #BEDCCE;
  --danger: #B3352A;
  --danger-soft: #FCEFEE;
  --warn-soft: #FCF5E7;
  --warn-ink: #7E4A00;
  --shadow: 0 1px 2px rgba(21, 23, 26, .05), 0 8px 24px rgba(21, 23, 26, .05);
  --radius: 10px;
  --font: "Golos Text", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 7px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.top .spacer { flex: 1; }
.top-phone { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
@media (max-width: 720px) { .top-phone { display: none; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--sheet-2); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- первый экран ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 600px; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) { .hero { padding: 40px 0 32px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } .lead { font-size: 17px; } }
@media (max-width: 420px) { .hero-cta .btn { width: 100%; } }

/* карточка «что на кону» */
.stake { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.stake h2 { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.stake ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.stake li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 15px; color: var(--ink-2); }
.stake li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.stake li b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.stake .foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }

/* ---------- секции ---------- */
section.block { padding: 64px 0; border-top: 1px solid var(--rule); }
section.block.alt { background: var(--sheet); }
.block h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; max-width: 760px; }
.block .sub { margin-top: 12px; color: var(--ink-2); max-width: 720px; }
@media (max-width: 640px) { section.block { padding: 44px 0; } }

/* сроки */
.timeline { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: t; }
.timeline > div { position: relative; padding: 0 20px 0 0; counter-increment: t; }
.timeline > div::before { content: counter(t); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line); font-weight: 600; margin-bottom: 14px; position: relative; z-index: 1; }
.timeline > div::after { content: ""; position: absolute; top: 18px; left: 36px; right: 0; height: 1px; background: var(--brand-line); }
.timeline > div:last-child::after { display: none; }
.timeline h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.timeline p { font-size: 15px; color: var(--ink-2); }
.timeline .when { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--warn-ink); background: var(--warn-soft); padding: 2px 8px; border-radius: 4px; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .timeline > div { padding: 0 0 0 52px; }
  .timeline > div::before { position: absolute; left: 0; top: 0; margin: 0; }
  .timeline > div::after { top: 36px; bottom: -24px; left: 18px; right: auto; width: 1px; height: auto; }
}

/* аргументы защиты */
.grid3 { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--paper); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-2); }
.card .law { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }

/* как работаем */
.steps { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps .card b { display: block; font-size: 13px; color: var(--brand-ink); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.note { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--warn-soft); color: var(--ink); font-size: 15px; border: 1px solid color-mix(in srgb, var(--warn-ink) 20%, transparent); }

/* ---------- форма ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.form-side ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.form-side li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 16px; }
.form-side li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2312694C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid var(--brand-line); }
form.lead-form { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.alt form.lead-form { background: var(--paper); }
@media (max-width: 600px) { form.lead-form { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 8px; padding: 11px 12px; transition: border-color .15s; }
.alt .field input, .alt .field textarea { background: var(--sheet); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-msg { font-size: 15px; }
.form-msg.err { color: var(--danger); }
.form-done { grid-column: 1 / -1; padding: 8px 0; }
.form-done h3 { font-size: 20px; margin-bottom: 8px; }
.form-done p { color: var(--ink-2); }

/* ---------- вопросы ---------- */
.faq { margin-top: 32px; display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 22px; }
.alt .faq details { background: var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 16px; }
.faq details p + p { margin-top: -6px; }

/* ---------- подвал ---------- */
footer.foot { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 14px; color: var(--ink-3); }
footer.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; }
footer.foot .name { color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
footer.foot .contacts { display: grid; gap: 4px; }
footer.foot a { color: var(--ink-2); }
footer.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
@media (max-width: 720px) { footer.foot .wrap { grid-template-columns: minmax(0, 1fr); } }

/* плашка о cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.cookie a { color: inherit; }
.cookie button { flex: none; height: 34px; padding: 0 14px; border-radius: 6px; border: 0; background: var(--paper); color: var(--ink); font: 500 14px/1 var(--font); cursor: pointer; }

/* ---------- страницы-документы (чек-лист, политика) ---------- */
.doc { padding: 48px 0 64px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.doc .lead { margin-top: 14px; }
.doc h2 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc .meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.doc-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.checklist { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: c; display: grid; gap: 14px; }
.checklist > li { counter-increment: c; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px 20px 72px; position: relative; break-inside: avoid; }
.checklist > li::before { content: counter(c); position: absolute; left: 22px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); font-weight: 600; display: grid; place-items: center; }
.checklist h3 { font-size: 18px; font-weight: 600; color: var(--ink); }
.checklist .day { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--warn-ink); background: var(--warn-soft); padding: 2px 8px; border-radius: 4px; vertical-align: 2px; }
.checklist p { margin-top: 6px; font-size: 15px; }
.checklist ul { margin: 8px 0 0; padding-left: 20px; font-size: 15px; }
.checklist .law { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 600px) { .checklist > li { padding: 18px 16px 18px 60px; } .checklist > li::before { left: 16px; top: 18px; } }

@media print {
  .top, .cookie, .no-print, footer.foot, .doc-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .checklist > li { border-color: #bbb; }
  a { color: #000; }
}
