:root { --ink: #14102e; --soft: #f3f5f2; --leaf: #00812f; --m: clamp(20px, 3.4vw, 56px); --focus: #00812f; --gap: clamp(112px, 13vw, 210px); }
body { font-family: Onest, system-ui, sans-serif; font-size: 18px; line-height: 1.5; color: var(--ink); background: #fff; }
h1, h2, .line, .last { font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
h2 { font-size: clamp(40px, 6.4vw, 108px); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }

.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 18px var(--m); transition: transform .5s cubic-bezier(.2,.8,.2,1), background .3s; }
.top.solid { background: #fff; }
.top.hide { transform: translateY(-100%); }
.top:focus-within { transform: none; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 20px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { height: 40px; width: auto; }
.top nav { display: flex; gap: 8px; }
.top nav a { padding: 12px; text-decoration: none; font-size: 16px; transition: color .2s; }
.top nav a:hover { color: var(--leaf); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 34px; border-radius: 99px; background: var(--leaf); color: #fff; font-weight: 600; font-size: 18px; letter-spacing: -.01em; text-decoration: none; transition: background .2s, transform .35s cubic-bezier(.2,.8,.2,1); }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.96); }
.btn.small { min-height: 46px; padding: 0 24px; font-size: 16px; }

/* Главная сцена: росток растёт, пока экран стоит на месте */
.story { height: 460vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.line { position: absolute; left: var(--m); right: var(--m); top: clamp(104px, 15vh, 170px); text-align: center; pointer-events: none; font-size: clamp(34px, 5.2vw, 88px); margin-inline: auto; max-width: 17em; }
.l1 { display: grid; justify-items: center; gap: 22px; max-width: none; }
.l1 h1 { font-size: clamp(46px, 9.2vw, 168px); font-weight: 650; letter-spacing: -.06em; line-height: .92; }
.l1 p { font-size: clamp(18px, 1.5vw, 24px); font-weight: 450; letter-spacing: -.015em; line-height: 1.35; }
.l1 .btn { pointer-events: auto; }
.l2, .l3 { top: auto; bottom: auto; text-align: left; max-width: none; width: min(25vw, 440px); font-size: clamp(28px, 2.9vw, 52px); line-height: 1.06; top: 46vh; }
.l2 { right: auto; margin-left: 0; }
.l3 { left: auto; margin-right: 0; }
.l4 { right: auto; margin: 0; text-align: left; width: min(30vw, 620px); font-size: clamp(44px, 4.7vw, 92px); letter-spacing: -.055em; line-height: .96; top: 46vh; }
.js .l2, .js .l3, .js .l4 { visibility: hidden; }
.kid { position: absolute; bottom: 6.2vh; width: auto; height: clamp(120px, 23vh, 250px); mix-blend-mode: multiply; }
.kid-a { left: 50%; margin-left: max(-29vw, -460px); }
.kid-b { left: 50%; margin-left: min(17vw, 280px); }

section:not(.story) { padding-inline: var(--m); }
.about { padding-top: var(--gap); display: grid; gap: clamp(56px, 7vw, 120px); }
.about h2 { max-width: 13em; }
.who { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: var(--m); align-items: end; }
.big { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.3; letter-spacing: -.025em; font-weight: 500; max-width: 30em; }
.who img { justify-self: end; height: clamp(180px, 24vw, 380px); width: auto; mix-blend-mode: multiply; }

.projects { padding-top: var(--gap); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: var(--m); align-items: start; }
.projects h2 { position: sticky; top: 120px; }
.projects li { padding: clamp(24px, 3vw, 46px) clamp(20px, 2.4vw, 40px); border-radius: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: baseline; transition: background .35s, color .35s, padding .5s cubic-bezier(.2,.8,.2,1); }
.projects li:nth-child(odd) { background: var(--soft); }
.projects h3 { font-size: clamp(26px, 2.6vw, 44px); letter-spacing: -.04em; line-height: 1.05; font-weight: 600; }
@media (hover: hover) { .projects li:hover { background: var(--leaf); color: #fff; padding-left: clamp(32px, 4vw, 68px); } }

.give { margin-top: var(--gap); padding-block: clamp(40px, 5vw, 90px); background: var(--soft); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--m); align-items: center; }
.plant { position: relative; align-self: stretch; min-height: clamp(380px, 52vw, 820px); }
.plant canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.give form { display: grid; gap: 28px; max-width: 620px; width: 100%; }
.give h2 { font-size: clamp(40px, 4.8vw, 80px); }
.kind { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 99px; padding: 6px; }
.kind input { position: absolute; opacity: 0; }
.kind span { display: grid; place-items: center; min-height: 52px; border-radius: 99px; cursor: pointer; transition: background .3s, color .3s; font-weight: 550; }
.kind :checked + span { background: var(--ink); color: #fff; }
.kind :focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sum { display: flex; align-items: baseline; font-size: clamp(72px, 10vw, 168px); font-weight: 650; letter-spacing: -.065em; line-height: 1; cursor: text; }
.sum input { width: 100%; min-width: 0; border: 0; background: none; padding: 0; letter-spacing: inherit; font-variant-numeric: tabular-nums; outline-offset: 0; }
.sum span:last-child { margin-left: .12em; }
.sum input[aria-invalid] { color: #b3261e; }
.slide input { width: 100%; height: 48px; margin: 0; appearance: none; background: none; cursor: grab; }
.slide input::-webkit-slider-runnable-track { height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--leaf) var(--fill, 10%), #d5dcd4 var(--fill, 10%)); }
.slide input::-moz-range-track { height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--leaf) var(--fill, 10%), #d5dcd4 var(--fill, 10%)); }
.slide input::-webkit-slider-thumb { appearance: none; width: 36px; height: 36px; margin-top: -14px; border-radius: 50%; background: var(--leaf); border: 8px solid #fff; box-shadow: 0 4px 16px #14102e33; transition: transform .2s; }
.slide input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--leaf); border: 8px solid #fff; box-shadow: 0 4px 16px #14102e33; }
.slide input:active::-webkit-slider-thumb { transform: scale(1.15); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.presets button { min-height: 54px; border-radius: 99px; background: #fff; font-weight: 550; transition: background .2s, color .2s, transform .3s; }
.presets button:hover { background: #dfe7dd; }
.presets button:active { transform: scale(.95); }
.presets [aria-pressed=true] { background: var(--ink); color: #fff; }
.wide { width: 100%; min-height: 72px; font-size: 20px; }
.note { min-height: 1.5em; }

.help { padding-top: var(--gap); display: grid; gap: clamp(56px, 7vw, 120px); }
.help ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--m); }
.help a { display: grid; gap: 34px; text-decoration: none; align-content: end; height: 100%; }
.help img { height: clamp(220px, 25vw, 400px); width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; mix-blend-mode: multiply; transition: transform .7s cubic-bezier(.2,.8,.2,1); transform-origin: 20% 100%; }
.help a:hover img { transform: translateY(-12px) rotate(-2deg); }
.help b { display: block; font-size: clamp(26px, 2.6vw, 44px); letter-spacing: -.04em; line-height: 1.1; font-weight: 600; margin-bottom: 8px; transition: color .2s; }
.help a:hover b { color: var(--leaf); }

.trust { padding-top: var(--gap); padding-bottom: var(--gap); display: grid; gap: clamp(56px, 6vw, 100px); }
.trust dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--m); }
.trust dt { font-size: clamp(36px, 4.4vw, 76px); letter-spacing: -.055em; font-weight: 600; line-height: 1.1; color: var(--leaf); font-variant-numeric: tabular-nums; }
.trust dd { max-width: 24em; }

footer { background: var(--ink); color: #fff; padding: clamp(80px, 9vw, 150px) var(--m) 36px; --focus: #fff; }
.last { font-size: clamp(44px, 9.6vw, 176px); letter-spacing: -.06em; padding-bottom: .12em; }
.foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m); margin-top: clamp(60px, 8vw, 130px); }
.foot a { display: inline-block; padding-block: 6px; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .line { top: 100px; }
  .l1 { gap: 18px; }
  .l2, .l3 { width: auto; left: var(--m); right: var(--m); margin-inline: 0; top: 104px; text-align: center; font-size: 34px; }
  .l4 { width: auto; right: var(--m); text-align: center; top: 96px; font-size: 44px; }
  .kid { height: 14vh; bottom: 3vh; }
  .kid-a { left: 8px; margin: 0; } .kid-b { left: auto; right: 8px; margin: 0; }
  .who, .projects, .give, .trust dl, .foot { grid-template-columns: minmax(0, 1fr); }
  .who img { justify-self: start; }
  .projects h2 { position: static; margin-bottom: 20px; }
  .projects li { grid-template-columns: 1fr; gap: 8px; }
  .give { gap: 0; }
  .help ul { grid-template-columns: 1fr; gap: 72px; }
  .help img { height: 240px; }
  .trust dl { gap: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .stage { position: relative; height: 100svh; }
  .js .l2, .js .l3, .js .l4 { display: none; }
}
