/* Главная страница фонда (hadia.kz) */
html[data-lang="kk"] [data-l="ru"],
html[data-lang="ru"] [data-l="kk"] { display: none !important; }

body { background: var(--paper); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

.site-head { border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.logo img { width: 54px; height: auto; }
.site-head nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem; margin-left: auto; }
.site-head nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-head nav a:hover { color: var(--brand); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { font: inherit; font-size: .88rem; font-weight: 700; border: 0; background: transparent; color: var(--ink-2); padding: 6px 12px; min-height: 34px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* Первый экран */
.hero { padding: 52px 0 60px; background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 100%); }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--brand-2); }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn.pay { min-height: 52px; padding: 0 22px; font-size: 1rem; border: 0; color: #fff; }
.btn.kaspi { background: #f14635; }
.btn.kaspi:hover { background: #d93a2a; }
.btn.halyk { background: #0f7a4f; }
.btn.halyk:hover { background: #0b6440; }
.hero-side { display: grid; place-items: center; }
.hero-logo { width: min(260px, 70%); height: auto; }

/* Главная цифра последнего года */
.hero-stat { background: #fff; border-radius: 22px; padding: 26px 26px 22px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(6, 121, 154, .14); border-top: 6px solid #f7e017; }
.hero-stat .yr { font-weight: 700; color: var(--brand); }
.hero-stat .big { display: block; font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--ink); margin: 6px 0 4px; letter-spacing: -0.02em; }
.hero-stat .lbl { color: var(--ink-2); }
.hero-stat ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.hero-stat li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.hero-stat li b { white-space: nowrap; }
.hero-stat a { display: inline-block; margin-top: 12px; font-weight: 600; }

section.block { padding: 56px 0; border-top: 1px solid var(--line-2); }
section.block h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--brand-2); margin-bottom: 14px; }
.intro { color: var(--ink-2); max-width: 40em; margin-bottom: 28px; }

/* Годы */
.years { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.years button { font: inherit; font-weight: 700; font-size: 1rem; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.years button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.year-panel { display: grid; gap: 24px; }
@media (min-width: 800px) { .year-panel { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.people-card { background: var(--brand); color: #fff; border-radius: var(--r-l); padding: 24px; }
.people-card b { display: block; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.people-card span { opacity: .9; display: block; margin-top: 8px; }
.goods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.good { background: var(--page); border-radius: var(--r-m); padding: 14px 16px; }
.good b { display: block; font-size: 1.45rem; font-weight: 800; color: var(--ink); }
.good span { color: var(--ink-2); font-size: .95rem; }

/* Постоянный список */
.regular { background: var(--page); }
.regular-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .regular-grid { grid-template-columns: .7fr 1.3fr; align-items: start; } }
.regular-num { background: #fff; border-radius: var(--r-l); padding: 24px; border-left: 6px solid #f7e017; }
.regular-num b { display: block; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; font-weight: 800; color: var(--brand-2); }
.regular-num span { display: block; margin-top: 8px; color: var(--ink-2); }
.regular-text > p { font-size: 1.08rem; }
.cycle { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; counter-reset: c; }
.cycle li { counter-increment: c; background: #fff; border-radius: var(--r-m); padding: 14px 16px 14px 56px; position: relative; display: grid; gap: 2px; }
.cycle li::before { content: counter(c); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.cycle li:last-child::after { content: "↺"; position: absolute; right: 16px; top: 12px; font-size: 1.3rem; color: var(--brand); }
.cycle span { color: var(--ink-2); }
.note { color: var(--ink-2); }

.steps3 { display: grid; gap: 24px; counter-reset: st; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 li { list-style: none; counter-increment: st; padding-top: 14px; border-top: 3px solid var(--brand); }
.steps3 li::before { content: counter(st); display: block; font-weight: 800; color: var(--brand); font-size: 1.4rem; margin-bottom: 6px; }
.steps3 h3 { margin-bottom: 4px; }
.steps3 p { color: var(--ink-2); }

.help { display: grid; gap: 18px; }
@media (min-width: 760px) { .help { grid-template-columns: 1fr 1fr; } }
.pay-cards { display: grid; gap: 12px; align-content: start; }
.pay-card { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-l); color: #fff; text-decoration: none; }
.pay-card b { font-size: 1.2rem; }
.pay-card span { opacity: .92; }
.pay-card.kaspi { background: #f14635; }
.pay-card.halyk { background: #0f7a4f; }
.pay-card:hover { filter: brightness(.95); }
.req { background: var(--page); border-radius: var(--r-l); padding: 20px; }
.req dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 12px 0 0; }
.req dt { color: var(--ink-3); }
.req dd { margin: 0; font-weight: 600; word-break: break-word; }
.contacts { max-width: 540px; }

.site-foot { background: var(--page); color: var(--ink-2); padding: 28px 0; font-size: .9rem; border-top: 1px solid var(--line-2); }
.site-foot .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-logo { width: 110px; height: auto; }
.site-foot a { color: var(--brand); font-weight: 600; }

@media (max-width: 760px) { .site-head nav { display: none; } .lang { margin-left: auto; } .hero { padding-top: 30px; } }
