footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 0 1.2rem;
  background: rgba(7, 8, 18, 0.9);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-section h3,
.footer-section h4 {
  margin: 0;
  color: var(--text, #f4f7ff);
  font-size: 1.05rem;
}

.footer-section h3 {
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent, #7c5cff), var(--accent-strong, #ffb24f));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section p,
.footer-section ul a {
  margin: 0;
  color: rgba(244, 247, 255, 0.75);
  line-height: 1.4;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-section ul a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-section ul a:hover,
.footer-section ul a:focus-visible {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.18);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
  font-size: 0.75rem;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: linear-gradient(135deg, var(--accent, #7c5cff), var(--accent-strong, #ffb24f));
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  color: rgba(244, 247, 255, 0.65);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  footer {
    padding: 1.5rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 0.95rem;
  }

  .footer-section p,
  .footer-section ul a {
    font-size: 0.8rem;
  }

  .social-links {
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .social-links a {
    width: 28px;
    height: 28px;
  }
r}
