/* ─────────────────────────────────────────────
   SAPA — дизайн-система
   Цвет из логотипа: #138086
   ───────────────────────────────────────────── */
:root {
  --teal: #138086;
  --teal-600: #0f6b70;
  --teal-800: #0a4a4e;
  --teal-900: #073538;
  --teal-50: #e8f3f3;
  --teal-100: #cfe6e7;
  --amber: #e6a23c;
  --amber-600: #cf8a22;
  --ink: #142629;
  --ink-2: #3d5357;
  --muted: #6b7f82;
  --paper: #f7f4ee;
  --sand: #ece5d7;
  --white: #ffffff;
  --line: rgba(20, 38, 41, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(7, 53, 56, 0.06), 0 8px 24px rgba(7, 53, 56, 0.06);
  --shadow-lg: 0 2px 6px rgba(7, 53, 56, 0.08), 0 24px 48px rgba(7, 53, 56, 0.12);
  --font-head: "Roboto Slab", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Кнопки ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }
.btn-donate { background: var(--amber); color: var(--teal-900); }
.btn-donate:hover { background: var(--amber-600); }
.btn-ghost { background: transparent; color: var(--teal-800); box-shadow: inset 0 0 0 1.5px var(--teal-100); }
.btn-ghost:hover { background: var(--teal-50); }
.btn-light { background: #fff; color: var(--teal-800); }
.btn-light:hover { background: var(--teal-50); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.link-arrow { color: var(--teal); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { color: var(--teal-800); }
.link-arrow svg { transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ── Шапка ─────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--teal); letter-spacing: 0.02em; }
.brand-sub { font-size: 11.5px; color: var(--muted); max-width: 170px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 11px; white-space: nowrap; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--teal-50); color: var(--teal-800); }
.nav a[aria-current="page"] { color: var(--teal-800); background: var(--teal-50); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: var(--sand); border-radius: 999px; padding: 3px; }
.lang a {
  padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.lang a[aria-current="true"] { background: #fff; color: var(--teal-800); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--sand); color: var(--ink); align-items: center; justify-content: center; }

.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(7, 53, 56, .45); animation: fade .2s; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--paper);
  padding: 20px; display: flex; flex-direction: column; gap: 6px; animation: slide .25s ease-out; overflow-y: auto;
}
.drawer-panel nav { display: flex; flex-direction: column; margin: 16px 0; }
.drawer-panel nav a { padding: 14px 6px; font-size: 19px; font-family: var(--font-head); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
@keyframes fade { from { opacity: 0 } }
@keyframes slide { from { transform: translateX(30px); opacity: 0 } }

@media (max-width: 1180px) {
  .nav, .header-actions .btn-donate, .header-actions .lang { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

/* ── Мотив «столбики» из логотипа ─────────── */
.bars { display: flex; align-items: flex-end; gap: 5.8%; }
.bars span { flex: 1; background: currentColor; border-radius: 999px 999px 999px 999px / 22% 22% 22% 22%; }
.bars-mini { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; color: var(--teal); vertical-align: middle; }
.bars-mini span { width: 5px; background: currentColor; border-radius: 3px; }

/* ── Hero ─────────────────────────────── */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -15%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(19,128,134,.12), rgba(19,128,134,0)); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
}
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); margin: 18px 0 20px; color: var(--teal-900); }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-ring { position: absolute; inset: 0; animation: spin 90s linear infinite; }
.hero-ring img { width: 100%; height: 100%; }
.hero-art .bars { position: absolute; inset: 29% 24% 33% 24%; color: var(--teal); }
.hero-art .bars span { transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero-art .bars span:nth-child(2) { animation-delay: .08s } .hero-art .bars span:nth-child(3) { animation-delay: .16s }
.hero-art .bars span:nth-child(4) { animation-delay: .24s } .hero-art .bars span:nth-child(5) { animation-delay: .32s }
.hero-art .bars span:nth-child(6) { animation-delay: .40s }
@keyframes grow { from { transform: scaleY(0.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-ring, .hero-art .bars span { animation: none; }
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 260px; justify-self: center; order: -1; }
  .hero p.lead { font-size: 17px; }
}

/* ── Цифры ─────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stat { padding: 26px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(28px, 3.4vw, 40px); color: var(--teal); line-height: 1.1; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Секции ─────────────────────────────── */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--teal-900); }
.section-alt { background: #fff; }
@media (max-width: 760px) { .section { padding: 56px 0; } }

/* ── Карточки ─────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 21px; color: var(--teal-900); }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card-meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.tag-amber { background: #fbefd9; color: #8a5a10; }

.cover { aspect-ratio: 16 / 9; background: var(--teal-100); overflow: hidden; position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 22% 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-800) 100%); color: rgba(255,255,255,.16);
}
.cover-ph .bars { width: 100%; height: 70%; }
.cover-ph.charity { background: linear-gradient(135deg, #1b8c78 0%, #0a4a4e 100%); }
.cover-ph.endowment { background: linear-gradient(135deg, #0f6b70 0%, #073538 100%); color: rgba(230,162,60,.35); }

/* Ивент: блок даты */
.event-card { flex-direction: row; }
.date-block {
  flex-shrink: 0; width: 104px; background: var(--teal); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 18px 8px; text-align: center;
}
.date-block .d { font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 1; }
.date-block .m { text-transform: uppercase; font-size: 13px; letter-spacing: .08em; font-weight: 700; margin-top: 6px; opacity: .9; }
.date-block .t { font-size: 13px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.3); opacity: .85; }
.event-card.past .date-block { background: var(--sand); color: var(--ink-2); }
.event-card.past .date-block .t { border-color: var(--line); }
@media (max-width: 480px) { .date-block { width: 84px; } .date-block .d { font-size: 32px; } }

.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius-lg); border: 1.5px dashed var(--line); }

/* ── Тизеры эндаумента и благотворительности ── */
.feature {
  border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 16px; min-height: 320px;
  text-decoration: none; position: relative; overflow: hidden;
}
.feature h3 { font-size: 30px; }
.feature p { font-size: 16.5px; max-width: 440px; }
.feature .link-arrow { margin-top: auto; }
.feature-endow { background: var(--teal-900); color: #fff; }
.feature-endow p { color: rgba(255,255,255,.8); }
.feature-endow .link-arrow { color: var(--amber); }
.feature-charity { background: var(--sand); color: var(--teal-900); }
.feature-charity p { color: var(--ink-2); }
.feature .bars-deco { position: absolute; right: 28px; bottom: 28px; width: 130px; height: 110px; opacity: .14; color: #fff; }
.feature-charity .bars-deco { color: var(--teal); }

.progress { margin-top: 6px; }
.progress-track { height: 14px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--amber); border-radius: 999px; min-width: 14px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 14px; margin-top: 10px; color: rgba(255,255,255,.75); gap: 10px; flex-wrap: wrap; }
.progress-labels b { color: #fff; font-family: var(--font-head); font-size: 22px; display: block; }

/* ── CTA-полоса ─────────────────────────── */
.cta-band { background: var(--teal); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); max-width: 560px; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 10px; max-width: 520px; }
.cta-band .bars { position: absolute; left: 55%; bottom: -10px; width: 180px; height: 150px; color: rgba(255,255,255,.08); }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; } }

/* ── Шапка внутренних страниц ─────────────── */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); color: var(--teal-900); margin-top: 14px; }
.page-hero p { font-size: 19px; color: var(--ink-2); margin-top: 14px; max-width: 680px; }
.breadcrumb { font-size: 14px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.breadcrumb:hover { color: var(--teal); }
.tabs { display: flex; gap: 6px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 6px; margin-right: 18px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="true"] { color: var(--teal-800); border-color: var(--teal); }

/* ── Статья ─────────────────────────────── */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; aspect-ratio: 16 / 8; position: relative; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.aside-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.aside-row { display: flex; gap: 12px; align-items: flex-start; }
.aside-row svg { flex-shrink: 0; color: var(--teal); margin-top: 3px; }
.aside-row small { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.aside-row div { font-weight: 600; }
@media (max-width: 960px) {
  .article { grid-template-columns: 1fr; gap: 32px; }
  .aside-card { position: static; }
}

.prose { font-size: 18px; line-height: 1.7; color: var(--ink); max-width: 720px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; color: var(--teal-900); margin-top: 1.6em; }
.prose h3 { font-size: 22px; color: var(--teal-900); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--teal); text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--amber); color: var(--ink-2); font-style: italic; }
.prose strong { color: var(--teal-900); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); border: 0; }

/* ── Формы ─────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(19,128,134,.12); }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.notice-ok { background: var(--teal-50); color: var(--teal-800); }
.notice-err { background: #fdecea; color: #8c1d18; }

/* ── Эндаумент ─────────────────────────── */
.endow-panel { background: var(--teal-900); color: #fff; border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.endow-panel .amount { font-family: var(--font-head); font-size: clamp(40px, 6vw, 68px); font-weight: 700; line-height: 1; color: #fff; }
.endow-panel .label { text-transform: uppercase; font-size: 13px; letter-spacing: .1em; font-weight: 700; color: var(--amber); margin-bottom: 12px; }
.endow-panel .progress { grid-column: 1 / -1; }
@media (max-width: 760px) { .endow-panel { grid-template-columns: 1fr; padding: 28px 24px; } }

/* ── Пожертвование (окно) ─────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,53,56,.55); animation: fade .2s; }
.modal-panel {
  position: relative; background: var(--paper); border-radius: var(--radius-lg); width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 32px; box-shadow: var(--shadow-lg); animation: pop .22s ease-out;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.modal-panel h2 { font-size: 28px; color: var(--teal-900); padding-right: 40px; }
.kaspi-box { background: #fff; border-radius: var(--radius); padding: 18px; margin-top: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.kaspi-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kaspi-row small { display: block; font-size: 12.5px; color: var(--muted); }
.kaspi-row b { font-size: 20px; font-family: var(--font-head); color: var(--teal-900); }
.kaspi-qr { width: 200px; margin: 6px auto 0; border-radius: 12px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

/* ── Подвал ─────────────────────────────── */
.footer { background: var(--teal-900); color: rgba(255,255,255,.78); padding: 64px 0 28px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand b { font-family: var(--font-head); color: #fff; font-size: 24px; display: block; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.socials a:hover { background: rgba(255,255,255,.18); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.demo-banner { background: var(--amber); color: var(--teal-900); text-align: center; font-size: 13.5px; font-weight: 600; padding: 6px 12px; }
.modal[hidden], [hidden] { display: none !important; }

/* шапка: шире, чтобы поместились 6 пунктов меню на казахском */
.header .container { max-width: 1400px; }
.header-inner { gap: 18px; }
.nav a { padding: 8px 10px; }
.brand-sub { max-width: 150px; }
@media (max-width: 1340px) {
  .nav, .header-actions .btn-donate, .header-actions .lang { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

/* мобильная главная: логотип — лёгкий фон справа, не занимает место */
@media (max-width: 860px) {
  .hero { padding: 28px 0 36px; }
  .hero-grid { position: relative; display: block; }
  .hero-grid > div:first-child { position: relative; z-index: 1; }
  .hero-art {
    position: absolute; z-index: 0; pointer-events: none;
    top: -36px; right: -88px; width: 250px; max-width: none;
    opacity: .12;
  }
  .hero h1 { margin-top: 14px; }
}
@media (min-width: 560px) and (max-width: 860px) {
  .hero-art { width: 320px; right: -60px; top: -40px; }
}
@media (max-width: 560px) {
  .hero .eyebrow { display: none; } /* то же название уже есть в шапке */
  .hero h1 { margin-top: 4px; }
}

/* выбор языка всегда виден в шапке, слева от кнопки меню */
@media (max-width: 1340px) {
  .header-actions .lang { display: flex; }
  .drawer-head .lang { display: none; }
  .drawer-head { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .header-inner { gap: 8px; height: 64px; }
  .header-actions { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 10.5px; max-width: 110px; }
  .header-actions .lang { padding: 2px; }
  .header-actions .lang a { padding: 5px 7px; font-size: 11.5px; }
  .burger { width: 40px; height: 40px; }
}
@media (max-width: 374px) {
  .brand-sub { display: none; }
}

/* плашка эндаумента в строке цифр на главной */
.stat-endow { grid-column: span 2; display: flex; align-items: center; gap: 28px; }
.stat-endow .se-main { flex-shrink: 0; }
.stat-endow .se-progress { flex: 1; min-width: 0; }
.se-track { height: 12px; background: var(--teal-50); border-radius: 999px; overflow: hidden; }
.se-fill { height: 100%; background: var(--amber); border-radius: 999px; }
.se-labels { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.se-labels b { color: var(--teal-900); font-family: var(--font-head); font-size: 16px; display: inline; }
.stat-endow .se-btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr !important; }
  .stat-endow { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 14px; border-left: 0; }
  .stat-endow:not(:first-child) { border-top: 1px solid var(--line); }
  .stat-endow .se-btn { align-self: flex-start; }
}
.se-text { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.se-text .link-arrow { white-space: nowrap; }

/* фильтр категорий новостей */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chips a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.chips a:hover { background: var(--teal-50); color: var(--teal-800); }
.chips a[aria-current="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
@media (max-width: 560px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { white-space: nowrap; flex-shrink: 0; }
}

/* фотоальбом */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--teal-50); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: 6px; } .gallery-item { border-radius: 8px; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 22, 24, .97); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }
@media (max-width: 640px) {
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-count { bottom: 28px; }
}

/* Instagram в шапке */
.hdr-social { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--teal-800); background: var(--teal-50); flex-shrink: 0; transition: background .15s; }
.hdr-social:hover { background: var(--teal-100); }
.drawer-socials { flex-direction: column; gap: 4px; margin-top: 18px; }
.drawer-socials a { width: auto; height: auto; border-radius: 10px; background: none; color: var(--teal-800); text-decoration: none; display: flex; gap: 10px; align-items: center; padding: 10px 6px; font-weight: 600; }
.drawer-socials a:hover { background: var(--teal-50); }
@media (max-width: 560px) { .header-actions .hdr-social { display: none; } }

/* шапка с 8 пунктами меню */
.header .container { max-width: 1560px; }
.header-inner { gap: 14px; }
.nav { gap: 0; }
.nav a { padding: 8px 9px; font-size: 14.5px; }
.header-actions { gap: 8px; }
.header-actions .lang a { padding: 4px 8px; }
.hdr-social { width: 36px; height: 36px; }
/* 1321–1340: меню помещается — показываем его */
@media (min-width: 1321px) and (max-width: 1340px) {
  .nav { display: flex; }
  .header-actions .btn-donate { display: inline-flex; }
  .burger { display: none; }
  .header-actions { margin-left: 0; }
  .drawer-head .lang { display: flex; }
}
/* 1321–1409: убираем подпись под SAPA, чтобы влезли все пункты */
@media (min-width: 1321px) and (max-width: 1409px) {
  .header .brand-sub { display: none; }
}

/* подкасты: плеер и значок ▶ на карточке */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; margin-bottom: 32px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.audio { aspect-ratio: auto; height: 232px; background: transparent; }
.cover { position: relative; }
.play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(230, 162, 60, .95); color: var(--teal-900); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s; }
.play-badge svg { margin-left: 3px; }
.card.has-video:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); }

/* значок ▶ — в углу, полупрозрачный, чтобы не закрывать лица */
.play-badge {
  left: 14px; top: auto; bottom: 14px; transform: none;
  width: 44px; height: 44px;
  background: rgba(7, 30, 32, .45); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .55);
  transition: background .2s, transform .2s, color .2s;
}
.play-badge svg { width: 18px; height: 18px; margin-left: 2px; }
.card.has-video:hover .play-badge { transform: scale(1.08); background: var(--amber); color: var(--teal-900); border-color: transparent; }
