@media screen and (min-width: 1220px){
    header .wrap {
        width:1220px;
    }
}

@media screen and (max-width: 1219px){
    header .wrap {
        width:80%;
    } 

    article.tovar{
        width: calc(100% - 240px);
    }
    
    section.seo_text > .wrap, section.content > .wrap{
        width: 100%;
    }
    
    header .title{
        width: 200px;
        text-align: center;
    }

    header .wrap {
        width:90%;
    }

    header .logo{
        transform: translate(-62%);
    }

    section.main_news > .wrap{
        width: 100%;
    }

    section.main_news > .wrap .items{
        width: 100%;
        text-align: center;
    }

    section.main_news .item{
        float: none;
        height: 400px;
        width: 281px;
    }

    section.main_news .item .title{
        height: 90px;
        overflow: hidden; 
    }



    section a.all{
        position: relative;
        margin: 0 auto;
    }

    footer .wrap:after{
        display: none;
    }

    .mg_ui_text{
        display: block;
    }

    footer .wrap{
        width: 100%;
    }

    footer nav{
        margin: 0 auto;
    }
}


@media screen and (max-width: 1220px){
    section.main_news .item{
        width: 20%;
    }
}

@media screen and (max-width: 1180px){
    #d5{
        width: 480px !important;
        text-align: left !important;
        height: 200px !important;
    }
    
    #d5 ul{
        width: 220px !important;
        /* display: inline-block; */
        height: 200px !important;
        float: left !important;
        margin-right: 14px;
    }
}

@media screen and (max-width: 1100px){
    .news .item .img{
        width: 40%;
    }
    
    .news .item .img img{
        vertical-align: top;
        width: 80%;
        margin-left: 10px;
    }
    
    nav.top > ul > li.parent .inner > div{
        margin-right: 25px;
        width: 200px;
    }
    
    nav.top > ul > li > a{
        padding: 0 22px;
    }
    
    footer nav{
        width: 100%;
    }
    
    
    section.content .advantages .items .item:before{
        display: none;
    }
    
    section.content .advantages .items:before{
        display: none;
    }
    
    section.content .advantages{
        width: 100%;
        height: auto;
        margin-top: 30px;
    }
    
    section.content .advantages .items{
        padding: 0px;
        text-align: center;
        position: inherit;
    }
    
    section.content .advantages .items .item{
        width: 152px;
        height: 152px;
        display: inline-block;
        /* box-sizing: border-box; */
        border-radius: 100%;
        border: 1px dashed #60c9cb;
        text-align: center;
        vertical-align: bottom;
        margin: 0px 25px; 
        float: none; 
        /* position: relative; */
        margin-bottom: 20px;
    }
    
    section.content .advantages .items .item:last-child{
        margin-right: 25px;
    }
    
    section.content .advantages .items .item span{
        font-size: 40px;
    }
    
    section.content .advantages .items .item:nth-child(5) span{
        font-size: 40px;
    }
    
    section.content .advantages .items .item:nth-child(4) span{
        font-size: 40px;
    }
    
    section.content .advantages .items .item > div{
        display: table-cell;
        vertical-align: middle;
        font-size: 15px;
        height: 152px;
        /* margin-top: 20px; */
        vertical-align: middle;
        width: 152px;
    }
    
    article .filter .sort{
        float: none;
        margin: 15px 0px;
    }
    
    article .filter{
        text-align: center;
    }
}

@media screen and (max-width: 1024px){
    nav.top > ul > li.parent .inner > div{
        margin-right: 25px;
        width: 170px;
    }
    
    
    #d5{
        width: 480px !important;
        text-align: left !important;
        height: 200px !important;
    }
    
    #d5 ul{
        width: 186px !important;
        /* display: inline-block; */
        height: 200px !important;
        float: left !important;
        margin-right: 14px;
    }
    
    nav.top > ul > li.parent:hover:after{
        width: 120px;
    }
    
    footer nav{
        width: 100%;
    }

    section.main_news .item{
        width: 210px;
    }

    footer .copy{
        right: 15px;
    }

    footer a.logo{
        left: 15px;
    }

    section.slider li .info{
        width: 250px;
        height: 260px;
        background: url(/bitrix/templates/mgngrpoup/css/../img/slide_element.png) 0 0 no-repeat;
        display: block;
        position: absolute;
        top: 70px;
        right: 170px;
        z-index: 9999;
        text-align: center;
        font-size: 28.25px;
        line-height: 32.95px;
        box-sizing: border-box;
        padding-top: 35px;
        background-size: 100%;
    }

    section.slider li .info span{
        font-size: 33.11px;
        line-height: 80px;
    }

    nav.top > ul > li > a{
        padding: 0 20px;
    }

    section.slider li .info a{
        position: absolute;
        width: 100%;
        color: #ffffff;
        font-size: 18.83px;
        text-align: center;
        display: block;
        left: 0;
        text-decoration: none;
        bottom: 62px;
    }
}


@media screen and (max-width: 930px){
    section.main_news .item{
        width: 286px;
    }

    nav.top > ul > li > a{
        padding: 0 13px;
    }
}

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

    .prev_profile_table input{
        width: 90%;
    }
    
    .prev_profile_table{
        width: 100%;
    }
    
    section.main_news .item{
        width: 281px;
    }

    article.tovar{
        width: 100%;
    }
    
    .slider_image{
        width: 100%;
    }
    
    
    #d5{
        width: 480px !important;
        text-align: left !important;
        height: 200px !important;
    }
    
    #d5 ul{
        width: 164px !important;
        /* display: inline-block; */
        height: 200px !important;
        float: left !important;
        margin-right: 14px;
    }
    
    nav.top > ul > li.parent .inner > div{
        margin-right: 14px;
        width: 160px;
    }
    
    nav.top{
        width: auto;
        margin: 0 auto;
        margin-bottom: 20px;
        padding: 0px 20%;
    }
    
    nav.top > ul > li > a, nav.top > ul > li > span{
        line-height: 30px;
    }
    
    nav.top > ul > li{
        height: 30px;
    }
    
    nav.top > ul > li.active{
        height: auto;
    }
    
    nav.top > ul > li:nth-of-type(1), nav.top > ul > li:nth-of-type(2), nav.top > ul > li:nth-of-type(3){
        padding-top: 20px;
        padding-bottom: 10px;
    }
    
    footer a.logo{
        width: 132px;
        height: 76px;
        position: absolute;
        left: 20px;
        top: 90px;
        background: url(/bitrix/templates/mgngrpoup/css/../img/logo_mini.png) 0 0 no-repeat;
        background-size: 80%;
    }

    footer{
        height: 268px;
    }

    footer .info{
        font-size: 14px;
        color: #bdccd4;
        position: absolute;
        left: 19px;
        top: 170px;
        line-height: 17.6px;
        left: 10px;
    }

    
    nav.top > ul > li.parent .inner{
        padding: 25px 15px 0;
    }
    
    nav.top > ul > li.parent .inner ul li:first-child a{
        font-size: 16px;
    }
    
    nav.top > ul > li.parent:hover:after{
        width: 107px;
    }
    
    footer .copy{
        color: #bdccd4;
        font-size: 12px;
        position: absolute;
        display: block;
        bottom: 82px;
        right: 16px;
        z-index: 9;
    }

    section.content .breadcrumbs ul{
        section.content .breadcrumbs ul{
            margin-left: 10px;
        }
    }

    section.content .text{
        height: 100%;
        background: #f0f4f7;
        width: 100%;
        margin: 24px auto 0;
    }

    section.content .text img{
        height: auto;
        min-height: 100%;
        width: 243px;
        float: none; 
    }

    section.content .text .inf{
        float: none;
        width: 100%; 
        padding: 14px 0 14px 35px;
        box-sizing: border-box;
        font-size: 15px;
        line-height: 22px;
    }

    section.seo_text > .wrap, section.content > .wrap{
        width: 100%;
        margin: 0 auto;
        height: 100%;
        position: relative;
        box-sizing: border-box;
        padding: 0px 10px;

        /*text-align: center;*/
    }

    aside{
        float: none;
        margin-bottom: 40px;
        position: relative;
        margin: 0 auto;
        display: block;
        margin-bottom: 20px;
    }

    article{
        float: none;
        width: 100%;
    }

    article .items .item{
        position: relative;
        float: none; 
        display: inline-block;
        /*width: auto;*/ width: 218px;
        /*margin-right: 3.2989690721649483%;*/margin-right:1.5%; 
        margin-top: 26px;
        margin-bottom: 26px;
    }

    section.content .text .inf ul{
        float: none; 
        padding-top: 18px;
        padding-right: 0px; 
    }

    section.content ul{
        margin-left: 0px;
    }

    section.content .news{
        text-align: center;
    }

    .news .item{
        float: none;
        height: 470px;
        width: 100%;
        display: inline-block;
        height: 460px;
        margin-top: 30px;
        margin-bottom: 30px;
        position: relative;
    }

    .news .item .img{
        float: none;
    }

    .news .item .info .desc{
        font-size: 13px;
        line-height: 17.6px;
        height: 70px;
        overflow: hidden;
    }

    .news .item .info .title{
        font-size: 23px;
        margin-bottom: 25px;
        height: 50px;
    }

    .news .item .img, .news .item .info{
        float: none;
        height: auto;
    }

    .news .item .info{
        float: none;
        height: 210px;
        width: 100%;
    }

    .one_news .info a.back{
        margin-right: 10px;
    }

    .one_news .info{
        width: 100%;
        padding: 0;
    }

    .news .item .info{
        padding-left: 0;
    }

    .news .item{
        margin-right: 0;
    }
    .news .item:nth-child(2n):after{
        display: none;
    }

    .news .item .img img{
        vertical-align: inherit;
    }

    section.content ul li{
        text-align: left;
    }

    footer nav ul li:after{
        display: none;
    }
    
    #basket_items td:first-of-type{
        width: 100% !important;
    }


    footer nav ul li{
        display: inline-block;
        position: relative;
        padding: 10px 0px;
        text-align: center;
        width: 200px;
    }

    footer nav{
        width: 100%;
    }

    article.tovar .item .left img{
        width: 100%;
    }
/*
    article.tovar .item .colors{
        display: none;
    }
*/
    article.tovar .item .right{
        text-align: left;
    }


    #basket_items thead{
        display: none;
    }

    #basket_items td:before{
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
        display: block;
        padding: 10px 10px;
        /*background: #eee;*/
    }

    #basket_items td{
        display: block;
        text-align: right;
        font-size: 13px;
        border: 0;
        border-bottom: 1px dotted #80d4d6;
        /*width: 100%;*/
    }

    .cart table td.name .img{
        margin-right: 0px;
        margin-top: 40px;
        
        width: 150px;
        text-align: center;
    }

    .cart table td.name a > div{
        float: none;
        display: block;
    }

    .cart table tr{
        border-bottom: none;
        border-top: none;
    }

    .mg_profile_right_menu{
        width: 100%;
        float: none;
        text-align: left;
    }

    .mg_profile_content{
        width: 100%;
        float: none;
        margin-top: 50px;
    }

    .mg_p_current_tab{
        margin-top: 5px;
    }

    .mg_p_tab{
        margin-top: 5px;
    }
}

@media screen and (max-width: 824px){
    header a.phone span{
        font-size: 30px;
    }
    
    header a.phone{
        font-size: 22px; 
    }
    
    header a.login{
        right: 140px !important;
    }
    
    header a.cart{
        right: 0px !important;
    }
    
    .is_login{
        font-size: 12px !important;
    }
    
    header .logo{
        width: 178px;
        height: 115px;
        display: block;
        position: absolute;
        top: 33px;
        left: 52%;
    }
    
    header a.mail{
        right: 70px;
    }
    
    header .search{
        left: -20px;
        top: 90px;
    }
    
    header .title{
        left: -20px
    }
    
    header a.full_cart{
        right: -34px !important;
    }
    
    .docs_profile_table td:before{
        padding: 0px 10px !important;
    }
    
    .more_td, .reload_td{
        text-align: left !important;
        width: auto !important;
        padding: 10px !important;
    }
}

@media screen and (max-width: 770px){
    footer a.logo{
        top: 120px;
    }

    footer .info{
        top: 200px;
    }

    footer .copy{
        bottom: 54px;
    }

    section.slider li .info{
        right: 130px;
    }
}

@media screen and (max-width: 760px){
    article .items{
        text-align: center;
    }
    
    #d5 ul{
        width: 164px !important;
    }
    
    header .title{
        position: relative;
        margin: 30px auto;
        top: 0px;
    }
    
    header .logo{
        top: 50px;
    }
    
    #d4{
        width: 380px !important;
        height: 180px !important;
    }
    
    #d4 ul{
        float: left !important;
        width: 178px !important;
    }
    
    header a.phone span{
        font-size: 38.43px;
    }
    
    header a.phone{
        font-size: 26.61px;
    }
    
    nav.top{
        width: auto;
        margin: 0 auto;
        margin-bottom: 20px;
        padding: 0px 15%;
    }

    header .search{
        height: 25px;
        width: 233px;
        position: relative;
        margin: 0 auto;
        top: 110px;
        left: 0px;
    }

    header a.login{
       right: 201px !important; 
    }
    
    header a.full_cart{
        right: -20px !important;
    }
    
    header{
        height: 395px;
    }

    header .wrap{
        height: 390px;
    }

    .auth_login_panel{
        position: relative;
        margin: 0 auto;
        width: 270px;
        top: 160px;
    }

    header a.phone{
        position: relative;
        margin: 0 auto;
        width: 300px;
        top: 210px;
    }

    header a.mail{
        position: relative;
        top: 230px;
        margin: 0 auto;
        left: 0;
    }
}

@media screen and (max-width: 678px){
    footer .copy{
        color: #bdccd4;
        font-size: 12px;
        position: relative;
        display: block;
        z-index: 9;
        margin: 0 auto;
        width: 100%;
        top: 172px;
    }    
    
    nav.top > ul > li.parent .inner{
        display: none;
    }

    section.slider .bx-controls a.bx-prev{
        left: 10px;
    }
    
    section.slider .bx-controls a.bx-next{
        right: 10px;
    }
    
    
    .mg_p_current_tab{
        border: none;
        border-bottom: 1px dashed #c0eaea;
    }
    
    nav.top > ul > li:nth-of-type(1), nav.top > ul > li:nth-of-type(2), nav.top > ul > li:nth-of-type(3){
        padding-top: 0px;
    }
    
    nav.top{
        margin: 20px auto;
        padding: 0;
    }
    
    
    nav.top > ul > li{
        width: 170px;
        text-align: center;
        
    }
    
    nav.top > ul > li > a{
        padding: 0;
    }
    
    section.slider li .info{
        right: 50px;
    }

    .slider_mobile{
        display: block;
    }

    .slider{
        /*display: none;*/
    }

    article .filter .items select, article .filter .sort select{
        margin: 5px 10px;
    }

    article .filter .sort{
        float: none;
    }

    footer{
        height: 320px;
    }

    article.tovar .item .left{
        float: none;
        width: 100%;
    }

    article.tovar .item .right{
        width: 300px;
        position: relative;
        margin: 0 auto;
        float: none;
    }
}


@media screen and (max-width: 590px){
    footer a.logo{
        top: 170px;
        transform: translate(-66px, 0px);
        left: 50%;
    }
    
    nav.top > ul > li.parent:hover{
        border: none;
    }
    
    .mg_profile_content_main{
        width: 100%;
        text-align: center;
    }
    
    .profile_manafer_image{
        float: none;
        margin: 0;
    }
    
    .p_a_profile{
        float: none;
        padding-top: 30px;
    }

    nav.top > ul > li.parent:hover .inner{
        display: none;
    }

    section.content .advantages .items .item{
        margin-right: 0px; 
    }
    
    footer .info{
        top: 260px;
        text-align: center;
        width: 100%;
        left: 0;
    }

    footer{
        height: 370px;
    }

    nav.top{
        width: 100%;
        margin: 0 auto;
        padding: 5px 0px 5px 0px;
    }
    
    footer .copy{
        color: #bdccd4;
        font-size: 10px;
        position: relative;
        display: block;
        z-index: 9;
        margin: 0 auto;
        width: 100%;
        top: 200px;
        padding: 0;
        left: 0;
    }

    .auth_form{
        width: 100%;
    }

    .registration_form{
        width: 100%;
    }
    
    .input_w_max td input{
        width: 90%;
    }
}


@media screen and (max-width: 404px){
    footer a.logo{
        top: 270px;
    }
    
    section.content .advantages .items{
        padding: 0px;
        text-align: center;
    }
    
    .mg_p_tab{
        width: 85%;
    }
    
    .personal_logount_container{
        top: 0px; 
        position: relative;
         right: 0px; 
        width: 100px;
        margin: 20px auto;
    }
    
    section.content .advantages .items .item{
        width: 140px;
        height: 140px;
        display: inline-block;
        /* box-sizing: border-box; */
        border-radius: 100%;
        border: 1px dashed #60c9cb;
        text-align: center;
        vertical-align: bottom;
         margin-right: 0px; 
         float: none; 
        /* position: relative; */
        margin-bottom: 20px;
    }
    
    section.content .advantages .items .item span{
        font-size: 40px;
    }
    
    section.content .advantages .items .item:nth-child(5) span{
        font-size: 40px;
    }
    
    section.content .advantages .items .item:nth-child(4) span{
        font-size: 40px;
    }
    
    section.content .advantages .items .item > div{
        display: table-cell;
        vertical-align: middle;
        font-size: 15px;
        height: 140px;
        /* margin-top: 20px; */
        vertical-align: middle;
        width: 140px;
    }
    
    footer .info{
        top: 350px;
        text-align: center;
        width: 100%;
        left: 0px;
    }

    footer{
        height: 460px;
    }
}

@media screen and (max-width: 375px){
    section.slider_mobile .info{
        width: 260px;
        height: 345px;
        background: url(/bitrix/templates/mgngrpoup/css/../img/slide_element.png) 0 0 no-repeat;
        display: block;
        top: 70px;
        z-index: 9999;
        text-align: center;
        font-size: 20.25px;
        line-height: 29.95px;
        box-sizing: border-box;
        padding-top: 35px;
        left: 0;
        background-size: 260px;
        position: relative;
        margin: 0 auto;
    }

    article .filter .items select, article .filter .sort select{
        width: 100%;
    }
    
    header a.login{
        right: 195px !important;
    }
    
    section.slider_mobile .info span{
        font-size: 37.11px;
        line-height: 100px;
    }

    section.slider_mobile .info a{
        position: absolute;
        width: 100%;
        color: #ffffff;
        font-size: 19.83px;
        text-align: center;
        display: block;
        left: 0;
        text-decoration: none;
        bottom: 142px;
    }

    .slider_mobile{
        height: 350px;
    }

    .mg_ui_text{
        padding: 20px 18px;
    }

    footer a.logo{
        top: 270px;
    }

    footer .info{
        top: 350px;
        text-align: center;
        width: 100%;
        left: 0px;
    }

    footer{
        height: 460px;
    }
    
    header .title{
        left: 0;
    }
    
    header .logo{
        left: 53%;
    }
    
    header .search{
        left: 0;
    }
    
    header a.login{
        right: 195px !important;
    }
    
    .full_cart{
        right: -26px !important;
    }
    
    nav.top > ul > li > a{
        font-size: 16px;
    }
    
    nav.top > ul > li{
        width: 148px;
    }
    
    .contacts .items .item:last-child address{
        height: auto;
    }
    .contacts .items .item:last-child{
        float: none;
        width: 100%;
    }
    .contacts .items .item{
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
    
    header a.cart{
        right: 15px;
    }
}