/* --- FAB WIDGET (ЧАТ) --- */
.fab-container {
    position: fixed;
    /* ВИДЖЕТ В САМОМ НИЗУ */
    bottom: 30px; 
    right: 30px;  
    z-index: 2000;
    
    display: flex;
    /* Опции (слева) -> Кнопка (справа) */
    flex-direction: row; 
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

/* Главная кнопка (?) */
.fab-main-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    /* БЕЗ ПУЛЬСАЦИИ */
}

.fab-main-btn:hover {
    background-color: #0b5ed7;
}

.fab-main-btn .fa-times {
    display: none;
}

/* СОСТОЯНИЕ АКТИВНО */
.fab-container.active .fab-main-btn {
    background-color: #6c757d;
    transform: rotate(90deg);
}
.fab-container.active .fab-main-btn .fa-question {
    display: none;
}
.fab-container.active .fab-main-btn .fa-times {
    display: block;
}

/* КНОПКИ МЕССЕНДЖЕРОВ (Опции) */
.fab-options {
    display: flex;
    flex-direction: row;
    gap: 15px;
    
    /* Скрыты и сдвинуты ВПРАВО (прячутся за кнопку) */
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px); 
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* При открытии выезжают ВЛЕВО */
.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.fab-option:hover {
    transform: scale(1.1);
    color: white;
}

.fab-whatsapp { background-color: #25D366; }
.fab-telegram { background-color: #0088cc; }