:root {
  color-scheme: light dark;
  --bg: #f4f7f1;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #10150d;
  --muted: #5e6859;
  --line: rgba(16, 21, 13, 0.12);
  --green: #3e9400;
  --green-dark: #286500;
  --green-soft: #dff0cf;
  --lavender: #e7e2f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 95% 4%, rgba(197, 190, 238, .54), transparent 32rem),
    radial-gradient(circle at 4% 96%, rgba(176, 220, 225, .45), transparent 30rem),
    var(--bg);
  line-height: 1.6;
}

a { color: inherit; }
.site-header, main, footer { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.mark {
  width: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--text);
}
.mark span { display: grid; place-items: center; font-size: 11px; font-weight: 900; line-height: 1; border: .5px solid var(--text); }
.mark span:nth-child(1) { background: #bfdef0; }
.mark span:nth-child(2) { background: var(--green-soft); }
.mark span:nth-child(3) { background: #f2ddbd; color: var(--green-dark); font-size: 15px; }
.mark span:nth-child(4) { background: var(--lavender); }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 650; }
nav a:hover, nav a[aria-current="page"] { color: var(--green-dark); }

.hero { padding: clamp(76px, 12vw, 140px) 0 clamp(64px, 9vw, 100px); max-width: 830px; }
.eyebrow { margin: 0 0 12px; color: var(--green-dark); font-size: .8rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-size: clamp(3rem, 8vw, 6.7rem); line-height: .96; letter-spacing: -.065em; }
.lead { max-width: 690px; margin: 30px 0 36px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  color: white;
  background: var(--green-dark);
  box-shadow: 0 10px 24px rgba(40, 101, 0, .2);
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--green); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 100px; }
.card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(36, 49, 30, .07);
  backdrop-filter: blur(18px);
}
.card:nth-child(2) { transform: translateY(26px); }
.card:nth-child(3) { transform: translateY(52px); }
.card-number { margin: 0 0 58px; color: var(--green); font-size: .76rem; font-weight: 900; letter-spacing: .15em; }
.card h2 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.card p:not(.card-number) { margin: 0 0 22px; color: var(--muted); }
.text-link { color: var(--green-dark); font-weight: 720; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.document { max-width: 820px; padding-block: clamp(64px, 9vw, 110px); }
.document h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.updated { margin: 20px 0 54px; color: var(--muted); }
.document section { padding: 30px 0; border-top: 1px solid var(--line); }
.document h2 { margin: 0 0 10px; font-size: 1.25rem; letter-spacing: -.02em; }
.document section p { margin: 0; color: var(--muted); }
.document section a { color: var(--green-dark); font-weight: 700; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 26px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
footer a { color: var(--green-dark); font-weight: 650; }

@media (max-width: 760px) {
  .site-header { min-height: 78px; }
  .brand > span:last-child { display: none; }
  nav { gap: 18px; }
  .hero { padding-top: 70px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { min-height: 0; }
  .card:nth-child(2), .card:nth-child(3) { transform: none; }
  .card-number { margin-bottom: 34px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11150e;
    --surface: rgba(29, 35, 25, .82);
    --text: #f5f7f1;
    --muted: #b6c0b0;
    --line: rgba(245, 247, 241, .13);
    --green: #7bc83b;
    --green-dark: #91dc52;
    --green-soft: #31551f;
    --lavender: #3f3854;
  }
  body { background: radial-gradient(circle at 95% 4%, rgba(77, 66, 120, .42), transparent 32rem), radial-gradient(circle at 4% 96%, rgba(33, 81, 72, .38), transparent 30rem), var(--bg); }
  .button { color: #122009; background: #91dc52; }
  .button:hover { background: #a7e873; }
  .mark { box-shadow: 3px 3px 0 rgba(255,255,255,.85); }
}

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