/* Контейнер */
.fab-wrapper {
    position: fixed;
    bottom: 30px;
    right: 60px;
    z-index: 9999;
  }
  
  /* Главная кнопка */
  .fab-main {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .fab-main:hover {
    background-color: #0056b3;
    transform: rotate(90deg);
  }
  
  /* Анимация пульсации */
  .fab-main::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.4);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
    z-index: -1;
    animation: pulse 1.5s ease-out infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.7;
    }
    70% {
      transform: translate(-50%, -50%) scale(1.8);
      opacity: 0;
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0;
    }
  }
  
  /* Подкнопки */
  .fab-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
    pointer-events: none;
  }
  
  /* Стили для WhatsApp */
  .fab-sub.fab-wa {
    background-color: #d8deda;
    color: white;
    border: none;
  }
  
  /* Стили для Telegram */
  /* .fab-sub.fab-tg {
    background-color: #0088cc;
    color: white;
    border: none;
  }
   */
  /* Email стиль */
  .fab-sub.fab-mail {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
  }
  
  /* Анимации появления кнопок */
  .fab-wrapper.open .fab-1 {
    transform: translate(-60px, -60px);
    opacity: 1;
    scale: 1;
    pointer-events: auto;
  }
  
  .fab-wrapper.open .fab-2 {
    transform: translate(0px, -90px);
    opacity: 1;
    scale: 1;
    pointer-events: auto;
  }
  
  .fab-wrapper.open .fab-3 {
    transform: translate(60px, -60px);
    opacity: 1;
    scale: 1;
    pointer-events: auto;
  }
  
  /* ==== Адаптив для телефонов ==== */
  @media (max-width: 600px) {
    .fab-wrapper {
      bottom: 20px;
      right: 20px;
    }
  
    .fab-main {
      width: 80px;
      height: 80px;
      font-size: 36px;
    }
  
    .fab-sub {
      width: 70px;
      height: 70px;
      font-size: 26px;
    }
  
    .fab-wrapper.open .fab-1 {
      transform: translate(-60px, -60px);
    }
  
    .fab-wrapper.open .fab-2 {
      transform: translate(0px, -90px);
    }
  
    .fab-wrapper.open .fab-3 {
      transform: translate(60px, -60px);
    }
  }