:root {
  --ink: #162119;
  --muted: #5f6f64;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --line: #dce5dc;
  --brand: #176b3a;
  --brand-dark: #0f4c29;
  --accent: #dff36b;
  --shadow: 0 18px 45px rgba(25, 60, 37, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(223, 243, 107, 0.24), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

.shell { width: min(100% - 40px, 1080px); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-size: 1.2rem;
}

.nav { display: flex; gap: 22px; font-size: 0.94rem; }
.nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }

.hero { padding: 78px 0 94px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 42px; align-items: center; }

.eyebrow {
  display: inline-flex;
  padding: 5px 11px;
  border: 1px solid #c9d78f;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(223, 243, 107, 0.25);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.035em; }
h1 { max-width: 760px; margin: 18px 0; font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { margin-top: 2.5rem; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { margin-top: 1.8rem; font-size: 1.08rem; }

.lead { max-width: 670px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--brand);
  border-radius: 14px;
  color: #fff;
  background: var(--brand);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { color: #fff; box-shadow: 0 10px 24px rgba(23, 107, 58, 0.2); transform: translateY(-2px); }
.button.secondary { color: var(--brand); background: transparent; }
.button.secondary:hover { color: var(--brand-dark); }

.money-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
}
.money-card::after {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}
.money-card small { color: #bcd1c3; font-weight: 700; }
.money-card strong { display: block; margin-top: 8px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.05em; }
.money-card p { max-width: 230px; margin-top: 70px; color: #dce9df; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: 90px; }
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(25, 60, 37, 0.05);
}
.card h2 { margin: 0 0 10px; font-size: 1.3rem; }
.card p { margin: 0 0 20px; color: var(--muted); }
.text-link { font-weight: 750; text-decoration: none; }

.document { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 58px; padding: 54px 0 90px; align-items: start; }
.toc { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.8); }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.toc a:hover { color: var(--brand); }

.document-main { min-width: 0; }
.document-main h1 { margin-top: 10px; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.document-main p, .document-main li { color: #3f4f44; }
.document-main section { scroll-margin-top: 28px; }
.document-main li + li { margin-top: 8px; }
.updated { color: var(--muted); font-size: .92rem; }
.notice { margin: 28px 0; padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: #eef6ef; }
.notice p { margin: 0; }

.steps { counter-reset: item; list-style: none; padding: 0; }
.steps li { position: relative; min-height: 42px; padding: 0 0 22px 54px; }
.steps li::before {
  position: absolute; left: 0; top: -3px; display: grid; width: 36px; height: 36px; place-items: center;
  border-radius: 50%; color: #fff; background: var(--brand); counter-increment: item; content: counter(item); font-weight: 800;
}

.site-footer { padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 44px 0 66px; }
  .hero-grid, .document { grid-template-columns: 1fr; }
  .money-card { min-height: 250px; }
  .cards { grid-template-columns: 1fr; }
  .document { gap: 26px; padding-top: 30px; }
  .toc { position: static; }
  .footer-row { flex-direction: column; }
}

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