:root {
    --green-950: #17351d;
    --green-900: #204b27;
    --green-800: #2f6b35;
    --green-700: #3d7c42;
    --green-100: #e8f1e7;
    --green-050: #f4f8f1;
    --yellow: #efb417;
    --yellow-soft: #fff4ce;
    --ink: #172019;
    --muted: #667067;
    --line: #dde4da;
    --paper: #fffdf8;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(29, 62, 32, 0.08);
    --shadow-md: 0 24px 70px rgba(29, 62, 32, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.body-panenyuk,
.body-index {
    background:
        linear-gradient(180deg, rgba(232, 241, 231, 0.6) 0, rgba(255, 253, 248, 0) 520px),
        var(--paper);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(221, 228, 218, 0.88);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(18px);
}

.topbar,
.footer,
.brand-shell,
.status-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.brand-home { display: inline-flex; align-items: center; }
.site-logo { width: 104px; height: 38px; object-fit: contain; object-position: left center; display: block; }
.topbar-nav { display: flex; justify-content: center; align-items: center; gap: 30px; }
.topbar-nav a {
    color: #465047;
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 160ms ease;
}
.topbar-nav a:hover { color: var(--green-800); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang-toggle a { min-width: 38px; padding: 7px 9px; border-radius: 999px; text-align: center; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.lang-toggle a.is-active { background: var(--green-100); color: var(--green-900); }
.header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    background: var(--green-800);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
}

.brand-shell { padding: 76px 0 92px; }
.hero-company {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    align-items: center;
    gap: clamp(46px, 7vw, 92px);
    min-height: 620px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--green-700);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.about-copy h2,
.field-story-copy h2,
.donation-intro h2,
.status-panel h1 {
    margin: 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.035em;
}
.hero-copy h1 { max-width: 720px; font-size: clamp(3.5rem, 6.4vw, 6.2rem); line-height: 0.98; }
.tagline { max-width: 670px; margin: 26px 0 0; color: var(--green-900); font-size: clamp(1.15rem, 1.8vw, 1.42rem); font-weight: 600; line-height: 1.45; }
.hero-description { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.primary-link,
.secondary-link,
.submit-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.primary-link,
.submit-button { border: 1px solid var(--green-800); background: var(--green-800); color: var(--white); box-shadow: 0 10px 26px rgba(47, 107, 53, 0.16); }
.secondary-link { border: 1px solid var(--line); background: var(--white); color: var(--green-900); }
.primary-link:hover,
.secondary-link:hover,
.submit-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hero-proof { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof span { position: relative; padding-left: 16px; color: #59655b; font-size: 0.84rem; font-weight: 600; }
.hero-proof span::before { content: ""; position: absolute; left: 0; top: 0.47em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

.hero-visual { position: relative; margin: 0; }
.hero-visual > img { width: 100%; min-height: 560px; height: 68vh; max-height: 700px; object-fit: cover; border-radius: 4px 72px 4px 4px; box-shadow: var(--shadow-md); }
.hero-caption { position: absolute; right: -18px; bottom: 26px; width: min(360px, calc(100% - 34px)); padding: 22px 24px; background: var(--white); border-left: 4px solid var(--yellow); box-shadow: var(--shadow-md); }
.hero-caption strong { display: block; color: var(--green-900); font-family: "Source Serif 4", Georgia, serif; font-size: 1.45rem; line-height: 1.15; }
.hero-caption span { display: block; margin-top: 7px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.impact-ribbon { display: grid; grid-template-columns: repeat(3, 1fr); margin: 84px 0 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact-ribbon article { min-height: 152px; padding: 28px 34px; border-right: 1px solid var(--line); }
.impact-ribbon article:last-child { border-right: 0; }
.impact-number { display: block; color: var(--yellow); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; }
.impact-ribbon p { margin: 20px 0 0; color: var(--green-950); font-size: 1rem; font-weight: 600; line-height: 1.55; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr); gap: 84px; align-items: center; }
.story-surface { padding: 0; }
.about-copy h2 { max-width: 680px; font-size: clamp(2.65rem, 4.4vw, 4.4rem); line-height: 1.02; }
.section-lead { margin: 28px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.quote-block { margin-top: 34px; padding: 24px 0 0 28px; border-top: 1px solid var(--line); border-left: 3px solid var(--yellow); }
.quote-block p { margin: 0; color: var(--green-900); font-family: "Source Serif 4", Georgia, serif; font-size: 1.28rem; line-height: 1.55; }
.portrait-card { margin: 0; background: var(--green-950); color: var(--white); overflow: hidden; }
.portrait-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.portrait-card figcaption { padding: 24px 28px 28px; }
.portrait-card figcaption span { color: #d8e6d7; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.portrait-card figcaption p { margin: 12px 0 0; color: rgba(255,255,255,0.78); line-height: 1.65; }

.programs-section { margin-top: 128px; padding: 80px 0 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.15fr 0.65fr; gap: 70px; align-items: end; }
.section-heading h2 { max-width: 720px; font-size: clamp(2.65rem, 4.7vw, 4.5rem); line-height: 1.03; }
.section-heading > p { margin: 0 0 6px; color: var(--muted); line-height: 1.7; }
.initiative-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); }
.initiative-card { min-height: 290px; padding: 34px; background: var(--paper); }
.program-index { color: var(--green-700); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; }
.initiative-card h3 { margin: 74px 0 12px; color: var(--green-950); font-family: "Source Serif 4", Georgia, serif; font-size: 1.55rem; line-height: 1.15; }
.initiative-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.field-story { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; margin-top: 118px; background: var(--green-050); }
.field-story-image { margin: 0; min-height: 520px; }
.field-story-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.field-story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 7vw, 88px); }
.field-story-copy h2 { font-size: clamp(2.5rem, 4.2vw, 4rem); line-height: 1.04; }
.field-story-copy > p:not(.eyebrow) { margin: 24px 0 0; color: var(--muted); line-height: 1.8; }
.text-link { margin-top: 28px; color: var(--green-800); font-weight: 700; }
.text-link span { margin-left: 6px; transition: margin 160ms ease; }
.text-link:hover span { margin-left: 11px; }

.donation-section { display: grid; grid-template-columns: 0.95fr 0.9fr; gap: 92px; align-items: start; margin-top: 120px; padding: 86px; background: var(--green-950); color: var(--white); }
.donation-section .eyebrow { color: #a8c9a9; }
.donation-intro h2 { font-size: clamp(2.7rem, 4.4vw, 4.4rem); line-height: 1.02; }
.donation-intro > p:not(.eyebrow) { margin: 24px 0 0; color: rgba(255,255,255,0.7); line-height: 1.8; }
.donation-points { display: grid; gap: 0; margin-top: 38px; border-top: 1px solid rgba(255,255,255,0.16); }
.donation-points div { display: grid; gap: 8px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.donation-points strong { color: var(--yellow); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
.donation-points span { color: rgba(255,255,255,0.72); line-height: 1.55; }
.donation-card { padding: 34px; background: var(--white); color: var(--ink); box-shadow: 0 28px 70px rgba(0,0,0,0.18); }
.donation-label { margin: 0 0 18px; color: var(--green-900); font-weight: 700; }
.donation-form { display: grid; gap: 14px; }
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amount-chip,
.amount-input,
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; color: var(--ink); }
.amount-chip { min-height: 48px; padding: 0 12px; font-weight: 700; }
.amount-chip:hover { border-color: #9db59b; }
.amount-chip.is-active { border-color: var(--green-800); background: var(--green-100); color: var(--green-900); }
.field-label { margin-top: 4px; color: #5e6a60; font-size: 0.86rem; font-weight: 600; }
.amount-input, textarea { padding: 14px 15px; outline: 0; }
.amount-input:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(61,124,66,0.1); }
textarea { resize: vertical; min-height: 105px; }
.submit-button { width: 100%; margin-top: 5px; border-radius: 10px; }
.form-note { margin: 2px 0 0; color: #7a837b; font-size: 0.76rem; line-height: 1.5; }

.site-footer { border-top: 1px solid var(--line); background: #f8f7f2; }
.footer { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 36px 0; }
.footer-brand img { width: 130px; height: 48px; object-fit: contain; object-position: left center; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
.footer-meta { display: grid; gap: 8px; text-align: right; color: #737d74; font-size: 0.82rem; }

/* Checkout and status pages */
.status-wrap { min-height: calc(100vh - 270px); display: grid; align-items: center; padding: 70px 0; }
.status-panel { max-width: 900px; width: 100%; margin: 0 auto; padding: clamp(30px, 5vw, 56px); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.status-panel h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1; }
.status-panel > p:not(.eyebrow), .widget-note { color: var(--muted); line-height: 1.7; }
.status-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 28px 0; background: var(--line); border: 1px solid var(--line); }
.status-list > div { padding: 18px; background: #fbfcfa; color: var(--muted); line-height: 1.6; }
.status-list strong { color: var(--green-900); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.gateway-section, .stripe-section { margin-top: 38px; }
.gateway-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.gateway-heading-row h2 { margin: 4px 0 0; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.gateway-mode { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-800); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; }
.gateway-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gateway-card { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 20px; border: 1px solid var(--line); background: #fbfcfa; }
.gateway-card h3 { margin: 0 0 8px; color: var(--green-950); }
.gateway-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.gateway-card.is-disabled, .stripe-section.is-disabled { opacity: 0.62; }
.gateway-button { width: 100%; min-height: 46px; border: 0; border-radius: 8px; padding: 0 18px; background: var(--green-800); color: var(--white); font-weight: 700; }
.gateway-unavailable { padding: 12px 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 0.88rem; }
.gateway-unavailable-wide { margin: 14px 0; }
.stripe-embedded-shell { min-height: 520px; margin: 22px 0 12px; padding: 16px; border: 1px solid var(--line); background: #fbfcfa; }
.widget-loading, .widget-error { min-height: 280px; display: grid; place-items: center; color: var(--muted); }
.status-warning { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--yellow); background: var(--yellow-soft); color: #6f5b20; line-height: 1.6; }

@media (max-width: 1040px) {
    .topbar { grid-template-columns: auto 1fr; }
    .topbar-nav { display: none; }
    .topbar-right { justify-self: end; }
    .hero-company { grid-template-columns: 1fr; min-height: 0; }
    .hero-copy { max-width: 800px; }
    .hero-visual > img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
    .profile-grid { grid-template-columns: 1fr; gap: 48px; }
    .portrait-card { max-width: 760px; }
    .section-heading { grid-template-columns: 1fr; gap: 24px; }
    .donation-section { grid-template-columns: 1fr; gap: 48px; padding: 64px; }
}

@media (max-width: 760px) {
    .topbar, .footer, .brand-shell, .status-shell { width: min(100% - 28px, 1180px); }
    .topbar { min-height: 68px; gap: 10px; }
    .site-logo { width: 88px; height: 34px; }
    .header-cta { display: none; }
    .brand-shell { padding: 48px 0 68px; }
    .hero-company { gap: 38px; }
    .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
    .hero-caption { position: relative; right: auto; bottom: auto; width: calc(100% - 24px); margin: -38px 0 0 auto; }
    .impact-ribbon { grid-template-columns: 1fr; margin: 72px 0 86px; }
    .impact-ribbon article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 4px; }
    .impact-ribbon article:last-child { border-bottom: 0; }
    .about-copy h2, .section-heading h2, .field-story-copy h2, .donation-intro h2 { font-size: clamp(2.35rem, 11vw, 3.45rem); }
    .programs-section { margin-top: 92px; padding-top: 58px; }
    .initiative-list { grid-template-columns: 1fr; }
    .initiative-card { min-height: 0; }
    .initiative-card h3 { margin-top: 38px; }
    .field-story { grid-template-columns: 1fr; margin-top: 82px; }
    .field-story-image, .field-story-image img { min-height: 360px; }
    .field-story-copy { padding: 42px 28px; }
    .donation-section { margin-top: 84px; padding: 44px 20px; }
    .donation-card { padding: 24px 18px; }
    .footer { min-height: 0; flex-direction: column; align-items: flex-start; padding: 36px 0; }
    .footer-meta { text-align: left; }
    .status-list, .gateway-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .lang-toggle a { min-width: 34px; padding-inline: 7px; }
    .preset-grid { grid-template-columns: 1fr; }
    .hero-actions { display: grid; }
    .primary-link, .secondary-link { width: 100%; }
    .hero-proof { display: grid; gap: 12px; }
}
