/* Виджеты для связи в правом нижнем углу */
.contact-widgets {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.contact-widget {
    width: auto;
    min-width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    gap: 12px;
}

.contact-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact-widget:active {
    transform: translateY(0);
}

.widget-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.contact-widget:hover .widget-text {
    opacity: 1;
    transform: translateX(0);
}

/* Всегда показывать текст на десктопе */
@media (min-width: 769px) {
    .widget-text {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Стили для WhatsApp */
.whatsapp-widget {
    background: #25D366;
}

.whatsapp-widget:hover {
    background: #128C7E;
}

/* Стили для Telegram */
.telegram-widget {
    background: #0088CC;
}

.telegram-widget:hover {
    background: #0077B5;
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

.contact-widget {
    animation: fadeInUp 0.5s ease forwards;
}

.contact-widget:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-widget:nth-child(1) {
    animation-delay: 0.2s;
}

/* Убираем всплывающую подсказку, так как текст всегда виден */

/* Мобильная адаптация */
@media (max-width: 768px) {
    .contact-widgets {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .contact-widget {
        width: 50px;
        min-width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .contact-widget svg {
        width: 20px;
        height: 20px;
    }

    .widget-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .contact-widgets {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }

    .contact-widget {
        width: 45px;
        min-width: 45px;
        height: 45px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .contact-widget svg {
        width: 18px;
        height: 18px;
    }

    .widget-text {
        display: none;
    }
}

/* Пульсирующая анимация для привлечения внимания */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.contact-widget.pulse {
    animation: pulse 2s infinite;
}

/* Скрыть виджеты при печати */
@media print {
    .contact-widgets {
        display: none;
    }
}