:root {
  --brand: #0d9488;
  --brand-2: #0f766e;
  --ink: #0f172a;
  --head: #0f172a;
  --muted: #334155;
  --line: #d3e3e0;
  --soft: #e3f7f3;
  --gold: #0d9488;
  --gold-dark: #0f766e;
  --pill: #c4f1e8;
  --amount: #0f172a;
  --on: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.45;
}
a { color: inherit; }
.wrap { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }
header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
  position: relative;
}
.subnav { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; color: var(--head); letter-spacing: -0.03em; }
.brand svg { display: block; }
.brand-name { font-size: 1.15rem; line-height: 1; }
.brand-name span { color: var(--brand); }
.head-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; flex: 1; justify-content: center; }
.head-nav a, .menu a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.head-nav a:hover, .menu a:hover { color: var(--head); }
.head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-head {
  height: 40px; padding: 0 16px; border-radius: 12px; background: var(--brand); color: var(--on);
  font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center;
  gap: .3em; white-space: nowrap;
}
.btn-head:hover { background: var(--brand-2); }
.burger {
  width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 1.6px; background: var(--head); border-radius: 2px; position: relative;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, 90vw);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 12px 40px rgba(13,148,136,.16);
}
.menu.open { display: grid !important; gap: 8px; }
.menu a { padding: 8px 10px; border-radius: 10px; }
.menu a:hover { background: var(--soft); }
.hero { padding: 28px 0 20px; background: linear-gradient(180deg, #e3f7f3 0%, #fff 100%); }
.badge { margin: 0; color: var(--gold-dark); font-size: 14px; font-weight: 700; }
h1 {
  display: inline;
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--head);
}
h1 span { color: var(--head); }
.sub { margin: 12px 0 0; max-width: 820px; color: var(--muted); font-size: 16px; }
.checks {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 16px 0 0; padding: 0; list-style: none;
}
.checks li { font-size: 14px; font-weight: 600; }
.checks li::before { content: "✓ "; color: var(--gold-dark); }
.checks-low { display: none; }
.search {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--pill);
  border-radius: 999px;
}
.search input {
  flex: 1; min-width: 0; height: 48px; border: 0; border-radius: 999px;
  padding: 0 20px; font-size: 15px; outline: none; background: #fff;
}
.search button {
  height: 48px; border: 0; border-radius: 999px; padding: 0 28px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.search button:hover { background: var(--brand-2); }
.fresh {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0 0 10px;
}
.fresh span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, .08);
}
.fresh span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, .18);
}
.offers { background: #fff; color: var(--ink); padding: 28px 0 12px; }
.block { padding: 8px 0 28px; }
.block h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--head);
}
.lead {
  margin: 10px auto 22px;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 1.4fr) minmax(140px, 0.8fr) 200px;
  gap: 8px 24px;
  align-items: center;
  min-height: 72px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  width: 140px; height: 52px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
  padding: 6px 10px;
}
.logo img { max-width: 124px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.name { font-weight: 600; font-size: 15px; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mid { text-align: center; }
.pill {
  display: inline-block;
  background: var(--pill);
  color: var(--brand-2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}
.usp-line { color: var(--brand-2); font-size: 12px; font-weight: 600; }
.amount {
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--amount);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
}
.amount .from { width: 7ch; text-align: right; }
.amount .dash { width: 1.2ch; text-align: center; color: var(--muted); }
.amount .to { width: 9.5ch; text-align: left; }
.facts { color: var(--muted); font-size: 13px; line-height: 1.55; }
.btn {
  height: 46px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
}
.btn:hover { background: var(--brand-2); }
.empty, .err {
  border-radius: 16px; padding: 18px; text-align: center; font-size: 14px; color: var(--muted);
  background: var(--soft); border: 1px solid var(--line);
}
.skel {
  height: 92px; border-radius: 18px;
  background: linear-gradient(90deg, #f3f4f6, #eceff2, #f3f4f6);
  background-size: 200% 100%; animation: pulse 1.2s infinite;
}
@keyframes pulse { to { background-position: -200% 0; } }
.faq { padding: 28px 0 8px; }
.faq h2 { margin: 0 0 12px; font-size: 1.35rem; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; font-size: 0; }
details p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.band { background: #e9f7f4; padding: 36px 0; }
.band.white { background: #fff; }
.band h2, .faq h2 { color: var(--head); font-weight: 800; letter-spacing: -0.02em; }
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  align-items: stretch;
}
.calc-main { padding: 28px 32px; }
.calc-main h2 { margin: 0; font-size: 1.5rem; }
.calc-ranges { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 28px; }
.calc-side {
  padding: 28px 24px; background: #d4f3ec; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-top label { color: var(--muted); font-size: 14px; font-weight: 600; }
.range-top b { font-variant-numeric: tabular-nums; color: var(--head); font-size: 1.35rem; min-width: 8.5ch; text-align: right; }
input[type=range].calc-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; margin-top: 14px; border-radius: 999px; outline: none; background: #d3e3e0;
}
input[type=range].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(13,148,136,.45); cursor: pointer;
}
input[type=range].calc-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(13,148,136,.45); cursor: pointer;
}
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 8px; }
.payback { margin: 4px 0 0; font-size: 1.85rem; font-weight: 700; color: var(--head); font-variant-numeric: tabular-nums; }
.overpay { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: 14px; }
.overpay b { color: var(--head); }
.calc-side .btn { width: 100%; background: var(--brand); color: var(--on); border: 0; height: 48px; border-radius: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.why-list { display: grid; gap: 14px; }
.ticks { margin: 14px 0 0; padding: 0; list-style: none; }
.ticks li { margin: 6px 0; color: var(--muted); font-size: 14px; }
.ticks li::before { content: "✓ "; color: var(--gold-dark); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { border-top: 2px solid var(--brand); padding-top: 16px; }
.step h3 { margin: 0; color: var(--head); }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-note { margin: 28px auto 16px; text-align: center; max-width: 680px; }
.about-note strong { display: block; color: var(--gold-dark); letter-spacing: .04em; font-size: 13px; }
.about-note .sub { margin: 8px auto 0; max-width: none; }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: left; }
.mini-grid .card { min-height: 132px; }
.mini-grid .card h3 { margin: 0 0 8px; font-size: 17px; }
.mini-grid .sub { margin: 0; max-width: none; }
.lenders { display: none; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; text-align: left; }
.lenders.open { display: grid; }
.lender { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 13px; color: var(--muted); }
.lender h3 { margin: 0 0 8px; color: var(--head); font-size: 15px; }
.show-lenders { display: inline-flex; margin: 18px auto 0; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--head); border: 1px solid var(--line); background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding: 36px 0 8px; }
.foot-grid h3, .foot-grid .foot-h { margin: 0 0 12px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--head); }
.foot-grid ul { margin: 0; padding: 0; list-style: none; }
.foot-grid li { margin: 6px 0; }
.foot-grid a { color: var(--ink); text-decoration: none; font-size: 14px; }
.foot-legal { border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0 36px; font-size: 12px; }
.cookie { position: static; background: #eef6f4; border-top: 1px solid var(--line); padding: 14px 20px 20px; font-size: 13px; color: var(--muted); text-align: center; }
.cookie a { color: var(--brand-2); }
#search-empty[hidden] { display: none !important; }
#search-empty { margin: 8px auto 20px; max-width: 720px; }
.pwa-banner {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: min(440px, calc(100% - 24px));
  background: linear-gradient(160deg, #0d9488 0%, #115e59 100%);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(13, 148, 136, .38);
  padding: 18px 44px 16px 16px;
  overflow: hidden;
}
.pwa-banner::before {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.pwa-banner[hidden] { display: none !important; }
.pwa-banner-in { display: flex; align-items: center; gap: 12px; position: relative; }
.pwa-banner img { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; background: #fff; }
.pwa-kicker {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(255,255,255,.18); border-radius: 999px;
  padding: 2px 8px; margin-bottom: 4px;
}
.pwa-banner b { display: block; color: #fff; font-size: 17px; }
.pwa-banner p { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,.88); line-height: 1.4; }
.pwa-banner .btn {
  height: 44px; padding: 0 16px; font-size: 14px; border: 0; cursor: pointer;
  font-family: inherit; flex-shrink: 0; background: #fff; color: #0f766e;
}
.pwa-banner .btn:hover { background: #ecfeff; }
.pwa-x {
  position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
  border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #fff; z-index: 1;
}
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 44px; height: 44px; border: 0; border-radius: 14px;
  background: var(--brand); color: #fff; font-size: 20px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(13,148,136,.28);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--brand-2); }
@media (max-width: 640px) {
  .pwa-banner { right: 12px; left: 12px; width: auto; bottom: 12px; }
  .pwa-banner-in { flex-wrap: wrap; }
  .pwa-banner .btn { width: 100%; }
  .to-top { right: 12px; bottom: 88px; }
}
footer { margin-top: 8px; border-top: 1px solid var(--line); background: #f3faf9; color: var(--muted); font-size: 12px; }
footer strong { color: var(--head); font-size: 15px; }
@media (max-width: 980px) {
  .head-nav { display: none; }
  .subnav {
    display: block;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .subnav .wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 10px;
  }
  .subnav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    min-height: 0;
  }
  .subnav a:hover { background: none; color: var(--brand-2); }
  .calc, .calc-ranges, .steps, .trio, .mini-grid, .lenders.open, .foot-grid { grid-template-columns: 1fr; }
  .calc-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero { padding: 16px 0 12px; }
  .hero .sub { display: none; }
  .checks-hero { display: none; }
  .checks-low {
    display: flex;
    margin: 8px 0 20px;
  }
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "who mid"
      "facts cta";
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    min-height: 0;
    padding: 12px 14px;
  }
  .who { grid-area: who; min-width: 140px; }
  .row .name { display: none; }
  .logo { width: 140px; height: 52px; }
  .mid { grid-area: mid; text-align: right; }
  .amount {
    justify-content: flex-end;
    font-size: 1.05rem;
    gap: 4px;
  }
  .amount .from, .amount .to, .amount .dash { width: auto; }
  .facts { grid-area: facts; font-size: 12px; }
  .row .btn {
    grid-area: cta;
    height: 40px;
    min-width: 148px;
    padding: 0 14px;
    font-size: 13px;
    justify-self: end;
    align-self: end;
  }
  .btn-head span { display: none; }
  .btn-head { padding: 0 12px; }
  .search { margin-top: 14px; padding: 5px; gap: 6px; }
  .search input { height: 44px; padding: 0 14px; font-size: 14px; }
  .search button { height: 44px; padding: 0 16px; font-size: 14px; }
}
