

/* Контейнер всей кнопки */
.floatingButtonWrap {
    display: block;
    position: fixed;
    bottom: 50px;
    right: 23px;
    z-index: 999999999;
}

.floatingButtonInner {
    position: relative;
}

/* Основная кнопка */
.floatingButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgb(76, 139, 247);
    color: #fff !important;
    position: absolute;
    border-radius: 50%;
    bottom: 0px;
    right: 0px;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(76, 139, 247, 0.4);
}

/* Стили для иконки сообщения (SVG) */
.floatingButton .icon-message {
    transition: all 0.3s;
}

/* Стили для крестика (через ваш инлайн-стиль или здесь) */
.floatingButton .fa-close {
    transition: all 0.3s;
    transform: rotate(-90deg);
}

.floatingButton.open .fa-close {
    transform: rotate(0deg);
}

/* ПУЛЬСИРУЮЩИЕ ВОЛНЫ ВОКРУГ КНОПКИ */
.floatingButton::before,
.floatingButton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgb(76, 139, 247);
    opacity: 0;
    z-index: -1;
    animation: pulseLines 2s linear infinite;
}

.floatingButton::after {
    animation-delay: 1s;
}

@keyframes pulseLines {
    0% { width: 60px; height: 60px; opacity: 0.8; }
    100% { width: 110px; height: 110px; opacity: 0; }
}

/* МЕНЮ СОЦСЕТЕЙ (Выдвижение влево) */
.floatingMenu {
    position: absolute;
    bottom: 4px;      /* Центрирование относительно основной кнопки */
    right: 75px;      /* Начальный отступ слева от кнопки */
    display: flex;
    flex-direction: row-reverse; /* Порядок справа налево */
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    visibility: hidden;
    pointer-events: none; /* Чтобы не кликалось в скрытом состоянии */
}

/* Состояние при открытии (активируется через JS добавлением класса .open к кнопке) */
.floatingButton.open + .floatingMenu {
    visibility: visible;
    pointer-events: auto;
}

/* Элементы списка (иконки) */
.floatingMenu li {
    margin-right: 7px;
    opacity: 0;
    transform: translateX(40px) scale(0.5); /* Начальное смещение вправо и уменьшение */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Когда кнопка открыта, показываем иконки */
.floatingButton.open + .floatingMenu li {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Задержка появления для каждой иконки (эффект "волны") */
.floatingButton.open + .floatingMenu li:nth-child(1) { transition-delay: 0.05s; }
.floatingButton.open + .floatingMenu li:nth-child(2) { transition-delay: 0.1s; }
.floatingButton.open + .floatingMenu li:nth-child(3) { transition-delay: 0.15s; }

/* Ссылки-иконки */
.floatingMenu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.floatingMenu li a:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.floatingMenu li a svg {
    width: 32px;
    height: 32px;
}

/* Убираем подчеркивание у основной кнопки во всех состояниях */
.floatingButton, 
.floatingButton:hover, 
.floatingButton:focus, 
.floatingButton:active {
    text-decoration: none !important;
    outline: none;
}

/* На всякий случай убираем и у иконок в меню */
.floatingMenu li a, 
.floatingMenu li a:hover {
    text-decoration: none !important;
}

.floatingMenu2 {
    display: flex;
    flex-direction: row-reverse;
    list-style: none;
    margin-top: 9px;
    float: left;
    margin-left: 15px;
}
.floatingMenu2 li a {
display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.floatingMenu2 li a svg {
    width: 25px;  /* Укажите нужный размер (было 48px) */
    height: 25px; /* Укажите нужный размер */
    transition: transform 0.3s ease;
}

@media screen and (max-width: 767px) {
.floatingButtonWrap {
right: 15px !important;
}
}