/* base.css */

/* Подключение шрифта и базовые вещи */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

html {
  font-family: 'Montserrat', sans-serif;
}

@keyframes bodyFadeIn {
  to {
    opacity: 1;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* предотвращаем любую горизонтальную прокрутку */
html, body {
  overflow-x: hidden;
  background-color: #fafafa;
}

/* КРИТИЧЕСКИ ВАЖНО ДЛЯ МОБИЛЬНОГО МЕНЮ */
@media (max-width: 768px) {
  html, body, header, .site-header, .header-inner, .white-bar {
    overflow: visible !important;
  }
}

/* гарантируем, что боковые отступы не «выпирают» */
* {
  box-sizing: border-box;
}

/* Отступ контента, чтобы header не перекрывал */
main, section:not(.promo-section), footer {
  padding-top: 120px;
}
/* Контейнер для всей виджета */
/* Контейнер в углу */
.floating-widget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
}

/* Главная кнопка (иконка сообщения) */
.message-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.message-toggle .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  animation: popIn 0.4s ease;
}

.message-toggle:hover .icon-circle {
  transform: scale(1.08);
}

.message-toggle .icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Выезжающее меню */
.message-popup {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  bottom: 70px;
  right: 0;
  gap: 14px;
  animation: fadeInUp 0.3s ease forwards;
}

/* Кнопки WhatsApp и телефона */
.popup-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  transform: translateX(20px);
  opacity: 0;
  animation: slideIn 0.4s ease forwards;
}

.popup-btn:nth-child(1) { animation-delay: 0.1s; }
.popup-btn:nth-child(2) { animation-delay: 0.2s; }

/* Круглая обёртка */
.popup-btn .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.popup-btn .icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-btn:hover .icon-circle {
  transform: scale(1.08);
}

/* Надпись сбоку — только при наведении */
.popup-label {
  position: absolute;
  right: 66px;
  background: #ffffff;
  color: #1e293b;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.popup-btn:hover .popup-label {
  opacity: 1;
  visibility: visible;
}

/* Анимации */
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 📱 Адаптив */
@media (max-width: 500px) {
  .floating-widget {
    bottom: 24px;
    right: 24px;
  }

  .icon-circle {
    width: 48px !important;
    height: 48px !important;
  }

  .popup-label {
    font-size: 13px;
    right: 56px;
  }
}
.message-popup {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  bottom: 70px;
  right: 0;
  gap: 14px;
  animation: fadeInUp 0.3s ease forwards;
}

.message-popup.active {
  display: flex;
}
