:root { --night: #071030; --text: #f6f1df; --gold: #ffd873; --leaf: #b8ea7a; --m: clamp(22px, 5vw, 96px); --focus: #ffd873; color-scheme: dark; }
body { font-family: Onest, system-ui, sans-serif; font-size: 18px; line-height: 1.5; color: var(--text); background: var(--night); }
h1, h2, h3, .say, .big { font-family: Literata, Georgia, serif; font-weight: 420; letter-spacing: -.035em; line-height: 1; }
h2 { font-size: clamp(44px, 7.2vw, 128px); }
section, footer { position: relative; }
/* Светлячки поверх картинок, под текстом и формой */
.flies { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 36px; border-radius: 99px; background: var(--gold); color: #10183a; font-weight: 650; font-size: 18px; text-decoration: none; box-shadow: 0 0 0 0 #ffd87380, 0 0 36px #ffd87355; transition: box-shadow .5s, transform .4s cubic-bezier(.2,.8,.2,1), background .3s; }
.btn:hover { background: #ffe9a8; box-shadow: 0 0 0 10px #ffd87326, 0 0 90px #ffd873b0; transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.small { min-height: 46px; padding: 0 24px; font-size: 16px; }

.top { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 20px 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: 14px; font-family: Literata, serif; font-weight: 560; font-size: 23px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.brand span { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; } .brand img { height: 34px; width: auto; }
.top nav a { display: inline-block; padding: 12px 14px; text-decoration: none; transition: color .3s; } .top nav a:hover { color: var(--gold); }

.film { height: 520vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); }
.shot { position: absolute; inset: 0; will-change: opacity, transform; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #071030b8, #07103000 58%), linear-gradient(0deg, #071030, #07103000 26%); }
.s2::after { background: linear-gradient(0deg, #071030f2, #07103000 60%), linear-gradient(180deg, #071030b0, #07103000 26%); }
.s3::after { background: linear-gradient(0deg, #071030, #07103000 30%); }
.js .s2, .js .s3 { opacity: 0; } .s1 img { object-position: 70% 50%; }
.say { position: absolute; z-index: 5; left: var(--m); font-size: clamp(44px, 6.6vw, 124px); max-width: 8.6em; }
.t1 { top: 50%; translate: 0 -50%; display: grid; gap: 28px; justify-items: start; max-width: none; }
.t1 h1 { font-size: clamp(56px, min(8.4vw, 17vh), 156px); letter-spacing: -.05em; line-height: .92; max-width: 5.2em; }
.t1 p { font-family: Onest, sans-serif; font-size: clamp(18px, 1.4vw, 23px); letter-spacing: 0; line-height: 1.4; }
.t1 .btn { font-family: Onest, sans-serif; letter-spacing: 0; line-height: 1.2; }
.t2 { bottom: 11vh; max-width: 10em; } .t3 { top: 17vh; max-width: 12em; }
.js .t2, .js .t3 { visibility: hidden; }

.about, .projects, .help { z-index: 3; padding: clamp(110px, 13vw, 220px) var(--m); }
.big { font-size: clamp(30px, 4.3vw, 76px); line-height: 1.16; max-width: 19em; }
.projects { padding-top: 0; display: grid; gap: clamp(56px, 6vw, 110px); }
.projects li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--m); align-items: center; padding: clamp(18px, 2vw, 34px) 0; position: relative; }
.projects li::before { content: ""; position: absolute; z-index: -1; left: -14vw; top: 50%; width: 60vw; height: 24vw; translate: 0 -50%; background: radial-gradient(closest-side, #ffc74a66, #ffc74a00); opacity: var(--on, 0); scale: calc(.5 + var(--on, 0) * .5); }
.projects h3 { font-size: clamp(38px, 5.8vw, 104px); line-height: 1.08; color: color-mix(in oklab, var(--gold) calc(var(--on, 1) * 100%), #8d9ac8); text-shadow: 0 0 calc(var(--on, 0) * 50px) #ffc74a99; }
.projects p { font-size: clamp(18px, 1.6vw, 26px); max-width: 24em; }

.give { min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: clamp(80px, 8vw, 130px) var(--m); }
.hands { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; filter: brightness(calc(.62 + var(--p, .3) * .55)) saturate(calc(.85 + var(--p, .3) * .3)); transition: filter .7s; }
.give::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #071030f5 12%, #07103000 72%), linear-gradient(180deg, #071030, #07103000 18% 82%, #071030); }
.give form { position: relative; z-index: 5; width: min(100%, 540px); display: grid; gap: 24px; }
.give h2 { font-size: clamp(44px, 5.4vw, 92px); margin-bottom: 8px; }
.kind { display: grid; grid-template-columns: 1fr 1fr; border-radius: 99px; background: #1b2757; padding: 6px; }
.kind input { position: absolute; opacity: 0; }
.kind span { display: grid; place-items: center; min-height: 52px; border-radius: 99px; cursor: pointer; font-weight: 550; transition: background .3s, color .3s; }
.kind :checked + span { background: var(--text); color: #10183a; }
.kind :focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.sum { display: flex; align-items: baseline; font-family: Literata, serif; font-size: clamp(76px, 9vw, 150px); line-height: 1; letter-spacing: -.05em; color: var(--gold); cursor: text; text-shadow: 0 0 calc(14px + var(--p, .3) * 70px) #ffc74a8c; }
.sum input { min-width: 0; border: 0; padding: 0; background: none; letter-spacing: inherit; text-shadow: inherit; font-variant-numeric: lining-nums; }
.sum span:last-child { font-family: Onest, system-ui, sans-serif; font-size: .6em; margin-left: .2em; }
.sum input[aria-invalid] { color: #ffb4a4; }
.slide input { width: 100%; height: 48px; margin: 0; appearance: none; background: none; cursor: grab; }
.slide input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--fill), #52609b var(--fill)); }
.slide input::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--fill), #52609b var(--fill)); }
.slide input::-webkit-slider-thumb { appearance: none; width: 32px; height: 32px; margin-top: -13px; border-radius: 50%; border: 0; background: #fff6d2; box-shadow: 0 0 14px 5px #ffd873, 0 0 60px 20px #ffc74a80; }
.slide input::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff6d2; box-shadow: 0 0 14px 5px #ffd873, 0 0 60px 20px #ffc74a80; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.presets button { min-height: 54px; border-radius: 99px; background: #1b2757; font-weight: 550; transition: background .3s, color .3s; }
.presets button:hover { background: #2b3a78; } .presets [aria-pressed=true], .presets [aria-pressed=true]:hover { background: var(--text); color: #10183a; }
.wide { width: 100%; min-height: 72px; font-size: 20px; }
.note { min-height: 1.5em; }

.help { display: grid; gap: clamp(56px, 6vw, 110px); }
.help ul { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(18px, 2.2vw, 40px); }
.help a { display: grid; gap: 8px; text-decoration: none; }
.pic { display: block; height: clamp(320px, 36vw, 640px); overflow: hidden; border-radius: 8px; margin-bottom: 16px; }
.pic img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; filter: brightness(.82); transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter .8s; } .p2 img { object-position: 64% 50%; } .p3 img { object-position: 52% 50%; }
.help a:hover img { transform: scale(1.07); filter: brightness(1.15); }
.help b { font-family: Literata, serif; font-weight: 480; font-size: clamp(27px, 2.5vw, 44px); letter-spacing: -.03em; line-height: 1.1; transition: color .3s; } .help a:hover b { color: var(--gold); }

footer { min-height: max(100svh, 760px); display: grid; align-content: space-between; gap: 48px; padding: clamp(120px, 15vh, 200px) var(--m) 30px; overflow: hidden; background: var(--night); }
.dawn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
footer::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, #071030, #07103000 34%), linear-gradient(0deg, #060d25f2 8%, #060d2500 44%); }
footer h2, .foot { position: relative; z-index: 5; }
footer h2 { font-size: clamp(54px, 10vw, 180px); letter-spacing: -.05em; padding-bottom: .12em; }
.foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m); }
.foot a { display: inline-block; padding-block: 5px; text-underline-offset: .2em; }

@media (max-width: 860px) {
  .top { padding: 14px var(--m); } .top nav { display: none; }
  .shot::after { background: linear-gradient(180deg, #071030d9, #07103000 52%), linear-gradient(0deg, #071030, #07103000 26%); }
  .s1 img { position: absolute; top: 30%; height: 70%; object-position: 69% 50%; } .s1::after { background: linear-gradient(180deg, #071030 30%, #07103000 52%), linear-gradient(0deg, #071030, #07103000 20%); } .s2 img { object-position: 52% 50%; } .s3 img { object-position: 62% 50%; }
  .t1 { top: 100px; translate: none; gap: 16px; right: var(--m); } .t1 h1 { font-size: clamp(52px, 15.4vw, 84px); } .t2, .t3 { right: var(--m); }
  .projects li { grid-template-columns: minmax(0, 1fr); gap: 10px; } .projects li::before { width: 120vw; height: 70vw; left: -30vw; }
  .give { padding-top: 78vw; align-items: end; } .hands { height: 105vw; object-position: 78% 50%; }
  .give::before { background: linear-gradient(0deg, #071030 calc(100% - 98vw), #07103000 calc(100% - 40vw)); }
  .help ul, .foot { grid-template-columns: minmax(0, 1fr); } .help ul { gap: 48px; } .pic { height: 74vw; }
  .foot { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .film { height: auto; } .stage { position: relative; } .js .s2, .js .s3 { display: none; }
}
