.mmenu {
    height: 19px; width: 27px; left: 0; top: 10px;
    position: absolute; z-index: 999; cursor: pointer; text-align: left;  
}
.mmenu:after, .mmenu:before, .mmenu div {
    background: #fff; 
    content: ''; position: absolute; height: 3px; width: 100%; border-radius: 3px;
}
.mmenu:after{bottom:0;}.mmenu:before{top:0;}.mmenu div{top:0;bottom:0;margin:auto;}.active .mmenu:after,.active .mmenu:before{top:0;bottom:0;margin:auto;}.active .mmenu:after{-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg);}.active .mmenu:before{-ms-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);}.active .mmenu div{display:none;}
.mwrap {
    display: none;
    cursor: pointer;
    color: #fff;
    border-radius: 6px;
    font-size: 24px;
    line-height: 40px;
    text-transform: uppercase;
    position: relative;
    height: 40px;
    text-align: center;
}
.mcat {
    display: none;
}

html {-webkit-text-size-adjust:100%;}
html, body {
    min-width: 320px;
}
body {
    position: relative;
}
.scrollToTop {
    z-index: 999;
    color: #000;
}
#callme, #cme_form {
    z-index: 999 !important;
}
#tovar-price span {
    color: #999;
}
#akcia2 {
    left: auto;
    right: 0;
    z-index: 99;
}
#novinka2 {
    z-index: 99;
}
#phone a {
    color: #000;
    text-decoration: none;
}
#copyright a[href*="tel"] {
    color: #fff;
    text-decoration: none;
}

@media screen and (max-width: 1240px) {
    #wrap {
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
    }
    #logo {
        left: 0;
    }
    #contacts-phone, #address0 {
        right: 0;
    }    
    #email-top {
        right: 41px;
    }
    #email-top a {
        padding-left: 30px;
    }
    #slogan, #cart {        
        left: 285px;
        right: 380px;
        max-width: 320px;
        box-sizing: border-box;
        margin: auto;
    }
    #korzina {
        position: static;
        display: inline-block;
    }
    #cart { 
        position: absolute;
        top: 80px;
        padding-left: 18px;
    }
    #korzina a, #korzina a:visited {
        display: block;
    }
    #header.full #slogan {
        top: 14px;
    }
    #header.full #cart {
        top: 66px;
    }
    #menu #email-top {
        display: none;
    }
    #menu ul {
        display: table;
        width: 100%;
        height: 49px;
    }
    #menu ul li {
        float: none;
        display: table-cell;
        text-align: center;
        vertical-align: middle;
    }
    #menu ul li a, #menu ul li a:visited {
        padding: 0 10px;
    }
    #menu #wrap {
        padding-right: 235px;
    }
    #menu ul li.selected {
        background: #137a13;
    }
     #menu ul li.selected a {
        background: none;
    }    
    #menu ul li:hover {
        background: #39a839;
    }
    #menu ul li a:hover {
        background: none;
    }
    #banners {
        text-align: center;
    }
    #banners table, #banners table tbody, #banners table tr {
        display: block;
    }
    #banners table td {
        display: inline-block;
        width: auto;
    }
    #banners2small img {
        display: inline-block;
        box-sizing: border-box;
        width: 32%;
        height: auto;
    }
    #banners table td[width="370"] {
        width: 100%;
        margin-top: 10px;
    }
    
    #content-home ol.tovari li, #content-text-page ol.tovari li {
        box-sizing: border-box;
        width: 25%;
        margin-left: 0;
        margin-right: -4px;
        padding-right: 5px;
    }
    img.small-foto-tovar {
        max-width: 100%;
        height: auto;
    }
    #tovar-price {
        width: auto;
        font-size: 20px;
    }
    #tovar-price span {
        display: inline-block;
    }
    input.input-kol-vo, #tovar-kupit a.vkorzinu {
        display: inline-block;
        margin: 2px;
    }
    #tovar-nazvanie a {
        word-wrap: break-word;
    }
    #copyright {
        padding-left: 0;
    }
    #knopki {
        padding-right: 0;
    }
    #middle img {
        max-width: 100%;
        height: auto;
    }
    #level4 ul.menu-level4 li {
        margin: 0 -2px 10px;
        width: 25%;
        box-sizing: border-box;
        padding: 10px;
    }
    #name-r4 {
        width: auto;
    }
    #dop-foto {
        box-sizing: border-box;
        width: 25%;
        padding: 10px 10px 10px 0;
    }
}
@media screen and (max-width: 1024px) {
    #header {
        height: 220px;
    }
    #contacts-phone {
        width: 165px;
        text-align: right;
    }
    #contacts-phone .comma {
        display: none;
    }
    #address0 {
        top: 130px;
    }
    #email-top {
        top: 182px;
    }
    #phone img[src*="gorodskoy"] + span {
        margin-left: 7px;
    }
    #contacts-phone {
        padding: 5px 48px 8px 10px;
    }
    #slogan, #cart {
        right: 230px;
    }
    #logo {
        top: 30px;
    }
    #slogan, #header.full #slogan {
        top: 37px;
    }
    #cart {
        top: 142px;
    }
    #header.full #cart {
        top: 126px;
    }
    #menu ul li a, #menu ul li a:visited {
        font-size: 14px;
    }
    #banners table td[width="800"], #banners table td[width="30"] {
        display: none;
    }
    #banners table td[width="370"] {
        margin-top: 0;
    }
    #content-home ol.tovari li, #content-text-page ol.tovari li {
        width: 50%;
    }
    #level4 ul.menu-level4 li a {
        font-size: 15px;
        line-height: 1.2;
    }
    h1 {
        word-wrap: break-word;
    }
    table td[width="350"] {
        width: 40%;
    }
    #tabs ul.tabs {
        height: auto;
    }
    #tabs ul.tabs li {
        float: none;
        display: inline-block;
        border-radius: 5px;
    }
    #akcia1 {
        left: auto; 
        right: 0;
    }
    .pluso-counter {
        display: none;
    }
    form[action*="cart"] table.tablica1 th:nth-child(3), form[action*="cart"] table.tablica1 td:nth-child(3) {
        display: none;
    }
    table.tablica1 th, table.tablica1 td {
        font-size: 14px;
        padding: 5px;
    }
    table.tablica1 td br {
        display: none;
    }
    #tovar-nazvanie {
        padding: 0;
    }
    #tovar-nazvanie a {
        font-size: 14px;
    }
    table.tablica1 td {
        font-size: 14px;
    }
    input.btn {
        font-size: 16px;
    }
    input.btn-zakaz {
        font-size: 18px !important;
    }
    input.input, textarea#extra, table.tablica1[width="80%"] select {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 180px;
    }
    input.input-small-in-cart {
        width: 30px;
        height: 30px;
        text-align: center;
        font-size: 16px;
    }
    table.tablica1 #tovar-price {
        font-size: 18px;
    }
    input.input-small-in-cart, table.tablica1 #tovar-price {
        margin-top: 0;
    }    
    #home-news ol.home-news li {
        width: auto;
        display: block;
        margin-left: 0;
        margin-right: 0
    }
}
@media screen and (max-width: 860px) {
    #header.full {
        height: 246px;
    }
    #logo {
        top: 0;
    }
    #contacts-phone {
        padding: 5px 14px 8px 10px;
        width: auto;
    }
    #contacts-phone .comma {
        display: inline;
    }    
    #address0 {
        top: 76px;
    }
    #email-top {
        top: 123px;
    }
    #slogan {
        left: 0;
        right: auto;
        margin: 0;
        top: 165px;
    }
    #header.full #slogan {
        right: 290px;
        top: 179px;
    }
    #cart {
        left: auto;
        right: 0;
        top: 159px;
    }
    #header.full #cart {
        top: 156px;
    }
    #content-home, #content-text-page {
        padding-right: 0
    }
}
@media screen and (max-width: 768px) {
    #menu ul, #search {
        display: none;
    }
    .mwrap {
        display: block;
    }
    #menu #wrap {
        padding-right: 0;
    }
    #menu {
        height: auto;
    }
    #menu .mwrap.active + ul {
        display: block;
        height: auto;
        padding-bottom: 50px;
        padding-top: 10px;
    }
    #menu ul li {
        display: block;
    }
    #menu ul li a, #menu ul li a:visited {
        font-size: 18px;
        line-height: 40px;
        border: none;
    }
    #menu .mwrap.active ~ #search {
        display: block;
        bottom: 11px;
        left: 0;
        margin: auto;
        right: 0;
        top: auto;
        width: 192px;
    }
    .scrollToTop {
        left: auto;
        right: 0;
        bottom: 0;
        height: auto;
    }
    #wrap-banners {
        padding-top: 25px;
    }
    #banners2small img {
        width: 49%;
        margin-bottom: 0;
    }
    #tovar-for-podsvetka, #tovar-podsvetka, #tovar-podsvetka:hover {
        height: auto;
        min-height: 0;
    }
    #small-opisanie, #tovar-podsvetka:before {
        display: none;
    }
    #tovar-nazvanie a {
        font-size: 14px;
    }
    #content-home ol.tovari li, #content-text-page ol.tovari li {
        width: 25%;
        margin-bottom: 15px;
    }
    #sideLeft {
        width: auto;
        float: none;
        margin-left: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        padding-right: 0;
    }
    #container {
        float: none;
        width: auto;
    }
    #content-home, #content-text-page {
        padding-left: 0;
        padding-bottom: 40px;
    }
    #header-podbor, #podbor, #header-catalog, #menu-left1, #brands {
        display: none;
    }
    .mcat, #header-brands {
        display: block;
        color: #fff;
        background: -webkit-linear-gradient(#39a839, #1f821f);
        background: -ms-linear-gradient(#39a839, #1f821f);
        background: -o-linear-gradient(#39a839, #1f821f);
        background: -webkit-gradient(linear, 0 0, 0 bottom, from(#39a839), to(#1f821f));
        background: -moz-linear-gradient(#39a839, #1f821f);
        background: linear-gradient(#39a839, #1f821f);
        border-radius: 5px;
        padding: 10px 15px;
        cursor: pointer;
        position: relative;
        text-transform: uppercase;
        font-size: 18px;
    }
    .mcat:after, #header-brands:after {
        content: '';
        position: absolute;
        right: 15px; top: 18px;
        width: 0; height: 0; 
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #fff;
    }
    .mcat.active:after, #header-brands.active:after {
        border-top: none;
        border-bottom: 10px solid #fff;
    }
    .mcat.active, #header-brands.active {
        border-radius: 5px 5px 0 0;
        background: -webkit-linear-gradient(#1f821f, #39a839);
        background: -ms-linear-gradient(#1f821f, #39a839);
        background: -o-linear-gradient(#1f821f, #39a839);
        background: -webkit-gradient(linear, 0 0, 0 bottom, from(#1f821f), to(#39a839));
        background: -moz-linear-gradient(#1f821f, #39a839);
        background: linear-gradient(#1f821f, #39a839);
    }
    .mcat.active + #menu-left1 {
        display: block;
    }
    #header-brands.active + #brands {
        display: block;
    }
    #menu-left1 ul li a, #menu-left1 ul li a:visited {
        padding-left: 15px;
    }
    #header-brands {
        margin-top: 15px;
    }
    #menu-left1, #brands {
        margin-bottom: 0;
    }
    #brands {
        border-radius: 0 0 5px 5px;
        -webkit-column-width: 125px; 
        -moz-column-width: 125px; 
        column-width: 125px;
    }
    #brands ul li a, #brands ul li a:visited {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        padding: 7px 13px 7px 20px;
        background-position: 7px center !important;
    }
    h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    h2.rekomend, h2.novinki {
        font-size: 21px;
        padding-left: 0;
        padding-right: 0;
    }
    h2 {
        font-size: 20px;
        line-height: 1.2;
        margin-top: 15px;
    }
    h3 {
        font-size: 18px;
    }
    #content-home > br:first-child {
        display: none;
    }
    body, #small-opisanie1 {
        font-size: 15px;
    }
    #cme_form {
        left: 0 !important;
        right: 0 !important;
        margin: auto;
    }
    #menu-left2 ul li a, #menu-left2 ul li a:visited {
        font-size: 13px;
        padding: 6px 20px 6px 25px;
    }
    #level4 {
        padding: 0;
    }
    #sort-kolvo {
        margin-top: 15px;
    }
    div.pagination + br, div.pagination + br + br, div.pagination + br + br + br, div.pagination + br + br + br + br {
        display: none;
    }
    #cepka a {
        display: inline-block;
    }
    #tovar-price-in-tovar {
        font-size: 21px;
        padding: 5px;
    }
    #brend {
        text-align: left;
    }
    #tabs ul.tabs li {
        padding: 8px 15px;
    }
    #boxes #dgaddcart {
        left: 0 !important;
        right: 0;
        margin: auto;
        max-width: 95%;
        box-sizing: border-box;
    }
    #tovar-kupit a.vkorzinu, #tovar-kupit a.close {
        display: inline-block;
        margin: 5px;
    }
    form[action*="cart"] + br, form[action*="cart"] + br + br {
        display: none;
    }
    form[action*="cart"] ~ h1 + br {
        display: none;
    }
    #middle {
        min-height: 0;
    }
    a.article1 {
        font-size: 18px;
        line-height: 1.2;
    }
    div.pagination a {
        display: inline-block;
        margin: 5px;
        padding: 3px 10px;
    }
    #menu-left2 ul li a, #menu-left2 ul li a:visited {
        padding-left: 33px;
    }
    div.box {
        word-wrap: break-word;
    }
}
@media screen and (max-width: 640px) {
    #header, #header.full {
        height: auto;
        text-align: center;
        padding-bottom: 10px;
    }
    #logo, #contacts-phone, #slogan, #email-top, #address0, #cart {
        position: static;
        display: inline-block;
        vertical-align: middle;
        text-align: left;
        margin: 7px;
    }
    #cart {
        padding-left: 0;
    }
    #work {
        line-height: 1.2;
        padding: 0;
    }
    #logo {
        width: auto;
        overflow: hidden;
    }
    #logo img {
        margin-right: -82px;
    }
    #slogan {
        display: none;
    }
    #content-home ol.tovari li, #content-text-page ol.tovari li {
        width: 50%;
    }
    *[align="justify"], *[style*="justify"] {
        text-align: left !important;
    }
    #level4 ul.menu-level4 li {
        width: 33%;
    }
    table.tablica1[width="80%"] {
        width: 100%;
    }
    #podpiska {
        box-sizing: border-box;
        max-width: 100%;
    }
    table.tablica1[width="70%"] {
        width: 100%;
    }
    table.tablica1[width="70%"] input:not(.btn), table.tablica1[width="70%"] textarea {
        box-sizing: border-box;
        width: 100% !important;
    }
}
@media screen and (max-width: 480px) {
    #banners2small img {
        width: auto;
        max-width: 100%;
        margin-bottom: 5px;
    } 
    #bottom {
        height: auto;
    }
    #copyright {
        float: none;
    }
    #knopki {
        float: none;
        text-align: left;
    }
    #level4 ul.menu-level4 li {
        width: 50%;
    }
    #kolvo-v-razdele, #sortirovka {
        float: none;
    }
    #sortirovka {
        margin-top: 5px;
        margin-bottom: 5px;
    }
    .sortirovka, #btn-podbor2 {
        display: inline-block;
        vertical-align: middle;
        margin: 0 5px 5px 0;
    }
    #sort-kolvo {
        padding-bottom: 0;
    }
    table td[width="350"], table td[width="350"] + td[width="40"] + td {
        display: block;
        width: auto;
    }
    table td[width="350"] + td[width="40"] {
        display: none;
    }
    #small-foto-tovar-in {
        display: inline-block;
    }
    a.question {
        display: inline-block;
        margin: 10px 0;
    }
    #tovar-price-in-tovar + br {
        display: none;
    }
    #korzina-ico {
        padding: 10px 10px 11px 40px;
        background-position: 7px 50%;
    }
    form[action*="cart"] table.tablica1, table.tablica1 #tovar-nazvanie {
        text-align: center !important;
    }
    form[action*="cart"] table.tablica1 th {
        display: none;
    }    
    form[action*="cart"] table.tablica1, form[action*="cart"] table.tablica1 tbody, form[action*="cart"] table.tablica1 tr {
        display: block;
    }
    form[action*="cart"] table.tablica1 tr {
        margin-bottom: 20px;
    }
    form[action*="cart"] table.tablica1 td {
        display: inline-block;
        vertical-align: middle;
        border: none;
        background: none;
    }
    form[action*="cart"] table.tablica1 td:nth-child(2) {
        display: block;
    }
    form[action*="cart"] table.tablica1 th[colspan="6"] {
        display: block;
        background: none;
        border: none;
    }
    form[action*="cart"] table.tablica1 th[colspan="6"] input.btn {
        margin: 5px;
    }    
    select.vip-spisok {
        width: 155px;
    }
    #img-article {
        width: 30%;
        height: auto;
        margin-right: 15px;
    }
    #small-text-article {
        padding: 0;
    }
    table.tablica1feedback {
        width: 100%;
    }
    table.tablica1feedback textarea {
        width: 100% !important;
    }
    table[width="100%"] td[width="60%"], table[width="100%"] td[width="60%"] + td[width="50"] + td {
        display: block;
        width: auto;
    }
    table[width="100%"] td[width="60%"] + td[width="50"] {
        display: none;
    }
}
@media screen and (max-width: 400px) {
    #phone, span.phone {
        font-size: 14px;
    }
}