/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.footer {
  background-color: var(--color-brand-black);
  color: var(--color-text-light);
  padding: 40px 0;
  font-size: 0.95rem;
  border-top: 4px solid var(--color-brand-yellow);
  margin-top: auto; /* Прижимает подвал к низу */
  position: relative;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer__email {
  font-weight: 500;
}

.footer__email a:hover {
  text-decoration: underline;
}

.footer__copy {
  opacity: 0.8;
}

.footer__phone {
  font-weight: 600;
  font-size: 1rem;
}

/* Контейнер виджета чата */
.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Меню кнопок мессенджеров (скрыто по умолчанию) */
.chat-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-speed) ease;
}

.chat-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Кнопки мессенджеров */
.chat-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.chat-btn:hover {
  transform: scale(1.1);
}

/* Цвета мессенджеров (заглушки для текста) */
.chat-btn:nth-child(1) { background-color: #0088cc; } /* TG */
.chat-btn:nth-child(2) { background-color: #25D366; } /* WA */
.chat-btn:nth-child(3) { background-color: #FF0000; } /* MAX */

/* Стили для кнопок с картинками */
.chat-btn.chat-btn-img {
  background-color: transparent !important;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.chat-btn.chat-btn-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Главная кнопка виджета */
.chat-widget {
  width: 50px;
  height: 50px;
  background-color: #ff5252;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  padding-bottom: 2px; /* Легкая корректировка для идеального центра */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-speed) ease, background-color 0.2s ease;
  user-select: none;
}

.chat-widget:hover {
  transform: scale(1.05);
}

.chat-widget.active {
  background-color: #e53935;
  padding-bottom: 0; /* Для крестика отступ не нужен */
}

/* Адаптивность для подвала */
@media (max-width: 600px) {
  .footer .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .chat-container {
    bottom: 15px;
    right: 15px;
  }
}
