:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #14213d;
  --muted: #66748f;
  --line: #dfe6f1;
  --blue: #2558ff;
  --blue-2: #eaf0ff;
  --green: #11a36a;
  --green-2: #e9fbf4;
  --violet: #6756ff;
  --violet-2: #f0edff;
  --shadow: 0 18px 48px rgba(24, 47, 92, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(223,230,241,.8);
}
.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-weight: 800;
  font-size: 28px;
  color: var(--blue);
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #31415f;
  font-weight: 500;
}
.login-link, .btn-primary, .btn-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  transition: .18s ease;
}
.login-link {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.login-link:hover, .btn-secondary:hover { transform: translateY(-1px); }

.hero {
  padding: 44px 0 28px;
  background:
    radial-gradient(circle at top left, rgba(37,88,255,.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  padding: 34px 8px 24px 0;
}
.label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue-2);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .95;
  letter-spacing: -0.04em;
  max-width: 780px;
}
.hero-text {
  margin: 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 700px;
}
.hero-points {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-points span {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  color: #30415f;
  font-weight: 600;
}
.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1;
}
.hero-stat span {
  color: var(--muted);
  font-size: 14px;
}

.hero-form {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 24px;
}
.form-badge {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero-form h2 {
  margin: 10px 0 18px;
  font-size: 28px;
  line-height: 1.1;
}
form { display: grid; gap: 14px; }
label span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #4b5874;
  font-weight: 600;
}
input, select {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
}
input::placeholder { color: #8b98b3; }
.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}
.preset-chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #30415f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.preset-chip.is-active {
  border-color: var(--blue);
  background: var(--blue-2);
  color: var(--blue);
}
.estimate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  border: 1px solid #dbe4ff;
}
.estimate-label {
  margin-bottom: 4px;
  color: #5f6f90;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.estimate-box strong {
  font-size: 24px;
  line-height: 1.1;
}
.estimate-box span {
  max-width: 160px;
  color: #5f6f90;
  font-size: 12px;
  text-align: right;
}
.consent-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.check-row input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
}
.check-row span {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.check-row a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-primary {
  margin-top: 6px;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  padding: 0 20px;
}
.btn-primary:hover { background: #1846e6; }
.form-note {
  margin: 12px 0 0;
  color: #7f8aa3;
  font-size: 13px;
}

.safety {
  padding: 10px 0 0;
}
.safety-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.safety-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-2);
  font-size: 24px;
}
.safety-grid h3 { margin: 0 0 6px; font-size: 22px; }
.safety-grid p, .safety-note { margin: 0; color: var(--muted); }
.safety-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.partner-strip {
  padding: 18px 0 0;
}
.partner-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}
.partner-label {
  color: #51607e;
  font-weight: 700;
}
.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.partner-tags span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  color: #30415f;
  font-weight: 600;
}

.section { padding: 72px 0; }
.muted { background: #eef3fa; }
.section-head { margin-bottom: 28px; }
.section-head.compact { margin-bottom: 22px; }
.section-head h2, .trust h2, .faq h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card, .offer-card, .trust-box, .faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.step-card {
  padding: 24px;
}
.step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-2);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 16px;
}
.step-card h3, .offer-title { margin: 0 0 8px; font-size: 24px; line-height: 1.1; }
.step-card p, .trust p, .offer-card li, .faq-list p { margin: 0; color: var(--muted); }

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.offer-card {
  padding: 22px;
}
.offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.bank {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5d6d8e;
  font-weight: 700;
  margin-bottom: 6px;
}
.rate {
  font-size: 18px;
  font-weight: 800;
}
.offer-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.accent-blue { border-top: 5px solid var(--blue); }
.accent-green { border-top: 5px solid var(--green); }
.accent-violet { border-top: 5px solid var(--violet); }
.btn-secondary {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 20px;
  align-items: start;
}
.trust p { max-width: 680px; }
.trust-box {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.trust-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.trust-metric strong {
  font-size: 28px;
  line-height: 1;
}
.trust-metric span {
  color: var(--muted);
  text-align: right;
}

.cta-band {
  padding-top: 12px;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-band-inner h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.faq-list {
  display: grid;
  gap: 14px;
}
.faq-list details {
  padding: 20px 22px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin-top: 12px; }

.doc-page {
  padding: 36px 0 56px;
}
.doc-shell {
  max-width: 980px;
}
.doc-back {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-weight: 700;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.doc-title {
  margin: 14px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.doc-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}
.doc-alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7e8;
  border: 1px solid #f0d59b;
  color: #6d5310;
  font-weight: 600;
}
.doc-points {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.doc-frame {
  width: 100%;
  min-height: 960px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.site-footer {
  padding: 10px 0 42px;
}
.site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  color: #5c6b88;
}
.site-footer p {
  max-width: 460px;
  margin: 8px 0 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}
.footer-links a {
  color: var(--blue);
}

@media (max-width: 980px) {
  .hero-grid, .trust-grid, .offers, .steps, .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero-copy { padding-right: 0; }
  .safety-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .safety-note { white-space: normal; }
  .partner-strip-inner,
  .cta-band-inner,
  .site-footer-inner,
  .estimate-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .estimate-box span { max-width: none; text-align: left; }
  .doc-frame { min-height: 720px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .topbar-inner { min-height: 68px; }
  .hero { padding-top: 28px; }
  h1 { font-size: 40px; }
  .hero-text { font-size: 17px; }
  .section { padding: 52px 0; }
  .doc-card { padding: 18px; }
  .doc-frame { min-height: 560px; }
}
