#mobile-menu-button,
#mobile-search-button {
    height: 20px;
    position: absolute;
    left: 0;
    top: 12px;
    cursor: pointer;
    background: transparent url('/images/ico-mobile.png') -1px -2px no-repeat;
    line-height: 20px;
    font-size: 13px;
    color: #000;
    font-weight: bold;
    padding-left: 30px;
    text-decoration: none;
}

#mobile-search-button {
    top: 38px;
    background-position: 0 -69px;
}

#mobile-menu {
    display: none;
    position: fixed;
    bottom: -100px;
    right: 0;
    top: -100px;
    left: 0;
    overflow: auto;
    overflow-y: scroll;
    z-index: 9999;
    min-height: 100%;
    background: url('/images/mobile-menu-overlay.png');
}

#mobile-menu ul {
    display: block;
    width: 60%;
    background: #000;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 10%;
    margin: 100px 0;
    z-index: 10000;
}

#mobile-menu li {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    height: auto;
}

#mobile-menu ul span {
    display: none;
}

#mobile-menu a {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
}

#mobile-menu-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: transparent url('/images/ico-mobile.png') 0 -48px no-repeat;
    z-index: 10001;
}

.mobile-search-container {
    position: absolute;
    left: 0;
    top: -100px;
    width: 100%;
    z-index: 1;
}

.animated{
    -webkit-animation-fill-mode:both;
    -moz-animation-fill-mode:both;
    -ms-animation-fill-mode:both;
    -o-animation-fill-mode:both;
    animation-fill-mode:both;
    -webkit-animation-duration:1s;
    -moz-animation-duration:1s;
    -ms-animation-duration:1s;
    -o-animation-duration:1s;
    animation-duration:1s;
}


@-webkit-keyframes slideInLeft {
    from {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }

    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }

    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.slideInLeft {
    -webkit-animation-name: slideInLeft;
    animation-name: slideInLeft;
}

@-webkit-keyframes fadeOutLeft {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

.fadeOutLeft {
    -webkit-animation-name: fadeOutLeft;
    animation-name: fadeOutLeft;
}

.on-mobile {
    display: none;
}

@media all and (min-width: 1280px) {

}

@media all and (max-width: 1280px) {

}

@media all and (max-width: 1100px) {
    header .phone {
        display: block;
        left: 300px;
    }
    header .main {
        display: none;
    }
    header .mail {
        right: 0;
        left: auto;
        display: block;
    }
    body header .top .slogan {display: none}
    footer ul.social {top: 69px;}
}

@media all and (max-width: 860px) {
    #line form {
        display: block;
    }
    #main_catalog {
        display: block;
    }
    #banner {
        display: block;
    }
    .banner_line .goods {
        float: right;
    }
    #shop_goods .sorting {
        display: none
    }
}

@media all and (max-width: 720px) {
    #line form {
        display: none;
    }
    header .mail {
        display: none;
    }
    #main_catalog {
        display: none;
    }
    #banner {
        display: none;
    }
    body .banner_line {display: none}
    #shopping_cart_table .img {
        display: table-cell;
    }
    /* main page */
    body .text-main {margin-left: 0;}
    body .goods_hits, body .goods_sale {margin-left: 0;}
}

@media all and (max-width: 640px) {
    /* general */
    body .container .container {margin: 0 10px;}
    body #content .left_col {display: none;}
    body .has_left_col main {margin-left: 0;}
    #shop_goods .sorting {display: none}
    body form.forms .item .title, body form.forms .item .input,  body form.forms .item .textarea, body form.forms .item .hint, body form.forms .item .hinterror {width: 90%}
    body #shop_goods, body #shop_goods div.nav {margin-left: 0}

    header .logo {
        top: -26px;
    }
    header .city {
        top: 40px;
    }
    footer nav li:first-child {
        display: inline;
    }
    #cart {
        float: right;
        margin: 0;
    }
    #shopping_cart_table td, #shopping_cart_table th {
        word-break: normal;
    }
    .goods_hits > a, .goods_sale > a {
        display: inline;
    }
    body #shop_goods .filters {float: none; margin-bottom: 30px; left: 50%; margin-left: -115px;}
    footer nav {
        display: block;
    }
    footer nav li:first-child {
        display: none;
    }
    footer {height: 210px; background: url(/images/bg-grass.jpg) 0 170px repeat-x;}
    footer ul.social {top: 135px; left: 16px; margin-left: -2px;}
    footer .unisiter {bottom: -13px;}

    /* goods card */
    body #shop_goods .buttons, body #shop_goods .features {float: none; width: auto}
}

@media all and (max-width: 480px) {
    /* general */
    body #shopping_cart_table .img {display: none}
    body .on-mobile {display: block}
    /* header */
    body header .logo {top: 0; left:50%; margin-left: -70px; width: 140px; height: 70px; background-size: contain}
    body header div.search {margin: 0; position: absolute; left: 30%; top: 60px; width: 60%;}
    body header form.search input[type=submit] {top: 0;}
    body header #search_hints {top: 87px; left: 0; width: 100%;}

    header .phone {
        display: none;
    }
    header .top li:first-child {
        display: inline;
    }
    body #cart {position: relative; float: none; margin: 0 auto; color: #333; background-position-y: -855px; height: 65px}
    body #cart > div {padding-bottom: 25px;}
    #shopping_cart_table td, #shopping_cart_table th {
        word-break: break-all;
    }
    body #line .cat_title {width: 100%;}
    footer nav {
        display: none;
    }
    /* main page */
    body .goods_hits > a, body .goods_sale > a {display: none}
    body #line {margin-bottom: 80px}
    /* логотип платформы  */
    body footer .unisiter {display: block; left: auto; color: transparent; font-size: 1px; width: 20px; height: 20px; overflow: hidden;}
    body footer .unisiter a {width: 0;
    height: 20px;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;}
    body .goods_hits, body .goods_sale {text-align: center; height: 650px;}
    body .goods {float: none; margin: 0 auto; margin-bottom: 20px;}
    body #shop_cats, body ul.dots li {float: none; margin: 0 auto; margin-bottom: 20px;}

    /*goods viewed*/
    main .goods_viewed .item {margin: 0 10px 20px 0;}
    main .goods_viewed .item:not(:first-of-type) {margin-left: 0;}
}

@media all and (max-width: 352px) {
    header .top li:first-child {display: none;}
    #cart {margin: 20px 0 30px 0;}
    #line .cat_title {width: 100%;}
    .main .banner_line {height: auto;}
    .main .goods_hits h4, .main .goods_sale h4 {display: none;}
    .main .goods_hits .goods span.info {display: block;}
    .main .goods_hits, .main .goods_sale {height: auto;}

    .main .goods {width: auto; padding: 10px; height: 140px;}
    .main .goods a {width: auto}
    .main .goods .buy {display: none}
    .main .goods img {display: block; width: 100px; height: 100px; margin: 0; float: left;}
    .main .goods span.info {line-height: 25px; top: -1px}
    .main .goods span.name {display: block; margin-left: 110px; height: 60px; overflow: hidden; line-height: 15px;}
    .main .goods .price {font-size: 18px; position: absolute; right: 37px; bottom: 60px;}
    .main .goods .buttons input.buy {width: 83px;}
}