/* ==========================================================================
 * FOOTER – верхний блок (3 колонки) + нижняя строка
 * Макет как на примере: тёмный фон, светлый текст, разделённый низ
 * ========================================================================== */

/* Общий фон футера на всю ширину */
.site-footer {
  width: 100%;
  background-color: #020617; /* тёмный, как на скрине */
  color: #e5e7eb;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: var(--text-sm);
}

/* Сбрасываем цвет внутри футера */
.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* =========================
 * ВЕРХНЯЯ ЧАСТЬ (3 КОЛОНКИ)
 * footer-first / second / third
 * ========================= */

.footer-top {
  padding-block: 3rem 2.5rem;
}

/* .footer-top__inner уже контейнер в global.css */
.footer-top__inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
}

/* Левая колонка – “о сервисе” */
.footer-first h2,
.footer-first h3 {
  margin: 0 0 0.75rem;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.footer-first p {
  margin: 0 0 0.75rem;
  color: rgba(226, 232, 240, 0.8);
  font-size: var(--text-sm);
}

/* Можно добавить верхний и нижний параграфы с чуть меньшим отступом */
.footer-first p:last-child {
  margin-bottom: 1.5rem;
}

/* Пример стиля для кнопок брендов, если используешь их в этом блоке */
.footer-first .brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-first .brand-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(15, 23, 42, 0.8);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

/* Средняя колонка – “быстрые ссылки” */
.footer-second h2,
.footer-second h3 {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #e5e7eb;
}

.footer-second ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-second li + li {
  margin-top: 0.35rem;
}

/* Правая колонка – контакты */
.footer-third h2,
.footer-third h3 {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #e5e7eb;
}

.footer-third ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-third li + li {
  margin-top: 0.35rem;
}

/* Можно дополнительно стилизовать иконки, если они есть */
.footer-third i,
.footer-third svg {
  margin-right: 0.4rem;
}

/* Горизонтальная линия между верхом и низом, как в макете */
.footer-top__inner {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 2.5rem;
}

/* =========================
 * НИЖНЯЯ СТРОКА – копирайт + меню
 * ========================= */

.footer-bottom {
  padding-block: 1rem;
}

/* .footer-bottom__inner уже контейнер в global.css */
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Левая часть – копирайт */
.footer-bottom-left {
  font-size: var(--text-sm);
  color: rgba(148, 163, 184, 0.9);
}

/* Правая часть – меню юридических ссылок */
.footer-bottom-right .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom-right .menu-item {
  position: relative;
  margin: 0;
}

/* Разделители | между пунктами */
.footer-bottom-right .menu-item + .menu-item::before {
  content: "|";
  margin-right: 0.75rem;
  opacity: 0.5;
}

/* Сами ссылки */
.footer-bottom-right a {
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
}

.footer-bottom-right a:hover {
  text-decoration: underline;
}

/* =========================
 * АДАПТИВ ДЛЯ ФУТЕРА
 * ========================= */

@media (max-width: 960px) {
  .footer-top__inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .footer-first {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-top {
    padding-block: 2.5rem 2rem;
  }

  .footer-top__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    border-bottom-width: 1px;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-right .menu {
    justify-content: flex-start;
  }
}
