/* Сверка — витрина займов. Токены */
:root {
  --ink: #0f1b2d;
  --ink-2: #3b4658;
  --ink-3: #6b7486;
  --paper: #f5f3ee;
  --card: #ffffff;
  --line: #e4e0d6;
  --brand: #0d6b4f;
  --brand-dark: #08513b;
  --lime: #d4f25a;
  --lime-soft: #eef9c4;
  --amber: #f2a541;
  --amber-soft: #fdf0dc;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px -12px rgba(15, 27, 45, .18);
  --wrap: 1180px;
  --font: "Onest", 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);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #c6e64a; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 238, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; text-decoration: none; }
.logo small { display: none; font-weight: 500; font-size: 12px; color: var(--ink-3); letter-spacing: 0; line-height: 1.2; }
@media (min-width: 900px) { .logo small { display: block; border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px; } }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav button { background: none; border: 0; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); }
.nav button:hover { background: rgba(15, 27, 45, .06); color: var(--ink); }
.header .btn { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (min-width: 900px) { .nav { display: flex; } .header .btn { margin-left: 8px; } }

/* Hero */
.hero { padding: 40px 0 28px; }
@media (min-width: 900px) { .hero { padding: 64px 0 40px; } }
.hero__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 48px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22b573; box-shadow: 0 0 0 4px rgba(34, 181, 115, .18); }
.hero h1 { font-size: clamp(32px, 5.4vw, 58px); font-weight: 800; margin: 18px 0 16px; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--lime) 58%); color: inherit; padding: 0 .08em; }
.hero__lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--ink-3); line-height: 1.3; display: block; }

.tipcard { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.tipcard::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 242, 90, .35), transparent 70%);
}
.tipcard h2 { font-size: 20px; margin-bottom: 16px; }
.tipcard ol { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 14px; }
.tipcard li { counter-increment: t; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 15px; color: #d6dbe4; }
.tipcard li::before {
  content: counter(t); width: 32px; height: 32px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.tipcard li b { color: #fff; display: block; font-weight: 600; }

/* Section */
.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section__head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.section__head p { color: var(--ink-3); max-width: 520px; }

/* Filters */
.filters {
  position: sticky; top: 64px; z-index: 40;
  background: var(--paper);
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}
.filters.is-stuck { border-bottom-color: var(--line); }
.filters__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .filters__row { flex-wrap: nowrap; }
  .chips { flex: 1 1 auto; min-width: 0; }
  .amount { flex: 0 0 300px; }
}
.chip {
  flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.amount { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 16px; flex: 1 1 260px; }
.amount label { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.amount output { font-weight: 700; min-width: 86px; text-align: right; white-space: nowrap; }
.amount input[type=range] { flex: 1; accent-color: var(--brand); min-width: 80px; }
.sort { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; color: var(--ink-2); }
.found { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }
.found b { color: var(--ink); }

/* Offers */
.offers { display: grid; gap: 12px; margin-top: 12px; counter-reset: rank; }
.offer {
  position: relative; display: grid; gap: 14px;
  grid-template-columns: 1fr;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.offer:hover { border-color: #c9c3b3; box-shadow: var(--shadow); transform: translateY(-1px); }
.offer.is-top { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.offer__top { display: flex; align-items: center; gap: 14px; }
.offer__rank {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--paper);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--ink-2);
}
.offer.is-top .offer__rank { background: var(--lime); color: var(--ink); }
.offer__logo { flex: none; width: 112px; height: 44px; display: flex; align-items: center; }
.offer__logo img { max-height: 40px; max-width: 112px; object-fit: contain; }
.offer__title { min-width: 0; }
.offer__name { font-weight: 700; font-size: 17px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--lime-soft); color: #3f5a00; white-space: nowrap; }
.badge--id { background: #e6eefc; color: #23468f; }
.badge--fast { background: var(--amber-soft); color: #8a5300; }

.params { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 0; }
.params div { min-width: 0; }
.params dt { font-size: 12px; color: var(--ink-3); }
.params dd { margin: 0; font-weight: 600; font-size: 15px; white-space: nowrap; }
.approve { display: inline-flex; align-items: center; gap: 6px; }
.approve::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22b573; }
.approve--mid::before { background: var(--amber); }

.offer__cta { display: flex; flex-direction: column; gap: 6px; }
.offer__cta .btn { width: 100%; }
.offer__ad { font-size: 11px; color: var(--ink-3); text-align: center; }

@media (min-width: 900px) {
  .offer { grid-template-columns: minmax(280px, 1.1fr) 2fr 190px; align-items: center; padding: 18px 22px; gap: 24px; }
  .params { grid-template-columns: repeat(4, 1fr); }
}
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--ink-3); }

/* Steps */
.steps { display: grid; gap: 12px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__n { font-size: 44px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.04em; }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Warnings */
.warns { display: grid; gap: 12px; }
@media (min-width: 900px) { .warns { grid-template-columns: repeat(3, 1fr); } }
.warn { border-radius: var(--radius); padding: 24px; background: var(--amber-soft); }
.warn:nth-child(2) { background: var(--lime-soft); }
.warn:nth-child(3) { background: #e9edf3; }
.warn h3 { font-size: 18px; margin-bottom: 10px; }
.warn p { font-size: 15px; color: var(--ink-2); }

/* Calc */
.calc { display: grid; gap: 20px; background: var(--ink); color: #fff; border-radius: 24px; padding: 24px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; padding: 40px; gap: 48px; align-items: center; } }
.calc h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.calc p { color: #b7c0cf; margin-top: 10px; }
.calc__box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; }
.calc__row label { display: flex; justify-content: space-between; font-size: 14px; color: #b7c0cf; margin-bottom: 6px; }
.calc__row label b { color: #fff; font-size: 16px; }
.calc__row input { width: 100%; accent-color: var(--lime); }
.calc__res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__res div { background: rgba(255, 255, 255, .06); border-radius: var(--radius-sm); padding: 12px; }
.calc__res span { font-size: 12px; color: #b7c0cf; display: block; }
.calc__res b { font-size: 22px; }
.calc__res .zero b { color: var(--lime); }
.calc__note { font-size: 12px; color: #8f99aa; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }

/* Lead form */
.lead { display: grid; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
@media (min-width: 900px) { .lead { grid-template-columns: 1fr 1.1fr; padding: 40px; gap: 48px; } }
.lead h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.lead__text p { color: var(--ink-2); margin-top: 12px; }
.lead__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.lead__list li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: 12px;
}
.field input:focus { outline: none; border-color: var(--brand); background: #fff; }
.form__2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .form__2 { grid-template-columns: 1fr 1fr; } }
.field textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink); resize: vertical; min-height: 96px;
  background: var(--paper); border: 1.5px solid transparent; border-radius: 12px;
}
.field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field input.is-bad, .field textarea.is-bad { border-color: #d0453b; background: #fff; }
.files { display: grid; gap: 10px; }
@media (min-width: 700px) { .files { grid-template-columns: repeat(3, 1fr); } }
.file {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px dashed #c9c3b3; border-radius: 12px; padding: 12px; background: #fff;
  transition: border-color .15s, background .15s;
}
.file:hover { border-color: var(--brand); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; font-weight: 800; color: var(--ink-2); }
.file__txt { min-width: 0; line-height: 1.3; }
.file__txt b { display: block; font-size: 14px; }
.file__txt small { display: block; font-size: 12px; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file.is-done { border-style: solid; border-color: var(--brand); background: #f3faf6; }
.file.is-done .file__ico { background: var(--brand); color: #fff; font-size: 0; }
.file.is-done .file__ico::after { content: "✓"; font-size: 16px; }
.file.is-bad { border-color: #d0453b; }
/* Форма в исходной структуре */
.lead2 { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
@media (min-width: 900px) { .lead2 { padding: 48px; } }
.lead2 h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; max-width: 900px; }
.lead2__sub { margin-top: 24px !important; color: var(--ink-2); font-weight: 700 !important; font-size: clamp(18px, 2.2vw, 24px) !important; }
.dl { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; text-decoration: none; }
.dl img { width: 40px; height: 40px; }
.lead2__form { max-width: 760px; margin-top: 36px; }
.upl__title { font-weight: 700; font-size: 18px; margin-top: 6px; }
.upl__list { list-style: none; padding: 0; margin: -6px 0 0; color: var(--ink-2); font-size: 15px; }
.upl { display: grid; gap: 16px; align-items: end; }
.upl__btns { display: grid; gap: 10px; }
@media (min-width: 700px) { .upl { grid-template-columns: 1fr 240px; } .upl__btns { max-width: 340px; } }
.docs-img { display: none; width: 100%; max-width: 800px; margin: 24px auto 0; border-radius: var(--radius); }
@media (min-width: 1024px) { .docs-img { display: block; } }
#licenses .lic__grid { margin-top: 0; }
.docs-need { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--paper); display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.docs-need b { color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); }
.consent input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.form .btn { width: 100%; min-height: 54px; font-size: 16px; }
.form__msg { font-size: 14px; color: #b3261e; min-height: 1em; }

/* Licenses */
.lic summary { cursor: pointer; font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lic summary::-webkit-details-marker { display: none; }
.lic summary span { font-size: 14px; font-weight: 500; color: var(--brand); white-space: nowrap; }
.lic__grid { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 700px) { .lic__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .lic__grid { grid-template-columns: repeat(3, 1fr); } }
.lic__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; color: var(--ink-3); }
.lic__item b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }

/* Footer */
.footer { background: var(--ink); color: #aab3c2; padding: 40px 0 96px; font-size: 13px; margin-top: 24px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr; gap: 48px; } }
.footer p + p { margin-top: 10px; }
.footer__req p { color: #d6dbe4; }
.footer a { color: var(--lime); }

/* Cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--ink-2);
}
.cookie .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* To top on mobile */
.mcta { position: fixed; right: 16px; bottom: 16px; z-index: 45; box-shadow: var(--shadow); }
@media (min-width: 900px) { .mcta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
