:root {
  --ink: #0a1f1b;
  --teal: #165160;
  --sage: #87b3a9;
  --cream: #fbf6f1;
  --paper: #fffaf4;
  --gold: #ffc046;
  --muted: #6f7a77;
  --line: rgba(10, 31, 27, 0.14);
  --shadow: 0 24px 70px rgba(10, 31, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Epilogue", Georgia, serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(880px, calc(100% - 40px));
}

.section-pad {
  padding: clamp(70px, 9vw, 120px) 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 54px);
  color: white;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(10, 31, 27, 0.94);
  box-shadow: 0 14px 40px rgba(10, 31, 27, 0.2);
  backdrop-filter: blur(14px);
}

.brand img {
  width: clamp(142px, 18vw, 210px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-donate) {
  opacity: 0.88;
}

.site-nav a:not(.nav-donate):hover {
  opacity: 1;
}

.nav-donate {
  padding: 12px 22px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 145px 0 86px;
  color: white;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(10, 31, 27, 0.9), rgba(10, 31, 27, 0.6) 43%, rgba(10, 31, 27, 0.2)),
    url("assets/hero-bg.jpeg") right center / cover;
  background-repeat: no-repeat;
}

.hero-shade {
  background: radial-gradient(circle at 20% 80%, rgba(255, 192, 70, 0.18), transparent 28%);
}

.hero-content {
  position: relative;
  display: grid;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

.center {
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(3rem, 5.8vw, 5.65rem);
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.04;
}

.hero-copy {
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.lead {
  font-weight: 700;
}

.hero-actions,
.button-row,
.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
}

.button-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.46);
}

.button-secondary {
  color: white;
  background: var(--teal);
}

.button-outline {
  color: var(--teal);
  border-color: rgba(22, 81, 96, 0.34);
  background: transparent;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.intro-split {
  max-width: 1040px;
}

.intro-copy {
  max-width: 630px;
}

.intro-seal {
  width: min(220px, 48vw);
  margin-bottom: 28px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  background: white;
  padding: 12px;
  transform: rotate(1deg);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  border-radius: 3px;
}

.kvitel,
.testimony {
  background: var(--paper);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--muted);
}

.kvitel h2,
.testimony h2,
.sponsors h2 {
  text-align: center;
}

.kvitel-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 44px);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(10, 31, 27, 0.18);
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fffcf8;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(135, 179, 169, 0.38);
  border-color: var(--sage);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.email-fallback {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #f4faf8;
  border: 1px solid rgba(22, 81, 96, 0.18);
  border-radius: 6px;
}

.email-fallback[hidden] {
  display: none;
}

.email-fallback p {
  margin-bottom: 0;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(22, 81, 96, 0.13);
}

.copy-row button {
  flex: 0 0 auto;
  border: 1px solid rgba(22, 81, 96, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--teal);
  background: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.copy-status {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
}

.donate {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.donate-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 28px 64px;
  align-items: start;
}

.donate-copy {
  color: var(--teal);
}

.donate-actions {
  grid-column: 2;
}

blockquote {
  max-width: 900px;
  margin: 0 auto 42px;
  color: var(--teal);
  text-align: center;
}

blockquote p {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.22;
  font-weight: 700;
}

cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 32px;
}

.sponsor-grid img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.site-footer {
  padding: 64px 0 42px;
  color: white;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

.footer-logo {
  width: 220px;
}

.copyright {
  margin: 24px 0 0;
  color: var(--sage);
}

.footer-label {
  margin-bottom: 10px;
  font-weight: 800;
}

address {
  color: var(--sage);
  font-style: normal;
}

.map-links {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--sage);
}

@media (max-width: 880px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 78px 14px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    color: white;
    background: rgba(10, 31, 27, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .nav-donate {
    color: var(--ink);
    text-align: center;
  }

  .split,
  .donate-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .donate-actions {
    grid-column: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .copy-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 88vh;
    align-items: center;
    padding-bottom: 50px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(10, 31, 27, 0.82), rgba(10, 31, 27, 0.86)),
      url("assets/kever-main.jpeg") center / cover;
    background-color: transparent;
  }
}

@media (max-width: 640px) {
  .wrap,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 14px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 112px;
  }

  .hero-actions,
  .button-row,
  .donate-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .gallery,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}
