.block4 {
    position: relative;
    padding: 100px 0;
    background: rgba(238, 239, 245, 1);
    overflow: hidden;
    border-radius: 60px 60px 0 0;
    top: -130px;
    margin-top: -130px;
}

.block4-title {
    width: 100%;
    max-width: 1201px;
    margin: 0 auto 40px auto;

    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 48px;
    text-align: center;

    color: #000000;
}

.block4-description {
    width: 1133px;
    /* max-width: 90%; */
    margin: 0 auto 60px auto;

    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: center;

    color: #626262;

    flex: none;
    order: 1;
    flex-grow: 0;
}

.block4-video {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 100px auto;
    display: flex;
    justify-content: center;
}

.block4-video video {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    height: 595px;
    border: 1px solid #B1B1B1;
    border-radius: 20px;
    object-fit: cover;

    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.block4-bottom {
    position: relative;
    width: 100%;
    height: 470px;
    margin-top: 100px;
    left: -150px;
}

.block4-card {
    box-sizing: border-box;
    position: absolute;
    width: 893px;
    height: 470px;
    left: 425px;
    top: 0;

    background: #FFFFFF;
    border: 1px solid #D4DEFE;
    backdrop-filter: blur(2px);
    border-radius: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}

.block4-card-content {
    flex: 1;
    padding-right: 50px;
}

.block4-testimonial {
    /* padding-left: 50px; */
    padding-top: 80px;
}

.block4-testimonial-text {
    width: 345px;
    height: 180px;

    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    display: flex;
    align-items: center;

    color: #000000;
    margin: 0 0 22px 0;
}

.block4-testimonial-line {
    width: 43px;
    height: 2px;
    border: 1px solid;
    border-image-source: linear-gradient(89.99deg, #6764E8 0%, #3A3882 272.08%);
    border-image-slice: 1;
    margin-bottom: 16px;
}

.block4-testimonial-author {
    width: 163px;
    height: 24px;

    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    display: flex;
    align-items: center;
    text-align: center;

    background: linear-gradient(90deg, #6764E8 13.76%, #3A3882 130.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.block4-testimonial-position {
    width: 281px;
    height: 38px;

    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    display: flex;
    align-items: center;

    color: #7E7E7E;
}

.block4-photo {
    position: relative;
    width: 424px;
    height: 424px;

    background-size: cover;
    background-position: center;
    border-radius: 70px;
    overflow: hidden;
    flex-shrink: 0;
}

.block4-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 70px;
}

.block4-decorative-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;

}

.block4-decorative-dots img {
    width: 100%;
    height: auto;
}

/* Логотип РОСА */
.block4-rosa-logo {
    position: absolute;
    width: 171px;
    height: 40.34px;
    /* left: 469px; */
    top: 50px;

    z-index: 10;
}

.block4-rosa-logo img {
    width: 100%;
    height: 100%;
}

/* Надпись слева */
.block4-side-text {
    position: absolute;
    width: 272.26px;
    height: 105px;
    left: 118px;
    top: 75px;

    font-family: 'Caveat';
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 110%;
    display: flex;
    align-items: center;

    color: #000000;
    transform: rotate(-9.53deg);
}

.block4-side-text .gradient-text {
    display: inline !important;
}

.block4-ellipse {
    position: absolute;
    width: 75px;
    height: 75px;
    left: 335px;
    top: 180px;

    background-image: url('../images/ellipse-decoration.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Кавычки */
.block4-quote1 {
    position: absolute;
    width: 73.6px;
    height: 53.55px;
    left: 43px;
    top: 98px;
    /* transform: rotate(180deg); */
    z-index: -1;
}

.block4-quote1 img {
    width: 100%;
    height: 100%;
}

.block4-quote2 {
    position: absolute;
    width: 73.6px;
    height: 53.55px;
    right: 465px;
    bottom: 99px;
    z-index: 5;
}

.block4-quote2 img {
    width: 100%;
    height: 100%;
}

@media (max-width: 1440px) {
    .block4-title {
        width: 90%;
        font-size: 36px;
        line-height: 44px;
    }

    .block4 {
        top: 0 !important;
    }

    .block4-description {
        /* width: 90%; */
        max-width: 1000px;
    }

    .block4-video video {
        width: 90%;
        max-width: 1000px;
        height: auto;
        aspect-ratio: 1200/622;
    }

    .block4-card {
        width: 90%;
        max-width: 800px;
        height: auto;
        padding: 50px;
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        /* height: 784px; */
    }

    .block4-photo {
        width: 300px;
        height: 300px;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .block4 {
        padding: 50px 0 0;
    }



    .block4-title {
        font-size: 25px;
        line-height: 36px;
        /* padding: 0 20px; */
    }

    .block4-description {
        font-size: 14px;
        line-height: 18px;
        padding: 0 20px;
        height: auto;
        width: 90%;
    }

    .block4-video {
        margin-bottom: 50px;
    }

    .block4-video video {
        width: 90%;
        margin: 0 5%;
    }

    .block4-bottom {
        height: auto;
        margin-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        position: relative;
        padding: 0 13px 80px;
        left: 0px;
    }

    .block4-rosa-logo {
        position: static;
        width: 171px;
        height: 40px;
        z-index: 2;
        margin-bottom: 10px;
    }

    .block4-decorative-dots {
        z-index: 0;
        width: 800px;

    }

    .block4-side-text {
        position: static;
        width: 100%;
        transform: none;
        text-align: left;
        font-size: 32px;
        margin: 0;
        padding: 0;
        transform: rotate(-9.53deg);
        justify-content: center;
        margin-bottom: 80px;
    }

    .block4-ellipse {
        /* display: none; */
        top: 85px;
        left: 220px;
        height: 109.044936614133px;
        /* width: 100px; */
        transform: rotate(248.47deg);
    }

    .block4-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: min(353px, 100%);
        margin: auto;
        padding: 35px 15px 15px;
        border-radius: 50px;
        border: 1px solid #D4DEFE;
        overflow: visible;
        height: auto;
        background: #FFFFFF;
        left: 0px;
        z-index: 1;
    }

    /* .block4-card::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 16px;
        bottom: -16px;
        background: linear-gradient(90deg, #6764E8 0%, #3A3882 100%);
        border-radius: 0 0 40px 40px;
        pointer-events: none;
    } */

    .block4-card-content {
        width: 100%;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    .block4-testimonial {
        padding-top: 0;
        width: 100%;
    }

    .block4-testimonial-text {
        width: 100%;
        max-width: 257px;
        height: auto;
        margin-bottom: 18px;
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.5;
        display: block;
        overflow-wrap: break-word;
        word-break: break-word;
        text-align: left;
    }

    .block4-testimonial-line {
        width: 43px;
        margin-bottom: 14px;
    }

    .block4-testimonial-author {
        width: auto;
        height: auto;
        font-size: clamp(16px, 4.5vw, 18px);
        line-height: 1.3;
        margin-bottom: 6px;
        /* display: inline-flex; */
    }

    .block4-testimonial-position {
        width: 100%;
        max-width: 297px;
        height: auto;
        /* font-size: clamp(13px, 3.6vw, 14px); */
        line-height: 1.4;
        display: block;
        color: #7E7E7E;
        text-align: left;

    }

    .block4-photo {
        width: 280px;
        height: 280px;
        margin: 0px 0 0 0;
        border-radius: 49px;
        overflow: hidden;
        position: relative;
        z-index: 1;
        align-self: center;
    }

    .block4-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 49px;
    }

    .block4-quote1,
    .block4-quote2 {
        position: absolute;
        width: 73.59765625px;
        height: 51.635990142822266px;
        opacity: 1;
        z-index: 0;
        pointer-events: none;
    }

    .block4-quote1 {
        left: 10px;
        top: 58px;
    }

    .block4-quote2 {
        right: 46px;
        bottom: 377px;
    }


}