.modal-index {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-index_active {
    opacity: 1;
    visibility: visible;
}

.modal-index__window {
    background-color: white;
    width: 90%;
    max-width: 450px;
    padding: 0;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.modal-index_active .modal-index__window {
    transform: translateY(0);
}

.modal-index__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.modal-index__header-image {
    width: 100%;
    height: 260px;
    object-fit: cover;

}
.modal-index__title {
    font-family: 'Inter-Medium', sans-serif;
    font-size: 24px;
    line-height: 100%;
    margin: 0 0 24px;
    font-weight: normal;
}

.modal-index__close {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 100%;
    color: #000;
    position: absolute;
    top: -30px;
    right: -30px;
    border: none;
    font-size: 32px;
    /* line-height: 31px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-index__close:hover {
    color: #333;
}

.modal-index__body {
    padding: 24px 32px 32px;
}

.modal-index__text {
    font-family: 'Roboto';
    font-size: 18px;
    line-height: 28px;
    color: #131619;
    margin: 0 0 24px;
}

.modal-index__footer {
    display: flex;
    justify-content: space-between;
}

.modal-index__button {
    width: 100%;
    justify-content: center;
}

.modal-index__button_subscribe {
    background-color: #E12039;
    color: white;
}

.modal-index__button_subscribe:hover {
    background-color: #A91826;
}

.modal-index__button_close {
    background-color: #f0f0f0;
    color: #333;
}

.modal-index__button_close:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
    }

    .modal-index__footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-index__button {
        width: 100%;
    }

    .modal-index__header-image {
        height: auto;
    }
    .modal-index__header-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .modal-index__header {
        margin: 0;
    }
    .modal-index__body {
        padding: 24px 16px;
    }
    .modal-index__title {
        font-size: 20px;
    }
    .modal-index__text {
        font-size: 16px;
        line-height: 25px;
    }
}

@media (max-width: 480px) {
    .modal-index__close {
        top: -40px;
        right: 0px;
    }
}