.site-footer {
  --footer-text: #d1d5db;
  --footer-muted: #d1d5db;
  --footer-heading: #f8fafc;
  --footer-hover: #df1f2d;
  color: var(--footer-text);
  background: #111214;
}

.footer-grid {
  padding: 96px 0 84px;
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(150px, 0.48fr) minmax(220px, 0.75fr) minmax(150px, 0.48fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: start;
}

.footer-grid > div {
  min-width: 0;
}

.footer-logo {
  display: block;
  width: clamp(220px, 22vw, 340px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
  margin-bottom: 42px;
}

.footer-grid p {
  margin: 0;
  max-width: 560px;
  color: var(--footer-text);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.footer-grid > div:first-child p {
  color: #ffffff;
}

.footer-grid h3 {
  margin: 0 0 34px;
  color: var(--footer-heading);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-social-links,
.footer-info-links {
  display: grid;
  justify-items: start;
}

.footer-grid a,
.footer-grid a:visited,
.footer-legal a,
.footer-legal a:visited {
  color: var(--footer-text);
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 22px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 760;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.footer-bottom {
  padding: 30px 0 32px;
  color: var(--footer-text);
  border-top: 1px solid #2b2d31;
  font-size: 0.9rem;
}

.footer-bottom span,
.footer-bottom p {
  color: var(--footer-text);
}

.footer-legal {
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-legal a {
  font-weight: 760;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-legal-separator {
  color: #8b9099;
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 54px 70px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    padding: 64px 0 54px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-logo {
    width: min(260px, 100%);
    margin-bottom: 28px;
  }

  .footer-grid h3 {
    margin-bottom: 18px;
  }

  .footer-grid a {
    margin-bottom: 16px;
  }

  .footer-bottom {
    padding: 24px 0 28px;
  }

  .footer-legal {
    gap: 7px;
    line-height: 1.6;
  }
}
