/* ---------- Контакты исполнителя (модалка) ---------- */
.contact-modal .modal-dialog {
    max-width: 480px;
}
.contact-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 29, 59, .18);
    font-family: 'Manrope', sans-serif;
}
.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 0;
}
.contact-modal-title {
    margin: 0;
    color: #253352;
    font-size: 20px;
    font-weight: 800;
}
.contact-modal-close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f1f5fb;
    color: #5b6782;
    font-size: 18px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.contact-modal-close:hover {
    background: #e3ecf8;
    color: #253352;
}
.contact-modal-body {
    padding: 18px 24px 24px;
}

/* Исполнитель */
.contact-modal-provider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #f5f9ff;
}
.contact-modal-avatar {
    display: inline-flex;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #2475ee;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}
.contact-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contact-modal-provider-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.contact-modal-provider-info strong {
    overflow: hidden;
    color: #253352;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contact-modal-role {
    color: #2475ee;
    font-size: 13px;
    font-weight: 700;
}
.contact-modal-rating {
    color: #5b6782;
    font-size: 13px;
}
.contact-modal-rating i {
    color: #f5a623;
}
.contact-modal-rating b {
    color: #253352;
}

/* Телефоны */
.contact-modal-phones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}
.contact-modal-phone {
    padding: 14px;
    border: 1px solid #dfe8f5;
    border-radius: 14px;
    background: #fff;
}
.contact-modal-phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #253352;
}
.contact-modal-phone-link:hover {
    color: #2475ee;
}
.contact-modal-phone-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf5ff;
    color: #2475ee;
    font-size: 20px;
}
.contact-modal-phone-number {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
    overflow-wrap: anywhere;
}
.contact-modal-phone-call {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: #2475ee;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.contact-modal-phone-link:hover .contact-modal-phone-call {
    background: #1a5fcc;
}

/* Мессенджеры */
.contact-modal-messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef3fa;
}
.contact-modal-messenger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s, color .2s;
}
.contact-modal-messenger i {
    font-size: 16px;
}
.contact-modal-messenger.is-viber {
    background: rgba(115, 96, 242, .1);
    color: #6b54e8;
}
.contact-modal-messenger.is-viber:hover {
    background: #7360f2;
    color: #fff;
}
.contact-modal-messenger.is-whatsapp {
    background: rgba(37, 211, 102, .12);
    color: #149c4a;
}
.contact-modal-messenger.is-whatsapp:hover {
    background: #25d366;
    color: #fff;
}
.contact-modal-messenger.is-telegram {
    background: rgba(34, 158, 217, .12);
    color: #1a86bb;
}
.contact-modal-messenger.is-telegram:hover {
    background: #229ed9;
    color: #fff;
}
.contact-modal-close:focus-visible,
.contact-modal-phone-link:focus-visible,
.contact-modal-messenger:focus-visible {
    outline: 2px solid #2475ee;
    outline-offset: 3px;
}

.contact-modal-empty {
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    background: #f5f9ff;
    color: #5b6782;
    font-size: 14px;
    text-align: center;
}
.contact-modal-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 0;
    color: #5b6782;
    font-size: 13px;
    font-weight: 600;
}
.contact-modal-note i {
    color: #2475ee;
    font-size: 16px;
}

@media (max-width: 575px) {
    .contact-modal .modal-dialog {
        margin: 12px;
    }
    .contact-modal-header {
        padding: 18px 16px 0;
    }
    .contact-modal-body {
        padding: 16px 16px 20px;
    }
    .contact-modal-phone-number {
        font-size: 16px;
    }
    .contact-modal-phone-call {
        display: none;
    }
    .contact-modal-messenger {
        flex: 1 1 0;
        justify-content: center;
    }
}
