:root {
  --green: #2dbe64;
  --green-600: #23a557;
  --green-700: #1c8a47;
  --green-050: #eaf7ef;
  --berry: #d7144b;
  --berry-050: #fdeef2;
  --ink: #1d1d1b;
  --muted: #5b6660;
  --line: #e6ece8;
  --surface: #ffffff;
  --surface-2: #f3f8f2;
  --shadow-sm: 0 2px 8px rgba(28, 60, 40, 0.06);
  --shadow: 0 12px 40px rgba(28, 80, 48, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-050);
  padding: 6px 12px;
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

.header-phone small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 15px 26px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(45, 190, 100, 0.32);
}

.btn--primary:hover {
  background: var(--green-600);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: #fff;
  color: var(--green-700);
  border: 1.5px solid var(--green);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 480px at 82% -10%, var(--green-050), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  padding: 46px 0 64px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  margin: 16px 0 14px;
}

.hero h1 .accent {
  color: var(--green);
}

.hero .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 30em;
  margin: 0 0 26px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.metric strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: -0.02em;
}

.metric span {
  font-size: 13px;
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232dbe64' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ---------- Form card ---------- */
.form-card {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.form-card__head {
  margin-bottom: 16px;
}

.form-card__head h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 10px 0 6px;
}

.form-card__head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6660' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(45, 190, 100, 0.14);
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: var(--berry);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  margin: 4px 0 16px;
}

.consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex: none;
}

.consent a {
  color: var(--green-700);
  text-decoration: underline;
}

.form-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.form-note .note-ic {
  color: var(--green-700);
  display: inline-flex;
  vertical-align: -3px;
}

.form-note .note-ic svg {
  width: 15px;
  height: 15px;
}

.mobile-cta__call svg {
  width: 22px;
  height: 22px;
}

.status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}

.status[data-state="error"] {
  color: var(--berry);
}

.status[data-state="success"] {
  color: var(--green-700);
}

/* ---------- Generic section ---------- */
.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--surface-2);
}

.section__head {
  max-width: 44em;
  margin-bottom: 34px;
}

.section__head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  margin: 14px 0 10px;
}

.section__head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.trust strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.trust span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-050);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--green-700);
}

.card .ic svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card--berry .ic {
  background: var(--berry-050);
  color: var(--berry);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* ---------- Final CTA ---------- */
.final {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%);
  color: #fff;
  border-radius: 26px;
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.final h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 6px;
}

.final p {
  margin: 0;
  opacity: 0.92;
}

.final .btn--primary {
  background: #fff;
  color: var(--green-700);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #12211a;
  color: #bcd3c5;
  padding: 40px 0;
  font-size: 14px;
}

.site-footer a {
  color: #fff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  color: #8fa89a;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .form-card {
    position: static;
    order: -1;
  }
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .header-phone small {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .cards,
  .steps,
  .trust {
    grid-template-columns: 1fr;
  }
  .final {
    padding: 30px 22px;
  }
  .section {
    padding: 48px 0;
  }
  body {
    padding-bottom: 76px;
  }
  .header-cta {
    display: none;
  }
  .mobile-cta {
    display: flex;
    gap: 10px;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-cta__call {
    flex: none;
    width: 52px;
    padding: 14px 0;
    font-size: 20px;
  }
  .mobile-cta__apply {
    flex: 1;
  }
}

/* ---------- Income calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.calc__control {
  align-self: center;
}

.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-weight: 600;
}

.calc__row strong {
  font-size: 26px;
  color: var(--green-700);
}

.calc__control input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}

.calc__control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.calc__control input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green);
  cursor: pointer;
}

.calc__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.calc__result {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc__result > span {
  color: var(--muted);
  font-size: 14px;
}

.calc__result strong {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: -0.02em;
}

.calc__result small {
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 10px;
}

/* ---------- Photos + reviews ---------- */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-050);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 12px 16px;
  font-size: 14px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.review__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--a, #2dbe64);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.review__head strong {
  display: block;
  font-size: 15px;
}

.review__head small {
  color: var(--muted);
  font-size: 12.5px;
}

.stars {
  color: #f5b301;
  font-size: 14px;
  letter-spacing: 1px;
}

.review blockquote {
  margin: 0;
  color: #3a4640;
  font-size: 15px;
  line-height: 1.55;
}

.guarantees {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.guarantees div {
  text-align: center;
  background: var(--green-050);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
}

.guarantees strong {
  display: block;
  color: var(--green-700);
  font-size: 17px;
}

.guarantees span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Second form block ---------- */
.apply2 {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.apply2__copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 12px 0 12px;
}

.apply2__copy p {
  color: var(--muted);
  margin: 0 0 16px;
}

.form-card--flat {
  position: static;
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .calc,
  .apply2 {
    grid-template-columns: 1fr;
  }
  .reviews,
  .photos {
    grid-template-columns: 1fr 1fr;
  }
  .guarantees {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .reviews,
  .photos,
  .guarantees {
    grid-template-columns: 1fr;
  }
  .calc,
  .form-card--flat,
  .review {
    padding: 20px;
  }
}
