section.how-to-deliver {
    padding: 120px 0 64px 0;
    position: relative;

    .background-animate {
        position: absolute;
        top: 0;
        bottom: -400px;
        left: 0;
        width: 100%;
        overflow: hidden;

        &:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 50px;
            background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0));
        }

        & + .container {
            position: relative;
        }

        img {
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 1;
        }

        img:nth-child(1) {
            animation-name: background-animation;
            animation-duration: 4s;
            animation-iteration-count: infinite;
        }

        img:nth-child(2) {
            animation-name: background-animation;
            animation-duration: 4s;
            animation-delay: 1.2s;
            animation-iteration-count: infinite;
        }

        img:nth-child(3) {
            animation-name: background-animation;
            animation-duration: 4s;
            animation-delay: 3s;
            animation-iteration-count: infinite;
        }

        @keyframes background-animation {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }

            100% {
                opacity: 1;
            }
        }
    }

    .section-title {
        font-size: 40px;
        font-weight: 400;
        line-height: 1.3em;
        letter-spacing: 1.5px;
        color: #FFFFFF;
        margin: 0;
    }

    .description {
        font-size: 18px;
        font-weight: 400;
        line-height: 1.4em;
        letter-spacing: 0.5px;
        color: #DADADA;
        margin-top: 20px;
    }

    .item-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.25em;
        letter-spacing: 1px;
        color: #FFFFFF;
        margin-bottom: 20px;
    }

    .item-description {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5em;
        color: #DADADA;

        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;

            li {
                position: relative;
                padding-left: 20px;
            }

            li:not(:last-child) {
                margin-bottom: 12px;
            }

            li::before {
                content: '';
                display: inline-block;
                width: 8px;
                height: 8px;
                background: #F9371C;
                transform: rotate(45deg);
                position: absolute;
                top: 8px;
                left: 0;
            }
        }
    }

    .btn-title {
        text-align: center;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.25em;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #FFFFFF;
        position: relative;
        z-index: 3;
    }

    .item-btn a {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.28em;
        letter-spacing: 0.5px;
        color: #FFFFFF;
        display: flex;
        align-items: center;

        span {
            color: inherit;
        }
    }

    .item-btn a svg {
        margin-left: 8px;
        transition: all 0.3s linear;

        path {
            stroke: #FFFFFF;
        }
    }

    .item-btn a:hover svg {
        margin-left: 30px;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;

        .title-wrap {
            max-width: 728px;
        }
    }

    .button-wrap {
        max-width: 246px;

        a {
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;

            .btn-ico {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 56px;
                min-width: 56px;
                height: 56px;
                min-height: 56px;

                svg {
                    position: relative;
                    z-index: 2;
                }
            }
        }

        a::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            border-radius: 28px;
            background: #F9371C;
            width: 56px;
            height: 56px;
            transition: all 0.3s linear;
            z-index: 1;
        }

        a:hover::after {
            width: calc(100% + 15px);
        }
    }

    .button-wrap.mobile {
        display: none;
    }

    .items-wrap {
        margin-top: 48px;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .l-block {
        min-width: 34%;
        display: flex;
        flex-direction: column;
        gap: 20px;

        .buttons-wrap {
            margin-top: 40px;
        }

        .item:nth-child(2) {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            flex: 1;

            .item-image {
                width: 100%;
                max-height: 670px;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: 0 0 16px 16px;
                }
            }
        }
    }

    .item-content-wrap {
        border-radius: 16px 16px 0 0;
        padding: 32px;
        background: rgba(255, 255, 255, 0.08);
    }

    .r-block {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        max-width: calc(66% - 20px);

        iframe {
            border: none;
        }

        > div {
            max-width: calc(50% - 10px);
        }

        > div:first-child {
            min-width: 100%;
        }

        > div:nth-child(1) {
            height: 614px;
            display: flex;
            padding: 32px;
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
            align-self: stretch;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.08);

            .item-title {
                margin-bottom: 0;
            }

            .buttons-wrap {
                margin: 32px 0 10px 0;
            }

            .item-video {
                margin-top: 0;
                padding-top: 32%;
                border-radius: 16px;
            }
        }

        > div:nth-child(2) .item-content-wrap {
            height: 444px;
        }

        > div:nth-child(3) .item-content-wrap {
            height: 444px;
        }

        .buttons-wrap {
            margin-top: 46px;

            .item-btn:not(:first-child) {
                margin-top: 12px;
            }
        }

        .item-video {
            width: 100%;
            padding-top: 68%;

            height: 0;
            position: relative;
            overflow: hidden;
            border-radius: 0 0 16px 16px;

            .iframe-wrap {
                position: absolute;
                top: -90px;
                right: -40px;
                bottom: -90px;
                left: -40px;

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

        .item-video::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%);
        }
    }
}


/* MEDIA */

@media only screen and (max-width: 1200px) {
    section.how-to-deliver .l-block > div:nth-child(1) {
        > div:nth-child(1) {
            position: relative;
            flex: 1;
            height: 388px;

            .item-image {
                position: absolute;
                bottom: 0;
                left: 0;
            }
        }

        .buttons-wrap {
            margin-top: 20px;
        }
    }

    section.how-to-deliver .r-block > div:nth-child(1) {
        padding: 20px;
        gap: 15px;
        position: relative;

        .item-video {
            margin-top: 0;
            width: auto;
            position: absolute;
            right: 32px;
            bottom: 32px;
            left: 32px;
        }
    }

    section.how-to-deliver .item-content-wrap {
        padding: 20px;
    }

    section.how-to-deliver .item-title {
        font-size: 20px;
    }

    section.how-to-deliver .items-wrap {
        align-items: normal;

        .l-block {
            min-height: 100%;
            justify-content: space-between;
        }
    }

    section.how-to-deliver .r-block > div:nth-child(1) .buttons-wrap {
        margin: 20px 0 7px 0;
    }
}

/* ( < 1200 ) */


@media only screen and (max-width: 991px) {
    section.how-to-deliver {
        padding: 80px 0;

        .background-animate {
            bottom: 40%;
        }

        .section-header {
            flex-wrap: wrap;
        }

        .section-title {
            font-size: 24px;
        }

        .item-title {
            font-size: 20px;
        }

        .item-content-wrap {
            padding: 24px;
        }

        .button-wrap {
            display: none;
        }

        .button-wrap.mobile {
            display: block;
            margin: 32px auto 0 auto;
            max-width: 260px;
        }

        .items-wrap {
            flex-wrap: wrap;
            margin: 32px auto 0 auto;
            max-width: 600px;

            .l-block {
                flex-wrap: wrap;
                min-width: 100%;
                gap: 10px;

                > div:nth-child(1) > div:nth-child(1) {
                    height: auto;
                }

                .item:nth-child(2) .item-image {
                    max-height: 10000px;
                }
            }
        }

        .r-block {
            min-width: 100%;

            > div {
                max-width: 100%;
            }

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

                .item-video {
                    padding-top: 63%;
                    position: relative;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    width: 100%;
                }
            }

            > div:nth-child(2) .item-content-wrap,
            > div:nth-child(3) .item-content-wrap {
                height: auto;
            }
        }
    }
}

/* ( < 768 ) */
