:root {
  --ink: #20251f;
  --muted: #62695f;
  --paper: #f4f2ec;
  --surface: #ffffff;
  --line: #d9d8d0;
  --green: #245b43;
  --green-dark: #174331;
  --green-soft: #e8f0eb;
  --wood: #9b6b3c;
  --danger: #a4352d;
  --shadow: 0 18px 50px rgba(37, 44, 36, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  background: rgba(244, 242, 236, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 4px; font-size: 13px; letter-spacing: 0.04em; }
.contacts { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 650; }
.contacts a { text-decoration: none; border-bottom: 1px solid transparent; }
.contacts a:hover { border-color: currentColor; }

.intro { padding-block: 72px 58px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 70px; align-items: end; }
.eyebrow, .step-label { margin: 0 0 14px; color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.11em; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
h1 { max-width: 780px; font-size: clamp(42px, 5.2vw, 70px); }
.lead { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.intro-facts { border-top: 2px solid var(--ink); }
.intro-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.intro-facts strong { font-size: 14px; }
.intro-facts span { color: var(--muted); font-size: 13px; text-align: right; }

.form-section { padding-bottom: 86px; display: grid; grid-template-columns: 300px minmax(0, 720px); gap: 70px; align-items: start; }
.form-heading { position: sticky; top: 26px; padding-top: 20px; }
.form-heading h2 { font-size: clamp(32px, 4vw, 46px); }
.form-heading > p:last-child { color: var(--muted); margin: 18px 0 0; }
form { min-width: 0; }
fieldset { margin: 0 0 18px; padding: 30px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
legend { padding: 0 12px 0 0; color: var(--ink); font-weight: 760; font-size: 18px; }
legend span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; color: white; background: var(--wood); border-radius: 50%; font-size: 13px; }
.field-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { margin-top: 22px; min-width: 0; }
.field label:not(.choice), .field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 710; }
em { color: var(--danger); font-style: normal; }
input[type="text"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: #fff; border: 1px solid #b9bbb4; border-radius: 4px; outline: none; transition: border-color 150ms, box-shadow 150ms;
}
textarea { resize: vertical; min-height: 78px; }
input::placeholder, textarea::placeholder { color: #92968f; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 91, 67, 0.14); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.choice-row { display: grid; gap: 10px; }
.choice-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; min-height: 50px; display: flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { width: 100%; display: flex; align-items: center; justify-content: center; padding: 11px 12px; text-align: center; border: 1px solid #b9bbb4; border-radius: 4px; background: white; font-size: 14px; font-weight: 650; transition: 150ms; }
.choice input:focus-visible + span { outline: 3px solid rgba(36, 91, 67, 0.18); outline-offset: 1px; }
.choice input:checked + span { color: var(--green-dark); border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.choice.check span { justify-content: flex-start; padding-left: 42px; text-align: left; }
.choice.check span::before { content: ""; position: absolute; left: 14px; width: 17px; height: 17px; border: 1px solid #9da19a; border-radius: 3px; background: white; }
.choice.check input:checked + span::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px var(--green); }
.choice.check input:checked + span::after { content: "✓"; position: absolute; left: 17px; top: 50%; translate: 0 -52%; color: white; font-size: 13px; font-weight: 900; }
.conditional { padding: 15px; background: #f7f8f5; border-left: 3px solid var(--green); }
.field-error { min-height: 19px; display: block; padding-top: 4px; color: var(--danger); font-size: 12px; }
.consent { margin-top: 22px; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 13px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.submit-row { margin-top: 26px; display: flex; align-items: center; gap: 18px; }
.submit-button, .secondary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 0; border-radius: 4px; color: white; background: var(--green); font-weight: 760; text-decoration: none; cursor: pointer; transition: background 150ms, translate 150ms; }
.submit-button:hover, .secondary-button:hover { background: var(--green-dark); translate: 0 -1px; }
.submit-button:disabled { opacity: 0.68; cursor: wait; translate: none; }
.submit-row p { margin: 0; color: var(--muted); font-size: 13px; }
.form-alert { margin-bottom: 18px; padding: 14px 16px; color: #72251f; background: #fbeceb; border: 1px solid #e7b7b3; border-radius: 4px; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.footer-inner strong { color: var(--ink); font-size: 15px; }

.success-page { min-height: 100vh; display: grid; place-items: center; }
.success-shell { width: min(680px, calc(100% - 40px)); padding-block: 40px; }
.success-shell > .brand { margin-bottom: 30px; }
.success-card { padding: clamp(34px, 7vw, 70px); background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.success-card h1 { font-size: clamp(40px, 8vw, 64px); }
.success-card > p:not(.eyebrow) { max-width: 470px; margin: 20px 0 28px; color: var(--muted); font-size: 18px; }
.success-icon { width: 48px; height: 48px; display: grid; place-items: center; float: right; color: white; background: var(--green); border-radius: 50%; font-size: 24px; font-weight: 800; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 42px; padding-top: 56px; }
  .intro-facts { max-width: 620px; }
  .form-section { grid-template-columns: 1fr; gap: 30px; }
  .form-heading { position: static; max-width: 620px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: 62px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .contacts { gap: 10px; font-size: 12px; }
  .intro { padding-block: 40px 42px; gap: 30px; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .lead { margin-top: 18px; font-size: 17px; }
  .intro-facts div { padding-block: 14px; }
  .form-section { padding-bottom: 52px; }
  .form-heading h2 { font-size: 34px; }
  fieldset { padding: 22px 16px; margin-inline: -1px; box-shadow: 0 10px 34px rgba(37, 44, 36, 0.06); }
  legend { font-size: 16px; }
  legend span { width: 27px; height: 27px; }
  .two-columns, .choice-row.two, .choice-row.three { grid-template-columns: 1fr; }
  .choice-row { gap: 8px; }
  .choice { min-height: 47px; }
  .choice span { justify-content: flex-start; text-align: left; }
  .choice:not(.check) span { padding-left: 16px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-button { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
