.site-header.mainpage {
/*    background-image: url(/wp-content/themes/zbog-skis-ru/img/background-min.png);*/
}

.front-page-hero {
/*    background-image: url(/wp-content/themes/zbog-skis-ru/img/background-min.png);*/
      background: #222;
}
#masthead {
/*    padding-left: calc(50% - 590px);*/
/*    padding-right: calc(50% - 590px);*/
}

.hero-video-wrap {
    position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-video-shadow {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #00000080;
    z-index: 2;
}

.site-branding {
    padding: 10px 15px;
    border-radius: 55px;
    border: 1px solid #fff;
    justify-content: space-between;
    align-items: center;
    gap: 40px;

    position: relative;
    z-index: 4;
/*    margin: 20px 40px;*/
    margin: 33px 24px;;
}

#site-navigation {
    width: 100%;
}

#primary-menu {
    position: static;
    display: flex;
    justify-content: space-around;
}

#primary-menu li a {
    line-height: normal;
    color: #fff;
    font-size: 16px;
}

#masthead #header_button.button {
    display: block;
    position: static;
    background: #fff;
    color: #2C2C2D;
    text-align: center;
    padding: 10px 20px;
    text-wrap: nowrap;
}

.site-header.mainpage .logo {
    margin-right: 30px;
}

#masthead:not(.mainpage)  .site-branding {
    border-color: #2C2C2C;
}

#masthead:not(.mainpage) .site-branding ul#primary-menu li a {
    color: #2C2C2C;
}



#masthead:not(.mainpage) .site-branding a#header_button {
    background: #EC2E50;
    color: #fff;
}


/*@media (max-width: 992px) {*/

.hero-video-wrap {
    display: block;
} 

#hero-video {
    display: block;
}

#page > :not(
        #masthead,
        .front-page-hero,
        .features,
        #map, 
        footer
    ) 
{
    max-width: 1208px;
    padding: 0 14px;
    margin: 0 auto;
}

/* Page paddings */
@media screen and (max-width: 1100px) {
  /*  #page > :not(
            #masthead,
            .front-page-hero,
            .features,
            #map, 
            footer
        ) 
    {
        padding: 0 14px;
    }*/
}

@media screen and (max-width: 992px) {
    #masthead.toggled .site-branding {
        border: none;
    }
    #primary-menu {
        display: none;
    }
    #site-navigation.toggled #primary-menu{
        display: block;
    }
    .menu-toggle {
        display: flex;
    }
    #masthead #header_button.button {
        display: none;
    }
    .promo {
        display: block;
    }
    .features {
        margin-top: 40px;
    }

    /* From mobile */
    #masthead.mainpage {
        position: absolute;
        top: 20px;
        width: 100%;
        z-index: 10;
        color: #fff;
    }

    .site-branding {
        display: flex;
        justify-content: space-between;
    }
    .toggled .site-branding {
        display: block;
    }
    .site-header {
        padding: 33px 24px;
    }

    .site-header.mainpage {

    }

    .front-page-hero {
        background-image: url('/wp-content/themes/zbog-skis-ru/img/background_mob.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        height: 100vh;

        position: relative;
    }

    .main-page-description h1,.main-page-description p {
        color: #fff;
        text-align: center;
    }

    .main-page-description h1 {
        font-size: 50px;
    }

    .main-page-description p {
        font-size: 16px;
        line-height: 30px;
        font-weight: 400;
    }

    button.menu-toggle {
        background-image: url('/wp-content/themes/zbog-skis-ru/img/icon_menu_red.svg');
        width: 40px;
        height: 25px;
        background-size: contain;
        background-color: transparent;
        border: none;
        background-repeat: no-repeat;
    }
    .site-header.mainpage button.menu-toggle {
        background-image: url('/wp-content/themes/zbog-skis-ru/img/burger.png');
    }

    nav#site-navigation {
        width: auto;
    /*    width: 100%;
        margin-left: 20px;*/
    }

    .logo img {
        max-width: 150px;
    }
    .mainpage.logo.toogled {
        display: none;
    }
    .site-header.mainpage .logo.toogled {
        display: none;
    }
    .site-header.mainpage .logo {
        display: block;
    }

    .site-header .logo.toogled {
        display: block;
        float: left;
    }
    .site-header .logo {
        display: none;
    }

    .s .logo.toogled {
        display: none;
    }
    .logo {display:flex;align-items: center;}
    .logo.toogled{
        display: none;
    }

    #main-header {
        height: 100vh;
        width: 100vw;
        position: fixed;
        background: #fff;
        z-index: 12;
        top: 0;
        left: 0;
    }

    #masthead.toggled {
        position: fixed;
        background-color: #fff;
        background-image: none;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        z-index: 1;

        z-index: 12;
    }

    #masthead .button {
        display: none;
        position: absolute;
        bottom: 20px;
        right: 20px;
    }

    #masthead.toggled .button {
        display: block;
    }

    #masthead.toggled button.menu-toggle {
        background-image: url('/wp-content/themes/zbog-skis-ru/img/background_close.png');
        width: 25px;
        height: 25px;
        margin-left: auto;
    }
    #masthead.toggled .logo{
        display: none;
    }
    #masthead.toggled .logo.toogled{
        display: flex;
    }

    .toggled .menu-glavnoe-container {
       
    }

    #primary-menu {
        justify-content: space-around;
    }

    #primary-menu li {
        margin: 0 2vw;
    }

    #primary-menu  li a {
        color: #2C2C2C;
        font-weight: 400;
        font-size: 18px;
        line-height: 70px;
    }

    #primary-menu  li a:hover,
    #primary-menu  li a:focus {
        color: #EC2E50;
        font-weight: 700;
    }
    .main-page-description {
        height: calc(100vh - 92px);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        flex-grow: revert;
        gap: 1px;
        flex-direction: column;

        position: relative;
        z-index: 4;
    }

    /* From mobile end */
}

