:root {
  --paper: #f5f2e9;
  --card: #fffdf8;
  --ink: #202722;
  --muted: #667069;
  --line: #d9d8cb;
  --green: #356758;
  --green-dark: #244b40;
  --soft-green: #e4efe9;
  --danger: #9d3d2a;
  --shadow: 0 18px 50px rgba(38, 53, 44, .08);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; }
a { color: var(--green-dark); text-underline-offset: 3px; }
.shell { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.site-header { background: rgba(255,253,248,.94); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: .93rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--green); }
main { min-height: calc(100vh - 150px); padding: 64px 0 80px; }
.hero { max-width: 750px; margin-bottom: 42px; }
.hero.compact { margin-bottom: 34px; }
.hero.confirmation { margin: 9vh auto; padding: 48px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.04; letter-spacing: -.035em; }
.lede { margin: 18px 0 0; color: var(--muted); font-size: 1.1rem; max-width: 660px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 24px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
aside .panel + .panel { margin-top: 24px; }
h2 { margin: 0 0 18px; font-size: 1.25rem; line-height: 1.3; }
h3 { margin: 24px 0 6px; font-size: 1rem; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 750; }
label span { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #c8ccc5; border-radius: 9px; background: #fff; padding: 11px 12px; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(53,103,88,.14); }
textarea { min-height: 180px; resize: vertical; }
.hint, .form-notice, .effective { color: var(--muted); font-size: .84rem; }
.hint { margin: 4px 0 0; }
.form-notice { margin: 14px 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; font-weight: 750; text-decoration: none; }
.button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.error-summary { margin-bottom: 22px; border-left: 4px solid var(--danger); border-radius: 8px; background: #f8e9e4; padding: 13px 16px; color: #722c1f; }
.error-summary ul { margin: 7px 0 0; padding-left: 20px; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-card p { margin: 0 0 16px; color: var(--muted); }
.contact-card p:last-child { margin-bottom: 0; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-child { padding-bottom: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 9px 0 0; color: var(--muted); font-size: .92rem; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--soft-green); color: var(--green); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.reference { white-space: nowrap; color: var(--ink); }
.legal { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 6vw, 58px); box-shadow: var(--shadow); }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.6rem); }
.legal h2 { margin-top: 38px; margin-bottom: 8px; }
.legal p, .legal li { color: #414a44; }
.legal ul { padding-left: 22px; }
.effective { margin-top: 10px; }
.site-footer { border-top: 1px solid var(--line); background: #ebe8de; }
.site-footer .shell { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) {
  main { padding-top: 42px; }
  .content-grid, .field-row { grid-template-columns: 1fr; }
  .header-inner { min-height: 62px; }
  nav { gap: 14px; }
  .panel { padding: 22px; }
  .hero.confirmation { margin-top: 3vh; padding: 34px 22px; }
}
@media (max-width: 430px) {
  .shell { width: min(100% - 24px, 1080px); }
  .brand { font-size: 1.15rem; }
  nav { gap: 10px; }
  nav a { font-size: .82rem; }
  .site-footer .shell { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
}
