:root {
    --bg: #E2F2FF;
    --accent: #FF8252;
    --sky: #50BEFF;
    --ink: #001722;
    --white: #fff;
    --soft: #F6FAFF;
    --container: 1280px;
    --gutter: 40px;
    --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Общие элементы ---------- */
.eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 16px;
}
.eyebrow--mt { margin-top: 64px; margin-bottom: 20px; }
.eyebrow--light { color: #BDE5FF; }
.eyebrow--lg { font-size: 18px; font-weight: 700; }

.h2 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 18px 28px; font-size: 15px; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #f06f3b; }
.btn--outline { background: transparent; color: var(--sky); border-color: var(--sky); }
.btn--outline:hover { background: var(--sky); color: var(--white); }
.btn--white { background: var(--white); color: var(--sky); font-weight: 500; text-decoration: underline; padding: 18px 20px; }

/* Заглушки изображений */
.ph {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(135deg, rgba(80,190,255,.14) 0 14px, rgba(80,190,255,.04) 14px 28px),
        #cfe8fb;
    color: #5a86a6;
    font-size: 14px;
    font-weight: 500;
}
.ph span { background: rgba(255,255,255,.75); padding: 6px 14px; border-radius: 999px; }
.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ---------- Hero ---------- */
.hero { background: var(--bg); padding-bottom: 72px; }

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 0 36px;
    position: relative;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-transform: lowercase; }
.logo__sub { font-size: 8px; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--sky); }
.nav__site { margin-left: 40px; }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 13px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.burger span { top: 21px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 636px;
    gap: 48px;
    align-items: start;
}
.hero__title {
    font-size: clamp(36px, 4.6vw, 62px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 56px;
}
.hero__subtitle { font-size: 26px; font-weight: 700; color: var(--sky); margin-bottom: 20px; }
.hero__lead { font-size: 17px; line-height: 1.3; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 56px; }
.hero__media .ph { width: 100%; aspect-ratio: 636 / 540; }

/* ---------- О фонде ---------- */
.about { background: var(--soft); padding: 72px 0 64px; }
.about__top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__text { display: grid; gap: 16px; font-size: 15px; line-height: 1.5; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.stats b { display: block; font-size: clamp(36px, 4vw, 54px); font-weight: 700; color: var(--sky); line-height: 1.1; }
.stats span { display: block; margin-top: 6px; font-size: 13px; max-width: 220px; }

.stories { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 24px; align-items: start; }
.stories .ph { width: 100%; }
.ph--s1 { aspect-ratio: 3 / 4; }
.ph--s2 { aspect-ratio: 3 / 4; margin-top: 0; }
.ph--s3 { aspect-ratio: 3 / 4; }
.stories__caption { margin-top: 32px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.25; }

/* ---------- Помочь детям ---------- */
.impact { background: var(--bg); padding: 72px 0 80px; }
.impact__lead { margin: 28px 0 20px; font-size: 14px; }
.impact__photos { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 24px; }
.ph--impact { aspect-ratio: 4 / 3.4; width: 100%; }
.impact__quote { margin: 40px 0 28px; max-width: 900px; font-size: clamp(18px, 2vw, 24px); font-weight: 700; line-height: 1.3; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps__num { display: block; font-size: 36px; font-weight: 700; color: var(--sky); margin-bottom: 14px; }
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.steps p { font-size: 13px; line-height: 1.45; max-width: 260px; }

/* ---------- Как помочь ---------- */
.ways { background: var(--white); padding: 72px 0 72px; }
.ways__top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ways__lead { margin-top: 36px; font-size: 14px; line-height: 1.5; max-width: 420px; }
.ph--ways { aspect-ratio: 16 / 9; width: 100%; }

.ways__list { margin-top: 40px; display: grid; gap: 18px; }
.ways__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg);
    border-radius: 6px;
    padding: 18px 24px;
    transition: background .2s;
}
.ways__list a:hover { background: #cfe8fb; }
.ways__num { font-size: 20px; font-weight: 700; color: var(--sky); }
.ways__name { font-size: 18px; font-weight: 700; text-align: right; }

.ways__cta { margin-top: 32px; padding-top: 28px; border-top: 3px solid #a8d9ff; }
.ways__cta .eyebrow { text-transform: none; margin-bottom: 20px; }

/* ---------- Пожертвование ---------- */
.donate { position: relative; padding: 96px 0; color: var(--white); overflow: hidden; }
.donate__bg {
    position: absolute; inset: 0;
    background: #355870 center / cover no-repeat; /* фото приходит из style="" */
}
.donate__bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,23,34,.72) 0%, rgba(0,23,34,.55) 100%); /* затемнение */
}
.donate__inner { position: relative; display: grid; gap: 48px; }

.donate__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.donate__title { font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.15; }
.donate__text p { font-size: 16px; line-height: 1.4; max-width: 440px; }
.donate__note { margin-top: 14px; color: #ffcbb4; font-weight: 600; }

.donate__card {
    color: var(--ink);
    border-radius: 28px;
    overflow: hidden;
}
/* форма Leyka не должна вылезать за карточку */
.donate__card > * { max-width: 100%; }
.donate__card iframe { display: block; width: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--white); padding: 56px 0 40px; }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid #cde6fa; }
.footer__top .h2 { max-width: 560px; }
.footer__bottom { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 28px; font-size: 13px; }
.footer__contacts { display: grid; gap: 2px; font-weight: 500; }
.footer__nav { display: flex; gap: 16px; font-weight: 700; align-items: flex-start; }
.footer__docs { display: grid; gap: 2px; color: #6a7c88; }
.footer__nav a:hover, .footer__contacts a:hover, .footer__docs a:hover { color: var(--sky); }
.footer__copy { margin-top: 36px; font-size: 11px; color: #6a7c88; }

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
    :root { --gutter: 28px; }
    .hero__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav { gap: 22px; }
    .nav__site { margin-left: 12px; }
}

/* ---------- Мобильный ---------- */
@media (max-width: 820px) {
    :root { --gutter: 20px; --radius: 18px; }

    .header { padding: 20px 0 24px; }
    .burger { display: block; }
    .nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white); border-radius: 18px; padding: 12px 20px 20px;
        box-shadow: 0 12px 32px rgba(0,23,34,.15);
    }
    .nav.is-open { display: flex; }
    .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #e3eef7; }
    .nav__site { margin: 16px 0 0; }

    .hero { padding-bottom: 48px; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__title { margin-bottom: 28px; }
    .hero__media { order: -1; }
    .hero__actions { margin-top: 32px; }
    .hero__actions .btn { flex: 1 1 auto; }

    .about, .impact, .ways { padding: 48px 0; }
    .about__top, .ways__top { grid-template-columns: 1fr; gap: 24px; }
    .stats { grid-template-columns: 1fr; gap: 24px; }
    .stories { grid-template-columns: 1fr 1fr; }
    .stories .ph--s2 { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 3; }
    .impact__photos { grid-template-columns: 1fr 1fr; }
    .impact__photos .ph:nth-child(2) { grid-column: 1 / -1; order: -1; }
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .ways__name { font-size: 15px; }

    .donate { padding: 56px 0; }
    .donate__inner { gap: 28px; }
    .donate__head { grid-template-columns: 1fr; gap: 20px; }
    .donate__card { border-radius: 20px; }

    .footer__top { flex-direction: column; }
    .footer__bottom { grid-template-columns: 1fr; gap: 20px; }
}