@media screen and (max-width: 1200px){
    .container{
        width: 94%;
        margin-left: 3%;
        margin-right: 3%;
    }
    
    #top-menu .item{
        width: 19.5%;
        margin: 0 .625% 0 0;
    }
    #top-menu .item:nth-child(5){
        margin-right: 0;
    }
    form.editor.user .fields-wrapper{
        margin-left: 150px;
    }
    
}


@media screen and (max-width: 1000px){
    #top-menu{
        font-size: .85em;
    }
    #top-menu .item{
        padding-top: 13px;
        height: 47px;
    }
    header .search{
        margin-right: 8px;
    }
    header .search input[type=text]{
        width: 220px;
    }
    header .print,
    header .registration,
    header .door{
        margin-left: 10px;
    }
}


@media screen and (max-width: 850px){
    header .search-panel .search{
        display: none;
    }
    header .frame{
        position: absolute;
        bottom: -73px;
        right: 0;
        border: none;
    }
    header .h-text{
        margin-top: 40px;
    }
    header .h-text .new-line{
        display: block;
    }
    #top-menu{
        height: auto;
        font-size: 1em;
        margin-top: -252px;
        transition: margin .3s ease;
    }
    #top-menu.show{
        margin-top: 0;
    }
    #top-menu .container{
        width: 100%;
        margin: 0;
    }
    #top-menu .item{
        width: 94%;
        padding: 15px 3%;
        margin: 0;
        border-radius: 0;
        text-align: left;
        height: 19px;
        box-shadow: none;
        background-image: none;
    }
    #top-menu .item:hover{
        height: 19px;
    }
    #top-menu .item.show{
        height: auto;
        background: #FF3068;
    }
    #top-menu .item.show .list{
        display: block;
        box-shadow: none;
    }
    #top-menu .item:hover .list{display: none;}
    #top-menu .item.show:hover .list{display: block;}
    #top-menu .item a{
        display: block;
    }
    #top-menu .new-line{
        display: inline;
    }
    #top-menu .curtain{
        display: block;
        height: 10px;
        position: relative;
        background: #00A7E0;
    }
    #top-menu .curtain .label{
        width: 80px;
        height: 22px;
        background: #00A7E0;
        border-radius: 0 0 10px 10px;
        text-align: center;
        margin: 0 auto;
        padding-top: 15px;
        position: relative;
        z-index: 500;
    }
    #top-menu .curtain .label .left-corner,
    #top-menu .curtain .label .right-corner{
        position: absolute;
        top: 10px;
        left: -7px;
        background: #00A7E0;
        width: 8px;
        height: 7px;
    }
    #top-menu .curtain .label .right-corner{
        left: 79px;
    }
    #top-menu .curtain .label .left-corner div,
    #top-menu .curtain .label .right-corner div{
        background: url('../images/bgdot.png') #fff 0 -1px;
        border-radius: 0 7px 0 0;
        width: 9px;
        height: 8px;
        margin-left: -2px;
    }
    #top-menu .curtain .label .right-corner div{
        border-radius: 7px 0 0 0;
        margin-left: 1px;
    }
    #top-menu .show-menu{
        display: inline-block;
        width: 28px;
        height: 16px;
        background: url('../images/sprites.png') 0 0;
    }
    #top-menu.show .show-menu{
        background-position: -29px 0;
    }
}


@media screen and (max-width: 720px){
    .user .fields-wrapper .column{
        width: 100%;
    }
    .user .fields-wrapper .column:first-child{
        margin-right: 0;
    }
}


@media screen and (max-width: 670px){
    #content{
        padding-bottom: 170px;
    }
    footer{
        height: 110px;
    }
    footer .copyrights,
    footer .social{
        float: none;
    }
    footer .social{
        margin-top: 10px;
    }
    footer .social a{
        margin: 0 10px 0 0;
    }
}


@media screen and (max-width: 600px){
    header .h-text *{
        display: none;
    }
    header .registration,
    header .exit,
    header .door{
        position: absolute;
        right: 0;
        bottom: 0;
        display: inline-block;
    }
    header .door{
        right: 36px;
    }
}


@media screen and (max-width: 550px){
    #content{
        padding-bottom: 188px;
    }
    footer{
        height: 128px;
    }
    footer .copyrights .new-line{
        display: block;
    }
}


@media screen and (max-width: 500px){
    form.editor.user .fields-wrapper{
        margin-left: 0;
        width: 100%;
    }
}


@media screen and (max-width: 400px){
    footer .copyrights .new-line{
        display: inline;
    }
    
    .profile .button .long{
        display: none;
    }
    .profile .button .short{
        display: inline;
    }
}


@media screen and (max-width: 380px){
    #content h2{
        font-size: 1.2em;
    }
    
    .password-wrapper,
    input[type=text],
    input[type=password]{
        width: 100%;
        box-sizing: border-box;
    }
}
