.footer {
  margin-top: 80px;
  padding: 24px 0 0;
  border-top: 1px solid var(--stroke);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0 0 10px;
  font-family: "Exo2Var", sans-serif;
  letter-spacing: 0.1em;
}

.footer-links h5 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer .socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer .socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  background: var(--surface-solid);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer .socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(127, 32, 216, 0.28);
}

.footer-bottom {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

html[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
  text-align: right;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: calc(var(--scroll-top-offset, 90px) + var(--scroll-top-lift, 0px));
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-elevated);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 12;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .scroll-top {
    --scroll-top-offset: 140px;
    right: 16px;
  }
}
