.site-global-footer {
  --site-footer-line: rgba(143, 205, 255, 0.18);
  --site-footer-cyan: #36d3ff;
  --site-footer-muted: #91a7b9;
  padding: 0;
  border-top: 1px solid var(--site-footer-line);
  background: linear-gradient(180deg, #020b13, #01060b);
  color: var(--site-footer-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.site-footer-shell {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  font-size: 0.8rem;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px 0 28px;
}

.site-footer-brand {
  display: block;
  width: min(275px, 100%);
  margin: 0;
  line-height: 0;
  text-decoration: none;
}

.site-footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 7px 18px rgba(0, 0, 0, 0.3));
}

.site-footer-social {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 9px;
  flex-wrap: nowrap;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid var(--site-footer-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #c7d8e7;
  font-weight: 750;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
  border-color: var(--site-footer-cyan);
  background: rgba(54, 211, 255, 0.07);
  color: #fff;
  transform: translateY(-1px);
}

.site-footer-social i {
  color: var(--site-footer-cyan);
  font-size: 1.05rem;
}

.site-footer-purpose {
  display: grid;
  justify-self: end;
  margin: 0;
  text-align: right;
  line-height: 1.45;
}

.site-footer-purpose strong {
  color: #dbeaf3;
  font-size: 0.82rem;
}

.site-footer-purpose span {
  color: #718b9a;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(10, auto);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--site-footer-line);
  border-bottom: 1px solid var(--site-footer-line);
}

.site-footer-links a {
  color: #bfd3df;
  font-size: 0.76rem;
  font-weight: 730;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--site-footer-cyan);
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  color: #67808e;
  font-size: 0.71rem;
  letter-spacing: 0.035em;
}

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

  .site-footer-purpose {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .site-footer-links {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 14px 32px;
  }
}

@media (max-width: 700px) {
  .site-footer-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 23px;
    padding-top: 30px;
  }

  .site-footer-brand {
    width: min(270px, 78vw);
  }

  .site-footer-social {
    justify-self: center;
    flex-wrap: wrap;
  }

  .site-footer-purpose {
    grid-column: auto;
  }

  .site-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    padding: 8px 0;
  }

  .site-footer-links a {
    padding: 11px 8px;
    text-align: center;
    white-space: normal;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .site-footer-social a {
    padding: 10px 12px;
  }

  .site-footer-social span {
    display: none;
  }

  .site-footer-social i {
    font-size: 1.2rem;
  }
}
