:root {
  --color-ink: #151515;
  --color-muted: #5b625f;
  --color-paper: #fffdf8;
  --color-soft: #eef8f5;
  --color-line: #dbe5df;
  --color-accent: #1bbfd4;
  --color-accent-dark: #0b6875;
  --color-leaf: #4f8f68;
  --shadow: 0 18px 45px rgba(20, 38, 34, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-line);
  background: #ffffff;
  color: var(--color-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: 42px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 76px 20px 58px;
}

.hero-content h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 620px;
  color: var(--color-muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  grid-template-rows: repeat(2, 180px);
  gap: 10px;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-gallery img:first-child {
  grid-row: 1 / 3;
}

.hero-actions,
.support-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--color-accent-dark);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--color-line);
  background: #ffffff;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 58px 20px;
}

.section-band {
  max-width: none;
  background: var(--color-soft);
}

.section-band > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.adoption-grid,
.volunteer-grid,
.education-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.animal-card,
.volunteer-grid article,
.education-list article {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.animal-card {
  display: flex;
  flex-direction: column;
}

.animal-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: calc(100% + 36px);
  margin: -18px -18px 0;
}

.animal-photos img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  background: var(--color-soft);
}

.animal-photos img:first-child {
  border-top-left-radius: 8px;
}

.animal-photos img:last-child {
  border-top-right-radius: 8px;
}

.animal-card h3,
.volunteer-grid h3,
.education-list h3 {
  margin: 14px 0 6px;
}

.animal-card p,
.volunteer-grid p,
.education-list p,
.support-layout p {
  color: var(--color-muted);
}

.image-placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  border: 1px dashed #a9b8b0;
  border-radius: 6px;
  background: #f6fbf8;
  color: var(--color-muted);
  font-weight: 700;
}

.text-button {
  display: inline-flex;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-accent-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  align-items: start;
}

.donation-list {
  margin: 0;
  padding: 22px 22px 22px 42px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
}

.donation-list li + li {
  margin-top: 10px;
}

.volunteer-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
}

.volunteer-form label {
  display: grid;
  gap: 6px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.volunteer-form input,
.volunteer-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #ffffff;
  color: var(--color-ink);
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px;
  color: var(--color-muted);
}

.site-footer a {
  color: var(--color-accent-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-gallery {
    grid-template-rows: repeat(2, minmax(150px, 32vw));
  }

  .adoption-grid,
  .volunteer-grid,
  .education-list,
  .volunteer-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
