.msp-footer {
  margin-top: auto;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: 2.5rem;
  color: var(--color-footer-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 12%),
    linear-gradient(180deg, var(--color-footer-bg) 0%, var(--color-footer-bg-dark) 100%);
  border-top: 0;
}

.msp-footer a {
  color: inherit;
  text-decoration: none;
}

.msp-footer a:hover,
.msp-footer a:focus-visible {
  color: var(--color-white);
}

.msp-footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.msp-footer__top .block {
  margin: 0;
}

.msp-footer__top .block > h2,
.msp-footer__top .block .block__title,
.msp-footer__top .block h2 {
  margin: 0 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-footer-rule);
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-white);
}

.msp-footer__top p,
.msp-footer__top li,
.msp-footer__bottom,
.msp-footer__bottom p {
  color: var(--color-footer-text);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.45;
}

.msp-footer__top p:last-child,
.msp-footer__bottom p:last-child {
  margin-bottom: 0;
}

.msp-footer .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.msp-footer .menu li + li {
  margin-top: 0.875rem;
}

.msp-footer .menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.msp-footer .menu a::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.msp-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-footer-rule);
  color: var(--color-footer-muted);
}

@media (max-width: 63.9375rem) {
  .msp-footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .msp-footer__top {
    gap: 2rem;
  }
}
