/* =============================================================
   Footer — подвал (desktop)
   ============================================================= */

.footer {
  background: var(--color-footer-bg);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 56px;
  padding-bottom: 40px;
}

/* Колонка 1: логотип + копирайт */

.footer__col--brand {
  flex: 0 0 auto;
  width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 161px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__legal span,
.footer__legal a {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: #757983;
}

/* Колонка 2: навигация */

.footer__nav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px; /* 33px — Figma y-интервал, не CSS gap; текст 21px → gap = 33-21 = 12px */
}

.footer__nav a {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-inverse);
}

.footer__nav-link--active {
  color: var(--color-secondary) !important;
}

/* Колонка 3: контакты */

.footer__contacts {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px; /* 40px — Figma y-интервал; элементы ~22px → gap = 40-22 = 18px */
  font-style: normal;
}

.footer__contacts a,
.footer__contacts span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-inverse);
}

/* Колонка 4: кнопка + соцсети */

.footer__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer__socials {
  display: flex;
  gap: 15px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-social-icon-bg);
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.footer__socials a:hover {
  background-color: var(--color-secondary);
}

/* === Mobile === */
@media (max-width: 767px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px 33px;
  }

  .footer__col--brand {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer__legal {
    align-items: center;
    text-align: center;
  }

  .footer__nav {
    display: none;
  }

  .footer__contacts {
    width: 100%;
    align-items: center;
    gap: 16px;
  }

  .footer__contacts a,
  .footer__contacts span {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer__actions {
    width: 100%;
    align-items: center;
  }

  .footer__cta {
    width: 100%;
    text-align: center;
  }
}

