/* Контейнер */
.sfb-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sfb-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Базовые стили кнопок */
.sfb-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    position: relative;
}

.sfb-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.sfb-button svg {
    width: 22px;
    height: 22px;
    fill: none;
}

/* Цвета кнопок */
.sfb-telegram {
    background: linear-gradient(135deg, #0088cc, #2ba6e0);
}

.sfb-max {
    background: linear-gradient(279deg, #7c3aed, #2563eb);
}
.sfb-vkontakte {
    background: linear-gradient(135deg, #0077FF, #0077FF);
}

/* Кнопка "Вверх" - по умолчанию скрыта */
.sfb-scroll-top {
    background: linear-gradient(135deg, #e4a2b2, #d98a9e);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}

.sfb-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Адаптивность */
@media (max-width: 768px) {
    .sfb-container {
        right: 10px;
        gap: 8px;
    }
    
    .sfb-button {
        width: 44px;
        height: 44px;
    }
    
    .sfb-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Эффект пульсации при появлении */
@keyframes sfb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sfb-button:not(.sfb-scroll-top) {
    animation: sfb-fadeInUp 0.5s ease forwards;
}

.sfb-button:not(.sfb-scroll-top):nth-child(1) { animation-delay: 0.1s; }
.sfb-button:not(.sfb-scroll-top):nth-child(2) { animation-delay: 0.2s; }
.sfb-button:not(.sfb-scroll-top):nth-child(3) { animation-delay: 0.3s; }