@media screen and (max-device-width: 640px), screen and (max-width: 640px) {
    div.nbl {display: block; float: none;}
    div.nb {float: none;}
    .b-body-content{width: 100%; min-width: 480px;}

    .newsblock {overflow: hidden; display: block;}
    .newsblock li {display: inline-block; float: left;}
    .newsblock .link-hint, .newsblock .nextupdate {display: none;}
    .news-links {margin: 0; width: auto;}

    menu {font-size: 120%;}
    .footer menu li, #logo {display: block;}
    #news-twitter, .share-block {display: none;}
    .t {margin-top: 0; margin-right: 5px;}
    .footer {padding-left: 1em; padding-right: 1em;}
    .footer menu li{padding-left: 0;}
    .footer menu li{padding-right: 2em;}
    .footer #ya_share{position: relative;}
    .footer menu a{padding: 0 1em;}
    .footer menu a.active {background-color: #aaa;}

    .fb {position: relative; width: auto; text-align: center;}
    .feedback-widgets {position: relative;}
    .zsoftportal {position: absolute; left: 260px; top: 0;}
    .softportal {margin: 1em;}

    #reqs, #agreement {float: none; width: auto;}

    #vk_groups{margin-left: auto; margin-right: auto;}
    .give-feedback {display: none;}

    #feedback .social{text-align: center;}
}
