/* ==========================================================================
   Фонд «Сохраним Планету» — sohranim-planetu.ru
   Единая таблица стилей. Разделы:
   01. Шрифты
   02. Токены (цвета, отступы, тени)
   03. Сброс и база
   04. Типографика
   05. Раскладка (container, grid, section)
   06. Шапка и навигация
   07. Кнопки
   08. Первый экран (hero)
   09. Карточки
   10. Цифры фонда
   11. Прогресс-бар сбора
   12. Формы
   13. Реквизиты и документы
   14. Cookie-баннер
   15. Подвал
   16. Утилиты и доступность
   17. Адаптив 768 / 1024 / 1280
   ========================================================================== */

/* 01. ШРИФТЫ ============================================================== */
/* Файлы шрифта положить в assets/fonts/.
   Скачать Golos Text: https://fonts.google.com/specimen/Golos+Text (лицензия OFL, свободная)
   Пока файлов нет — сайт корректно работает на системном шрифте из font-family. */
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* 02. ТОКЕНЫ ============================================================== */
:root {
  /* Основная палитра */
  --green-900: #0E3B2E;
  --green-800: #14523F;
  --green-600: #2E7D5B;
  --green-100: #EEF5F1;
  --green-050: #F6FAF8;

  --sand-300: #D9C9A8;
  --sand-100: #F2EADB;

  --sky-600: #3E7C99;
  --sky-100: #DCEEF5;

  --accent: #B4502E;       /* терракота — только кнопка пожертвования */
  --accent-dark: #97401F;

  --text: #1F2421;
  --text-soft: #5A625C;
  --line: #E3E7E4;

  --bg: #FFFFFF;
  --bg-soft: #FAFAF8;

  --error: #B3261E;

  /* Типографика */
  --font: "Golos Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Радиусы и тени */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(20, 82, 63, .06);
  --shadow-md: 0 2px 12px rgba(20, 82, 63, .07);
  --shadow-lg: 0 12px 32px rgba(20, 82, 63, .12);

  /* Ритм */
  --gap: 16px;
  --section-y: 56px;
  --container: 1200px;

  --ease: 200ms cubic-bezier(.2, .7, .3, 1);
}

/* 03. СБРОС И БАЗА ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--green-100); }

a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-800); }

ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--sky-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 04. ТИПОГРАФИКА ========================================================= */
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--green-900);
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 6.2vw, 56px); }
h2 { font-size: clamp(25px, 4.4vw, 40px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.6;
  color: var(--text-soft);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* 05. РАСКЛАДКА =========================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--green { background: var(--green-100); }
.section--sand { background: var(--sand-100); }

.section__head { max-width: 720px; margin-bottom: 32px; }
.section__head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.stack > * + * { margin-top: 16px; }

/* 06. ШАПКА И НАВИГАЦИЯ =================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-900);
  flex-shrink: 0;
}
/* Значок в шапке. Работает и для inline-SVG, и для растрового логотипа:
   у логотипа фонда фон залит, поэтому скругляем углы — плитка выглядит намеренной. */
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; object-fit: cover; }
.footer .logo__mark { border-radius: 8px; }
.logo__text {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: 66px 0 auto;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 66px);
  overflow-y: auto;
}
.nav.is-open { display: flex; }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.nav__link:hover { background: var(--green-100); color: var(--green-800); }
.nav__link--active { color: var(--green-800); background: var(--green-100); }

.header__cta { margin-top: 8px; }

/* Липкая кнопка «Помочь» на мобильных */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 55;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity var(--ease), transform var(--ease);
  pointer-events: none;
}
.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow-lg); }

/* 07. КНОПКИ ============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--donate { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--donate:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-lg); }

.btn--primary { background: var(--green-800); color: #fff; }
.btn--primary:hover { background: var(--green-900); color: #fff; }

.btn--ghost { background: transparent; color: var(--green-800); border-color: rgba(20, 82, 63, .35); }
.btn--ghost:hover { background: var(--green-100); color: var(--green-900); border-color: var(--green-800); }

.btn--white { background: #fff; color: var(--green-900); }
.btn--white:hover { background: var(--green-050); color: var(--green-900); }

.btn--wide { width: 100%; }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 17px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 08. ПЕРВЫЙ ЭКРАН ======================================================== */
.hero { position: relative; background: var(--green-900); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 59, 46, .52) 0%, rgba(14, 59, 46, .80) 100%);
}
.hero__inner {
  position: relative;
  padding-block: 72px 64px;
  max-width: 780px;
  color: #fff;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__sub {
  font-size: clamp(17px, 2.3vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 28px;
  max-width: 60ch;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.hero__note { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .78); }

/* Шапка внутренних страниц */
.pagehead { background: var(--green-100); padding-block: 40px 44px; border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: 12px; }
.pagehead p { color: var(--text-soft); font-size: 18px; }

.breadcrumbs { margin-bottom: 14px; font-size: 14px; color: var(--text-soft); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: #B9C4BD; }
.breadcrumbs li:last-child::after { content: none; }

/* 09. КАРТОЧКИ ============================================================ */
.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-600); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 16px; }
.card__foot { margin-top: auto; padding-top: 16px; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-800);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--sky { background: var(--sky-100); color: #2A5E75; }
.card__icon--sand { background: var(--sand-100); color: #7A5B2E; }

.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card--media .card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.problem-list { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.problem {
  padding: 20px 22px;
  background: #fff;
  border-left: 3px solid var(--green-600);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-sm);
}
.problem h3 { font-size: 19px; margin-bottom: 6px; }
.problem p { font-size: 16px; color: var(--text-soft); margin: 0; }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 600;
}
.tag--done { background: var(--sand-100); color: #7A5B2E; }
.tag--live { background: var(--sky-100); color: #2A5E75; }

.meta { font-size: 14px; color: var(--text-soft); }

/* 10. ЦИФРЫ ФОНДА ========================================================= */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.stat {
  padding: 22px 18px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 6px; font-size: 14px; color: var(--text-soft); }

/* 11. ПРОГРЕСС-БАР ======================================================== */
.progress { margin: 20px 0 8px; }
.progress__track {
  height: 12px;
  border-radius: 999px;
  background: var(--green-100);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--green-600);
  transition: width 900ms cubic-bezier(.2, .7, .3, 1);
}
.progress__nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-soft);
}
.progress__nums b { color: var(--green-800); font-size: 18px; }

.feature-project {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-project__media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-project__body { padding: 26px 22px 28px; }

/* 12. ФОРМЫ =============================================================== */
.form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--text-soft); }

.input, .textarea, .select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid #818B85;
  border-radius: var(--r-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.textarea { min-height: 130px; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--green-600); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(46, 125, 91, .18);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .16); }

.error-msg {
  display: none;
  font-size: 14px;
  color: var(--error);
  font-weight: 500;
}
.error-msg.is-shown { display: block; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.checkbox input {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--green-800);
  cursor: pointer;
}
.checkbox span { color: var(--text-soft); }

.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
}
.form__status.is-ok { display: block; background: var(--green-100); color: var(--green-900); }
.form__status.is-error { display: block; background: #FCEEED; color: var(--error); }

/* Блок пожертвования */
.donate-card {
  padding: 24px 20px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--green-100);
  border-radius: 999px;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--green-800);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.switch input:checked + label { background: #fff; color: var(--green-900); box-shadow: var(--shadow-sm); }
.switch input:focus-visible + label { outline: 3px solid var(--sky-600); outline-offset: 2px; }

/* auto-fit, а не фиксированные 4 колонки: карточка пожертвования на планшете
   узкая, и при жёстких 4 колонках «1 000 ₽» не помещается в кнопку */
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.amounts input { position: absolute; opacity: 0; width: 0; height: 0; }
.amounts label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1.5px solid #818B85;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.amounts label:hover { border-color: var(--green-600); background: var(--green-050); }
.amounts input:checked + label { border-color: var(--green-800); background: var(--green-800); color: #fff; }
.amounts input:focus-visible + label { outline: 3px solid var(--sky-600); outline-offset: 2px; }

.amount-other { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.amount-other .input { max-width: 220px; }

/* 13. РЕКВИЗИТЫ И ДОКУМЕНТЫ =============================================== */
.req { width: 100%; border-collapse: collapse; font-size: 15px; }
.req th, .req td { padding: 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.req th { width: 42%; font-weight: 500; color: var(--text-soft); padding-right: 16px; }
.req td { font-weight: 500; }
.req tr:last-child th, .req tr:last-child td { border-bottom: none; }
.req-wrap { overflow-x: auto; }

.doc-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.doc:hover { border-color: var(--green-600); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.doc__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--green-600); }
.doc__name { font-weight: 500; }
.doc__meta { display: block; font-size: 13px; color: var(--text-soft); }

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}
.qr img { width: 180px; height: 180px; border-radius: var(--r-sm); }

.note {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--sky-100);
  border: 1px solid #BCDCE9;
  font-size: 15px;
  color: #1C4757;
}
.note--warn { background: #FDF4E7; border-color: #EBD5B0; color: #6B4E16; }
.note p { max-width: none; }

/* 14. COOKIE-БАННЕР ======================================================= */
.cookie {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 70;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  font-size: 15px;
}
.cookie.is-shown { display: flex; }
.cookie p { margin: 0; color: var(--text-soft); max-width: none; }
.cookie .btn { min-height: 44px; }

/* 15. ПОДВАЛ ============================================================== */
.footer {
  padding-block: 44px 28px;
  background: var(--green-900);
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}
.footer h2, .footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; letter-spacing: 0; }
.footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer__list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 14px; text-decoration: none; }
.footer__req { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .7); }
.footer__req span { display: block; }
.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
}
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: background var(--ease);
}
.socials a:hover { background: rgba(255, 255, 255, .22); }
.socials svg { width: 20px; height: 20px; }

/* 16. УТИЛИТЫ И ДОСТУПНОСТЬ =============================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--green-800);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-soft); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: 19px; }
.prose ol, .prose ul { max-width: 68ch; }
.prose li { margin-bottom: .4em; }

/* 17. АДАПТИВ ============================================================= */
@media (min-width: 768px) {
  :root { --gap: 24px; --section-y: 76px; }

  body { font-size: 18px; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .problem-list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  .hero__inner { padding-block: 108px 96px; }

  .feature-project { grid-template-columns: 1fr 1fr; }
  .feature-project__body { padding: 40px 36px; align-self: center; }

  .donate-card { padding: 32px; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }

  .cookie { flex-direction: row; align-items: center; left: 24px; right: 24px; bottom: 24px; }
  .cookie p { flex: 1; }

  .sticky-cta { display: none; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .split--wide { grid-template-columns: 1.25fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --section-y: 88px; }

  html { scroll-padding-top: 92px; }

  .burger { display: none; }

  .nav {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__link { padding: 8px 11px; font-size: 15px; }
  .header__cta { margin-top: 0; margin-left: 12px; min-height: 44px; padding: 10px 22px; }
  .header__inner { min-height: 74px; }

  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .problem-list { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .logo__text { font-size: 17px; }
  .nav__link { padding: 9px 14px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .card--link:hover, .doc:hover { transform: none; }
}

@media print {
  .header, .footer, .cookie, .sticky-cta, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
