:root {
  color-scheme: light;
  font-family: Inter, Arial, Helvetica, sans-serif;
  --ink: #1d2528;
  --muted: #5b686d;
  --line: #dce3e1;
  --paper: #ffffff;
  --soft: #f4f8f7;
  --green: #0c8068;
  --green-deep: #075c4e;
  --coral: #e2554f;
  --yellow: #f4bf36;
  --cyan: #2f9fb3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green-deep);
}

.btn,
.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn,
.btn {
  background: var(--green);
  color: #ffffff;
}

.secondary-btn {
  border-color: var(--line);
  background: #ffffff;
  color: var(--green-deep);
}

.ghost-btn {
  border-color: var(--line);
  background: transparent;
  color: var(--green-deep);
}

.hero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 42px;
  padding: 44px 0 56px;
}

.subhero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--green-deep);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.22;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat,
.mini-card,
.offer-card,
.tool-card,
.product-card,
.smart-panel,
.article-card,
.faq-card,
.partner-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.stat {
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 23px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.calculator {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(29, 37, 40, 0.08);
  overflow: hidden;
}

.calculator-head {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

.calculator-head p,
.smart-panel > p,
.article-card p,
.product-card p,
.tool-card p,
.partner-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.controls,
.field-stack {
  display: grid;
  gap: 16px;
  padding: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.money-input {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.money-input span {
  height: 52px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  background: #eef7f4;
  color: var(--green-deep);
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
  outline: none;
}

.money-input input {
  height: 52px;
  border: 0;
  border-radius: 0;
  font-size: 20px;
}

input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--green);
}

.range-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.term-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.term-btn.is-active {
  border-color: var(--green);
  background: #eaf6f3;
  color: var(--green-deep);
}

.result-table,
.smart-result {
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.result-row:last-child {
  border-bottom: 0;
}

.result-row span,
.smart-result span,
.metric span,
.market-row span {
  color: var(--muted);
  line-height: 1.35;
}

.result-row strong {
  text-align: right;
  font-size: 19px;
  white-space: nowrap;
}

.calculator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 22px 22px;
}

section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3,
.offer-grid,
.smart-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-4,
.product-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.offer-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.bank {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bank-logo,
.icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7f4;
  color: var(--green-deep);
  font-weight: 900;
}

.bank span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  align-self: start;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff5d9;
  color: #6d4d00;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.offer-body,
.mini-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.metric,
.market-row,
.product-meta span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  line-height: 1.35;
}

.metric strong,
.market-row strong,
.product-meta b {
  text-align: right;
}

.condition {
  min-height: 58px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfc;
  line-height: 1.45;
}

.offer-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 0 20px 20px;
}

.band-white {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 42px;
}

.proof-image,
.feature-image {
  width: 100%;
  height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.proof-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.proof-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
}

.proof-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf6f3;
  color: var(--green-deep);
  font-weight: 900;
}

.proof-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.product-card,
.tool-card,
.article-card,
.partner-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 20px;
}

.tool-card img,
.article-card img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 16px;
}

.product-meta {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.product-meta span {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
}

.smart-panel {
  overflow: hidden;
}

.smart-panel h2,
.smart-panel h3 {
  padding: 18px 18px 0;
}

.smart-panel > p {
  margin-left: 18px;
  margin-right: 18px;
}

.smart-result,
.mini-market {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.smart-result strong {
  display: block;
  margin-top: 4px;
  font-size: 23px;
  line-height: 1.2;
}

.readiness-result {
  border-bottom: 1px solid var(--line);
}

.readiness-advice {
  margin: 18px;
}

.readiness-advice li {
  margin-top: 8px;
}

.market-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.market-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.article-card small,
.partner-label {
  color: var(--coral);
  font-weight: 900;
}

.article-card strong {
  display: block;
  margin-top: 12px;
  font-size: 21px;
  line-height: 1.25;
}

.article-card a {
  margin-top: auto;
  color: var(--green-deep);
  font-weight: 900;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.content-main {
  display: grid;
  gap: 18px;
}

.content-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}

.content-block p,
.content-block li {
  color: var(--muted);
  line-height: 1.65;
}

.content-block ul,
.content-block ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.sidebox {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.sidebox a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--green-deep);
  font-weight: 900;
}

.sidebox a:first-of-type {
  border-top: 0;
}

.faq-card {
  padding: 0;
  overflow: hidden;
}

details {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
}

details:first-child {
  border-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.35;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.partner-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.partner-tile strong {
  display: block;
  font-size: 22px;
}

.partner-tile span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.footer {
  padding: 36px 0;
  background: var(--ink);
  color: #ffffff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p,
.fine-print {
  color: #c8d2d0;
  line-height: 1.55;
}

.fine-print {
  max-width: 720px;
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 50;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(29, 37, 40, 0.14);
}

.cookie-banner strong {
  display: block;
  font-size: 18px;
}

.cookie-banner p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1040px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-grid,
  .proof-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .sidebox {
    position: static;
  }

  .grid-4,
  .product-grid,
  .tool-grid,
  .partner-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .trust-row,
  .grid-2,
  .grid-3,
  .grid-4,
  .offer-grid,
  .smart-grid,
  .article-grid,
  .product-grid,
  .tool-grid,
  .partner-strip,
  .calculator-actions,
  .terms {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-grid,
  .cookie-banner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .proof-image,
  .feature-image {
    height: 280px;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .result-row strong {
    text-align: left;
  }
}
