.res-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #FBF6EA;
    border-radius: 12px;
    padding: 46px 20px 70px;
    .res-img,
    .res-content {
        width: 50%;
    }
    .res-img {
        img {
            max-width: 100%;
        }
        .motion-reduce {
            border-radius: 6px;
            max-width: 400px;
            height: auto;
            object-fit: cover;
            // min-height: 470px;
            aspect-ratio: 0.88;
        }
    }
    .res-img-wrapper > img {
        position: absolute;
        top: 50%;
        left: 20px;
        transform: translateY(-44%);
        z-index: 2;
        width: 255px;
    }
    .res-img-wrapper {
        text-align: center;
        .rest-wrapper {
            border-radius: 6px;
            background: #F9F9FA;
            box-shadow: -1.155px 1.155px 0px 0px rgba(0, 0, 0, 0.25);
            transform: rotate(-5deg);
            display: inline-block;
            padding: 20px 20px 10px 20px;
        }
    }
    .res-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: max-content;
        margin-left: -9px;
        h3 {
            color: #D93400;
            font-family: "OC Highway VAR2";
            font-size: 42px;
            line-height: 95%;
            letter-spacing: 0.84px;
            text-transform: uppercase;
            width: 100%;
            margin: 61px 0 17px;
        }
        
        .res-content-column {
            display: flex;
            font-weight: 600;
            > div {
                margin-right: 49px;
            }
            p {
                color: #000;
                font-family: "BDO Grotesk";
                font-size: 14px;
                line-height: 24px;
                letter-spacing: 0.28px;
                margin: 0;
            }
            .text-title p {
                color: var(--Juniors-Orange, #D93400);
            }
            .res-content--right-block {
                > div {
                    display: flex;
                    align-items: center;
                    p {
                        text-decoration: underline;
                    }
                }
                img {
                    margin-right: 20px;
                }
            }
        }
        .res-content--link {
            a {
                background: var(--Juniors-Orange, #D93400);
                color: #ffffff;
                display: flex;
                padding: 15px 82px;
                justify-content: center;
                align-items: center;
                gap: 10px;
                border-radius: 6px;
                max-width: max-content;
                font-family: WhitneyCondensed;
                font-size: 14px;
                font-style: normal;
                font-weight: 700;
                line-height: normal;
                letter-spacing: 0.64px;
                text-transform: uppercase;
                margin-top: 40px;
                margin-bottom: 10px;
                text-decoration: none;
            }
        }
        
    }
    .rest-wrapper {
        margin-top: 22px;
        margin-left: 18px;
    }
    
}
@media screen and (min-width:1439px) {
    .res-content {
        min-width: 565px;
    }
}

@media screen and (min-width:991px) {
    .res-item {
        &.reverse {
            flex-direction: row-reverse;
            .rest-wrapper {
                transform: rotate(5deg)!important;
                margin-left: 0;
                margin-right: 100px;
            }
            .res-img-wrapper > img {
                left: auto;
                right: 30px;
            }
        }
    }
    .res-content {
        opacity: 0.6;
        transition: all 1s;
    }
    .rest-wrapper img{
        filter: grayscale(1);
        transition: all 0.5s;
    }
    .res-item:hover {
        .res-content {
            opacity: 1;
        }
        .rest-wrapper img{
            filter: grayscale(0);
        }
    }
}
@media screen and (max-width: 1100px) {
    @media screen and (min-width:991px) {
        .res-item {
            & .res-img {
                .motion-reduce {
                    max-width: 250px;
                    aspect-ratio: 0.85;
                }
            }
        }
    }
}
@media screen and (max-width:990px) {
    @media screen and (min-width:769px) {
        .res-item {
            margin-top: 45%!important;
        }
    }
    .res-item {
        flex-direction: column!important;
        padding: 41px 20px 52px;
        margin-top: 40%;
        .res-img, .res-content {
            width: 100%;
            margin-left: 5px;
        }
        
        & .res-content {
            h3 {
                font-size: 32px;
                font-style: normal;
                font-weight: 400;
                line-height: 95%;
                letter-spacing: 0.64px;
                text-transform: uppercase;
                text-align: center;
                margin: 48px 0 19px;
            }
        }
    }
    .res-img {
        height: 96px;
        position: relative;
        .res-img-wrapper {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            > img {
                display: none;
            }
            .rest-wrapper {
                padding: 5px 5px 0 5px;
                margin-left: 0;
                img {
                    min-width: 207px; 
                    max-width: 100%;
                }
            }
        }
    }
    .res-content-column {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        > div {
            margin-right: 0!important;
        }
        .res-content--right-block {
            > div {
                flex-direction: column;
                margin: 10px 0 20px;
                img {
                    margin-right: 0!important;
                    width: 43px;
                }
                > div {
                    margin: 10px 0;
                }
            }
        }
    }
    .res-content--link {
        display: flex;
        justify-content: center;
        a {
            margin-top: 32px!important;
        }
    }
    .stripe {
        margin-top: 12px;
        margin-bottom: 148px;
    }
    .template-page {
        .banner__content.banner__content--middle-center {
            top: -31px;
        }
        .img-banner.collection-small-banner {
            padding-bottom: 0;
            padding-right: 3px;
            padding-left: 3px;
        }
    }  

    @media screen and (min-width:748px) {
        .template-page {
            .banner__content.banner__content--middle-center {
                top: 130px;
            }
        }
    }
}
@media screen and (max-width:400px) {
    .res-item {
        margin-top: 150px;
    }
}
