:root {
  --footer-bg: rgba(255, 255, 255, 0.62);
  --footer-border: rgba(111, 132, 163, 0.16);
  --footer-link: rgba(36, 65, 101, 0.90);
  --footer-link-muted: rgba(96, 112, 138, 0.92);
  --footer-link-hover: rgba(19, 103, 255, 0.95);
  --footer-icon-bg: rgba(255, 255, 255, 0.62);
  --footer-icon-border: rgba(111, 132, 163, 0.16);
}

html[data-theme="dark"] {
  --footer-bg: rgba(6, 10, 18, 0.48);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-link: rgba(235, 245, 255, 0.86);
  --footer-link-muted: rgba(185, 200, 221, 0.74);
  --footer-link-hover: rgba(107, 171, 255, 0.98);
  --footer-icon-bg: rgba(10, 16, 28, 0.40);
  --footer-icon-border: rgba(255, 255, 255, 0.10);
}

.site-footer {
  margin-top: 52px;
  padding: 36px 0 28px;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  backdrop-filter: blur(18px);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(140px, 1fr));
  gap: 26px;
  align-items: start;
}

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

.site-footer .footer-brand {
  display: grid;
  gap: 10px;
}

.site-footer .footer-brand strong {
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--ink, #0d1b2a);
}

.site-footer .footer-brand p {
  color: var(--muted, rgba(96, 112, 138, 0.92));
  line-height: 1.65;
  max-width: 62ch;
}

.site-footer .footer-col-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink, #0d1b2a);
  margin-bottom: 10px;
}

.site-footer .footer-links {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.site-footer .footer-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--footer-link-muted);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

html[data-theme="dark"] .site-footer .footer-link { color: var(--footer-link-muted); }

.site-footer .footer-link:hover {
  transform: translateY(-1px);
  color: var(--footer-link-hover);
}

.site-footer .footer-link:focus-visible {
  outline: 3px solid rgba(19, 103, 255, 0.18);
  outline-offset: 4px;
}

.site-footer .footer-social {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer .social-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--footer-icon-border);
  background: var(--footer-icon-bg);
  color: var(--footer-link);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.site-footer .social-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 103, 255, 0.26);
  background: rgba(19, 103, 255, 0.10);
  color: var(--footer-link-hover);
}

.site-footer .social-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--footer-border);
  color: var(--muted, rgba(96, 112, 138, 0.92));
  font-size: 0.92rem;
}

.site-footer .footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1200px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-bottom {
    grid-template-columns: 1fr;
  }
}
