/* Telegram Widget Styles */
.telegram-widget {
    position: fixed;
    bottom: 96px; /* чуть выше виджета Jivo */
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.telegram-widget:hover {
    transform: scale(1.05);
}

.telegram-widget__container {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.telegram-widget__icon {
    width: 64px;
    height: 64px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 99999;
    box-shadow: none;
    transition: all 0.2s ease;
}

.telegram-widget__icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0, 0);
}

.telegram-widget__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
}

/* Пульсация */
.telegram-widget__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: transparent;
    border: 1px solid #0088cc;
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse 2s infinite linear;
    z-index: 2;
}

.telegram-widget__pulse:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.4;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.7);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Убрал лишние круги - оставил только пульсацию */

/* Эффект при наведении */
.telegram-widget:hover .telegram-widget__icon {
    transform: scale(1.05);
}

.telegram-widget:hover .telegram-widget__pulse {
    border-color: #006699;
}

/* Адаптивность */
@media (max-width: 768px) {
    .telegram-widget {
        bottom: 80px; /* поднимаем выше Jivo */
        right: 10px;
    }
    
    .telegram-widget__container {
        width: 80px;
        height: 80px;
    }
    
    .telegram-widget__icon {
        width: 80px;
        height: 80px;
    }
    
    .telegram-widget__icon img {
        width: 70px;
        height: 70px;
    }
    
    .telegram-widget__pulse {
        width: 80px;
        height: 80px;
    }
}

/* Анимация появления */
.telegram-widget {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Эффект клика */
.telegram-widget:active {
    transform: scale(0.95);
}

/* Дополнительные эффекты */
.telegram-widget__ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

