:root {
  --ink: #202747;
  --text: #4f5662;
  --muted: #565d69;
  --paper: #ffffff;
  --cream: #fffff6;
  --lavender: #f7f4fb;
  --mist: #f7faf8;
  --line: #e8e8ef;
  --accent: #a9441f;
  --accent-soft: #fff2eb;
  --shadow: 0 24px 70px rgba(37, 43, 70, 0.12);
  --radius: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

main a:not(.button),
.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-card a,
.link-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.18;
}

button,
input,
textarea {
  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;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 48px);
  min-height: 92px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(232, 232, 239, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex: 0 0 min(360px, 32vw);
  justify-content: center;
  width: min(360px, 52vw);
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  position: static;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.5vw, 26px);
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

.main-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100vh - 92px));
  place-items: center;
  padding: 120px 22px 150px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(rgba(20, 26, 45, 0.42), rgba(20, 26, 45, 0.36)),
    url("assets/img/hero.webp");
  background-position: center top;
  background-size: cover;
}

.hero::after,
.join::after,
.newsletter::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -70px;
  left: -8%;
  height: 140px;
  background: var(--paper);
  border-radius: 52% 48% 0 0 / 70% 70% 0 0;
  z-index: -1;
}

.hero__content {
  width: min(980px, 100%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero .script,
.hero h1,
.hero p {
  color: #fff;
}

.hero h1 {
  max-width: 960px;
  margin: 8px auto 24px;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 300;
}

.hero p:not(.script) {
  font-size: 21px;
}

.script {
  margin: 0 0 12px;
  color: #25305f;
  font-family: "Clicker Script", cursive;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.02;
}

.section {
  scroll-margin-top: 112px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.page-hero {
  display: grid;
  min-height: 430px;
  place-items: end center;
  padding: 150px 22px 84px;
  color: #fff;
  text-align: center;
  background-image:
    linear-gradient(rgba(20, 26, 45, 0.5), rgba(20, 26, 45, 0.42)),
    url("assets/img/hero.webp");
  background-position: center;
  background-size: cover;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 auto 18px;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 300;
}

.page-hero p {
  max-width: 760px;
  font-size: 21px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.content-flow h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
}

.content-flow h3 {
  margin: 34px 0 12px;
  font-size: 27px;
}

.content-flow ul {
  margin: 0 0 28px;
  padding-left: 22px;
}

.side-panel {
  padding: 30px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-panel h2,
.side-panel h3 {
  margin-bottom: 14px;
  font-size: 26px;
}

.link-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.link-list a {
  display: block;
  padding: 16px 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.link-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

#top,
.join,
.newsletter {
  scroll-margin-top: 112px;
}

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

.section-heading--center {
  text-align: center;
}

.section-heading h2 {
  font-size: 24px;
  font-weight: 300;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
}

.copy-stack h3 {
  margin-bottom: 34px;
  font-size: clamp(31px, 4vw, 46px);
}

.check-item {
  position: relative;
  padding-left: 46px;
}

.check-item + .check-item {
  margin-top: 34px;
}

.check-item::before {
  content: "✓";
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  font-weight: 700;
}

.check-item h4 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 600;
}

.photo-pair {
  position: relative;
  min-height: 520px;
}

.photo-pair::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(169, 68, 31, 0.18) 1px, transparent 2px);
  background-size: 18px 18px;
}

.photo-pair img {
  position: absolute;
  border-radius: 10px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.photo-pair__small {
  top: 10%;
  left: 4%;
  width: 42%;
}

.photo-pair__large {
  right: 0;
  bottom: 10%;
  width: 66%;
}

.join {
  position: relative;
  padding: 80px 20px 0;
  overflow: hidden;
}

.join__panel {
  display: grid;
  width: min(var(--max), calc(100% - 40px));
  min-height: 360px;
  margin: 0 auto;
  place-items: center;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.4)),
    url("assets/img/volunteer-bg.webp");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: -70px;
  padding-top: 0;
}

.benefit-card {
  min-height: 320px;
  padding: 26px 24px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 56px rgba(32, 39, 71, 0.08);
}

.benefit-card img {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  object-fit: contain;
  opacity: 0.74;
}

.benefit-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
}

.local-context {
  padding-top: 72px;
}

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

.article-card {
  min-height: 230px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(32, 39, 71, 0.06);
}

.article-card p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.15;
}

.article-card a {
  color: var(--ink);
}

.article-card span {
  color: var(--muted);
}

.section-link {
  margin: 34px 0 0;
  text-align: center;
}

.about {
  width: 100%;
  max-width: none;
  padding: 106px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

.about .script {
  font-size: clamp(54px, 6vw, 76px);
}

.values {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  margin-top: 72px;
  padding-top: 68px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.values img {
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
  object-fit: contain;
  opacity: 0.72;
}

.values figcaption {
  color: var(--ink);
  font-weight: 600;
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 46px rgba(32, 39, 71, 0.05);
}

summary {
  position: relative;
  min-height: 78px;
  padding: 24px 62px 22px 30px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 24px;
  right: 30px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  padding: 0 30px;
}

details p:last-child {
  padding-bottom: 30px;
}

.newsletter {
  position: relative;
  padding: 98px 20px 132px;
  overflow: hidden;
  background: var(--lavender);
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 42px;
  align-items: start;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.newsletter h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
}

.form {
  display: grid;
  gap: 14px;
}

.form--inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.form input,
.form textarea {
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 27px;
  outline: none;
}

.form textarea {
  min-height: 150px;
  border-radius: 20px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(169, 68, 31, 0.7);
  box-shadow: 0 0 0 4px rgba(169, 68, 31, 0.12);
}

.checkbox {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.support {
  padding-top: 116px;
}

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.support-card__content {
  padding: clamp(34px, 6vw, 78px);
}

.support-card__image {
  min-height: 650px;
  background-image: url("assets/img/support.webp");
  background-position: center;
  background-size: cover;
}

.support-list {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.support-list li {
  position: relative;
  padding-left: 34px;
}

.support-list li::before {
  content: "•";
  position: absolute;
  top: -1px;
  left: 8px;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.partners {
  padding-top: 0;
}

.partners-card {
  width: min(100%, 860px);
  padding: clamp(36px, 6vw, 76px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 48px;
  padding: 82px max(20px, calc((100vw - var(--max)) / 2));
  color: #565d69;
  background: var(--lavender);
}

.site-footer address {
  font-style: normal;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 17px 32px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.button--light {
  color: var(--accent);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.button--light:hover,
.button--light:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button--small {
  min-height: 44px;
  padding: 12px 22px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 32;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--accent);
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(32, 39, 71, 0.14);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

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

.cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(620px, calc(100% - 40px));
  padding: 18px;
  color: #fff;
  background: rgba(32, 39, 71, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.cookie.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .site-header {
    justify-content: flex-start;
  }

  .main-nav {
    gap: 16px;
    font-size: 14px;
  }
}

@media (max-width: 1240px) {
  .site-header {
    min-height: 78px;
  }

  .brand {
    width: min(280px, 58vw);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(32, 39, 71, 0.1);
  }

  .menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

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

  .split,
  .about__grid,
  .newsletter__inner,
  .content-grid,
  .support-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .photo-pair {
    min-height: 460px;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 52px;
  }

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

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

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

  .support-card__image {
    min-height: 360px;
    order: -1;
  }
}

@media (max-width: 620px) {
  .hero,
  .page-hero {
    background-image:
      linear-gradient(rgba(20, 26, 45, 0.5), rgba(20, 26, 45, 0.42)),
      url("assets/img/hero-mobile.webp");
  }

  .join__panel {
    background-image:
      linear-gradient(rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.4)),
      url("assets/img/volunteer-bg-mobile.webp");
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .hero {
    min-height: 720px;
    padding: 84px 18px 112px;
    background-position: center;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p:not(.script) {
    font-size: 18px;
  }

  .script {
    font-size: 46px;
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 72px 0;
  }

  .join {
    padding-top: 62px;
  }

  .join__panel {
    width: calc(100% - 32px);
    min-height: 270px;
  }

  .benefits,
  .values,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: auto;
  }

  .photo-pair {
    min-height: auto;
  }

  .photo-pair::before {
    display: none;
  }

  .photo-pair img {
    position: static;
    width: 100%;
  }

  .photo-pair img + img {
    margin-top: 18px;
  }

  .newsletter {
    padding: 72px 16px 104px;
  }

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

  .support-card__content,
  .partners-card {
    padding: 32px 22px;
  }

  .support-list li {
    padding-left: 26px;
  }

  .support-card__image {
    min-height: 270px;
  }

  .site-footer {
    padding: 58px 20px;
  }

  .cookie {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
    width: auto;
  }
}
