/* Footer block */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-section);
  margin-top: var(--space-section);
}
.footer > .container { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }

.footer__links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.footer__links a { color: var(--text); font-weight: 500; transition: color var(--transition); }
.footer__links a:hover { color: var(--heading); }

.footer__contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; }
.footer__contact-label { color: var(--white); font-weight: 600; }
.footer__contact ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1rem; }
.footer__contact a { color: var(--heading); }
.footer__contact a:hover { text-decoration: underline; }

.footer__payments { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.footer__payments img { height: 34px; width: auto; background: #fff; border-radius: 4px; padding: 4px 6px; }

.footer__age { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer__age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #d33227;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.footer__responsible { color: var(--text); margin: 0; max-width: 42ch; }
.footer__copy { color: var(--text); margin: 0; font-size: 0.85rem; }

/* Back to top */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--btn-gradient);
  color: var(--text-on-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }

@media (min-width: 768px) {
  .footer > .container { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; align-items: flex-start; }
  .footer__links { order: 1; flex: 1 1 100%; }
  .footer__links ul { justify-content: flex-start; }
  .footer__contact { order: 2; justify-content: flex-start; }
  .footer__payments { order: 3; margin-left: auto; }
  .footer__age { order: 4; flex: 1 1 100%; flex-direction: row; justify-content: center; }
  .footer__copy { order: 5; flex: 1 1 100%; text-align: center; }
  .scroll-top { right: 1.5rem; bottom: 1.5rem; }
}
