.modal-overlay {
    position: fixed;
    top: -10vh;
    left: 0;
    width: 100vw;
    height: 110vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal_window {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 90vw;
    max-width: 1100px;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(1) translateY(0px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: 24; 
    font-weight: 300;
}

#politica > div > p {
    font-size: 18; 
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(-50px);
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.modal-title {
    font-size: 35px;
    font-weight: 700;
    line-height: 2;
    margin: 100px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.modal-title-small {
    font-size: 16px;
    font-weight: 600;
    line-height: 2;
    margin: 100px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}
.close-btn-blk {
    color: rgb(0, 0, 0);
    background: rgba(127, 127, 127, 0.2);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}
.close-btn-blk:hover {
    background: rgba(127, 127, 127, 0.6);
    transform: rotate(90deg);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay.active .modal-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.modal-overlay.active .modal-content > *:nth-child(2) {
    animation-delay: 0.1s;
}

.modal-overlay.active .modal-content > *:nth-child(3) {
    animation-delay: 0.2s;
}

@media (max-width: 768px) {
    .modal_window {
        width: 95vw;
    }
    .modal-title {
        margin: 10px;
        font-size: 28px;
        font-weight: 400;
    }
}
