/* ========================================
   СТИЛИ МОДАЛЬНЫХ ОКОН
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.modal-container {
    position: relative;
    background: var(--white);
    border-radius: var(--radius10);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}
.modal-sm {
    max-width: 400px;
}
.modal-lg {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--gray);
}
.modal-header h3 {
    margin-bottom: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color var(--transition-fast);
}
.modal-close:hover {
    color: var(--darkgray);
}

.modal-body {
    padding: var(--space-6);
}
