/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F1E8 100%);
    border-radius: 25px;
    padding: 0;
    max-width: 1400px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    background: #F5F1E8;
    padding: 30px 25px;
    border-bottom: 1px solid #E8E3D8;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 5px;
}

.modal-header p {
    color: #777777;
    font-size: 13px;
}

.modal-body {
    padding: 35px 40px;
}

.modal-body h3 {
    font-size: 16px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #D4A574;
}

/* Сообщение об успехе */
.success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F1E8 100%);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-message.active {
    display: block;
}

.success-message h2 {
    font-size: 32px;
    color: #C19A6B;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message p {
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}
