/* Статичный CSS для социального виджета */

.social-main-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.social-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-main-btn.active {
    background: #7a7a7a;
    transform: rotate(45deg) scale(1.1);
}

.social-main-btn.active .social-icon {
    transform: rotate(135deg);
}

.social-items {
    position: absolute;
    bottom: 85px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-items.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.social-item {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    animation: socialSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.social-item:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-item:nth-child(1) {
    animation-delay: 0.1s;
}

.social-item:nth-child(2) {
    animation-delay: 0.2s;
}

.social-item:nth-child(3) {
    animation-delay: 0.3s;
}

.social-item:nth-child(4) {
    animation-delay: 0.4s;
}

.social-item:nth-child(5) {
    animation-delay: 0.5s;
}

.social-item:nth-child(6) {
    animation-delay: 0.6s;
}

.social-item:hover .social-icon {
    transform: scale(1.1);
}

.social-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.social-tooltip:after {
    content: "";
    position: absolute;
    top: 50%;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.social-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-item:hover .social-tooltip {
    opacity: 1;
}

@keyframes socialSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes socialPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes socialBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }

    70% {
        transform: scale(0.95) translateY(0);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.social-main-btn.pulse {
    animation: socialPulse 2s infinite;
}

.social-item {
    animation: socialBounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {

    .social-main-btn,
    .social-item {
        width: 65px;
        height: 65px;
    }

    .social-items {
        bottom: 80px;
    }

    .social-icon {}
}
