/* Современный минималистичный стиль */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-accent: #1f3f8f;
  --color-accent-soft: #e9eefb;
  --color-border: #e5e7eb;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  /* Максимальная полезная площадь: маленький зазор от краёв */
  --layout-gutter: 1.25rem;
  --layout-max: 1600px;
  /* Реальная высота шапки + зазор, чтобы нижняя грань блока с текстом не заходила за экран */
  --header-height: 105px;
  /* Прозрачность овальной области шапки: 1 = непрозрачная, 0.7 = полупрозрачная */
  --header-inner-bg-opacity: 0.82;
  /* Размытие фона внутри овала шапки (px) */
  --header-inner-blur: 5px;
  /* Кнопки в фотозоне: полупрозрачность + размытие, как шапка */
  --hero-controls-bg-opacity: 0.82;
  --hero-controls-blur: 5px;
  /* Зазор снизу первого слайда — блок с текстом заканчивается выше, не впритык к экрану */
  --first-slide-gap-bottom: 1.25rem;
  /* ---------- РАЗМЕР БЛОКА С ТЕКСТОМ НА ПЕРВОМ ЭКРАНЕ (подбирай сам) ---------- */
  --first-intro-min-height: 15rem;      /* блок примерно в 2 раза выше (0 = по тексту) */
  --first-hero-height: 58vh;
  --first-intro-max-height: calc(100vh - var(--header-height) - var(--first-hero-height) - 36px);
  --first-intro-padding-top: 0.75rem; /* отступ сверху */
  --first-intro-padding-bottom: 0.75rem; /* отступ снизу */   
  --first-intro-padding-horizontal: 1rem;
  --first-intro-font-size-min: 1.0125rem;
  --first-intro-font-size-max: 1.1375rem;
  --first-intro-line-height: 1.4;
  /* ------------------------------------------------------------------------- */
  /* Пробел между страницами (унифицирован).
     Сейчас: между 1↔2 = между 2↔3 = между 3↔4 = (снизу) --screen-gap-between + (сверху) --header-height + --screen-gap-between.
     Меньше пробел: уменьши --screen-gap-between (напр. 0.5rem). */
  --screen-gap-between: 0.65rem;
  /* Зазор между заголовком секции и контентом под ним (меньше — наполнение выше) */
  --section-title-to-content: 0.5rem;
  --section-gap-vertical: 1rem;
  /* Потоковая верстка секций со 2-го экрана (Apple-like) */
  --section-flow-pad-desktop: 28px;
  --section-flow-pad-mobile: 20px;
  --section-content-max: 1000px;
  --donate-qr-size-desktop: clamp(230px, 20vw, 270px);
  --section-band-a: #f5f5f7;
  --section-band-b: #f0f0f2;
  --section-seam-size: 4px;
  --section-inner-gap: 0.3rem;
  --container-max: 960px;
  --radius: 16px;
  --radius-block: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-block: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: var(--header-height);
}

.img--placeholder {
  background: linear-gradient(145deg, #e5e7eb 0%, #f3f4f6 100%);
}

.logo__img.img--placeholder {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 10px;
}

.hero__image.img--placeholder,
.project-card__image.img--placeholder,
.project-detail__photo.img--placeholder,
.team-member__photo.img--placeholder {
  background: linear-gradient(145deg, #dbeafe 0%, #e5e7eb 45%, #fef3c7 100%);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* --- Шапка: без размытия вокруг, только полупрозрачный овал --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem var(--layout-gutter);
}

.header::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: -1;
}

.header.is-menu-open::before {
  opacity: 1;
}

/* Зона размытия под шапкой отключена — иначе нахлёст на фотозону. Можно вернуть, когда первый экран будет через flex с отступами. */
/* .header::after { ... } */

.header__inner {
  position: relative;
  width: 100%;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, var(--header-inner-bg-opacity));
  backdrop-filter: blur(var(--header-inner-blur));
  -webkit-backdrop-filter: blur(var(--header-inner-blur));
  border-radius: 9999px;
  box-shadow: var(--shadow-block);
  border: 1px solid rgba(229, 231, 235, var(--header-inner-bg-opacity));
}

.page--home .header__inner {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(229, 231, 235, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.page--home .header.is-scrolled .header__inner {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-block);
  backdrop-filter: blur(var(--header-inner-blur));
  -webkit-backdrop-filter: blur(var(--header-inner-blur));
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.34rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.logo__img {
  height: 46px;
  width: auto;
  display: block;
}

.nav__toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5'/%3E%3C/svg%3E") center/1.5rem no-repeat;
  cursor: pointer;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  transform-origin: center;
  transition: color 0.24s ease, transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav__link:hover {
  color: var(--color-accent);
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-8px) scale(0.985);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.28s ease;
    z-index: 130;
  }

  .nav__link {
    display: block;
    padding: 0.35rem 0.1rem;
  }

  .nav__list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* --- Полноэкранные секции: одна прокрутка страницы, место под шапку через padding-top --- */
.screen {
  scroll-snap-align: start;
}

/* Первый экран: min-height 100vh, место под шапку — padding-top (без calc(100vh - header)) */
.screen--first {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
  padding: 0 var(--layout-gutter) var(--screen-gap-between);
  box-sizing: border-box;
}

.screen--first .hero {
  flex: 1 1 auto;
  height: 100%;
  min-height: 580px;
  max-height: none;
  border-radius: var(--radius-block);
  overflow: hidden;
  box-shadow: var(--shadow-block);
}

/* --- Герой --- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  height: 100%;
  max-height: none;
  overflow: hidden;
  background: var(--color-border);
  border-radius: var(--radius-block);
}

.hero__slider {
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__slide--active .hero__image {
  animation: hero-zoom 6s ease-out forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem var(--layout-gutter);
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(18, 24, 38, 0.46);
}

.hero__content {
  position: absolute;
  z-index: 3;
  inset: 0;
  margin: auto;
  width: min(92%, 680px);
  height: fit-content;
  color: #fff;
  text-align: center;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-wrap: balance;
}

.hero__subtitle {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.45;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.94);
}

.hero__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero__btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero__btn--primary {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #fff;
}

.hero__btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.hero__project-tag {
  position: absolute;
  z-index: 3;
  left: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(1rem, 2.2vw, 2rem);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, var(--hero-controls-bg-opacity));
  backdrop-filter: blur(var(--hero-controls-blur));
  -webkit-backdrop-filter: blur(var(--hero-controls-blur));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s, box-shadow 0.2s;
}

.hero__arrow:hover {
  box-shadow: var(--shadow-hover);
}

.hero__arrow--prev {
  left: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 19.5L8.25 12l7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}

.hero__arrow--prev:hover {
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 19.5L8.25 12l7.5-7.5'/%3E%3C/svg%3E");
}

.hero__arrow--next {
  right: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 4.5l7.5 7.5-7.5 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}

.hero__arrow--next:hover {
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 4.5l7.5 7.5-7.5 7.5'/%3E%3C/svg%3E");
}

.hero__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1rem, 2.2vw, 2rem);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--hero-controls-blur));
  -webkit-backdrop-filter: blur(var(--hero-controls-blur));
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero__dot:hover,
.hero__dot--active {
  background: rgba(255, 255, 255, var(--hero-controls-bg-opacity));
}

.hero__dot--active {
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .screen--first .hero {
    min-height: 520px;
  }

  .hero__content {
    width: auto;
    left: 1.25rem;
    right: 1.25rem;
  }

  .hero__title {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__btn {
    width: 100%;
  }

  .hero__project-tag {
    left: 1.25rem;
    bottom: 2.2rem;
  }

  .hero__dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.1rem;
    gap: 0.38rem;
  }
}

/* --- Краткое описание (в первом слайде и отдельно) --- */
.intro {
  padding: 3rem 0;
  background: var(--color-surface);
}

.intro__text {
  margin: 0;
  max-width: none;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- Секции: полноэкран через min-height 100vh, отступ под шапку только padding-top --- */
.section {
  padding: var(--section-gap-vertical) 0;
  background: var(--color-bg);
}

.section.screen {
  min-height: 100vh;
  padding-bottom: var(--screen-gap-between);
  box-sizing: border-box;
}

/* Со 2-го экрана — потоковая верстка, без фиксированной высоты 100vh */
.section.screen:not(.screen--first) {
  min-height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--section-flow-pad-desktop);
  padding-bottom: var(--section-flow-pad-desktop);
}

.section.screen:not(.screen--first) .section__banner,
.section.screen:not(.screen--first) .section__content {
  width: min(100%, var(--section-content-max));
  margin-left: auto;
  margin-right: auto;
}

/* Визуальное разделение секций фонами и тонкой белой полосой между ними */
#about {
  background: var(--section-band-a);
}

#projects,
#donate {
  background: var(--section-band-b);
}

#reports {
  background: #fff;
}

.section.screen:not(.screen--first) + .section.screen:not(.screen--first) {
  border-top: var(--section-seam-size) solid #fff;
}

/* Толще разделитель между "Наша команда" и "Проекты" */
#about + #projects {
  border-top-width: 8px;
}

@media (max-width: 768px) {
  .section.screen:not(.screen--first) {
    padding-top: var(--section-flow-pad-mobile);
    padding-bottom: var(--section-flow-pad-mobile);
  }
}

/* Вводный блок после hero: смысловой мост к контенту */
.intro-bridge {
  position: relative;
  background: #fff;
  padding: clamp(3.75rem, 8vw, 6.25rem) var(--layout-gutter);
}

.intro-bridge::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 840px);
  height: 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.07);
}

.intro-bridge__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.intro-bridge__lead,
.intro-bridge__text {
  margin: 0;
  color: var(--color-text);
  line-height: 1.85;
  font-size: clamp(1.06rem, 1.7vw, 1.22rem);
}

.intro-bridge__lead {
  font-weight: 600;
}

.intro-bridge__text {
  margin-top: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.screen--first .intro-bridge {
  flex: 0 0 auto;
  margin-top: 0;
  padding: clamp(2.1rem, 4.4vw, 3rem) var(--layout-gutter) clamp(4.8rem, 8.4vw, 6rem);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.screen--first .intro-bridge::before {
  display: none;
}

.screen--first .intro-bridge__inner {
  max-width: min(96vw, 1100px);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen--first .intro-bridge__lead,
.screen--first .intro-bridge__text {
  font-size: clamp(1.08rem, 1.7vw, 1.24rem);
  line-height: 1.9;
  text-align: center !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.screen--first .intro-bridge__lead {
  font-weight: 600;
  white-space: nowrap;
}

.screen--first .intro-bridge__text {
  margin-top: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .screen--first .intro-bridge__lead {
    white-space: normal;
    text-wrap: balance;
  }

  .screen--first .intro-bridge__text {
    text-wrap: pretty;
  }
}

/* Компенсация шапки только через scroll-padding-top на html; у секций scroll-margin не задаём */

#about {
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
  padding-bottom: calc(var(--section-flow-pad-desktop) + 28px);
}

.section__banner {
  padding: 0 0 var(--section-inner-gap);
  margin-bottom: 0;
}

#about .section__banner {
  padding-left: var(--first-intro-padding-horizontal);
  padding-bottom: var(--section-title-to-content);
  text-align: center;
}

.section__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-transform: uppercase;
}

.section__content {
  padding-top: var(--section-inner-gap);
}

.section__content > p:first-child {
  margin-top: 0;
}

/* Общая рамка для секций (отчётность, пожертвования, контакты): как у «О фонде» и «Проекты» */
.section__content--frame {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: var(--section-title-to-content) var(--first-intro-padding-horizontal) 0;
  box-sizing: border-box;
}

#reports,
#donate {
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

#reports .section__banner,
#donate .section__banner {
  padding-left: var(--first-intro-padding-horizontal);
  padding-right: var(--first-intro-padding-horizontal);
  padding-bottom: var(--section-title-to-content);
  text-align: center;
}

.reports-intro,
.donate-intro {
  max-width: 48rem;
  margin: 0.875rem auto 0;
  margin-bottom: clamp(0.5rem, 1.2vw, 0.75rem);
  padding: 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-align: center;
}

#donate .donate-intro {
  margin-bottom: 0.625rem;
}

#reports .section__content--reports {
  padding-top: 0.35rem;
}

#donate .section__content--donate {
  padding-top: 0.35rem;
}

/* Последний экран (#donate): потоковая высота по контенту */
#donate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: auto;
  min-height: auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

#donate .section__content.section__content--frame {
  flex: 1 1 auto;
  min-height: auto;
  overflow-y: visible;
}

#donate .footer {
  flex-shrink: 0;
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 0.35rem var(--layout-gutter);
  width: 100%;
  max-width: none;
}

#donate .donate-qr {
  margin-top: 1rem;
  padding: 1.25rem var(--first-intro-padding-horizontal);
}

#donate .donate-grid {
  gap: 1.25rem;
}

/* --- Кто мы: та же ширина, что у блоков на первом экране --- */
#about .section__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--section-title-to-content);
}

@media (min-width: 768px) {
  #about .section__content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #about {
    padding-bottom: calc(var(--section-flow-pad-mobile) + 20px);
  }
}

.about-block {
  margin-bottom: 0;
  padding: 1.65rem;
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

#about .about-block {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#about .about-block:last-child {
  margin-bottom: 0;
}

.about-block__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.about-block__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.about-block__heading {
  margin: 0 0 0.45rem;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.about-block__text {
  margin: 0;
  color: var(--color-text-muted);
  max-width: none;
  font-size: 15.5px;
  line-height: 1.55;
  opacity: 0.82;
}

/* Наша команда внутри экрана «О фонде»: фото слева, текст справа */
.about-team {
  margin-top: clamp(1rem, 2.2vw, 1.5rem);
  padding-left: 0;
  padding-right: 0;
}

.about-team__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-transform: uppercase;
  text-align: center;
}

.team-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.team-member {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  margin: 0;
}

.team-member:last-child {
  border-bottom: 1px solid var(--color-border);
}

.team-member__photo-wrap {
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-border);
}

.team-member__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.team-member__name {
  margin: 0 0 0.25rem;
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--color-text);
}

.team-member__role {
  margin: 0 0 0.45rem;
  font-size: 15px;
  color: rgba(26, 26, 26, 0.7);
}

.team-member__bio {
  margin: 0;
  font-size: 15.5px;
  color: rgba(26, 26, 26, 0.8);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .team-member__photo-wrap {
    width: 120px;
    height: 120px;
  }
}

.intro__text + .intro__text {
  margin-top: 1em;
}

/* --- Команда (карточки в сетке, для других секций при необходимости) --- */
.team-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  background: var(--color-surface);
  border-radius: var(--radius-block);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.team-card:hover {
  box-shadow: var(--shadow-block);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  background: var(--color-border);
}

.team-card__photo--placeholder {
  background: linear-gradient(145deg, #e5e7eb 0%, #f3f4f6 100%);
}

.team-card__body {
  padding: 0 1.25rem 1.25rem;
}

.team-card__name {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.team-card__role {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.team-card__bio {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Проекты (экран 3: те же рамки, что у «О фонде») --- */
#projects {
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

#projects .section__banner {
  padding-left: var(--first-intro-padding-horizontal);
  padding-right: var(--first-intro-padding-horizontal);
  padding-bottom: var(--section-title-to-content);
  text-align: center;
}

.projects-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.65rem;
  margin-bottom: 0;
  width: 100%;
  max-width: min(100%, 72rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.projects-intro {
  margin: 0;
  padding: 0 var(--first-intro-padding-horizontal);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: clamp(0.8125rem, 1.35vw, 0.9375rem);
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .projects-intro {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (max-width: 26rem) {
  .projects-toolbar__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .projects-toolbar__sep {
    display: none;
  }
}

#projects .section__content--projects {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.projects-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}

.projects-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

@media (max-width: 640px) {
  .projects-years {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .projects-years::-webkit-scrollbar {
    display: none;
  }

  .projects-filter__btn {
    padding: 0.44rem 0.88rem;
    font-size: 0.9rem;
  }
}

.projects-toolbar__sep {
  width: 1px;
  align-self: stretch;
  min-height: 1.35rem;
  margin: 0 0.2rem;
  background: var(--color-border);
  flex-shrink: 0;
}

.projects-filter__btn {
  padding: 0.5rem 1.125rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.projects-filter__btn:hover {
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transform: scale(1.035);
}

.projects-filter__btn.is-active {
  color: var(--color-text);
  background: var(--color-accent-soft);
  border-color: color-mix(in srgb, var(--color-accent) 32%, var(--color-border));
}

.projects-panel {
  display: none;
  padding-left: var(--first-intro-padding-horizontal);
  padding-right: var(--first-intro-padding-horizontal);
}

.projects-panel.is-active {
  display: block;
}

.projects-panel[hidden] {
  display: none !important;
}

.projects-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.projects-grid .project-card:nth-child(n+4) {
  display: none;
}

.projects-grid.is-expanded .project-card:nth-child(n+4) {
  display: block;
}

@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Действие «все проекты года» — не путать с переключателями лет: текстовая ссылка, разделитель слева */
.projects-show-all--toolbar {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.4rem 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  transition: color 0.24s ease, text-decoration-color 0.24s ease, transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.projects-show-all--toolbar:hover {
  color: var(--color-accent);
  text-decoration-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
  transform: scale(1.03);
}

.projects-show-all--toolbar.is-active {
  color: var(--color-accent);
  text-decoration-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
  transform: scale(1.03);
}

.projects-show-all--toolbar:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.projects-show-all.is-hidden {
  display: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 1.125rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.project-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-border);
  display: block;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem 0.875rem 0.875rem;
  gap: 0;
}

.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.project-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.project-card__location {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  max-width: 42%;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--color-text);
  opacity: 0.7;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card__progress-wrap {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card__progress-meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.project-card__track {
  height: 0.375rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.project-card__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-accent);
  transition: width 0.35s ease;
}

.project-card__amounts {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
}

.project-card__amount-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.project-card__amount-col:last-child {
  text-align: right;
  align-items: flex-end;
}

.project-card__amount-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.85;
}

.project-card__amount-val {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 0.65rem;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color 0.24s ease, color 0.24s ease, background 0.24s ease, transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project-card:hover .project-card__cta {
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
  color: var(--color-accent);
  transform: scale(1.035);
}

/* --- Отчёты --- */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.625rem;
}

@media (max-width: 699px) {
  .reports-grid {
    grid-template-columns: 1fr;
  }
}

.reports-year {
  padding: 1.625rem 1.5rem;
  background: #fff;
  border-radius: 1.125rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
  display: flex;
  flex-direction: column;
}

.reports-year__title {
  margin: 0 0 0.875rem;
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0;
  color: #1a1a1a;
  line-height: 1.25;
}

.reports-year__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
}

.reports-year__links li {
  margin: 0;
}

.reports-doc-link {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.15rem 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-text);
  text-decoration: none;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.reports-doc-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
}

.reports-doc-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.reports-doc-link__icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--color-text-muted);
  opacity: 0.72;
  transition: color 0.2s, opacity 0.2s;
}

.reports-doc-link__icon svg {
  display: block;
}

.reports-doc-link:hover .reports-doc-link__icon {
  color: var(--color-accent);
  opacity: 0.9;
}

.reports-doc-link__text {
  min-width: 0;
}

.reports-year--soon .reports-year__coming {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  font-style: italic;
  opacity: 0.6;
}

.reports-year__coming-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: inherit;
  opacity: 0.85;
}

.reports-year__coming-icon svg {
  display: block;
}

/* --- Пожертвования --- */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .donate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.donate-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  margin-bottom: 0;
  padding: 1.5rem 1.375rem;
  background: #fff;
  border-radius: 1.125rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
}

.donate-block__heading {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #1a1a1a;
  line-height: 1.3;
}

.donate-block__lead {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.donate-block__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.donate-block__cta:hover {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transform: scale(1.04);
}

.donate-block__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.donate-qr {
  margin-top: 1.5rem;
  padding: 1.1rem var(--first-intro-padding-horizontal) 1.2rem;
  background: var(--color-accent-soft);
  border-radius: var(--radius-block);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.donate-qr__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-transform: uppercase;
  line-height: 1.2;
  text-align: left;
  max-width: none;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.donate-qr__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  overflow: visible;
}

@media (min-width: 640px) {
  .donate-qr__content {
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
  }
  .donate-qr__col--steps {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .donate-qr__content {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
  }
  .donate-qr__col--steps {
    grid-column: auto;
  }
}

.donate-qr__col {
  min-width: 0;
}

.donate-qr__col--qr {
  display: flex;
  align-items: flex-start;
}

.donate-qr__col-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

/* Карточка под QR: в стиле сайта */
.donate-qr__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-block);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  padding: 0.875rem;
}

.donate-qr__card--qr {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.875rem;
  height: auto;
}

.donate-qr__card--steps {
  padding: 1.25rem;
  max-width: 320px;
}

/* Реквизиты: сетка label | value */
.donate-requisites {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.donate-requisites dt {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

.donate-requisites dd {
  margin: 0;
}

.donate-requisites dd + dt {
  margin-top: 0.35rem;
}

.donate-qr__col--requisites {
  align-self: start;
}

@media (min-width: 640px) {
  .donate-qr__col--requisites {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--donate-qr-size-desktop) + 1.75rem + 2px);
  }

  .donate-requisites {
    flex: 1 1 auto;
    align-content: space-between;
    row-gap: 0.2rem;
  }

  .donate-requisites dd + dt {
    margin-top: 0;
  }
}

.donate-qr__steps {
  margin: 0;
  padding-left: 1.25rem;
}

.donate-qr__steps li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.donate-qr__image {
  width: var(--donate-qr-size-desktop);
  height: var(--donate-qr-size-desktop);
  flex-shrink: 0;
  background: var(--color-surface);
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .donate-qr__col--qr {
    align-items: flex-start;
  }

  .donate-qr__card--qr {
    height: auto;
  }

  .donate-qr__image {
    width: clamp(220px, 68vw, 300px);
    height: clamp(220px, 68vw, 300px);
  }
}

.donate-qr__image--placeholder {
  background: var(--color-border);
}

.donate-qr__image img,
.donate-qr__image canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* QRCode.js рисует таблицу — делаем её на весь контейнер */
.donate-qr__image table {
  width: 100% !important;
  height: 100% !important;
  border-collapse: collapse;
  table-layout: fixed;
}
.donate-qr__image table td {
  border: none;
  padding: 0;
  margin: 0;
}

/* --- Контакты (2 колонки: реквизиты и контакты) --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contacts-block {
  margin-bottom: 0;
  padding: 1.25rem var(--first-intro-padding-horizontal);
  background: var(--color-surface);
  border-radius: var(--radius-block);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.contacts-block:last-child {
  margin-bottom: 0;
}

.contacts-block__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-transform: uppercase;
}

.contacts-block ul {
  margin: 0;
  padding-left: 1.25rem;
}

.contacts-block p {
  margin: 0.4rem 0;
  color: var(--color-text-muted);
}

.contacts-block a {
  color: var(--color-accent);
}

/* --- Подвал (ссылки и копирайт в одну строку, копирайт справа) --- */
.footer {
  margin-top: 1.25rem;
  padding: 0.4rem var(--layout-gutter);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  max-width: none;
  margin: 0;
  padding: 0 var(--first-intro-padding-horizontal);
}

.footer__documents-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer__documents-list li {
  margin: 0;
  flex-shrink: 0;
}

.footer__documents-list-item--end {
  flex-shrink: 1;
  min-width: 0;
}

.footer__documents-list a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer__documents-list a:hover {
  text-decoration: underline;
}

.footer__text {
  margin: 0 0 0 auto;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer__text a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer__text a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer {
    padding: 0.65rem var(--layout-gutter) calc(1.45rem + env(safe-area-inset-bottom));
  }

  .footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0;
  }

  .footer__documents-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    font-size: 0.8125rem;
  }

  .footer__documents-list li,
  .footer__documents-list-item--end {
    flex-shrink: 1;
    min-width: 0;
  }

  .footer__text {
    margin: 0;
    font-size: 0.8125rem;
  }
}

/* --- Плавающая кнопка навигации по секциям (scroll indicator) --- */
.scroll-nav {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 50;
  width: 2.55rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  color: rgba(26, 26, 26, 0.62);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, color 0.2s;
}

@media (max-width: 640px) {
  .scroll-nav {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

.scroll-nav:hover {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: rgba(26, 26, 26, 0.78);
}

.scroll-nav:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.scroll-nav:active {
  transform: translateX(-50%) scale(0.98);
}

.scroll-nav__icon {
  display: block;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.scroll-nav__icon::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  margin: 1px auto 0;
}

.scroll-nav__icon--down::before {
  transform: rotate(45deg);
}

.scroll-nav__icon--up::before {
  width: 16px;
  height: 16px;
  margin-top: 0;
  border: none;
  background-image: url('/media/2095e191-c568-4d17-b43c-5ac563a73509');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: none;
}

.scroll-nav .scroll-nav__icon--up {
  display: none;
}

.scroll-nav .scroll-nav__icon--down {
  display: block;
}

.scroll-nav.is-last .scroll-nav__icon--down {
  display: none;
}

.scroll-nav.is-last .scroll-nav__icon--up {
  display: block;
}

/* --- Страница проекта (шаблон): контент под шапкой, тот же диапазон по горизонтали и шрифт --- */
.project-page {
  padding: 1.25rem var(--layout-gutter) 2.25rem;
  min-height: auto;
  box-sizing: border-box;
  background: #f5f5f7;
}

.page--project {
  background: #f5f5f7;
  opacity: 1;
  transition: opacity 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.page--project.page-transition-out {
  opacity: 0;
}

.project-page__inner {
  max-width: min(100%, 1000px);
  margin: 0 auto;
}

.project-page__back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 1rem;
}

.project-page__back:hover {
  transform: scale(1.03);
}

.project-detail {
  display: grid;
  gap: 1.25rem;
}

.project-hero {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: clamp(180px, 26vw, 280px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.project-hero__image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.12) 0%, rgba(16, 24, 40, 0.58) 100%);
}

.project-hero__content {
  position: absolute;
  left: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.8vw, 2rem);
  z-index: 2;
  color: #fff;
}

.project-detail__title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.project-detail__meta {
  margin: 0.55rem 0 0;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.project-detail__gallery-wrap,
.project-detail__description,
.project-fund,
.project-detail__donate {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
}

.project-detail__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
}

.project-detail__photo {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: block;
}

.project-detail__photo--main {
  grid-row: span 2;
  min-height: clamp(260px, 34vw, 360px);
}

@media (max-width: 760px) {
  .project-detail__gallery {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.2rem;
  }

  .project-detail__photo {
    min-height: 200px;
    scroll-snap-align: start;
  }

  .project-detail__photo--main {
    grid-row: auto;
    min-height: 240px;
  }
}

/* Лайтбокс галереи проекта */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4.5rem;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.gallery-lightbox__counter {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.gallery-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.48);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, box-shadow 0.22s ease;
  z-index: 3;
}

.gallery-lightbox__arrow:hover {
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox__arrow--prev {
  left: 0.8rem;
}

.gallery-lightbox__arrow--next {
  right: 0.8rem;
}

.gallery-lightbox__arrow::before {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin-top: -1px;
}

.gallery-lightbox__arrow--prev::before {
  transform: rotate(135deg);
  margin-left: 2px;
}

.gallery-lightbox__arrow--next::before {
  transform: rotate(-45deg);
  margin-right: 2px;
}

.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.2s ease;
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gallery-lightbox__close::before,
.gallery-lightbox__close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  margin-top: -1px;
  background: currentColor;
}

.gallery-lightbox__close::before {
  transform: rotate(45deg);
}

.gallery-lightbox__close::after {
  transform: rotate(-45deg);
}

@media (max-width: 720px) {
  .gallery-lightbox__content {
    padding: 0 3.2rem;
  }

  .gallery-lightbox__counter {
    bottom: -1.65rem;
    font-size: 0.88rem;
  }

  .gallery-lightbox__arrow--prev {
    left: 0.25rem;
  }

  .gallery-lightbox__arrow--next {
    right: 0.25rem;
  }
}

.project-detail__description {
  display: grid;
  gap: 1rem;
}

.project-copy-block__title {
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.project-copy-block p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.project-copy-block__md > *:first-child {
  margin-top: 0;
}

.project-copy-block__md > *:last-child {
  margin-bottom: 0;
}

.project-copy-block__md p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.project-copy-block__md h1,
.project-copy-block__md h2,
.project-copy-block__md h3,
.project-copy-block__md h4,
.project-copy-block__md h5,
.project-copy-block__md h6 {
  margin: 1rem 0 0.5rem;
  color: var(--color-text);
  line-height: 1.35;
  font-weight: 700;
}

.project-copy-block__md h2 {
  font-size: 1.15rem;
}

.project-copy-block__md h3 {
  font-size: 1.05rem;
}

.project-copy-block__md ul,
.project-copy-block__md ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.project-copy-block__md li {
  margin: 0.28rem 0;
}

.project-copy-block__md a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-fund {
  display: grid;
  gap: 0.75rem;
}

.project-fund__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-fund__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.project-fund__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-accent);
}

.project-fund__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.project-fund__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-fund__item:last-child {
  text-align: right;
}

.project-fund__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.project-fund__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-detail__donate {
  margin-top: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.project-donate {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) {
  .project-donate {
    grid-template-columns: auto 1fr;
    align-items: stretch;
  }
}

.project-donate__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-donate__qr-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.project-donate.is-requisites-open .project-donate__qr-col {
  transform: translateY(var(--project-qr-shift, 0px));
}

.project-donate__lead {
  margin: 0.6rem 0 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.project-donate__toggle {
  margin-top: 0.9rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.16s ease;
}

.project-donate__toggle:hover {
  color: var(--color-accent);
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
  transform: scale(1.03);
}

.project-donate__requisites {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition:
    max-height 0.62s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.46s ease,
    transform 0.52s cubic-bezier(0.22, 0.61, 0.36, 1),
    margin-top 0.52s ease,
    padding-top 0.52s ease,
    border-top-color 0.52s ease;
  will-change: max-height, opacity, transform;
}

.project-donate__requisites.is-open {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top-color: rgba(0, 0, 0, 0.08);
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

.project-detail__donate .donate-qr__card--qr {
  padding: 0.75rem;
}

@media (max-width: 760px) {
  .project-donate__qr-col {
    justify-content: center;
    align-items: center;
  }

  .project-donate__details-col {
    text-align: left;
  }
}
