/* =========================
   Кнопка чата с pulsing эффектом
========================= */
.chat-btn {
    position: fixed;
    bottom: 35px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #226b8dbe, #024e77bb);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

/* Pulse анимация */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    }
}

.chat-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #28a745);
    transform: scale(1.2) rotate(5deg);
}

.chat-btn:active {
    transform: scale(0.95);
}

/* Иконка внутри кнопки */
.chat-btn i {
    pointer-events: none;
}

/* =========================
   Модальное окно чата
========================= */
.modal-content {
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.modal-body .chat-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

/* =========================
   Кнопки мессенджеров внутри модалки
========================= */
.chat-modal-btn-telegram,
.chat-modal-btn-whatsapp,
.chat-modal-btn-messenger {
    border: 1px solid var(--primary);
    box-shadow: 0 6px 12px rgba(1, 167, 189, 0.438);
    background: #fff;
    color: #111;
    font-weight: 500;
}

.chat-modal-btn-telegram:hover,
.chat-modal-btn-whatsapp:hover,
.chat-modal-btn-messenger:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* =========================
   Адаптив для мобильных
========================= */
@media (max-width: 576px) {
    .chat-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .modal-dialog {
        margin: 10px;
    }
    .chat-modal-btn {
        font-size: 0.9rem;
        padding: 8px;
    }
}
