/*to front*/

@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr { border: 1px solid #ccc; }

    td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 50%;
        margin-top: -9px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        color: #002e56;
    }

    /*
    Make dynamyc
    */
    td:nth-of-type(1):before { content: "№"; }
    td:nth-of-type(2):before { content: "Фото"; }
    td:nth-of-type(3):before { content: "Наименование"; }
    td:nth-of-type(4):before { content: "Артикул"; }
    td:nth-of-type(5):before { content: "Цена грн"; }
    td:nth-of-type(6):before { content: "Кол-во"; }
    td:nth-of-type(7):before { content: "Сумма грн"; }
    td:nth-of-type(8):before { content: "Купить"; }
}
/*to front*/


@media(max-width:1200px) {

    /* header
     ******************************************************/

    .col_logo {
        width: 200px;
    }

    a.logo {
        margin: auto;
        font-size: 11px;
    }

    a.logo img {
        margin: auto;
        width: inherit;
        max-width: 100%;
    }

    .col_top_contact {
        width: 270px;
        padding: 7px 0 0 20px;
    }

    .col_search_top {
        float: left;
        width: 210px;
    }

    .col_search_top {
        padding-top: 12px;
    }

    .search-block {
        margin: 12px 0 0;
        text-align: center;
    }

    .search-block form {
        width: 200px;
    }

    .search-block form input {
        width: 150px;
    }

    .col_cart_top {
        width: 280px;
    }

    .col_cart_top .cart {
        padding: 12px 0 0;
        background: url(../img/cart.png) no-repeat top 12px right 100px;
        background-size: 23px;
    }

    .col_cart_top .cart div.sum {
        margin: 4px 0 0;
    }

    /* top_catalog
     ******************************************************/

    .container {
      padding-right: 0;
      padding-left: 0;
    }

    ul#top_catalog_list>li {
        padding: 2px 11px;
    }

    /* slider_section
     ******************************************************/

    #slider_section {
        margin: 29px auto;
    }

    .col_left_slider {
/*        width: 630px;*/
        width: 548px;
        float: left;
    }

    .col_left_slider .slider {
/*        width: 617px;*/
        width: 460px;
        height: inherit;
    }


    .col_right_slider {
        width: 410px;
        float: left;
    }

    .col_right_slider .slider {
/*        width: 451px;*/
        width: 336px;
        height: inherit;
    }

    /* brand_section
     ******************************************************/

    .brand_item a.img-wrap {
        width: 100% !important;
    }

    .brand_item a.img-wrap img {
        width: auto;
        max-width: 100%;
    }

    /* article_prew
     ******************************************************/

    .col_article {
        width: 25%;
        float: left;
        padding: 0 5px;
        box-sizing: border-box;
    }

    /* footer
     ******************************************************/

    ul#medal {
        display: none;
    }

    ul#footer_menu>li {
        padding: 3px 13px;
    }

    .price-block {
        width: 346px;
    }



}

@media(max-width:992px) {


    ul.top_menu>li.has-child:hover>ul.podkat {
        display: none;
    }

    ul.top_menu>li.has-child>ul#podcat.podkat.active {
        display: block;
        position: relative;
        width: 100%;
        background: #00335d;
        list-style: none;
        text-align: left;
        z-index: 20;
        padding: 7px 0;
        margin: 0;
        top: 0;
        box-sizing: border-box;
        left: 0px;
    }

    ul.top_menu>li>ul.podkat>li {
        padding: 2px 15px;
    }

    ul.top_menu>li>ul.podkat>li>a {
        text-transform: uppercase;
        color: #fff;
        display: block;
        text-decoration: none;
        margin: 3px 0;
    }

    ul.top_menu>li>ul.podkat>li>a:hover {
        color: #f47530;
    }

    #header .container .row {
        padding-bottom: 0 ;
    }


    .nav-1 {
        position: absolute!important;
    }

    .col_logo {
        width: 160px;
        padding: 5px;
        background: #FFFFFF;
        margin: 0;
        position: absolute;
        left: 30px;
        top: 10px;
        border-radius: 0px;
    }

    a.logo {
        margin: 0px auto ;
        font-size: 11px;
    }

    a.logo  .slogan {
        display: none;
    }

    .js-nav-active body .startsell-body .nav-toggle {
        right: 344px;
    }

    #header-wrap {
        background: rgba(62,120,170,1);
        position: relative;
        margin: 0 0 5px;
        height: 90px;
    }

    .nav-toggle {
        display: block;
        height: 32px;
        width: 39px;
        position: absolute;
        right: 24px;
        top: 50%;
        margin-top: -16px;
    }

    .nav-toggle span {
        display: block;
        width: 31px;
        margin: 5px auto;
        height: 4px;
        border-radius: 0px;
        background: #fff;
    }

    .nav-collapse {
        position: absolute;
        top: 90px;
        left: 0;
        right: 0px;
        transition: .3s;
        z-index: 90;
        background: rgba(62,120,170,1);
        background: -moz-linear-gradient(top, rgba(62,120,170,1) 0%, rgba(0,46,86,1) 100%);
        background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(62,120,170,1)), color-stop(100%, rgba(0,46,86,1)));
        background: -webkit-linear-gradient(top, rgba(62,120,170,1) 0%, rgba(0,46,86,1) 100%);
        background: -o-linear-gradient(top, rgba(62,120,170,1) 0%, rgba(0,46,86,1) 100%);
        background: -ms-linear-gradient(top, rgba(62,120,170,1) 0%, rgba(0,46,86,1) 100%);
        background: linear-gradient(to bottom, rgba(62,120,170,1) 0%, rgba(0,46,86,1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3e78aa', endColorstr='#002e56', GradientType=0 );
        display: none;
    }

    ul.top_menu {
        display: none;
        text-align: left;
    }

    .nav-collapse.opened {
        display: block;
    }

    .nav-collapse.opened  ul.top_menu {
        display: block;
    }

    ul.top_menu>li {
        display: block;
        vertical-align: middle;
        padding: 0 27px;
        position: relative;
    }

    ul.top_menu>li:after {
        display: none;
    }


    ul.top_menu>li>a {
        color: #fff;
        text-transform: uppercase;
        display: block;
        text-decoration: none;
        padding: 7px 10px;
        position: relative;
    }

    ul.top_menu>li>a:after {
        content: '>';
        position: absolute;
        right: 10px;
        color: rgb(164, 181, 195)
    }

    ul.top_menu>li>a:hover,
    ul.top_menu>li>a.active {
        color: #fff;
        background:  rgb(12, 41, 65)
    }

    .col_top_contact {
        display: none;
        position: absolute!important;
        margin: auto;
        padding-left: 0;
        left: 50%;
        margin-left: -140px;
    }

    .top_contact div a {
        color: #fff;
        text-decoration: none;
    }

    .col_top_contact .top_contact div {
        color: #fff;
        text-align: center;
    }

    .top_callback {
        margin: 10px auto  !important;
        display: block;
    }

    .top_contact img {
        display: none
    }

    #toggle_cont {
        display: block;
        height: 38px;
        width: 38px;
        position: absolute;
        right: 160px;
        top: 50%;
        margin-top: -19px;
        border: 1px solid #fff;
        cursor: pointer;
        background: url(../img/tell-png.png) no-repeat center;

    }

    .nav-toggle span {
        display: block;
        width: 31px;
        margin: 5px auto;
        height: 4px;
        border-radius: 0px;
        background: #fff;
    }

    .cart {
        display: none;
    }

    .col_cart_top {
        display: block;
        height: 38px;
        width: 38px;
        position: absolute!important;
        right: 121px;
        top: 50%;
        margin-top: -19px;
        border: 1px solid #fff;
        cursor: pointer;
        background: url(../img/cart-png.png) no-repeat center;
    }

    .col_search_top {
        display: none;
        position: absolute!important;
        margin: auto;
        padding-left: 0;
/*        left: 50%;*/
        width: 100%;
/*        margin-left: -122px;*/
        padding-top: 0;
    }

    #toggle_search_top {
        display: block;
        height: 38px;
        width: 38px;
        position: absolute;
        right: 199px;
        top: 50%;
        margin-top: -19px;
        border: 1px solid #fff;
        cursor: pointer;
        background: url(../img/searchl-png.png) no-repeat center;
    }

    .hours {
        display: none;
    }

    .search-block {
        margin: 0;
        text-align: center;
    }

    .search-block form {
        display: block;
        width: 244px;
        padding: 8px;
        margin: auto;
        box-sizing: border-box;
        border-radius: 6px;
        background: none;
    }

    .search-block form input {
        width: 194px;
        height: 21px;
        padding: 1px 3px;
        border: none;
        float: left;
    }

    .search-block form button {
        width: 23px;
        height: 23px;
        margin: 0 0 0 5px;
        border: none;
        display: block;
        float: left;
        box-sizing: border-box;
        background: url(../img/search.png) no-repeat !important;
        outline: none !important;
    }

    .col_right_slider {
        display: none;
    }

    ul#top_catalog_list {
        margin: 10px auto;
    }

    #slider_section {
        margin: 0 auto 10px;
    }

    .col_left_slider {
/*        width: 630px;*/
        width: 100%;
        float: left;
    }

    .col_left_slider .slider {
/*        width: 617px;*/
        width: 100%;
        height: inherit;
    }

    .col_left_slider .slider .item img {
        margin: auto !important;
    }

    /*catalog*/

    .catalog_wrap button.next {
        right: -20px;
    }

    .catalog_wrap button.prev {
        left: -20px;
    }

    .buttons_line a {
        margin: 0px 14px 15px;
    }

    .col_article {
        width: 50%;
    }

    .article_wrap {
        margin: 0 auto 20px;
    }

    ul#footer_menu {
        margin: 8px auto 0;
        text-align: center;
    }

    ul#footer_menu>li {
        padding: 0 9px;
    }

    #footer_form {
        margin: 29px auto;
        text-align: center;
        width: 100%;
        float: inherit;
    }

    .footer_bootom {
        text-align: center;
    }

    .footer_bootom .col-md-6:last-child {
        margin: 8px auto 0;
        text-align: center;
    }

    .sidebar-wrap,
    .goods-wrap-col {
        padding: 0;
    }

    .sidebar {
        margin: 30px auto 15px;
    }

    .price-block {
        width: 368px;
    }

    .tovar-sidebar-col {
        text-align: center;
    }

    .pop-good {
        display: inline-block;
        margin: 13px 16px 28px;
        text-align: center;
    }

    .tovar-col {
        border-right: none;
    }

    .orderform-column {
        width: 100% !important;
        margin: auto;
        box-sizing: border-box !important;
    }

    .orderform-column .order-input {
        margin: 0 auto 8px;
    }

    #cart-content {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cart-continue {
        margin: 20px auto 0 !important;
        float: inherit !important;
    }

    .cart-totalprice {
        float: inherit !important;
        width: 100% !important;
        text-align: center !important;
    }

    .cartbox-block {
        padding: 10px 0 !important;
    }

    .order-select {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .fancybox-skin {
    }

    .orderform-title,.cartbox-title {
        text-align: center !important;
    }

    .order-select select#order-delivery,.order-area {
        margin: 0 auto 8px !important;
    }
    .order-area {
        margin: 10px auto 8px !important;
    }

    .orderform-button {
        padding: 25px 0 !important;
    }

    .orderform-button input {
        margin: auto !important;
    }

    .fancybox-inner {
        width: auto !important;
    }
    .fancybox-wrap {
        width: 100% !important;
    }

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    #calculator-etap_2 table+div{clear:both;}
    #calculator-etap_2 td{width:32% !important;float:left;}
    #calculator-etap_2 table td:before{display:none;}
    /* Hide table headers (but not display: none;, for accessibility) */
    #cartbox thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .krovlya_img{width:49% !important;}
    .krovlya_form{width:49% !important;}
    .krovlya_form tr{display:table-row;}
    .krovlya_form td{display:table-cell;}
    .krovlya_form table, .krovlya_form td{display:table;}

    #cartbox tr:first-child {
        display: none;
    }

    table.cart-table {
        width: 100%;
    }

    #cartbox tr { border: 1px solid #ccc; }

    #cartbox td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        padding-bottom: 0;
        text-align: left !important;
    }

    .ct-title {
        padding-top: 0 !important;
        word-break: normal !important;
        width: auto!important;
    }

    .ct-photo {
        padding: 0 !important;
    }

    .ct-count-block {
        margin: 0 !important;
    }

    .ct-remove {
        margin: 0 !important;
        padding: 0 !important;
    }

    div.ct-price ,.ct-amount{
        padding: 0 !important;
        text-align: left !important;
    }
    #cartbox td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 50%;
        margin-top: -9px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        color: #002e56;
    }

    .empty-cart {
        padding: 50px 5px !important;
        height: auto!important;
    }

    .cartbox-block {
        height: auto !important;
        min-height: inherit !important;
    }

    .cart-continue2 {
        margin: 10px auto !important;
    }

    /*
    Make dynamyc
    */
    #cartbox td:nth-of-type(1):before { content: "Фото"; }
    #cartbox td:nth-of-type(2):before { content: "Наименование"; }
    #cartbox td:nth-of-type(3):before { content: "Цена грн"; }
    #cartbox td:nth-of-type(4):before { content: "Кол-во"; }
    #cartbox td:nth-of-type(5):before { content: "Сумма грн"; }
    #cartbox td:nth-of-type(6):before { content: "Удалить"; }

    #calc_banner{
		position:fixed;
		bottom:none;
		top:0;
		right:none;
		left:0;
		height: 44px;
		width:100%;
		background:#002d56;
		border-bottom:3px solid #fff;
	}
	#calc_banner a img:nth-of-type(1){display:none;}
	#calc_banner a img:nth-of-type(2){display:inline;margin-left:50px;}
	#calc_banner .close{
		width:44px;
		height:44px;
		line-height:44px;
		text-align:center;
		background:rgba(255,255,255,1);
		color:#000;
		font-size:2em;
		border-radius:0px;
		position:absolute;
		top:0px;
		right:none;
		left:0;
	}
	#calc_banner:hover .close{background:rgba(255,255,255,1);}
}

@media(max-width:768px) {

    .catalog_wrap button.next {
        right: 5px;
    }

    .catalog_wrap button.prev {
        left: 5px;
    }

    .review .info {
        width: 100%;
        box-sizing: border-box;
        float: inherit;
        min-height: 0;
        padding: 14px 0;
    }

    .review .review_text {
        font-size: 12px;
        padding: 12px 5px;
        color: #696868;
        line-height: 1.8;
    }


    .img-wrap-table {
        float: inherit;
        margin: auto;
    }

    .price-block {
        float: inherit;
        margin: auto;
    }

    .tovar-info {
        margin-top: 15px;
        text-align: center;
    }

    .tovar-info .articul {
        margin: 7px 0;
    }

    .description-block {
        text-align: left;
        margin: 15px 0 0;
    }

    .pop-good {
        display: block;
        max-width: 260px;
        margin: 13px auto;
    }

     .price-block {
        width: 100%;
    }
    .calculator-steps{font-size:.75em;}
    div[id^=calculator-etap_]{width:96%;margin-left:2%;}
    #calculator-etap_2 table, #calculator-etap_2 tbody, #calculator-etap_2 tr{position:relative;float:left;border:none !important;}
    #calculator-etap_2 table+div{clear:both;}
    #calculator-etap_2 td{width:32% !important;float:left;padding:0 !important;}

    .krovlya_img{width:49% !important;}
    .krovlya_form{width:49% !important;}
    .krovlya_form tr{display:table-row; border:none;}
    .krovlya_form td:before{display:none;}
}

@media(max-width:540px) {

    #top_catalog {
        text-align: center;
    }

    .nav-collapse-cat {
        position: relative !important;
        overflow: hidden;
    }

    .nav-collapse-cat.closed {
        height: 0;
    }

    .nav-collapse-cat.opened {
        height: auto;
    }

    #toggle_catalog_top {
        display: inline-block;
        border: 1px solid #2b6c9d;
        margin: 15px auto 16px;
        cursor: pointer;
        text-transform: uppercase;
        padding: 5px 5px 3px;
        font-size: 18px;
        border-radius: 5px;
        color: #2b6c9d;
    }

    #toggle_catalog_top.active {
        background: #2b6c9d;
        color: #fff;
    }

    ul#top_catalog_list {
        margin: 2px auto 12px
    }

    ul#top_catalog_list>li {
        display: block;
        padding: 2px 18px;
        position: relative;
        margin: 1px 0;
    }


    ul#top_catalog_list>li:after {
        display: none;
    }


    .col_article {
        width: 100%;
    }

    .footer_logo {
        display: none !important;
    }

    #footer_menu {
        display: none;
    }

    #footer_links {
        display: none;
    }

    #footer_form input {
        margin: 0 auto 10px;
    }

    #footer_form button {
        display: block;
        margin: 0 auto 10px;
    }

    .buttons_line a {
       font-size: 16px;;
    }

    #header-wrap {
        background: rgba(62,120,170,1);
        position: relative;
        margin: 0 0 5px;
        height: 70px;
    }

    .col_logo {
        width: 100px;
        left: 10px;
        top: 12px;
    }

    .nav-toggle {
        right: 10px;
    }

    #toggle_cont {
        right: 100px;
    }

    .col_cart_top {
        right: 61px;
    }

    #toggle_search_top {
        right: 139px;
    }

    .nav-collapse {
        top: 60px;
    }

    .col_top_contact {
        display: none;
        position: absolute;
        margin: auto;
        width: 100%;
        padding-left: 0;
        left: 0;
        margin-left: 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header h1 {
        font-size: 32px
    }

    .img-wrap-table .img-wrap img {
        margin: 0px auto;
        display: block;
        max-width: 100%;
        height: auto;
    }

    .img-wrap-table .img-wrap {
        height: auto;
    }

    .color-item {
        width: 32px;
        height: 32px;
    }
    .calculator-steps li{width:50% !important;}
    .calculator-steps li:after{
        display:none !important;
    }

    #calculator-etap_1>ul{float:left;width:100% !important;}
    #brands_list_1, #brands_list_2{margin-top:-310px;z-index:60;}
    .step_1_window a{width:90%;float:none !important;margin:10px auto;}
    #calculator-etap_2 td{width:49% !important;}
    #calculator-etap_2 td img{width:75%;}

    .krovlya_img, .krovlya_form{width:96% !important;margin-left:2% !important;}

}

@media(max-width:500px) {
    div.active-search-bar{
     width:90%;
     margin-left:5%;
    }
}