.site-footer {
  background: var(--surface, #ffffff);
  color: var(--ink, #000000);
  padding: 86px 20px 28px;
  display: flex;
  height: 490px;
  min-height: 490px;
  max-height: 490px;
  box-sizing: border-box;
  margin-top: 0;
  border-top: 1px solid var(--line-soft, rgba(0, 0, 0, 0.18));
}

.site-footer .footer-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(320px, 2.3fr) repeat(3, minmax(130px, 1fr));
  gap: 44px;
  align-items: start;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: none;
  padding: 0;
  min-height: 0;
  width: fit-content;
  cursor: pointer;
}

.site-footer .footer-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
}

.site-footer .footer-brand-link:hover {
  cursor: pointer;
}

.site-footer .footer-brand-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.site-footer .footer-brand img {
  height: 44px;
  width: auto;
  display: block;
  cursor: pointer;
}

.site-footer .footer-col-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--footer-muted, rgba(0, 0, 0, 0.58));
  letter-spacing: 0.02em;
}

.site-footer .footer-col-links {
  display: grid;
  gap: 12px;
}

.site-footer .footer-top > .footer-links {
  justify-self: start;
}

.site-footer .footer-top > .footer-links:nth-child(2) {
  grid-column: 3;
}

.site-footer .footer-top > .footer-links:nth-child(3) {
  grid-column: 4;
}

.site-footer .footer-links a {
  color: inherit;
  margin-right: 0;
  font-size: 16px;
  width: fit-content;
  text-decoration: none;
  transition: opacity 0.12s ease;
}

.site-footer .footer-links:has(a:hover) a:not(:hover),
.site-footer .footer-links:has(a:focus-visible) a:not(:focus-visible),
.site-footer .footer-legal:has(a:hover) a:not(:hover),
.site-footer .footer-legal:has(a:focus-visible) a:not(:focus-visible) {
  opacity: 0.35;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible,
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
  opacity: 1;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 0;
}

.site-footer .footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer .footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer .footer-legal a {
  font-size: 15px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.12s ease;
}

.site-footer .copyright {
  font-size: 15px;
  opacity: 0.85;
  color: var(--footer-muted, rgba(0, 0, 0, 0.58));
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-footer .admin-trigger {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 52px 16px 20px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .site-footer .footer-container {
    gap: 34px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-meta,
  .site-footer .footer-legal {
    gap: 12px;
  }
}

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

  .site-footer .footer-brand {
    width: 100%;
    grid-column: 1 / -1;
  }

  .site-footer .footer-top > .footer-links {
    grid-column: auto;
    min-width: 0;
  }

  .site-footer .footer-top > .footer-links:nth-child(2),
  .site-footer .footer-top > .footer-links:nth-child(3) {
    grid-column: auto;
  }
}
