.text-image {
    background: rgba(252, 245, 252, 1);
}

.text-image__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.text-image--left .text-image__content {
    direction: rtl;
}
.text-image--left .text-image__text,
.text-image--left .text-image__image-wrap {
    direction: ltr;
}

.text-image__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 428px;
    border-radius: 25px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    background: rgba(252, 245, 252, 1);
}

.text-image__text::before,
.text-image__text::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    filter: blur(153px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.text-image__text::before {
    top: -150px;
    left: -150px;
}
.text-image__text::after {
    bottom: -150px;
    right: -150px;
}

.text-image__text > * {
    position: relative;
    z-index: 1;
}

.text-image__text p {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #5C075E;
    margin: 0 0 20px;
}
.text-image__text p:last-child {
    margin-bottom: 0;
}

.text-image__text a {
    color: #5C075E;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.text-image__text a:hover {
    color: #8D2A8F;
}

.text-image__image-wrap {
    height: 428px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    
}

.text-image__image-wrap::before,
.text-image__image-wrap::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 500px;
    filter: blur(153px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.text-image__image-wrap::before {
    top: 50%;
    left: -120px;
    transform: translateY(-50%);
}
.text-image__image-wrap::after {
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
}

.text-image__image {
    position: absolute;
    height: 85%;        
    width: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 1;
}

@media (max-width: 1024px) {
    .text-image__content {
        gap: 20px;
    }

    .text-image__text {
        min-height: 296px;
        padding: 28px 24px;
        border-radius: 20px;
    }

    .text-image__text p,
    .text-image__text a {
        font-size: 14px;
        line-height: 22px;
    }

    .text-image__image-wrap {
        height: 296px;
        border-radius: 20px;
    }

    .text-image__image {
        height: auto;
        width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .text-image__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .text-image--left .text-image__content {
        direction: ltr;
    }

    .text-image__text {
        min-height: auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .text-image__text::before,
    .text-image__text::after {
        display: none;
    }

    .text-image__text p,
    .text-image__text a {
        font-size: 14px;
        line-height: 22px;
    }

    .text-image__image-wrap {
        order: 1;
        height: 198px;
        border-radius: 20px;
    }

    .text-image__text {
        order: 0;
    }
}

@media (max-width: 576px) {
    .text-image__content {
        gap: 40px;
    }

    .text-image__text p,
    .text-image__text a {
        font-size: 14px;
        line-height: 22px;
    }

    .text-image__image-wrap {
        height: 198px;
    }
}

@media (max-width: 768px) {
    .is-rassrochka-page .text-image__image {
        left: 0;
        transform: translate(0, -50%);
    }
}

.is-promotion-child .text-image__image-wrap::before {
    width: 274px;
    height: 274px;
    top: -83px;
    left: -93px;
    transform: none;
    background: rgba(213, 104, 216, 0.12);
    filter: blur(76.6px);
}

.is-promotion-child .text-image__image-wrap::after {
    width: 414px;
    height: 414px;
    top: auto;
    bottom: -83px; 
    right: -93px;
    left: auto;
    transform: none;
    background: rgba(213, 104, 216, 0.12);
    filter: blur(76.6px);
}