@font-face {
    font-family: "Fedorovsk AC";
    src: url("../fonts/Fedorovsk-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-bg: #faf6ef;
    --secondary-bg: #fffcf7;
    --tertiary-bg: #f1ebe1;
    --header-bg: #857560;
    --header-bg-deep: #756652;
    --header-surface: rgba(250, 246, 239, 0.14);
    --text-color: #2f2418;
    --header-color: #4a3724;
    --accent-color: #b35f0a;
    --accent-hover: #9a5008;
    --accent-soft: rgba(179, 95, 10, 0.08);
    --border-color: #ddd3c4;
    --muted-color: #6e6254;
    --brand-ochre: #480000;
    --brand-ochre-hover: #5a0000;
    --brand-ochre-soft: rgba(72, 0, 0, 0.08);
    --container-max: 1120px;
    --section-pad-y: 72px;
    --radius: 6px;
    --shadow-soft: 0 1px 2px rgba(47, 36, 24, 0.04), 0 10px 28px rgba(47, 36, 24, 0.06);
    --shadow-lift: 0 4px 8px rgba(47, 36, 24, 0.05), 0 16px 36px rgba(47, 36, 24, 0.08);
    --font-display: "Fedorovsk AC", "Merriweather", Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--sticky-nav-offset, 4.75rem);
}

main > section[id] {
    scroll-margin-top: var(--sticky-nav-offset, 4.75rem);
}

#donation-widget,
main h2[id] {
    scroll-margin-top: var(--sticky-nav-offset, 4.75rem);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cta-button,
    .document-item a,
    .document-item__preview,
    .header__eyebrow a,
    .team-member,
    .visual-item img,
    .accordion-trigger,
    .accordion-panel,
    .accordion-trigger__icon::before,
    .accordion-trigger__icon::after,
    .site-nav,
    .site-nav__list,
    .site-nav__toggle-bars,
    .site-nav__toggle-bars::before,
    .site-nav__toggle-bars::after,
    .back-to-top,
    .news-card__media img,
    .lightbox,
    .lightbox__close,
    .lightbox__prev,
    .lightbox__next {
        transition: none !important;
    }
}

::selection {
    background: rgba(179, 95, 10, 0.2);
    color: var(--text-color);
}

body {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header .header-logo {
    max-width: none;
    width: auto;
}

a {
    color: var(--accent-color);
    text-underline-offset: 0.15em;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 12px 16px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
}

.skip-link:focus {
    top: 16px;
}

/* Site navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(250, 246, 239, 0.94);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: nowrap;
}

.site-nav__brand {
    flex: 0 1 17rem;
    min-width: 0;
    max-width: 17rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand-ochre);
    text-decoration: none;
}

.site-nav__brand:hover,
.site-nav__brand:focus-visible {
    color: var(--accent-hover);
}

.site-nav__toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--secondary-bg);
    color: var(--text-color);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.site-nav__toggle:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.site-nav__toggle-bars,
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--brand-ochre);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__toggle-bars {
    position: relative;
}

.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-nav__toggle-bars::before {
    top: -5px;
}

.site-nav__toggle-bars::after {
    top: 5px;
}

.site-nav.is-open .site-nav__toggle-bars {
    background: transparent;
}

.site-nav.is-open .site-nav__toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.site-nav.is-open .site-nav__toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.site-nav__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    flex: 1 0 auto;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    display: inline-block;
    padding: 7px 8px;
    color: var(--header-color);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border-radius: var(--radius);
    white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
    color: var(--brand-ochre);
    background: var(--brand-ochre-soft);
}

.site-nav__list a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 1px;
}

.site-nav__cta {
    margin-left: 4px;
    background: var(--brand-ochre) !important;
    color: #fff !important;
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
    background: var(--brand-ochre-hover) !important;
    color: #fff !important;
}

body.nav-open {
    overflow: hidden;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(72, 0, 0, 0.18);
    border-radius: 50%;
    background: var(--brand-ochre);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(47, 36, 24, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--brand-ochre-hover);
}

.back-to-top:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

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

/* Header */
.header {
    position: relative;
    overflow: hidden;
    background-color: var(--header-bg);
    background-image:
        radial-gradient(ellipse 80% 120% at 12% 50%, rgba(250, 246, 239, 0.1) 0%, transparent 55%),
        linear-gradient(168deg, var(--header-bg-deep) 0%, var(--header-bg) 52%, #8f7e68 100%);
    color: var(--text-color);
    padding: clamp(48px, 8vw, 88px) 0;
    border-bottom: 1px solid rgba(47, 36, 24, 0.14);
}

.header__grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(0, 42rem) minmax(120px, 1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.header__logo-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: clamp(4px, 1.5vw, 20px);
}

.header__balance {
    min-height: 1px;
}

.header-logo {
    display: block;
    width: auto;
    height: clamp(195px, 24vw, 270px);
    max-height: calc(100% - 8px);
    margin: 0;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 3px 12px rgba(47, 36, 24, 0.22));
}

.header__content {
    text-align: center;
    justify-self: center;
    width: 100%;
    max-width: 38rem;
}

.header__eyebrow {
    margin: 0 0 1rem;
    font-family: "Merriweather", Georgia, serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
    color: rgba(47, 36, 24, 0.72);
}

.header__eyebrow a {
    color: var(--brand-ochre);
    text-decoration: none;
    border-bottom: 1px solid rgba(72, 0, 0, 0.28);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.header__eyebrow a:hover,
.header__eyebrow a:focus-visible {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.header__title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.2vw, 3.1rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.12;
    letter-spacing: 0.015em;
    color: var(--brand-ochre);
}

.header__tagline {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.1vw, 1.55rem);
    font-weight: 400;
    margin: 0.65rem 0 0;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: rgba(72, 0, 0, 0.88);
}

.header .cta-button:focus-visible,
.cta-button--header:focus-visible {
    outline-color: #fff;
}

.cta-button {
    display: inline-block;
    margin-top: 32px;
    padding: 15px 30px;
    background-color: var(--brand-ochre);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(72, 0, 0, 0.28);
}

.cta-button.cta-button--header {
    margin-top: 1.75rem;
    padding: 14px 28px;
}

.cta-button:hover,
.cta-button:focus-visible {
    background-color: var(--brand-ochre-hover);
    color: #fff;
    transform: translateY(-1px);
}

.cta-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Sections */
section {
    padding: var(--section-pad-y) 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

.section-highlight {
    background-color: var(--tertiary-bg);
}

section h2 {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--header-color);
    margin: 0 0 40px;
    line-height: 1.3;
}

h3.section-subtitle {
    text-align: center;
    font-family: "Merriweather", Georgia, serif;
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    line-height: 1.55;
    text-transform: uppercase;
    margin: -20px 0 36px;
    color: rgba(47, 36, 24, 0.62);
    padding: 0 8px;
}

/* Intro & Donation */
.intro-donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.intro-text h2 {
    text-align: left;
    margin-top: 0;
}

.intro-text h3 {
    color: var(--header-color);
}

.intro-text p {
    text-align: justify;
    text-align-last: left;
    overflow-wrap: anywhere;
}

.donation-widget {
    background-color: var(--secondary-bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: var(--sticky-nav-offset, 4.75rem);
}

.donation-widget h2 {
    margin-top: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.donation-widget iframe {
    width: 100%;
    min-height: 520px;
    height: clamp(520px, 85vh, 786px);
    border: none;
    border-radius: var(--radius);
    display: block;
}

/* Visual grids */
.visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.visual-grid + .visual-grid {
    margin-top: 30px;
}

.visual-grid--needs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.visual-grid--needs .visual-item {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.visual-grid--needs .visual-item:nth-child(4) {
    grid-column: 2 / 4;
}

.visual-grid--needs .visual-item:nth-child(5) {
    grid-column: 4 / 6;
}

.visual-grid--needs .visual-item img {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    object-fit: cover;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.visual-grid--needs .visual-item:hover img {
    transform: none;
    box-shadow: none;
}

.visual-grid--needs .visual-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px 16px 20px;
}

.visual-grid--needs .visual-item h4 {
    margin: 0;
    font-size: 1.02em;
    line-height: 1.4;
    color: var(--header-color);
}

.visual-item {
    text-align: center;
}

.visual-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-item:hover img {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.visual-item h4 {
    font-size: 1.15em;
    color: var(--header-color);
    margin: 10px 0 5px;
    line-height: 1.35;
}

.visual-item p {
    font-size: 0.95em;
    max-width: 90%;
    margin: 0 auto;
}

.visual-grid--transform {
    align-items: stretch;
    gap: 24px;
}

.visual-grid--transform .visual-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.visual-grid--transform .visual-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    flex-shrink: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.visual-grid--transform .visual-item:hover img {
    transform: none;
    box-shadow: none;
}

.visual-item__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 18px 20px 22px;
}

.visual-grid--transform .visual-item h4 {
    margin: 0 0 12px;
    line-height: 1.35;
    text-align: center;
    min-height: 0;
    height: auto;
    display: block;
}

.visual-grid--transform .visual-item p,
.visual-grid--transform .visual-item__lead {
    max-width: none;
    margin: 0;
    text-align: left;
}

.visual-item__lead {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--header-color);
    line-height: 1.45;
    margin-bottom: 10px;
}

.visual-item__list {
    margin: 0;
    padding: 0 0 0 1.15em;
    width: 100%;
    max-width: none;
    font-size: 0.92em;
    line-height: 1.55;
    color: var(--text-color);
}

.visual-item__list li + li {
    margin-top: 6px;
}

/* Pull a baseline to the bottom of every card so short copy still fills the frame */
.visual-grid--transform .visual-item__body::after {
    content: "";
    display: block;
    margin-top: auto;
    padding-top: 18px;
    border-bottom: 2px solid rgba(72, 0, 0, 0.12);
}

/* News feed */
.news-feed {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 28px;
}

.news-feed::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 5px;
    width: 2px;
    background: rgba(72, 0, 0, 0.14);
}

.news-card {
    position: relative;
    padding: 0 0 28px;
}

.news-card:last-child {
    padding-bottom: 0;
}

.news-card::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-ochre);
    box-shadow: 0 0 0 4px var(--tertiary-bg);
    z-index: 1;
}

.news-card__date {
    display: block;
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted-color);
}

.news-card__body {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 18px 20px 20px;
}

.news-card__title {
    margin: 0 0 12px;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--header-color);
}

.news-card__gallery {
    --news-media-h: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    align-items: flex-start;
}

.news-card__gallery.is-single {
    --news-media-h: 300px;
}

.news-card__gallery.is-empty {
    display: none;
}

.news-card__media {
    margin: 0;
    padding: 3px;
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 0;
    height: var(--news-media-h);
    width: min(100%, calc(var(--news-media-h) * var(--media-ratio, 1)));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(74, 55, 36, 0.14);
    background: rgba(241, 235, 225, 0.9);
    cursor: zoom-in;
}

.news-card__media:hover,
.news-card__media:focus-visible {
    border-color: rgba(179, 95, 10, 0.45);
}

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

.news-card__media.is-ready {
    background: var(--tertiary-bg);
}

.news-card__media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.news-card__media.is-ready img,
.news-card__media img.is-loaded {
    opacity: 1;
}

/* News photo lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 24, 16, 0.88);
    border: 0;
    padding: 0;
    cursor: zoom-out;
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(1100px, 100%);
    max-height: calc(100vh - 32px);
    outline: none;
}

.lightbox__figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: calc(100vh - 88px);
}

.lightbox__img {
    display: block;
    max-width: min(1100px, 92vw);
    max-height: calc(100vh - 88px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: rgba(250, 246, 239, 0.06);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(250, 246, 239, 0.28);
    background: rgba(47, 36, 24, 0.72);
    color: #faf6ef;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
    background: var(--brand-ochre);
    border-color: rgba(250, 246, 239, 0.55);
}

.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
    outline: 2px solid #faf6ef;
    outline-offset: 2px;
}

.lightbox__close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 2;
}

.lightbox__prev,
.lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 1.75rem;
    line-height: 1;
    z-index: 2;
}

.lightbox__prev {
    left: max(10px, env(safe-area-inset-left));
}

.lightbox__next {
    right: max(10px, env(safe-area-inset-right));
}

.lightbox__prev[hidden],
.lightbox__next[hidden],
.lightbox__counter[hidden] {
    display: none !important;
}

.lightbox__counter {
    margin: 14px 0 0;
    color: rgba(250, 246, 239, 0.88);
    font-family: "Merriweather", Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 10px;
    }

    .lightbox__figure {
        max-height: calc(100vh - 72px);
    }

    .lightbox__img {
        max-width: 96vw;
        max-height: calc(100vh - 72px);
    }

    .lightbox__prev,
    .lightbox__next {
        width: 42px;
        height: 42px;
        font-size: 1.45rem;
    }

    .lightbox__close {
        width: 40px;
        height: 40px;
    }
}

.news-card__text {
    margin: 0;
    color: var(--text-color);
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: justify;
    text-align-last: left;
}

/* FAQ accordion */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-item.is-open {
    border-color: rgba(179, 95, 10, 0.3);
}

.accordion-item h3,
.accordion-item h4 {
    margin: 0;
}

.accordion-trigger {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border: none;
    background: transparent;
    color: var(--header-color);
    font: inherit;
    font-weight: 700;
    font-size: 1.05em;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible {
    background-color: var(--accent-soft);
}

.accordion-trigger:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: -3px;
}

.accordion-trigger__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.accordion-trigger__text {
    flex: 1;
}

.accordion-trigger .date {
    font-size: 0.85em;
    font-weight: 400;
    color: var(--muted-color);
    line-height: 1.3;
}

.accordion-trigger__icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.accordion-trigger__icon::before,
.accordion-trigger__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--accent-color);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.accordion-trigger__icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.accordion-trigger__icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.accordion-item.is-open .accordion-trigger__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.accordion-item.is-open .accordion-panel {
    grid-template-rows: 1fr;
}

.accordion-panel__inner {
    overflow: hidden;
    min-height: 0;
}

.accordion-panel__inner p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--text-color);
    font-weight: 400;
}

.faq-item .accordion-panel__inner p {
    text-align: justify;
    text-align-last: left;
}

.accordion-panel__inner a {
    color: var(--accent-color);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
}

.team-grid--single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.team-category {
    margin-bottom: 36px;
}

.team-category:last-child {
    margin-bottom: 0;
}

.team-category h3 {
    color: var(--header-color);
    border-bottom: 1px solid rgba(72, 0, 0, 0.22);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.team-member {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.team-member--featured {
    max-width: 280px;
}

.team-member img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--border-color);
}

.team-member p {
    margin: 5px 0;
    font-size: 0.9em;
}

.team-member .name {
    font-weight: 700;
    font-size: 1.1em;
}

.team-member .role {
    font-style: italic;
    color: var(--muted-color);
}

/* Documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: 20px;
    text-align: center;
    align-items: end;
    justify-items: center;
}

.document-item {
    display: flex;
    width: 100%;
    max-width: 170px;
}

.document-item a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s;
}

.document-item a:hover,
.document-item a:focus-visible {
    transform: translateY(-4px);
}

.document-item__preview {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    /* высота как у большинства обложек 883×1280 */
    aspect-ratio: 883 / 1280;
    background-color: #f8e5d7;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.document-item a:hover .document-item__preview,
.document-item a:focus-visible .document-item__preview {
    box-shadow: var(--shadow-lift);
}

.document-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 64px 0 72px;
    background:
        linear-gradient(180deg, var(--tertiary-bg) 0%, #e9e1d5 55%, rgba(133, 117, 96, 0.16) 100%);
    border-bottom: none;
}

.final-cta h2 {
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background:
        linear-gradient(180deg, #3a2c1e 0%, #2a1f14 100%);
    color: #e8e0d4;
    text-align: left;
    padding: 0;
    border-top: 1px solid rgba(250, 246, 239, 0.08);
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 36px 40px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.footer__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #faf6ef;
}

.footer__legal-name {
    margin: 0 0 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(232, 224, 212, 0.72);
}

.footer__note {
    margin: 0 0 8px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(232, 224, 212, 0.78);
}

.footer__note:last-child {
    margin-bottom: 0;
}

.footer__label {
    margin: 0 0 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 246, 239, 0.55);
}

.footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__list li {
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.footer__list li + li {
    margin-top: 12px;
}

.footer__meta {
    display: block;
    margin-bottom: 2px;
    font-size: 0.8rem;
    color: rgba(232, 224, 212, 0.55);
}

.footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
    color: #f3e6d4;
    border-bottom-color: rgba(243, 230, 212, 0.45);
    text-decoration: none;
}

.footer a:focus-visible {
    outline: 2px solid rgba(250, 246, 239, 0.7);
    outline-offset: 3px;
}

.footer__bottom {
    border-top: 1px solid rgba(250, 246, 239, 0.1);
    padding: 18px 0;
}

.footer__bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(232, 224, 212, 0.58);
    overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 992px) {
    :root {
        --section-pad-y: 56px;
    }

    html {
        scroll-padding-top: 4.25rem;
    }

    .intro-donation-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .donation-widget {
        position: static;
    }

    .intro-text h2 {
        text-align: center;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 28px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .visual-grid--needs {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .visual-grid--needs .visual-item,
    .visual-grid--needs .visual-item:nth-child(4),
    .visual-grid--needs .visual-item:nth-child(5) {
        grid-column: auto;
    }

    .visual-grid--needs .visual-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 320px;
        justify-self: center;
        width: 100%;
    }
}

@media (max-width: 1100px) {
    html {
        scroll-padding-top: 4rem;
    }

    .site-nav__inner {
        flex-wrap: wrap;
        min-height: 52px;
    }

    .site-nav__brand {
        flex: 1 1 auto;
        max-width: calc(100% - 7rem);
        font-size: 0.7rem;
    }

    .site-nav__toggle {
        display: inline-flex;
        margin-left: auto;
        flex-shrink: 0;
    }

    .site-nav__list {
        display: none;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
        width: 100%;
        gap: 4px;
        padding: 8px 0 12px;
        border-top: 1px solid var(--border-color);
    }

    .site-nav.is-open .site-nav__list {
        display: flex;
    }

    .site-nav__list a {
        padding: 12px 14px;
        font-size: 0.95rem;
        white-space: normal;
    }

    .site-nav__cta {
        margin-left: 0;
        margin-top: 4px;
        text-align: center;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad-y: 44px;
    }

    .container {
        padding: 0 16px;
    }

    .news-feed {
        padding-left: 22px;
    }

    .news-feed::before {
        left: 3px;
    }

    .news-card::before {
        left: -23px;
        width: 10px;
        height: 10px;
    }

    .news-card__body {
        padding: 16px;
    }

    .news-card__gallery {
        --news-media-h: 160px;
        gap: 8px;
    }

    .news-card__gallery.is-single {
        --news-media-h: 240px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .footer__brand {
        grid-column: auto;
    }

    .header__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .header__logo-wrap {
        justify-content: center;
        padding-right: 0;
        margin-bottom: 1.25rem;
    }

    .header__balance {
        display: none;
    }

    .header-logo {
        height: clamp(170px, 42vw, 220px);
        margin: 0 auto;
    }

    .header__eyebrow {
        font-size: 0.625rem;
        letter-spacing: 0.1em;
    }

    .header__tagline {
        margin-top: 0.5rem;
    }

    .cta-button.cta-button--header {
        margin-top: 1.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 360px;
        padding: 14px 20px;
        text-align: center;
    }

    h3.section-subtitle {
        margin-top: -16px;
        margin-bottom: 28px;
        font-size: 0.625rem;
        letter-spacing: 0.1em;
    }

    .visual-item img {
        height: 200px;
    }

    .visual-grid--needs .visual-item img,
    .visual-grid--transform .visual-item img {
        height: auto;
    }

    .visual-grid--needs {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 420px;
    }

    .visual-grid--needs .visual-item,
    .visual-grid--needs .visual-item:nth-child(4),
    .visual-grid--needs .visual-item:nth-child(5) {
        grid-column: auto;
    }

    .team-member img {
        width: 120px;
        height: 120px;
    }

    .donation-widget {
        padding: 16px;
    }

    .donation-widget iframe {
        min-height: 480px;
        height: min(640px, 90vh);
    }
}

@media (max-width: 480px) {
    .header {
        padding: 48px 0;
    }

    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .donation-widget {
        padding: 14px;
    }

    .visual-item h4,
    .team-member .name {
        font-size: 1em;
    }
}
