section.why-choose-us {
    padding: 60px 0 120px 0;
    position: relative;

    iframe {
        border: none;
    }

    .why-choose-us-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        .fr-wrap {
            width: 100%;
            padding-top: 56.6%;
            position: relative;
        }

        .youtube,
        iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .fr-wrap::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.65) 53.34%, #000000 100%);
        }
    }

    &&.background-dark {
        color: #FFFFFF;
    }

    .content-wrap {
        display: flex;
        gap: 16px;

        .content-left {
            display: flex;
            flex-wrap: wrap;
            max-width: calc(67% - 20px);
            position: relative;

            > div:nth-child(4) {
                padding: 48px 28px 28px 28px;
                max-height: 502px;
            }

            .background-wrap {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .content-item {
                position: relative;
                min-width: calc(50% - 7px);
                max-width: 50%;
                min-height: 464px;
                max-height: 464px;
                padding: 28px 28px 0 28px;

                .item-title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 1.25em;
                    letter-spacing: 1px;
                }

                .item-description {
                    font-size: 16px;
                    line-height: 1.5em;
                    color: #DADADA;
                    margin-top: 12px;
                }
            }

            .content-item.title-wrap {
                display: flex;
                align-items: center;
                padding: 0 14px 0 0;

                .section-title {
                    font-size: 40px;
                    border-radius: 16px 16px 107px 16px;
                    background: #F9371C;
                    backdrop-filter: blur(10px);
                    width: 100%;
                    height: 100%;
                    margin: 0;
                    padding: 28px;
                    display: flex;
                    align-items: center;
                }
            }
        }

        .media-wrap {
            position: relative;
            border-radius: 50%;
            width: 170px;
            height: 170px;
            min-height: 170px;
            margin-top: 16px;
            overflow: hidden;
            background: linear-gradient(to bottom, #F9371C 0%, rgba(249, 55, 28, 0.2));

            .border-wrap {
                position: relative;
                border: 1px solid transparent;
                border-radius: 50%;
                overflow: hidden;
                height: 100%;
            }

            .fr-wrap {
                position: absolute;
                top: -58px;
                left: -80px;
                right: -80px;
                bottom: -38px;
                padding-top: 100%;

                iframe,
                .youtube {
                    position: absolute;
                    top: 0;
                    right: 0;
                    width: 100%;
                    height: 100%;
                }
            }
        }

        .media-wrap::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .content-right {
            max-width: 34%;
            position: relative;

            .content-item {
                position: relative;
                min-height: 484px;
                max-height: 484px;
                padding: 28px 28px 0 28px;

                .item-title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 1.25em;
                    letter-spacing: 1px;
                }

                .item-description {
                    font-size: 16px;
                    line-height: 1.5em;
                    color: #DADADA;
                    margin-top: 12px;
                }

                .image-wrap {
                    margin-top: 16px;
                }
            }

            > div:nth-child(1) {
                border-radius: 16px;
                background: rgba(255, 255, 255, 0.04);
                backdrop-filter: blur(10px);
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                padding-bottom: 28px;
            }

            > div:nth-child(2) {
                position: absolute;
                right: 0;
                bottom: 0;
                width: 197%;
                margin-top: 18px;
                padding: 110px 0 0 28px;
                display: flex;
                gap: 20px;
                min-height: 464px;
                max-height: 464px;
                border-radius: 100px 16px 16px 16px;
                background: rgba(255, 255, 255, 0.04);
                backdrop-filter: blur(10px);
                overflow: hidden;
                background: url("/wp-content/themes/ein-des-ein-new/parts/media/why-choose-us/free-initial-consultation-bg.png") center center /cover no-repeat;

                .media-wrap {
                    width: 448px;
                    height: 448px;
                    position: absolute;
                    right: -75px;
                    bottom: -94px;
                }

                .content-item-wrap {
                    max-width: 46%;
                }
            }
        }
    }
}


/* MEDIA */

@media only screen and (max-width: 1200px) {
    section.why-choose-us .content-wrap .content-left > div:nth-child(4) {
        padding: 48px 20px 20px 20px;
    }

    section.why-choose-us .content-wrap .content-left .content-item {
        padding: 20px 20px 0 20px;
    }

    section.why-choose-us .content-wrap .content-right > div:nth-child(2) {
        .media-wrap {
            width: 374px;
            height: 374px;
        }
    }
}

/* ( < 1200 ) */


@media only screen and (max-width: 991px) {
    section.why-choose-us {
        padding: 40px 0;
        overflow: hidden;

        .why-choose-us-bg {
            top: -10px;
            bottom: 0;
            overflow: hidden;

            .fr-wrap {
                width: 3000px;
                height: 2000px;
                padding: 0;
            }
        }

        .content-wrap {
            flex-wrap: wrap;

            .content-left {
                max-width: 100%;
                flex-wrap: wrap;
                gap: 24px;

                .background-wrap {
                    display: none;
                }

                .content-item {
                    max-width: 100%;
                    min-height: 0;
                    max-height: 464px;
                    padding: 24px;
                    border-radius: 16px;
                    background: rgba(255, 255, 255, 0.04);
                    backdrop-filter: blur(10px);
                    display: flex;
                    flex-direction: column;

                    .item-title {
                        font-size: 20px;
                        order: 2;
                        margin-top: 20px;
                    }

                    .item-description {
                        order: 3;
                    }
                }

                .content-item.title-wrap {
                    width: 100%;
                    background: none;
                    padding: 0;

                    .section-title {
                        width: 100%;
                        font-size: 24px;
                        border-radius: 16px 16px 70px 16px;
                        padding: 28px;
                    }
                }

                .media-wrap {
                    margin: 0;
                    width: 140px;
                    min-width: 140px;
                    height: 140px;
                    min-height: 140px;
                }

                > div:nth-child(4) {
                    padding-top: 24px;
                }
            }

            .content-right {
                max-width: 100%;

                > div:nth-child(1) {
                    min-height: 0;

                    .media-wrap {
                        margin-top: 0;
                        width: 140px;
                        min-width: 140px;
                        height: 140px;
                        min-height: 140px;
                    }

                    .item-title {
                        margin-top: 20px;
                    }
                }

                > div:nth-child(2) {
                    position: static;
                    width: 100%;
                    max-height: 100%;
                    padding: 40px 24px 0 24px;
                    border-radius: 70px 16px 16px 16px;
                    display: grid;

                    .content-item-wrap {
                        max-width: calc(100% - 52px);
                    }

                    .media-wrap {
                        width: 344px;
                        min-width: 344px;
                        height: 344px;
                        position: relative;
                        right: -50px;
                        bottom: -74px;
                        margin-top: -67px;
                        justify-self: end;
                    }
                }
            }
        }
    }
}

/* ( < 768 ) */
