:root {
  --green: #0e5a45; --green-2: #167a5e; --gold: #b88a2c; --ink: #1d2a25; --muted: #5d6d66;
  --line: #dde5e1; --bg: #f5f7f4; --card: #fff; --err: #b3261e; --err-bg: #fdf0ef;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
       background: var(--bg); line-height: 1.55; }
a { color: var(--green-2); }

.hero { background: linear-gradient(160deg, var(--green) 0%, #0a4234 100%); color: #fff; padding: 44px 16px 72px; }
.hero .in { max-width: 760px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: #e9d29c; margin: 0 0 8px; font-weight: 600; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.hero p { margin: 0 0 10px; color: #e3eee9; font-size: 1.04rem; max-width: 640px; }
.hero .btn { margin-top: 14px; }

main { max-width: 760px; margin: -44px auto 40px; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px;
        box-shadow: 0 6px 24px rgba(14, 50, 38, .06); margin-bottom: 18px; }
.card h2 { margin: 0 0 4px; font-size: 1.25rem; color: var(--green); }
.card .lead { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green);
        color: #fff; font-size: .85rem; font-weight: 700; margin-right: 8px; vertical-align: 2px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.full { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid, .grid.two { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], select {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #c9d4cf; border-radius: 10px;
  background: #fff; color: var(--ink); min-height: 46px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6d66' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:focus, select:focus { outline: 2px solid var(--green-2); outline-offset: 0; border-color: var(--green-2); }
.hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.bad input, .bad select { border-color: var(--err); background: var(--err-bg); }
.msg { color: var(--err); font-size: .85rem; margin-top: 5px; }
.banner { background: var(--err-bg); color: var(--err); border: 1px solid #f2c9c5; border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; }

.choice { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fbfcfb; }
.choice h3 { margin: 0 0 10px; font-size: .98rem; }
.choice.bad { border-color: var(--err); background: var(--err-bg); }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.iv { border-left: 4px solid var(--gold); }

.btn { display: inline-block; font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 0;
       cursor: pointer; text-decoration: none; background: var(--green); color: #fff; }
.btn:hover { background: var(--green-2); }
.btn.light { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn.light:hover { background: rgba(255,255,255,.24); }
.btn.big { width: 100%; padding: 15px; font-size: 1.05rem; }
.btn.ghost { background: #fff; color: var(--green); border: 1px solid #c9d4cf; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.mandate { border-bottom: 1px solid var(--line); padding: 16px 0; }
.mandate:last-child { border-bottom: 0; }
.mandate h3 { margin: 0 0 6px; color: var(--green); font-size: 1.08rem; }
.mandate p { margin: 0 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #eef4f1; color: var(--green); border-radius: 999px; padding: 3px 10px; font-size: .82rem; }
footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 0 16px 30px; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero-btns .btn { margin: 0; }
dialog { border: 0; padding: 0; border-radius: 18px; width: min(620px, calc(100% - 32px)); max-height: calc(100% - 32px);
         box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink); }
dialog::backdrop { background: rgba(10, 40, 30, .62); }
.dlg { padding: 26px 24px 22px; }
.dlg .eyebrow { color: var(--gold); }
.dlg h2 { margin: 0 0 12px; color: var(--green); font-size: 1.5rem; }
.dlg p { margin: 0 0 10px; }
.note { background: #f4f7f5; border-left: 4px solid var(--green); border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: .93rem; }
.note.data { border-left-color: var(--gold); }
.note h3 { margin: 0 0 6px; font-size: 1rem; }
.note p:last-child { margin-bottom: 0; }
.dlg-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
@media (max-width: 480px) { .dlg-btns .btn { width: 100%; text-align: center; } .dlg { padding: 22px 18px 18px; } }
dialog:focus { outline: none; }

.stepper { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; padding: 0; counter-reset: s; }
.stepper li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
              font-size: .9rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stepper li::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
                      background: #e6ece9; color: var(--muted); font-size: .8rem; flex: none; }
.stepper li.on { border-color: var(--green); color: var(--green); }
.stepper li.on::before { background: var(--green); color: #fff; }
.stepper li.done::before { content: "✓"; background: var(--green-2); color: #fff; }
.nav-btns { display: flex; gap: 10px; margin-top: 18px; }
.nav-btns .btn { padding: 15px; font-size: 1.05rem; }
.nav-btns .btn[type=submit] { flex: 1; }
.stepper { scroll-margin-top: 16px; }
