.site-header,
.site-footer {
  --site-shell-page: 1120px;
  --site-shell-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  font-family: var(--site-shell-font);
}

.site-header *,
.site-header *::before,
.site-header *::after,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-header {
  position: relative;
  z-index: 5;
  color: #1b2a21;
  border-bottom: 1px solid rgba(23, 63, 45, 0.16);
  background: rgba(251, 250, 244, 0.94);
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--site-shell-page));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: #1b2a21;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.brand-link img {
  display: block;
  width: clamp(180px, 59vw, 230px);
  max-width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  color: #173f2d;
  font-size: 0.88rem;
  font-weight: 650;
}

.site-nav__item {
  display: inline-flex;
  align-items: flex-start;
  min-height: 44px;
  justify-content: center;
  flex-direction: column;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav__item:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-nav__item[aria-current="page"] {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-header a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #d5ed79;
  outline-offset: 4px;
}

.site-footer {
  position: relative;
  z-index: auto;
  margin: 0;
  color: #dbe7d3;
  background: #102f22;
  text-align: initial;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.site-footer__inner {
  width: min(calc(100% - 2rem), var(--site-shell-page));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.site-footer a {
  display: inline;
  min-height: 0;
  padding: 0;
  color: inherit;
  letter-spacing: normal;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header__inner {
    min-height: 0;
    padding: 0.72rem 0 0.62rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.48rem;
  }

  .brand-link {
    align-self: flex-start;
  }

  .site-nav {
    width: 100%;
    padding-top: 0.42rem;
    justify-content: space-between;
    gap: 0.55rem;
    border-top: 1px solid rgba(23, 63, 45, 0.12);
    font-size: 0.8rem;
  }

  .site-nav__item {
    min-height: 34px;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    min-height: 116px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}