:root {
  --green: #28451f;
  --green-dark: #1f3718;
  --beige: #fee6cc;
  --text: #1e1e1e;
  --white: #ffffff;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.45;
}

a {
  color: inherit;
}

.site {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 340px;
  background-image: url("assets/header-p.webp");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 58%, #fff 100%);
  pointer-events: none;
}

.main {
  width: 100%;
}

.message {
  max-width: 720px;
  margin: -24px auto 44px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 1rem;
}

.message p {
  margin: 0 0 1.25rem;
}

.button {
  display: inline-block;
  min-width: 190px;
  padding: 8px 26px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.footer {
  background: var(--beige);
  padding: 30px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.footer-logo img {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.contact p,
.legal-links p {
  margin: 0;
}

.legal-links a {
  display: inline-block;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  text-decoration: underline;
}

.subpage .hero {
  min-height: 210px;
}

.content {
  max-width: 880px;
  margin: -28px auto 48px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.content-card {
  background: #fff;
  padding: 30px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.content h1 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  line-height: 1.2;
}

.content h2 {
  margin: 2rem 0 .5rem;
  font-size: 1.15rem;
}

.content p {
  margin: 0 0 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .hero {
    min-height: 270px;
  }

  .message {
    margin-top: -12px;
    padding-inline: 20px;
    font-size: .98rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-logo {
    order: 1;
  }

  .contact {
    order: 2;
  }

  .legal-links {
    order: 3;
  }

  .content-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 220px;
  }

  .message {
    margin-top: 0;
  }

  .button {
    width: 100%;
    max-width: 260px;
  }
}
