section.video {
    position: relative;
    padding: 0;
    height: auto;
    width: 100%;
    margin: 0 auto;
}

section.video .wrapper {
    overflow: hidden;
    position: relative;
    height: auto;
    padding: 0;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

section.video .youtube-video {
    /*position: absolute;*/
    /*width: 100%;*/
    /*overflow: hidden;*/
    /*height: 400px;*/
}

section.video.no-title .youtube-video {
    /*margin-top: -10%;*/
    /*margin-bottom: -9%;*/
    z-index: -1;
}

section.video .youtube-video iframe {
    position: relative !important;
    display: block;
    /*height: 760px; посчитается скриптом*/
    width: 100%;
}

section.video .cover-wrapper {
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    height: 100%;
    width: 100%;
    position: absolute;
}

section.video .cover-wrapper:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: transparent;
    z-index: -1;
}

section.video.blackBG .cover-wrapper:before {
    background-color: rgba(0, 0, 0, 0.2);
}

section.video.noBG .cover-wrapper {
    display: none;
}


section.video .covercontent {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 1px #333;
    padding: 0 20px;
}

section.video h1 {
    font-size: 2.2em;
    line-height: 1.23;
    font-weight: 600;
    margin-top: 0;
}

section.video .covercontent .description {
    max-width: 600px;
    font-size: 1.1em;
    line-height: 1.5;
    margin: 1em auto;
    position: relative;
}

section.video .covercontent .buttons {
    margin: 2em auto 1em;
}

section.video .covercontent .buttons .button-wrapper {
    display: inline-block;
    position: relative;
}

section.video .covercontent .buttons .arrow-icon {
    width: 45px;
    position: absolute;
    left: -30px;
    transform: translateX(-100%);
    fill: #fff;
    top: 0;
    bottom: 0;
    margin: auto;
}

section.video .covercontent .buttons .arrow-icon-mobile {
    display: none;
    width: 20px;
    margin: 0 auto 20px;
}

body.is-mobile section.video.has-back .youtube-video {
    display: none;
}

@media screen and (min-width: 681px) {
    body:not(.is-mobile) section.video.has-back {
        background: #fff !important;
    }
}

@media screen and (max-width: 680px) {
    section.video {
        margin-top: 0 !important;
    }

    section.video .wrapper {
        display: flex;
        flex-flow: column-reverse;
    }

    section.video.has-back {
        height: 460px !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
    }

    section.video .cover-wrapper:before {
        display: none;
    }

    section.video.has-back .youtube-video {
        display: none;
    }

    section.video .youtube-video {
        margin: 0 !important;
    }

    section.video .covercontent {
        color: #333;
        text-shadow: none;
    }

    section.video .covercontent .buttons .arrow-icon {
        display: none;
    }

    section.video .covercontent .buttons .arrow-icon-mobile {
        display: block;
    }

    section.video .covercontent .buttons .wrapper {
        display: block;
    }

    section.video .cover-wrapper {
        padding-top: 2em;
        position: relative;
    }

}

@media screen and (max-width: 500px) {

    section.video .youtube-video {
        z-index: 1 !important;
    }

    section.video:not(.has-back) .cover-wrapper .covercontent {
        color: #333;
        text-shadow: none;
    }
}

