:root { --ink: #10214f; --sky: #4fb1f5; --sun: #ffd028; --leaf: #0c8a3e; --m: clamp(20px, 4vw, 72px); --focus: #10214f; --r: clamp(32px, 4vw, 64px); }
body { font-family: Nunito, system-ui, sans-serif; font-weight: 600; font-size: 19px; line-height: 1.45; color: var(--ink); background: #fff; }
h1, h2, h3 { font-weight: 900; letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(44px, 7.4vw, 128px); }
.lead { font-size: clamp(22px, 2.3vw, 36px); line-height: 1.35; font-weight: 700; letter-spacing: -.015em; max-width: 32em; }

.btn { --bg: var(--leaf); --lip: #07622b; display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 32px; border-radius: 22px; background: var(--bg); color: #fff; font-weight: 850; font-size: 19px; text-decoration: none; box-shadow: 0 6px 0 var(--lip); transition: transform .15s, box-shadow .15s, filter .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--lip); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--lip); }
.btn.white { --bg: #fff; --lip: #c9dced; color: var(--ink); }
.btn.ink { --bg: var(--ink); --lip: #050f2c; }
.btn.small { min-height: 48px; padding: 0 22px; border-radius: 17px; font-size: 17px; --bg: var(--sun); --lip: #cf9d00; color: var(--ink); box-shadow: 0 4px 0 var(--lip); }

.top { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 16px 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: 900; font-size: 23px; letter-spacing: -.03em; text-decoration: none; margin-right: auto; }
.brand span { width: 52px; height: 52px; display: grid; place-items: center; background: #fff; border-radius: 18px; }
.brand img { height: 38px; width: auto; }
.top nav { display: flex; background: #fff; border-radius: 18px; padding: 2px 8px; }
.top nav a { padding: 12px 14px; text-decoration: none; font-weight: 800; font-size: 17px; border-radius: 12px; transition: color .2s; }
.top nav a:hover { color: var(--leaf); }

/* Небо */
.sky { height: 240vh; background: var(--sky); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--sky); }
.world { position: absolute; right: 1vw; bottom: -5vh; width: min(70vw, 142vh); transform-origin: 66% 46%; }
.float { position: relative; animation: bob 7s ease-in-out infinite; }
.island { width: 100%; }
/* Качели висят на правом листе: точка подвеса — верх верёвок */
.swing { position: absolute; width: 17.2%; height: auto; left: 79.2%; top: 11%; transform-origin: 50% 0; animation: swing 3.6s ease-in-out infinite; clip-path: inset(0 0 0 0); }
.ball { position: absolute; width: 5%; left: 0; top: 0; }
@keyframes bob { 50% { transform: translateY(-1.6%) rotate(.5deg); } }
@keyframes swing { from, to { transform: rotate(7deg); } 50% { transform: rotate(-8deg); } }

.hello { position: absolute; left: var(--m); top: 50%; translate: 0 -50%; width: min(46vw, 820px); display: grid; gap: 28px; justify-items: start; }
.hello h1 { font-size: clamp(56px, min(8vw, 15vh), 148px); letter-spacing: -.05em; line-height: .9; }
.hello p { font-size: clamp(19px, 1.6vw, 25px); max-width: 23em; font-weight: 750; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.cloud { position: absolute; height: auto; max-width: none; pointer-events: none; }
.c1 { width: 20vw; left: 41vw; top: 9vh; }
.c2 { width: 16vw; left: -4vw; top: 70vh; }
.plane { position: absolute; width: clamp(60px, 7vw, 120px); left: -10vw; top: 22vh; }
.front { position: absolute; inset: 0; pointer-events: none; }
.f1 { width: 62vw; left: -16vw; top: 88vh; } .f2 { width: 60vw; left: 26vw; top: 92vh; } .f3 { width: 58vw; left: 62vw; top: 86vh; } .f4 { width: 92vw; left: 6vw; top: 118vh; }
.veil { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

.about, .projects, .trust { padding: clamp(110px, 13vw, 210px) var(--m); }
.about { position: relative; z-index: 1; margin-top: -48vh; padding-top: 0; padding-bottom: clamp(90px, 10vw, 160px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--m); align-items: end; }

/* Панели ложатся одна на другую */
.help { padding: 0 clamp(8px, 1vw, 16px); }
.panel { position: sticky; top: clamp(8px, 1vw, 16px); height: calc(100svh - clamp(16px, 2vw, 32px)); min-height: 600px; border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px; padding-left: var(--m); transform-origin: 50% 0; }
.panel + .panel { margin-top: clamp(8px, 1vw, 16px); }
.panel > div { display: grid; gap: 26px; justify-items: start; }
.panel p { font-size: clamp(20px, 1.9vw, 30px); line-height: 1.3; font-weight: 750; max-width: 18em; }
.panel h2 { font-size: clamp(44px, 6.6vw, 118px); }
.panel img { mask: linear-gradient(90deg, #0000, #000 5% 95%, #0000), linear-gradient(#0000, #000 5% 95%, #0000); mask-composite: intersect; height: 100%; width: 100%; object-fit: contain; min-height: 0; }
.yellow { background: var(--c, #fec91c); } .green { background: var(--c, #38ab48); } .blue { background: var(--c, #4dadf6); } .paper { background: var(--c, #fefefe); box-shadow: 0 -20px 60px #10214f1f; }

.projects { display: grid; gap: clamp(48px, 5vw, 88px); }
.projects ul { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.projects li { border-radius: var(--r); padding: clamp(28px, 3vw, 52px); min-height: clamp(240px, 24vw, 400px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; transition: border-radius .6s cubic-bezier(.3,1.6,.5,1), scale .6s cubic-bezier(.3,1.6,.5,1); }
.projects h3 { font-size: clamp(32px, 3.9vw, 68px); }
.projects p { font-size: clamp(19px, 1.5vw, 24px); font-weight: 750; max-width: 20em; line-height: 1.3; }
.projects li img { position: absolute; transition: transform .9s cubic-bezier(.3,1.6,.5,1); }
.projects li h3, .projects li p { position: relative; z-index: 1; }
.a img { width: 40%; right: -4%; bottom: -22%; } .b img { width: 62%; right: -14%; top: 26%; } .c img { width: 62%; right: -8%; top: 28%; } .d img { width: 43%; right: 3%; bottom: -4%; }
@media (hover: hover) { .a:hover img { transform: translateY(-34%) rotate(-40deg); } .b:hover img { transform: translateX(-14%) scale(1.08); } .c:hover img { transform: translate(-22%, -14%) rotate(-8deg); } .d:hover img { transform: scale(1.14); transform-origin: 50% 100%; } }
.a p, .d p { max-width: 15em !important; }
.a { grid-column: span 7; background: var(--sun); } .b { grid-column: span 5; background: #bfe5ff; } .c { grid-column: span 4; background: var(--leaf); color: #fff; } .d { grid-column: span 8; background: var(--ink); color: #fff; } .e { grid-column: span 12; background: #d9f3c4; min-height: 0 !important; flex-direction: row !important; align-items: end; flex-wrap: wrap; }
@media (hover: hover) { .projects li:hover { border-radius: calc(var(--r) * 2); scale: .985; } }

.give { margin: 0 clamp(8px, 1vw, 16px); border-radius: var(--r); background: var(--sky); padding: clamp(28px, 4vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 80px); align-items: stretch; }
.box { position: relative; min-height: clamp(440px, 48vw, 780px); display: flex; flex-direction: column; }
.box canvas { position: absolute; inset: 0 0 48px; width: 100%; height: calc(100% - 48px); touch-action: pan-y; cursor: grab; }
.box p { margin-top: auto; text-align: center; font-weight: 800; min-height: 32px; }
.give form { background: #fff; border-radius: calc(var(--r) * .8); padding: clamp(24px, 3.2vw, 56px); display: grid; gap: 22px; align-content: center; }
.give h2 { font-size: clamp(36px, 4.3vw, 72px); margin-bottom: 6px; }
.kind { display: grid; grid-template-columns: 1fr 1fr; background: #e6f4ff; border-radius: 22px; padding: 6px; }
.kind input { position: absolute; opacity: 0; }
.kind span { display: grid; place-items: center; min-height: 54px; border-radius: 17px; cursor: pointer; font-weight: 800; transition: background .25s, color .25s; }
.kind :checked + span { background: var(--ink); color: #fff; }
.kind :focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.presets button { min-height: 68px; border-radius: 22px; background: #e6f4ff; font-weight: 900; font-size: 22px; letter-spacing: -.02em; transition: background .2s, transform .4s cubic-bezier(.3,1.8,.5,1); }
.presets button:hover { transform: scale(1.03); } .presets button:active { transform: scale(.95); }
.presets [aria-pressed=true] { background: var(--sun); }
.slide input { width: 100%; height: 48px; margin: 0; appearance: none; background: none; cursor: grab; }
.slide input::-webkit-slider-runnable-track { height: 18px; border-radius: 18px; background: linear-gradient(90deg, var(--leaf) var(--fill), #e6f4ff var(--fill)); }
.slide input::-moz-range-track { height: 18px; border-radius: 18px; background: linear-gradient(90deg, var(--leaf) var(--fill), #e6f4ff var(--fill)); }
.slide input::-webkit-slider-thumb { appearance: none; width: 44px; height: 44px; margin-top: -13px; border-radius: 50%; border: 0; background: radial-gradient(circle at 34% 28%, #fff3b8, var(--sun) 42%, #e8ac00); box-shadow: 0 5px 14px #10214f40; }
.slide input::-moz-range-thumb { width: 44px; height: 44px; border-radius: 50%; border: 0; background: radial-gradient(circle at 34% 28%, #fff3b8, var(--sun) 42%, #e8ac00); box-shadow: 0 5px 14px #10214f40; }
.sum { display: grid; gap: 8px; font-size: 17px; }
.sum input { min-height: 64px; border-radius: 22px; border: 3px solid #b9d8ee; padding: 0 22px; font-weight: 900; font-size: 24px; width: 100%; background: #fff; }
.sum input:focus { border-color: var(--ink); }
.sum input[aria-invalid] { border-color: #c62f24; }
.wide { width: 100%; min-height: 76px; font-size: 21px; }
.note { min-height: 1.45em; font-size: 17px; }

.trust { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--m); align-items: end; }

footer { position: relative; overflow: hidden; background: var(--sun); padding: clamp(110px, 13vw, 210px) var(--m) 40px; }
footer h2, .call, .foot { position: relative; z-index: 1; }
.call { font-size: clamp(30px, 5.2vw, 92px); font-weight: 900; letter-spacing: -.045em; margin-top: 28px; }
.call a { text-decoration-thickness: .06em; text-underline-offset: .14em; }
.foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m); margin-top: clamp(64px, 8vw, 130px); font-weight: 750; }
.foot a { display: inline-block; padding-block: 5px; }
.g1 { width: 34vw; right: -6vw; top: -7vw; } .g2 { width: 26vw; right: 6vw; bottom: 8vw; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .world { width: 138vw; max-width: none; right: -3vw; bottom: 3vh; }
  .kind span { font-size: 16px; } .give form { padding: 22px 16px; }
  .hello { top: 92px; translate: none; width: auto; right: var(--m); gap: 16px; }
  .hello h1 { font-size: clamp(48px, 14vw, 76px); }
  .cta { gap: 10px; } .hello .btn { min-height: 56px; padding: 0 20px; font-size: 17px; }
  .c1 { width: 44vw; left: 66vw; top: 40vh; } .c2 { top: 46vh; width: 36vw; }
  .f1 { width: 130vw; left: -50vw; } .f2 { width: 120vw; } .f3 { width: 130vw; } .f4 { width: 220vw; left: -60vw; top: 112vh; }
  .about, .give, .trust, .foot { grid-template-columns: minmax(0, 1fr); }
  .panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding: 88px 24px 0; gap: 8px; }
  .panel > div { gap: 16px; }
  .projects li { grid-column: span 12; min-height: 210px; }
  .projects li img { width: 34%; top: -6%; bottom: auto; right: -5%; } .projects .d img { width: 30%; top: 8%; right: 5%; } .projects .c img { top: 10%; }
  .projects h3 { max-width: 66%; }
  .plane { top: 37vh; }
  .give { padding: 14px; gap: 10px; } .box { min-height: 400px; }
  .g1 { width: 56vw; top: -14vw; right: -14vw; } .g2 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sky { height: auto; } .stage { position: relative; } .panel { position: relative; } .plane { display: none; } .about { margin-top: 0; padding-top: clamp(90px, 10vw, 160px); } }
