:root {
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 1031;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    overflow: auto;
}

.custom-modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 700px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

.custom-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
}

.custom-close:hover {
    color: #1f2937;
}

.custom-close-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #ddd;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

a[type="button"] {
    cursor: pointer;
}

/* Стили для модального окна */


.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-text {
    line-height: 1.6;
}

.modal-text ul {
    padding-left: 20px;
    margin: 10px 0;
}

.modal-text li {
    margin-bottom: 8px;
}

.notice {
    background: #f8f9fa;
    padding: 10px;
    border-left: 3px solid #007bff;
    font-style: italic;
}

/* Анимация открытия */
.custom-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}