:root {
  --ink: #17211a;
  --muted: #607064;
  --paper: #fbfaf5;
  --soft: #eef4ec;
  --line: #dce6dc;
  --green: #2d6f3e;
  --green-dark: #184527;
  --gold: #d99832;
  --blue: #276b84;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
}

.main-nav .nav-donate,
.button.primary,
.footer-cta,
.donation-panel button {
  background: var(--gold);
  color: #261704;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  font-weight: 800;
  text-decoration: none;
}

.main-nav .nav-donate {
  padding: 8px 14px;
}

.hero {
  min-height: 52vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(12, 30, 18, 0.82), rgba(12, 30, 18, 0.45), rgba(12, 30, 18, 0.18)),
    var(--hero-image) var(--hero-position, center 22%) / cover;
  color: var(--white);
}

.hero-home {
  min-height: 76vh;
}

.hero-inner {
  width: min(1120px, 100%);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 64px);
}

.hero p,
.section-heading p,
.cta-band p,
.donation-panel p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 8vw, 90px);
  line-height: 0.98;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 4px;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.content-wrap,
.section-band,
.gallery-grid,
.donation-panel,
.contact-panel,
.cta-band {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.content-wrap {
  padding: clamp(34px, 6vw, 72px) 0;
}

.wp-content {
  display: flow-root;
}

.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
  max-width: 850px;
  margin: 24px 0 10px;
  line-height: 1.18;
}

.wp-content h1 {
  font-size: clamp(34px, 6vw, 64px);
}

.wp-content h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.wp-content h3 {
  font-size: clamp(23px, 3vw, 32px);
}

.wp-content h5,
.wp-content h6 {
  color: var(--green);
  font-size: 15px;
  text-transform: uppercase;
}

.wp-content p,
.wp-content ul,
.wp-content ol {
  max-width: 840px;
}

.wp-content a {
  color: var(--green-dark);
  font-weight: 700;
}

.wp-content img {
  width: min(100%, 520px);
  height: auto;
  margin: 18px 0;
  border-radius: 6px;
  object-fit: cover;
}

.wp-content ul {
  padding-left: 20px;
}

.section-band {
  padding: 48px 0 70px;
  border-top: 1px solid var(--line);
}

.section-heading h2,
.cta-band h2,
.donation-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.project-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.project-card span {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.project-card small {
  color: var(--blue);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 70px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.donation-panel {
  margin-bottom: 70px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.donation-panel > div > span {
  display: block;
  max-width: 620px;
  margin-top: 10px;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(22px, 5vw, 48px);
  margin-bottom: 70px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.donation-panel form,
.contact-panel form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-panel form {
  margin-top: 0;
}

.donation-panel label,
.contact-panel label {
  display: grid;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 800;
}

.donation-panel input,
.donation-panel select,
.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.phone-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(180px, 1fr);
  gap: 10px;
}

.contact-panel textarea {
  resize: vertical;
}

.contact-panel p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.contact-panel span {
  color: var(--muted);
}

.contact-message {
  grid-column: 1 / -1;
}

.donation-panel button,
.contact-panel button {
  min-height: 44px;
  align-self: end;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 380px);
  gap: clamp(20px, 5vw, 42px);
  align-items: center;
  margin-top: 32px;
  padding: clamp(18px, 4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.qr-panel h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.qr-panel img {
  width: min(100%, 360px);
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-panel button {
  width: max-content;
  background: var(--green);
  color: var(--white);
  border: 0;
  border-radius: 4px;
  font-weight: 800;
}

.contact-panel button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  grid-column: 1 / -1;
  color: var(--green-dark);
}

.form-status.error {
  color: #a33b1f;
}

.cta-band {
  margin-bottom: 70px;
  padding: clamp(30px, 5vw, 54px);
  background: var(--green-dark);
  color: var(--white);
  border-radius: 6px;
}

.cta-band .button {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #101912;
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
  color: #bfcabc;
}

.footer-cta {
  padding: 10px 16px;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero,
  .hero-home {
    min-height: 58vh;
    background-position:
      center,
      var(--hero-mobile-position, center top);
  }

  .project-grid,
  .gallery-grid,
  .donation-panel form,
  .contact-panel,
  .contact-panel form,
  .qr-panel,
  .phone-fields {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
