.floating-chat-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
}

.chat-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #468966;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chat-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.chat-icon {
  width: 30px;
  height: 30px;
  fill: white;
  transition: all 0.3s ease;
}

.close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.3s ease;
  font-size: 32px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.chat-main-btn.active .chat-icon {
  opacity: 0;
  transform: scale(0);
}

.chat-main-btn.active .close-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.chat-icons-wrapper {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.chat-icons-wrapper.active {
  opacity: 1;
  pointer-events: all;
}

.chat-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.chat-icon-item {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: scale(0.9);
  opacity: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.chat-icons-wrapper.active .chat-icon-item {
  transform: scale(1);
  opacity: 1;
}

.chat-icon-item:hover {
  transform: scale(1.1) !important;
}

.chat-icon-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.chat-icon-item:hover img {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.4));
}

/* Порядок анимации сверху вниз */
.chat-icons-wrapper.active .chat-icon-item:nth-child(1) { 
  transition-delay: 0.05s; 
} /* Telegram */

.chat-icons-wrapper.active .chat-icon-item:nth-child(2) { 
  transition-delay: 0.1s; 
} /* VK */

.chat-icons-wrapper.active .chat-icon-item:nth-child(3) { 
  transition-delay: 0.15s; 
} /* Phone */

/* Мобильная адаптация */
@media (max-width: 768px) {
  .floating-chat-container {
    bottom: 30px;
    left: 10px;
  }
  
  .chat-main-btn {
    width: 50px;
    height: 50px;
  }
  
  .chat-icon {
    width: 25px;
    height: 25px;
  }
  
  .close-icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
  }
  
  .chat-icons-wrapper {
    bottom: 60px;
  }
  
  .chat-icon-item {
    width: 45px;
    height: 45px;
  }
  
  .chat-icon-item img {
    width: 45px;
    height: 45px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .floating-chat-container {
    bottom: 25px;
    left: 5px;
  }
  
  .chat-main-btn {
    width: 45px;
    height: 45px;
  }
  
  .chat-icon {
    width: 22px;
    height: 22px;
  }
  
  .close-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  
  .chat-icons-wrapper {
    bottom: 55px;
  }
  
  .chat-icon-item {
    width: 40px;
    height: 40px;
  }
  
  .chat-icon-item img {
    width: 40px;
    height: 40px;
  }
}