:root {
  --nav-active: #2f7d3f;
}

.nav {
  gap: 22px;
}

.nav nav {
  align-items: center;
}

.nav nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.nav nav a:hover,
.nav nav a.active {
  color: var(--text);
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: var(--nav-active);
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity .2s ease, transform .2s ease;
}

.nav nav a:hover::after,
.nav nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-row a {
  color: var(--muted);
  margin-left: 0;
  text-decoration: none;
}

.footer-row a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link svg {
  width: 16px;
  height: 16px;
  margin-right: 0;
  fill: currentColor;
}

.footer-legal {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.footer-cookie-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.footer-cookie-button:hover {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 120;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-content {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 50px rgba(31, 41, 55, .18);
}

.cookie-banner h2 {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner-actions .btn {
  min-height: 44px;
  white-space: nowrap;
}

.cookie-privacy-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.cookie-privacy-link:hover {
  text-decoration: underline;
}

@media(min-width:921px) {
  .hero {
    min-height: calc(100vh - 76px);
    grid-template-columns: 1.1fr .9fr;
    gap: 52px;
    align-items: start;
    padding: 76px 0;
  }

  .subhero {
    min-height: calc(86vh - 76px);
    grid-template-columns: 1.02fr .98fr;
    gap: 52px;
    align-items: center;
    padding: 76px 0 62px;
  }

  .hero h1 {
    font-size: clamp(44px, 7vw, 84px);
    line-height: .94;
    letter-spacing: -.07em;
  }

  .subhero h1 {
    font-size: clamp(42px, 6vw, 74px);
    line-height: .96;
    letter-spacing: -.06em;
  }

  .hero .hero-image {
    min-height: 610px;
  }

  .subhero .hero-image {
    min-height: 560px;
  }
}

@media(max-width:920px) {
  .nav {
    align-items: center;
  }

  .nav .site-nav {
    width: 100%;
  }

  .nav .site-nav a::after {
    display: none;
  }

  .nav .site-nav a.active {
    color: var(--accent-dark);
    font-weight: 900;
  }

  .footer-row {
    justify-content: center;
    text-align: center;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner-content {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column-reverse;
  }

  .cookie-banner-actions .btn {
    width: 100%;
  }
}
