footer {
  background-color: var(--color-dark);
}

.site-footer {
  color: var(--color-white);
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 48px;
}

.footer-logo {
  width: 217px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  position: relative;
  font-weight: 400;
  font-size: 18px;
  line-height: 146%;
  color: #f0f2f7;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-white);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .footer-nav a::after {
    transition: none;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 40px 16px 30px;
    border-radius: 16px;
  }

  .footer-logo {
    width: 170px;
  }

  .footer-logo span {
    font-size: 26px;
  }

  .footer-logo svg {
    width: 30px;
    height: 30px;
  }

  .footer-nav {
    gap: 18px 24px;
  }

  .footer-nav a {
    font-size: 14px;
  }
}
