.footer {
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-line);
  margin-block-start: var(--space-section);
  padding-block: var(--space-section);
}

.footer__inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.footer__logo {
  height: 42px;
  width: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer__links a {
  color: var(--color-text);
  font-weight: var(--fw-medium);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-heading);
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: var(--fs-small);
}

.footer__contact-label {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
}

.footer__contact a {
  color: var(--color-heading);
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: var(--color-accent-light);
}

.footer__payments {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__payments img {
  height: 34px;
  width: auto;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__age {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-danger);
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer__responsible {
  margin: 0;
  color: var(--color-text);
  font-size: var(--fs-small);
}

.footer__copyright {
  margin: 0;
  color: var(--color-text);
  font-size: var(--fs-small);
}

@media (min-width: 768px) {
  .footer__legal {
    flex-wrap: nowrap;
  }
}
