:root { --ink: #1d1160; --green: #00a34a; --deep: #007a37; --sun: #ffd21f; --blue: #2f6bff; --m: clamp(16px, 2.2vw, 36px); --focus: #1d1160; }
body { font-family: Onest, system-ui, sans-serif; font-weight: 550; font-size: 19px; line-height: 1.4; color: var(--ink); background: var(--sun); }
h1, h2, h3, .word, .run-line { font-family: Unbounded, sans-serif; font-weight: 850; letter-spacing: -.055em; line-height: .9; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 68px; padding: 0 38px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; position: relative; overflow: hidden; isolation: isolate; transition: color .35s; }
.btn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 130%; aspect-ratio: 1; border-radius: 50%; background: var(--h, #fff); transform: translate(-50%, 0) scale(.2); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.btn:hover { color: var(--hc, var(--ink)); } .btn:hover::before { transform: translate(-50%, -62%) scale(1.1); }
.btn:active { scale: .96; }
.btn.small { min-height: 50px; padding: 0 26px; font-size: 17px; }

.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px var(--m); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.top.hide { transform: translateY(-110%); } .top:focus-within { transform: none; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; text-decoration: none; margin-right: auto; }
.brand span { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; } .brand img { height: 36px; width: auto; }
.top nav a { display: inline-block; padding: 12px 14px; text-decoration: none; font-weight: 700; font-size: 17px; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .3em; }

/* Буквы: вес меняется рядом с курсором, ширина строки подгоняется скриптом */
.word { display: flex; justify-content: space-between; white-space: nowrap; line-height: .78; letter-spacing: 0; }
.word span { display: block; will-change: font-variation-settings; transform-origin: 50% 100%; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; padding: 84px var(--m) 0; overflow: hidden; background: var(--sun); }
.hero h1 { display: flex; flex-direction: column; gap: 2.4vh; }
.hero .word { font-size: var(--fs, 13vw); height: 25vh; align-items: center; }
.w1 { color: var(--ink); } .w2 { color: var(--blue); width: 72%; } .w3 { color: var(--deep); width: 50%; margin-left: 23%; }
.kid { position: absolute; width: auto; max-width: none; will-change: transform; }
.hero .jump { height: 66vh; right: 2vw; top: 25vh; } .hero .wheel { height: 43vh; left: 3vw; bottom: 3vh; } .hero .run { height: 40vh; left: -30vw; bottom: 4vh; }
.intro { position: absolute; left: var(--m); right: var(--m); bottom: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 28px; font-size: 20px; font-weight: 650; }

.about { height: 240vh; background: var(--sun); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; padding: clamp(96px, 14vh, 160px) var(--m); }
.dot { position: absolute; left: 50%; top: 50%; width: 150vmax; aspect-ratio: 1; margin: -75vmax 0 0 -75vmax; border-radius: 50%; background: var(--blue); }
.about h2, .about p { position: relative; }
.about h2 { font-size: clamp(46px, min(8.4vw, 15vh), 160px); max-width: 8.4em; }
.about p { position: absolute; left: var(--m); bottom: clamp(40px, 9vh, 100px); font-size: clamp(21px, 2.1vw, 34px); line-height: 1.25; font-weight: 650; letter-spacing: -.02em; max-width: 21em; }
.dance { position: absolute; right: 6vw; bottom: -2vh; height: 82vh; width: auto; max-width: none; }

.projects { background: #fff; padding: clamp(80px, 10vw, 160px) 0; overflow: hidden; }
.projects ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 3.6vw, 64px); }
.run-line { display: flex; gap: .4em; width: max-content; padding-left: var(--m); font-size: clamp(40px, 9.6vw, 180px); will-change: transform; padding-bottom: .1em; }
.run-line h3 { font: inherit; letter-spacing: inherit; }
.run-line span { color: #dfe7ff; } .projects li:nth-child(2n) span { color: #fff0ae; } .projects li:nth-child(3n) span { color: #c4efd5; }
.projects li:nth-child(1) h3 { color: var(--blue); } .projects li:nth-child(2) h3 { color: var(--ink); } .projects li:nth-child(3) h3 { color: var(--deep); } .projects li:nth-child(4) h3 { color: var(--ink); } .projects li:nth-child(5) h3 { color: var(--blue); }
.projects p { padding: 0 var(--m); font-size: clamp(19px, 1.6vw, 26px); font-weight: 650; }

.help { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: max(100svh, 680px); overflow: hidden; }
.card { position: relative; overflow: hidden; text-decoration: none; padding: var(--m); display: flex; flex-direction: column; gap: 18px; transition: none; background: var(--bg); color: var(--fg, var(--ink)); --focus: var(--fg, var(--ink)); outline-offset: -8px; }
.help h2 { font-size: clamp(27px, 2.75vw, 56px); }
.card p { max-width: 17em; font-weight: 650; }
.card img { position: absolute; left: 50%; bottom: 0; height: 60%; width: auto; max-width: 92%; object-fit: contain; object-position: 50% 100%; translate: -50% 0; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.k1 { --bg: #62d58b; } .k2 { --bg: #b9ccff; } .k3 { --bg: var(--sun); } .k4 { --bg: #86dfee; }
@media (hover: hover) and (min-width: 861px) {
  .help { display: flex; } .card { flex: 1 1 0; transition: flex-grow .7s cubic-bezier(.2,.8,.2,1); min-width: 0; }
  .card p { width: 17em; } .card:hover, .card:focus-visible { flex-grow: 1.6; } .card:hover img { transform: scale(1.13) rotate(-2deg); }
}

.give { background: var(--deep); color: #fff; min-height: 100svh; padding: clamp(90px, 9vw, 140px) var(--m) 40px; display: grid; --focus: #fff; transition: background .6s; }
.give form { display: grid; align-content: space-between; gap: 24px; }
.give h2 { font-size: clamp(30px, 3.6vw, 64px); }
.sum { display: flex; align-items: center; font-family: Unbounded, sans-serif; line-height: 1; letter-spacing: -.07em; font-size: calc(min(21vw, 46vh, 440px) * 4 / var(--len, 4)); color: var(--sun); cursor: text; }
.sum input { flex: 0 1 auto; min-width: 0; border: 0; padding: 0; background: none; letter-spacing: inherit; font-variation-settings: "wght" var(--w, 500); font-weight: 200 900; }
.sum span:last-child { font-family: Onest, system-ui, sans-serif; font-size: .62em; font-weight: 800; margin-left: .18em; }
.sum input[aria-invalid] { color: #fff; }
.slide input { width: 100%; height: 72px; margin: 0; appearance: none; background: none; cursor: grab; }
.slide input::-webkit-slider-runnable-track { height: 28px; border-radius: 28px; background: linear-gradient(90deg, var(--sun) var(--fill), #00602b var(--fill)); }
.slide input::-moz-range-track { height: 28px; border-radius: 28px; background: linear-gradient(90deg, var(--sun) var(--fill), #00602b var(--fill)); }
.slide input::-webkit-slider-thumb { appearance: none; width: 68px; height: 68px; margin-top: -20px; border-radius: 50%; background: #fff; border: 0; transition: transform .4s cubic-bezier(.3,1.8,.5,1); }
.slide input::-moz-range-thumb { width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 0; }
.slide input:active::-webkit-slider-thumb { transform: scale(1.2); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kind, .presets { display: flex; background: #00602b; border-radius: 99px; padding: 6px; }
.kind input { position: absolute; opacity: 0; }
.kind span, .presets button { display: grid; place-items: center; min-height: 56px; padding: 0 22px; border-radius: 99px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s; }
.kind :checked + span, .presets [aria-pressed=true] { background: #fff; color: var(--ink); }
.kind :focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.give .btn { flex: 1 1 340px; background: var(--sun); color: var(--ink); }
.note { min-height: 1.4em; }

.trust { background: #fff; padding: clamp(100px, 12vw, 190px) var(--m); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: end; }
.trust h2 { font-size: clamp(40px, 6.2vw, 116px); }
.trust p { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.3; }

footer { background: var(--blue); color: #fff; padding: 0 var(--m) 32px; overflow: hidden; --focus: #fff; }
.crowd { display: flex; justify-content: space-around; align-items: flex-end; padding-top: 80px; height: clamp(260px, 40vw, 640px); gap: 2vw; }
.crowd img { height: 100%; width: auto; min-width: 0; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; } .crowd img:nth-child(even) { height: 82%; }
footer .word { font-size: var(--fs, 15vw); height: 1em; align-items: center; color: var(--sun); }
.foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m); margin-top: 48px; font-weight: 650; }
.foot a { display: inline-block; padding-block: 5px; text-underline-offset: .2em; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .hero { padding-top: 92px; } .hero h1 { gap: 10px; } .hero .word { width: 100%; height: auto; margin: 0; line-height: .95; }
  .hero .jump { height: 43vh; right: -3vw; top: auto; bottom: 14vh; } .hero .wheel { height: 29vh; left: -2vw; bottom: 13vh; } .hero .run { height: 24vh; bottom: 12vh; }
  .intro { justify-content: space-between; font-size: 16px; gap: 14px; line-height: 1.25; bottom: 20px; } .intro .btn { min-height: 60px; padding: 0 28px; }
  .about p { position: relative; left: 0; bottom: auto; margin-top: 24px; font-size: 20px; } .dance { height: 47vh; right: 4vw; }
  .help { grid-template-columns: minmax(0, 1fr); height: auto; } .card { min-height: 460px; padding: 28px var(--m) 0; } .card img { height: 290px; } .help h2 { font-size: 44px; }
  .give { min-height: 0; } .sum { font-size: calc(20vw * 4 / var(--len, 4)); min-height: 22vw; } .kind, .presets { width: 100%; } .kind label, .presets button { flex: 1; padding: 0 6px; } .kind span { padding: 0 6px; } .give .btn { flex-basis: 100%; padding: 0 16px; font-size: 18px; }
  .trust, .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .about { height: auto; } .stage { position: relative; } }
