:root {
  --green: #0b5d4b;
  --green-dark: #084536;
  --gold: #e0a526;
  --ink: #12231e;
  --mist: #f4f8f6;
  --muted: #5b6e68;
  --line: #d9e4e0;
  --danger: #b3261e;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
a { color: var(--green); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.badge { display: inline-block; background: #fdf3dc; color: #7a5300; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

.hero { background: var(--green); color: #fff; padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; margin: 14px 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: #d8ece6; margin: 0 0 8px; max-width: 34em; }
.hero .badge { background: rgba(224, 165, 38, 0.18); color: #ffd982; }

.card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.card h2 { margin: 0 0 4px; font-size: 21px; }
.card p.sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
input, select {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button {
  margin-top: 18px; width: 100%; font: inherit; font-weight: 700; font-size: 16px; padding: 13px; border: 0; border-radius: 10px;
  background: var(--gold); color: var(--ink); cursor: pointer;
}
button:hover { filter: brightness(0.96); }
button[disabled] { opacity: 0.6; cursor: wait; }
.fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.msg.ok { background: #e6f4ef; color: var(--green-dark); }
.msg.err { background: #fceeee; color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

section { padding: 64px 0; }
section.alt { background: var(--mist); }
h2.section { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.01em; }
p.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .big { font-size: 28px; font-weight: 800; color: var(--green); margin-bottom: 6px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.example { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.receipt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 15.5px; }
.receipt .line { display: flex; justify-content: space-between; padding: 7px 0; }
.receipt .line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 18px; }
.receipt .muted { color: var(--muted); }
.receipt .note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

footer { background: var(--ink); color: #b9c8c3; padding: 36px 0; font-size: 14px; }
footer a { color: #fff; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer p { margin: 6px 0; max-width: 60em; }

.doc { max-width: 760px; padding: 40px 20px 64px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: #2b3c37; }

@media (max-width: 860px) {
  .hero .wrap, .example { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid, .row2 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
}
