:root {
  color-scheme: light;
  --ink: #162b24;
  --muted: #486055;
  --green: #16483a;
  --dark: #0e3026;
  --paper: #ffffff;
  --lime: #f5dfad;
  --line: #cfe3da;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #458767; outline-offset: 3px; }
.wrap { max-width: 1160px; width: calc(100% - 64px); margin-inline: auto; }
.header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { display: block; width: clamp(125px, 45vw, 235px); height: auto; }
.footer .brand { background: #fff; padding: 8px 10px; border-radius: 8px; }
.footer .brand-logo { width: clamp(125px, 45vw, 184px); }
nav { display: flex; gap: 32px; color: var(--muted); }
nav a, .header-apply { text-decoration: none; font-weight: 650; }
nav a:hover, .header-apply:hover { text-decoration: underline; }
.header-apply { color: var(--green); white-space: nowrap; }
.hero { min-height: 490px; padding-block: 64px; display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .15em; font-size: .74rem; font-weight: 750; color: var(--green); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.065em; margin: 0; line-height: 1; }
h1 { font-size: clamp(3.35rem, 6.4vw, 6rem); }
h2 { font-size: clamp(2.4rem, 4.3vw, 4.2rem); }
h3 { font-size: 1.12rem; margin: 12px 0 6px; }
.hero-copy > p:not(.eyebrow), .application-intro > p:not(.eyebrow) { color: var(--muted); max-width: 37ch; }
.hero-copy > p:not(.eyebrow) { font-size: 1.1rem; margin: 24px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 49px; justify-content: center; align-items: center; gap: 15px; border: 1px solid transparent; padding: 10px 20px; border-radius: 8px; text-decoration: none; cursor: pointer; font-weight: 700; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--dark); }
.secondary { background: transparent; border-color: #b9c9bb; color: var(--green); }
.secondary:hover { background: #e7f6f0; }
.button:disabled { opacity: .6; cursor: default; }
.required-note { font-size: .9rem; }
.hero-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.hero-photos img { display: block; width: 100%; height: auto; background: #e7f6f0; border-radius: 14px; }
.hero-photos .hero-family { grid-column: 1 / -1; border-radius: 24px; }
.process { background: #e7f6f0; border-block: 1px solid var(--line); padding-block: 52px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; }
.steps article { padding: 21px 18px 0 0; border-top: 1px solid #bfded2; }
.step-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #d2eee4; color: var(--green); }
.steps p, .questions p { color: var(--muted); margin: 0; }
.rates { max-width: 640px; margin-top: 36px; }
.rates h3 { margin: 0 0 12px; font-size: 1.35rem; }
.rates table { width: 100%; border-collapse: collapse; text-align: left; background: var(--paper); }
.rates th, .rates td { padding: 10px clamp(8px, 2.5vw, 16px); border-bottom: 1px solid var(--line); }
.rates thead { background: #d2eee4; color: var(--dark); }
.rates tbody th { font-weight: 650; }
.application { display: grid; grid-template-columns: .55fr 1fr; align-items: start; gap: 48px; padding-block: 72px; }
.application-unavailable { padding-left: 12px; border-left: 3px solid #8db08b; }
#application-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 4vw, 36px); min-width: 0; }
.required-note { color: var(--muted); margin: 0 0 20px; }
fieldset { margin: 0 0 23px; padding: 12px 0 0; border: 0; min-width: 0; }
legend { font-weight: 750; font-size: 1.13rem; padding: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.fields label { display: grid; grid-template-rows: auto 1fr; align-content: start; min-width: 0; gap: 5px; font-size: .9rem; font-weight: 630; }
.fields .wide { grid-column: 1 / -1; }
input, select { min-height: 45px; width: 100%; min-width: 0; padding: 8px 10px; color: var(--ink); border: 1px solid #bdcbbf; border-radius: 6px; background: #f8fcfa; }
input::placeholder { color: #65796c; }
.form-status { padding: 12px; border-radius: 8px; background: #e7f6f0; color: var(--green); }
.faq { padding-block: 55px; background: #e7f6f0; border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: .8fr 1fr; gap: 42px; }
.questions details { border-bottom: 1px solid #bfded2; padding-block: 13px; }
.questions summary { cursor: pointer; font-weight: 680; }
.questions p { margin-top: 8px; }
footer { background: var(--dark); color: #dce8dc; padding-block: 24px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer > span:last-child { font-size: .85rem; }
dialog { width: min(420px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
dialog h2 { font-size: 2rem; }
dialog::backdrop { background: #10282099; }
.offer-dialog { width: min(528px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border-radius: 20px; background: #f9fdfb; }
.offer-dialog::backdrop { background: #102820b8; }
.offer-photo { display: block; width: 100%; height: clamp(100px, 25vw, 170px); object-fit: cover; object-position: center 42%; }
.offer-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--green); font: 28px/1 system-ui, sans-serif; cursor: pointer; }
.offer-content { padding: clamp(18px, 5vw, 32px); }
.offer-content h2 { color: var(--green); font-size: clamp(1.9rem, 6vw, 2.8rem); }
.offer-content h2 span { display: block; width: fit-content; margin-top: 7px; padding: 1px 10px 5px; border-radius: 8px; color: var(--dark); background: var(--lime); font: 750 clamp(2.7rem, 10vw, 4rem)/1 system-ui, sans-serif; }
.offer-content p { margin: 10px 0 18px; color: var(--muted); }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header { min-height: 65px; }
  nav { display: none; }
  .hero, .application, .faq-layout { grid-template-columns: 1fr; gap: 25px; }
  .hero, .application { padding-block: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .steps article { padding-right: 4px; }
}
@media (max-width: 480px) {
  .fields, .steps { grid-template-columns: 1fr; }
  .footer { align-items: start; flex-direction: column; }
}

[data-mode="live"] .application-unavailable { display: none; }

.offer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer-actions .button { padding-inline: 12px; gap: 8px; text-align: center; }
@media (max-width: 380px) {
  .offer-actions { grid-template-columns: 1fr; }
}
