:root {
  --ink: #17211f;
  --muted: #64706d;
  --paper: #fbfaf7;
  --soft: #eef5f1;
  --teal: #24766f;
  --teal-dark: #15504d;
  --coral: #e7684e;
  --gold: #f2b84b;
  --line: rgba(23, 33, 31, 0.12);
  --shadow: 0 24px 70px rgba(18, 36, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: 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;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.86);
  box-shadow: 0 18px 50px rgba(20, 33, 31, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.brand__name,
.brand__caption {
  display: block;
}

.brand__name {
  font-weight: 800;
}

.brand__caption {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #31403d;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.header-action {
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  overflow: hidden;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 46px;
  isolation: isolate;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0.78) 36%, rgba(251, 250, 247, 0.22) 74%),
    linear-gradient(180deg, rgba(251, 250, 247, 0.6) 0%, rgba(251, 250, 247, 0) 34%, rgba(251, 250, 247, 0.86) 100%);
}

.hero__content {
  align-self: center;
  width: min(640px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.hero__text {
  max-width: 590px;
  margin: 24px 0 0;
  color: #3b4946;
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 28px rgba(231, 104, 78, 0.26);
}

.button--light {
  color: var(--teal-dark);
  background: #fff;
}

.button--dark {
  color: #fff;
  background: var(--teal-dark);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
  width: min(720px, 100%);
  margin-top: 70px;
}

.hero__stats article,
.help-card,
.pet-card,
.report-list article,
.volunteer-form,
.donate-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero__stats article {
  padding: 18px;
}

.hero__stats strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.hero__stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section,
.donate-band,
.footer {
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.section--muted {
  background: var(--soft);
}

.section__intro p:not(.eyebrow) {
  max-width: 550px;
  color: var(--muted);
  font-size: 17px;
}

.section__intro--wide {
  max-width: 760px;
  margin-bottom: 34px;
}

.help-grid,
.pet-grid,
.report-list {
  display: grid;
  gap: 18px;
}

.help-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-card {
  min-height: 230px;
  padding: 24px;
}

.help-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #d9ebe6;
  font-size: 24px;
  font-weight: 800;
}

.help-card__icon--currency {
  font-size: 16px;
}

.help-card p,
.pet-card p,
.report-list p,
.donate-band p,
.footer p {
  color: var(--muted);
}

.donate-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 44px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  color: #fff;
  background: var(--teal-dark);
}

.donate-band .eyebrow,
.donate-band p {
  color: rgba(255, 255, 255, 0.8);
}

.donate-form,
.volunteer-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.donate-form {
  color: var(--ink);
}

.donate-form label,
.volunteer-form label {
  display: grid;
  gap: 8px;
  color: #34423f;
  font-size: 14px;
  font-weight: 800;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amount-options button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.amount-options button.is-active {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.form-note {
  min-height: 21px;
  margin: 0;
  font-size: 13px;
}

.pet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pet-card {
  overflow: hidden;
}

.pet-card__photo {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.pet-card__photo--mira {
  background:
    radial-gradient(circle at 38% 42%, #8a6a4a 0 9%, transparent 10%),
    radial-gradient(circle at 58% 46%, #4e3428 0 12%, transparent 13%),
    linear-gradient(135deg, #f2b84b, #e7684e 58%, #24766f);
}

.pet-card__photo--bim {
  background:
    radial-gradient(circle at 48% 38%, #f9f0df 0 18%, transparent 19%),
    radial-gradient(circle at 55% 48%, #17211f 0 8%, transparent 9%),
    linear-gradient(135deg, #d9ebe6, #7db9ad 50%, #f2b84b);
}

.pet-card__photo--nora {
  background:
    radial-gradient(circle at 52% 36%, #5b3a2c 0 15%, transparent 16%),
    radial-gradient(circle at 39% 44%, #fff3dc 0 8%, transparent 9%),
    linear-gradient(135deg, #e9c7af, #e7684e 48%, #15504d);
}

.pet-card__body {
  padding: 20px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #d9ebe6;
  font-size: 12px;
  font-weight: 800;
}

.report-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.report-list article {
  padding: 22px;
  box-shadow: none;
}

.report-list span {
  color: var(--coral);
  font-weight: 800;
}

.report-list strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 22px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.brand--footer {
  margin-bottom: 14px;
}

.footer__contacts {
  display: grid;
  gap: 8px;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open a {
    padding: 12px 4px;
  }

  .hero {
    min-height: 720px;
    padding-top: 132px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.78) 48%, rgba(251, 250, 247, 0.92) 100%),
      linear-gradient(90deg, rgba(251, 250, 247, 0.88), rgba(251, 250, 247, 0.42));
  }

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

  .help-grid,
  .pet-grid,
  .report-list {
    grid-template-columns: 1fr;
  }

  .footer__contacts {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    min-width: 0;
  }

  .brand__caption {
    display: none;
  }

  h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .hero__text {
    font-size: 17px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero__stats,
  .amount-options {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}
