/*
 * ═══════════════════════════════════════════════════════════════════
 *  ПОДВАЛ И НИЖНЕЕ МЕНЮ ТЕЛЕФОНА — одинаковые на всех страницах
 *  Разметка: index.html, блоки «ПОДВАЛ» и «НИЖНЕЕ МЕНЮ ТЕЛЕФОНА».
 *  Подвал — утверждённый вариант 1 «тёмный полный»: меню, контакты,
 *  реквизиты продавца и юридические документы (обязательны по закону).
 * ═══════════════════════════════════════════════════════════════════
 */


/* ── Подвал ─────────────────────────────────────────────────────────── */

/* Тёмный фон на всю ширину, светло-серый текст */
.site-footer {
  margin-top: 48px;
  padding: 40px 0 24px;
  font-size: 14px;
  color: var(--graphite-300);
  background: var(--graphite-950);
}
@media (min-width: 768px) {
  .site-footer {
    margin-top: 64px;
    padding-top: 56px;
  }
}

/* Логотип в подвале (белая надпись, img/logo-white.svg) */
.footer-logo {
  display: block;
  width: auto;
  height: 44px;
}
/* Короткое описание магазина под логотипом */
.footer-about {
  max-width: 320px;
  margin: 16px 0 0;
}
/* Телефон — крупный белый */
.footer-phone {
  display: inline-block;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}
.footer-phone:hover {
  color: var(--brand-400);
}
/* Часы работы под телефоном */
.footer-hours {
  margin: 0;
}

/* Ряд кнопок соцсетей (Telegram, ВКонтакте, WhatsApp) */
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
/* Одна кнопка соцсети: тёмный квадрат, при наведении — фирменный цвет */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--graphite-800);
  border-radius: var(--radius-md);
  transition: background-color 0.2s;
}
.footer-social:hover {
  color: #ffffff;
  background: var(--brand-600);
}

/* Заголовок колонки меню («Каталог», «Покупателям», «Компания») — белый */
.footer-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}
/* Список ссылок колонки — без точек, с отступами между строками */
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li + li {
  margin-top: 8px;
}
/* Ссылка в колонке: белеет при наведении */
.footer-links a:hover {
  color: #ffffff;
}

/* Нижняя часть подвала: реквизиты, документы и способы оплаты; линия сверху */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  font-size: 12px;
  border-top: 1px solid var(--graphite-800);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;          /* на ПК реквизиты слева, оплата справа */
    align-items: flex-start;
    justify-content: space-between;
  }
}
/* Строки реквизитов продавца (по закону о защите прав потребителей) */
.footer-legal-info p {
  margin: 0 0 4px;
}
/* Ссылки на юридические документы — подчёркнутые, в строку с переносом */
.footer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.footer-docs a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-docs a:hover {
  color: #ffffff;
}
/* Значки способов оплаты (МИР, СБП…) в ряд */
.footer-pay {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
/* Один значок оплаты: белая плашка с тёмным текстом */
.footer-pay span {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--graphite-950);
  background: #ffffff;
  border-radius: var(--radius-sm);
}


/* ── Нижнее меню телефона (как в sttuning.ru) ───────────────────────── */

/* Полоса из 5 кнопок, закреплена внизу экрана; только на телефоне (до 768px) */
.mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;  /* поверх шапки и содержимого */
  display: grid;
  grid-template-columns: repeat(5, 1fr);  /* 5 равных кнопок */
  height: var(--mobile-bar-height);
  padding-bottom: env(safe-area-inset-bottom); /* отступ над «полоской» iPhone */
  background: #ffffff;
  border-top: 1px solid var(--graphite-200);
  box-shadow: 0 -4px 16px rgb(15 21 23 / 0.06);
}
@media (min-width: 768px) {
  .mobile-bar {
    display: none;  /* на планшете и ПК не нужно — всё есть в шапке */
  }
}
/* Одна кнопка: иконка и подпись под ней */
.mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--graphite-600);
  background: none;
  border: 0;
}
/* Текущий раздел (на главной — «Главная») выделен фирменным цветом */
.mobile-bar-item.is-active {
  color: var(--brand-600);
}
/* Обёртка иконки — к ней прикреплён счётчик корзины */
.mobile-bar-pic {
  position: relative;
  display: flex;
}


/* ── Плашка о cookies (152-ФЗ) — внизу экрана на всех страницах ─────────
 * Показывается, пока посетитель не нажал «Принять» или «Только необходимые» (js/main.js, раздел 8). */

/* Плашка: белая карточка с тенью у нижнего края, по центру, не шире 720px */
.cookie-banner {
  position: fixed;
  right: 12px;
  bottom: calc(var(--mobile-bar-height) + 12px);  /* на телефоне — над нижним меню */
  left: 12px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  font-size: 14px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgb(15 21 23 / 0.18);
}
@media (min-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    flex-direction: row;
    align-items: center;
  }
}
/* Скрытая плашка */
.cookie-banner[hidden] {
  display: none;
}
/* Текст плашки */
.cookie-banner-text {
  margin: 0;
  color: var(--graphite-700);
}
/* Ссылка «подробнее» */
.cookie-banner-text a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Кнопки плашки в ряд, не сжимаются */
.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.cookie-banner-actions .btn-tl {
  height: 40px;
  padding: 0 14px;
}


/* В избранном что-то есть — сердечко в нижнем меню телефона закрашено красным */
.mobile-bar-item.is-fav .icon {
  color: var(--sale-600);
  fill: currentColor;
}
