:root {
  --footer-bg: #f8faf7;
  --footer-surface: #ffffff;
  --footer-border: rgba(10, 22, 34, 0.11);
  --footer-text: #132033;
  --footer-muted: #5f6f83;
  --footer-accent: #0f7a65;
  --footer-accent-soft: rgba(15, 122, 101, 0.14);
}

.site-footer {
  position: relative;
  margin-top: 0;
  color: var(--footer-text);
}

.site-footer-shell {
  position: relative;
  background:
    radial-gradient(140% 85% at 85% 8%, rgba(15, 122, 101, 0.08), transparent 62%),
    linear-gradient(180deg, #f4f8f5 0%, var(--footer-bg) 48%, #f2f6f4 100%);
  border-top: 1px solid rgba(15, 122, 101, 0.12);
}

.site-footer-shell::after {
  content: "";
  position: absolute;
  top: -52px;
  left: 0;
  right: 0;
  height: 52px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 248, 245, 1) 100%);
}

.site-footer-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(15, 122, 101, 0) 0%,
    rgba(15, 122, 101, 0.12) 18%,
    rgba(15, 122, 101, 0.25) 50%,
    rgba(15, 122, 101, 0.12) 82%,
    rgba(15, 122, 101, 0) 100%
  );
}

.site-footer .container {
  padding-top: clamp(2.8rem, 5vw, 4rem);
  padding-bottom: clamp(1.1rem, 3.6vw, 1.7rem);
}

.site-footer-top {
  display: grid;
  gap: clamp(1.7rem, 3vw, 2.4rem);
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  align-items: start;
}

.site-footer-brand {
  max-width: 32ch;
}

.site-footer-brand-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-size: clamp(1.03rem, 2.1vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-footer-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #0f7a65 0%, #0f5f8c 100%);
  color: #fff;
  font-size: 0.81rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.site-footer-tagline {
  margin: 0.78rem 0 1rem;
  color: var(--footer-muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.site-footer-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.56rem;
}

.site-footer-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  color: var(--footer-muted);
  font-size: 0.89rem;
}

.site-footer-meta i {
  font-size: 0.86rem;
  color: var(--footer-accent);
}

.site-footer-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-footer-meta a:hover,
.site-footer-meta a:focus-visible {
  color: var(--footer-text);
  border-color: rgba(19, 32, 51, 0.38);
  outline: none;
}

.site-footer-group h3 {
  margin: 0 0 0.74rem;
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3f4f63;
}

.site-footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-footer-group a {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  width: fit-content;
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-footer-group a:hover,
.site-footer-group a:focus-visible {
  color: var(--footer-text);
  border-color: rgba(19, 32, 51, 0.32);
  transform: translateX(2px);
  outline: none;
}

.site-footer-social-list i {
  width: 1rem;
  text-align: center;
  color: var(--footer-accent);
}

.site-footer-bottom {
  margin-top: clamp(1.9rem, 4vw, 2.4rem);
  padding-top: 0.92rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer-copyright {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.85rem;
}

.site-footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.site-footer-legal a {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
  color: var(--footer-text);
  border-color: rgba(19, 32, 51, 0.32);
  outline: none;
}

@media (max-width: 991.98px) {
  .site-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .site-footer .container {
    padding-top: 2.45rem;
    padding-bottom: 1.15rem;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .site-footer-group h3 {
    margin-bottom: 0.65rem;
  }

  .site-footer-bottom {
    margin-top: 1.5rem;
    padding-top: 0.8rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .site-footer-legal {
    gap: 0.85rem;
  }
}
