.site-footer {
  padding: 66px 0 26px;
  background: var(--color-deep);
  color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 58px;
}

.footer-brand .brand-copy strong {
  color: #fff;
}

.footer-brand .brand-copy small,
.footer-brand p {
  color: rgba(255,255,255,0.62);
}

.footer-brand p {
  max-width: 290px;
  margin-top: 18px;
  font-size: 13px;
}

.footer-column h2 {
  margin-bottom: 16px;
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  padding: 5px 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.54);
  font-size: 12px;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a:hover {
  color: #fff;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom nav {
    margin-top: 12px;
  }
}
