.side-social {
    position: fixed;
    z-index: 9999;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.side-social.sswp-right {
    right: 10px;
}

.side-social.sswp-left {
    left: 10px;
}

.side-social.sswp-top {
    top: 20px;
    transform: none;
}

.side-social.sswp-middle {
    top: 50%;
    transform: translateY(-50%);
}

.side-social.sswp-bottom {
    bottom: 20px;
    top: auto;
    transform: none;
}

.sswp-nav-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Убираем стандартный отступ */
}

/* Кнопка переключения (только для множества иконок) */
.sswp-toggle-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
     order: 2;
}

.sswp-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.sswp-toggle-btn.sswp-puls {
    animation: pulse 2s infinite;
}

/* Общие иконки (и одиночная, и в группе) */
.sswp-nav-content a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #fff;
    border: none;
    padding: 0;
}

/* Одиночная иконка - больше размер и пульсация */
.sswp-single-icon .sswp-nav-content a {
    width: 60px !important;
    height: 60px !important;
}

.sswp-single-icon .sswp-nav-content a.sswp-puls {
    animation: pulse 2s infinite;
}

.sswp-nav-content a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.sswp-nav-content a img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sswp-single-icon .sswp-nav-content a img {
    max-width: 50px !important;
    max-height: 50px !important;
}

.sswp-toggle-btn .sswp-toggle-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Анимация для множества иконок */
.sswp-nav-content span {
    position: absolute;
    bottom: 100%; /* Размещаем сверху от кнопки */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 1;
}

.side-social.sswp-left .sswp-nav-content span {
    left: 0;
    transform: translateX(0) translateY(20px);
}
.side-social.sswp-right .sswp-nav-content span {
    right: 0;
    left: auto;
    transform: translateX(0) translateY(20px);
}

.side-social.open .sswp-nav-content span {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.side-social.sswp-left.open .sswp-nav-content span {
    transform: translateX(0) translateY(0);
}
.side-social.sswp-right.open .sswp-nav-content span {
    transform: translateX(0) translateY(0);
}
.sswp-nav-content span:nth-child(1) {
    bottom: calc(100% + 10px);
    transition-delay: 0.1s;
}

.sswp-nav-content span:nth-child(2) {
    bottom: calc(100% + 70px); /* 60px высота иконки + 10px отступ */
    transition-delay: 0.2s;
}

.sswp-nav-content span:nth-child(3) {
    bottom: calc(100% + 130px); /* Еще +60px */
    transition-delay: 0.3s;
}

.sswp-nav-content span:nth-child(4) {
    bottom: calc(100% + 190px); /* Еще +60px */
    transition-delay: 0.4s;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Для одной иконки - сразу видима, без анимаций */
.sswp-single-icon .sswp-nav-content a {
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    order: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .side-social {
        transform: none !important;
        top: auto !important;
        bottom: 20px;
    }
    
    .sswp-toggle-btn {
        width: 50px;
        height: 50px;
    }
    
    .sswp-toggle-btn .sswp-toggle-icon {
        width: 18px;
        height: 18px;
    }
    
    .sswp-nav-content a {
        width: 45px;
        height: 45px;
    }
    
    .sswp-single-icon .sswp-nav-content a {
        width: 55px !important;
        height: 55px !important;
    }
    
    .sswp-nav-content a img {
        max-width: 35px;
        max-height: 35px;
    }
    
    .sswp-single-icon .sswp-nav-content a img {
        max-width: 45px !important;
        max-height: 45px !important;
    }
 .sswp-nav-content span:nth-child(1) {
        bottom: calc(100% + 10px);
    }
    
    .sswp-nav-content span:nth-child(2) {
        bottom: calc(100% + 60px);
    }
    
    .sswp-nav-content span:nth-child(3) {
        bottom: calc(100% + 110px);
    }
    
    .sswp-nav-content span:nth-child(4) {
        bottom: calc(100% + 160px);
    }
}
/* Стили для карусели внутри кнопки */
.sswp-toggle-btn {
    position: relative;
    overflow: hidden;
}

.sswp-carousel-icon {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease;
    background: #fff;
    border: none;
    padding: 0;
    opacity: 0;
}

.sswp-carousel-icon.active {
    opacity: 1;
    z-index: 1;
}

.sswp-carousel-icon img {
    max-width: 60% !important;
    max-height: 60% !important;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Иконка переключения поверх карусели */
.sswp-toggle-btn .sswp-toggle-icon {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-social.open .sswp-toggle-btn .sswp-toggle-icon {
    opacity: 1;
}

.side-social.open .sswp-carousel-icon {
    opacity: 0 !important;
    pointer-events: none;
}

/* Анимация карусели */
@keyframes sswp-carousel-fade {
    0%, 25% {
        opacity: 1;
    }
    26%, 100% {
        opacity: 0;
    }
}

.sswp-carousel-icon {
    animation: sswp-carousel-fade 8s infinite;
}

.sswp-carousel-icon[data-index="0"] {
    animation-delay: 0s;
}

.sswp-carousel-icon[data-index="1"] {
    animation-delay: 2s;
}

.sswp-carousel-icon[data-index="2"] {
    animation-delay: 4s;
}

.sswp-carousel-icon[data-index="3"] {
    animation-delay: 6s;
}

/* При наведении останавливаем анимацию */
.side-social:not(.open):hover .sswp-carousel-icon {
    animation-play-state: paused;
}

/* Для одной иконки - обычные стили */
.sswp-single-icon .sswp-nav-content a {
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
}

/* Адаптивность для карусели */
@media (max-width: 768px) {
    .sswp-carousel-icon img {
        max-width: 50% !important;
        max-height: 50% !important;
    }
    
    @keyframes sswp-carousel-fade-mobile {
        0%, 25% {
            opacity: 1;
        }
        26%, 100% {
            opacity: 0;
        }
    }
    
    .sswp-carousel-icon {
        animation: sswp-carousel-fade-mobile 8s infinite;
    }
}