/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: #232526;
  color: var(--col-fg);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: var(--spacing-2) var(--spacing-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-4) var(--spacing-3) var(--spacing-3);
}

/* ── Колонка (общее) ─────────────────────────────────── */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.45;
  margin-bottom: 0.125rem;
}

/* ── Колонка 1: Бренд ────────────────────────────────── */
.footer__brand {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.footer__inn {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer__address {
  font-style: normal;
  opacity: 0.75;
  line-height: 1.65;
}

.footer__address + .footer__address {
  margin-top: 0.75rem;
}

.footer__address small {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ── Колонка 2: Контакты ─────────────────────────────── */
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer__contacts a {
  color: inherit;
  padding: 0;
  width: auto;
  font-size: 0.875rem;
}

.footer__contacts-wa svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer__contacts-wa span {
  font-size: 0.8rem;
  opacity: 0.55;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.footer__social a {
  padding: 0;
  width: auto;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer__social a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer__social img {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

/* ── Колонка 3: Часы работы ──────────────────────────── */
.footer__hours {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer__hours li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer__hours li span:first-child {
  min-width: 3.25rem;
  opacity: 0.55;
}

.footer__hours-note {
  font-size: 0.78rem;
  opacity: 0.45;
  margin-top: 0.125rem;
}

.footer__policy {
  color: inherit;
  padding: 0;
  width: auto;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: auto;
  padding-top: var(--spacing-2);
}

.footer__policy:hover {
  opacity: 0.9;
}

/* ── Нижняя полоса ───────────────────────────────────── */
.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-2) var(--spacing-3);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.45;
}

/* ── Кнопка наверх ───────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 7rem;
  right: 5dvw;
  z-index: 999;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  background-color: var(--col-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--col-8);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* ── Адаптивность ────────────────────────────────────── */

/* Планшет: 1-я колонка на всю ширину, 2 и 3 рядом */
@media (max-width: 860px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: var(--spacing-3) var(--spacing-3);
  }

  .footer__col:first-child {
    grid-column: 1 / -1;
  }

  .footer__policy {
    padding-top: var(--spacing-1);
  }
}

/* Мобильный: одна колонка */
@media (max-width: 520px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-2);
  }

  .footer__col:first-child {
    grid-column: auto;
  }
}
