:root {
  --green: #39A935;
  --green-deep: #185C2B;
  --red: #D83A3A;
  --white: #FFFFFF;
  --mist: #F2F7F1;
  --ink: #17231B;
  --ink-soft: #536058;
  --line: #D9E5D9;
  --lime: #C8F07D;
  --shadow: 0 28px 70px rgba(24, 92, 43, 0.16);
  --radius-small: 0.75rem;
  --radius-medium: 1.5rem;
  --radius-large: 2.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle at 18% 8%, rgba(57, 169, 53, 0.08), transparent 27rem);
  content: "";
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(24, 92, 43, 0.1);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(18px);
}

.nav,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green-deep);
  font-size: 0.8rem;
  line-height: 1.05;
  text-decoration: none;
}

.brand strong {
  font-size: 1rem;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50% 50% 50% 0;
  color: var(--white);
  background: var(--red);
  font-size: 1.35rem;
  place-items: center;
  transform: rotate(-10deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green-deep);
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-small {
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--green-deep);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 30px rgba(216, 58, 58, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #BC2929;
}

.button-secondary {
  border-color: var(--green-deep);
  color: var(--green-deep);
  background: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--white);
  background: var(--green-deep);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 7.5rem) 0 clamp(4rem, 8vw, 8rem);
  background:
    linear-gradient(120deg, rgba(242, 247, 241, 0.96), rgba(255, 255, 255, 0.98) 58%),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(24, 92, 43, 0.035) 64px 65px);
}

.hero::after {
  position: absolute;
  right: -9rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border: 6rem solid rgba(57, 169, 53, 0.07);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(21rem, 0.92fr);
  gap: clamp(2rem, 6vw, 6.5rem);
}

.hero-context {
  max-width: 37rem;
  margin: 0 0 1.5rem;
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 850;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.25rem, 4.8vw, 4.4rem);
  font-weight: 820;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.hero-lead {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-note {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 34rem;
}

.pulse-line {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: -8rem;
  width: calc(100% + 10rem);
  overflow: visible;
}

.pulse-track,
.pulse-active {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 9;
}

.pulse-track {
  stroke: rgba(57, 169, 53, 0.16);
}

.pulse-active {
  stroke: var(--green);
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw-pulse 1.7s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

.rescue-bag {
  position: absolute;
  z-index: 1;
  top: 6rem;
  right: 0;
  width: min(100%, 23rem);
  filter: drop-shadow(0 30px 35px rgba(24, 92, 43, 0.2));
  transform: rotate(2deg);
}

.bag-body {
  fill: var(--green-deep);
}

.bag-handle,
.bag-seam {
  fill: none;
  stroke: #0F4720;
  stroke-width: 15;
}

.bag-seam {
  opacity: 0.38;
  stroke-width: 5;
}

.bag-badge {
  fill: var(--white);
}

.bag-cross {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-width: 18;
}

.goal-card {
  position: absolute;
  z-index: 4;
  right: -1.2rem;
  bottom: 0;
  width: min(100%, 18rem);
  padding: 1.25rem 1.4rem;
  border-left: 0.55rem solid var(--red);
  border-radius: var(--radius-small);
  background: var(--white);
  box-shadow: var(--shadow);
}

.goal-card span,
.goal-card p {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.goal-card strong {
  display: block;
  margin: 0.1rem 0 0.2rem;
  color: var(--green-deep);
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.goal-card p {
  margin-bottom: 0;
}

.section {
  padding: clamp(4.5rem, 8vw, 8.5rem) 0;
}

.section-heading {
  display: grid;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1fr minmax(17rem, 0.62fr);
  gap: 3rem;
}

.section-heading h2,
.association-copy h2 {
  max-width: 13ch;
}

.section-heading > p {
  max-width: 39rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.equipment-list {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.equipment-list article {
  padding: 2.25rem 2.25rem 1rem 0;
  border-right: 1px solid var(--line);
}

.equipment-list article + article {
  padding-left: 2.25rem;
}

.equipment-list article:last-child {
  border-right: 0;
}

.equipment-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 2.8rem;
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--lime);
  font-size: 1.2rem;
  font-weight: 900;
  place-items: center;
}

.equipment-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.help {
  position: relative;
  color: var(--white);
  background: var(--green-deep);
  overflow: hidden;
}

.help::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, transparent 45%, rgba(200, 240, 125, 0.06) 45% 65%, transparent 65%);
  content: "";
}

.help .shell {
  position: relative;
}

.section-heading-light > p {
  color: rgba(255, 255, 255, 0.74);
}

.help-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.15rem;
}

.help-card {
  display: flex;
  min-height: 33rem;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.07);
}

.help-card-money {
  color: var(--ink);
  background: var(--lime);
}

.card-symbol {
  display: grid;
  width: 4.6rem;
  height: 4.6rem;
  margin-bottom: auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 850;
  place-items: center;
}

.help-card h3 {
  max-width: 12ch;
  margin-top: 3.5rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
}

.help-card p {
  max-width: 38rem;
}

.donation-reference {
  padding-left: 1rem;
  border-left: 4px solid var(--red);
  font-weight: 800;
}

.button-light {
  margin-top: 0.8rem;
  color: var(--white);
  background: var(--ink);
}

.button-outline-light {
  margin-top: auto;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.association {
  background: var(--mist);
}

.association-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 7vw, 8rem);
}

.association-statement {
  position: relative;
  padding: 3rem;
  border-radius: 50% 50% 50% 0;
  color: var(--white);
  background: var(--red);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.association-statement p:last-child {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.association-mark {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.association-copy > p {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--green-deep);
  font-weight: 800;
  text-underline-offset: 0.3rem;
}

.relay {
  padding-block: 1rem;
}

.relay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  gap: 2rem;
}

.relay-card h2 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
}

.relay-card p {
  max-width: 45rem;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}

.contact-grid address {
  padding: 2.5rem 2.5rem 2rem 0;
  font-style: normal;
}

.contact-grid address + address {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}

.contact-grid a {
  display: block;
  width: fit-content;
  margin-top: 0.45rem;
  color: var(--green-deep);
  font-size: 1.1rem;
  font-weight: 750;
  text-underline-offset: 0.25rem;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  gap: 2rem;
}

.final-cta p {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--ink);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.donation-dialog {
  width: min(calc(100% - 2rem), 37rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-medium);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.34);
}

.donation-dialog::backdrop {
  background: rgba(11, 25, 16, 0.74);
  backdrop-filter: blur(5px);
}

.donation-dialog form {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
}

.dialog-close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mist);
  cursor: pointer;
  font-size: 1.65rem;
  place-items: center;
}

.dialog-content {
  padding: clamp(2rem, 6vw, 4rem);
}

.dialog-heart {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--red);
  font-size: 2.2rem;
}

.dialog-content h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.reference-copy {
  margin: 1.6rem 0;
  padding: 1.1rem;
  border-radius: var(--radius-small);
  background: var(--mist);
}

.reference-copy p {
  margin-bottom: 0.8rem;
}

.reference-copy button {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--green-deep);
  border-radius: 0.45rem;
  color: var(--green-deep);
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 750;
}

.reference-copy button.is-copied {
  color: var(--white);
  background: var(--green-deep);
}

.dialog-help {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.noscript-donation {
  padding: 1rem;
  color: var(--white);
  background: var(--red);
  text-align: center;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    gap: 1.5rem;
  }

  .hero-visual {
    min-height: 29rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    max-width: 16ch;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 1.35rem, 74rem);
  }

  .site-header .button-small {
    min-height: 2.55rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
  }

  .brand {
    font-size: 0.66rem;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-grid,
  .help-grid,
  .association-grid,
  .equipment-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 28rem;
    margin-top: 1rem;
  }

  .pulse-line {
    top: 0;
    left: -2rem;
    width: calc(100% + 3rem);
  }

  .rescue-bag {
    top: 4rem;
    right: 4%;
    width: 78%;
  }

  .goal-card {
    right: 0;
  }

  .equipment-list article,
  .equipment-list article + article {
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .equipment-list article:last-child {
    border-bottom: 0;
  }

  .equipment-icon {
    margin-bottom: 1.3rem;
  }

  .help-card {
    min-height: 29rem;
  }

  .association-statement {
    padding: 2.3rem;
  }

  .relay-card,
  .final-cta,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .relay-card .button,
  .final-cta .button {
    width: 100%;
  }

  .contact-grid address,
  .contact-grid address + address {
    padding: 2rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-row {
    justify-content: center;
    padding-block: 1.4rem;
    gap: 0.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
