/* ===== МОДАЛЬНОЕ ОКНО (ОБЩЕЕ) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: modalFadeIn 0.25s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    z-index: 2;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #fff;
}
.modal-close .material-icons {
    font-size: 28px;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: #c8d0dc;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.modal-price .price-label {
    color: #64748b;
    font-size: 14px;
}
.modal-price .price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--neon-green);
}

.modal-category {
    font-size: 13px;
    color: #8899b0;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

.modal-footer {
    padding: 12px 20px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    background: var(--neon-purple);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-btn:active {
    background: var(--neon-purple-dark);
}

/* ===== МОДАЛЬНОЕ ОКНО КОНТАКТОВ ===== */
.modal-overlay-contacts {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    animation: modalFadeIn 0.25s ease;
}
.modal-overlay-contacts.active {
    display: flex;
}

.modal-contacts {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    max-width: 420px;
    width: 100%;
    padding: 32px 28px 28px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

.modal-contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.modal-contacts-title {
    font-size: 22px;
    font-weight: 700;
    color: #F1F5F9;
    letter-spacing: -0.3px;
}

.modal-contacts-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94A3B8;
    transition: 0.2s;
}
.modal-contacts-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.modal-contacts-close .material-icons {
    font-size: 22px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #E2E8F0;
    font-size: 15px;
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-item .material-icons {
    font-size: 24px;
    color: var(--neon-purple);
}
.contact-item a {
    color: #60A5FA;
    text-decoration: none;
    font-weight: 500;
}
.contact-item a:hover {
    text-decoration: underline;
}
.contact-item .contact-label {
    color: #94A3B8;
    min-width: 70px;
    font-size: 13px;
}