.formobile {
  display: none;
}
.nomobile {
  display: block;
}
@media (max-width: 1080px) {
  div {
    max-width: 100%;
  }
  #header-content {
    width: 100%;
  }
  .col-sm-9 {
    width: 100%;
  }
  #content {
    width: 100%;
  }
  #news {
    display: flex;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  body .pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 10px 0 0 0;
    margin: 40px auto 0 auto;
    width: 100%;
  }
  body .pager strong {
    margin-right: 240px;
  }
  body .pager ul li.previous {
    margin-left: 48px;
  }
  body .pager ul li.next {
    margin-left: 175px;
  }
  #news article {
    margin: 0 auto;
  }
  #news-more {
    width: 100%;
  }
  #news-submit {
    position: relative;
    margin-left: 0;
  }
  .board-cat-2016-left {
    width: 100%;
    padding-bottom: 10px;
  }
  #footer {
    width: 100%;
  }
  #page {
    width: 98%;
    margin: 0 auto;
  }
  .sidebar-b {
    margin-left: auto;
    margin-right: auto;
  }
  .category #post-create-link {
    margin-bottom: 10px;
  }
  #search-2016 {
    display: flex;
  }
  .main-header-adapt {
    display: flex;
  }
  #nav-portal-2016 li {
    font-size: 16px;
  }
  #logo-2106 {
    margin-left: 5px !important;
  }
  .header-login-block {
    display: flex;
  }
  #news-category-c {
    display: flex;
    justify-content: flex-start;
    width: 96%;
  }
  .nav-portal-sub-news {
    width: 100% !important;
    margin: 15px 0 0 0 !important;
  }
  .rek-img-adaptive {
    width: 100%;
  }
  #map {
    margin: 20px 0 !important;
    width: 100% !important;
  }
  .header-login-block #header-2016-nav {
    margin-top: 10px !important;
    width: 100%;
  }
  .header-login-block .col-sm-4 {
    margin-top: 10px !important;
    width: 100%;
  }
  .category #sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .row {
    margin: 0;
  }
  #nav-category {
    width: 100%;
  }
  .status-link {
    position: relative;
    margin: 0 auto;
    text-align: center;
    margin-top: 10px;
    margin-left: 0;
  }
  .category-responsive-b,
  .filter {
    width: 100%;
  }
  .grid-view {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
  }
  .grid-view .view .details h6 {
    width: 100%;
  }
  .list-view {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
  }
  .grid-view .view .details {
    width: 100%;
  }
  .list-view .details a {
    word-break: break-all;
  }
  .pull-right a {
    display: block;
    position: relative;
  }
  #logout-link {
    margin-top: 18px;
    margin-left: 26px;
  }
  .grid-view.details a {
    word-break: break-all;
  }
  #infinite-scroll {
    position: relative;
    margin-left: 100px;
    width: 240px;
    margin-bottom: 15px;
    margin-left: 0;
    text-align: center;
  }
  #yw0 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  #home-news-pop {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  #main {
    width: 100%;
  }
  #rek-paper-1,
  #rek-paper-2,
  #rek-paper-3,
  #rek-paper-4 {
    width: 50px !important;
    height: 50px !important;
    margin-top: 117px !important;
  }
  #rek-link-1 {
    margin-left: 0 !important;
  }
  #rek-link-2 {
    margin-left: 0 !important;
  }
  #rek-link-3 {
    margin-left: 0 !important;
  }
  #rek-link-4 {
    margin-left: 0 !important;
  }
  #contact-form {
    position: relative !important;
    margin-top: 50px !important;
  }
  #rek-mail {
    display: none !important;
  }
  #contact-form {
    display: none;
  }
  .rek-img-mail {
    display: none;
  }
  #col-news-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #gen-form {
    width: 100%;
  }
  #gen-form .clearfix textarea {
    width: 100%;
  }
  #gen-form .clearfix .promo-lenta {
    display: none;
  }
  #gen-form .checkbox input {
    margin-top: 22px;
  }
  #gen-form .checkbox #Gen_disableComments {
    margin-top: 30px;
  }
  #nav-portal-sub {
    width: 100%;
  }
  #news-content {
    width: 100% !important;
  }
  #news-pop {
    margin-top: 20px;
  }
  #promo-grid-view .promo-lenta {
    display: none;
  }
  #promo-grid-view .date {
    display: none;
  }
  #post-form-submit {
    background-repeat: no-repeat;
    background-position: center;
    font-size: 12px;
  }
  #gen-form #promo-box input {
    margin-top: 38px;
  }
  .post-form .checkbox input {
    position: relative;
  }
  #portal-post-nav {
    height: auto;
    margin-top: 20px;
  }
  #col-news-right {
    margin-left: 0;
    width: 100%;
  }
  .main-header-adapt {
    margin-top: 36px !important;
    min-height: 65px;
    background: #f8ef54;
    height: auto !important;
    align-items: center;
  }
  #header-2016 {
    background: none;
  }
  .header-donate-adaptive a {
    left: 4px !important;
  }
  .search-wrap-adapt {
    display: flex;
    flex-direction: column;
  }
  .adapt-wrap {
    width: 100% !important;
    margin: 0 auto !important;
  }
  .adapt-wrap {
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
  }
  #yw0 {
    justify-content: flex-start;
  }
  .board-cat-2016,
  .board-cat-2016-right,
  .board-sub-cat-2016 {
    width: 211px;
  }
  .board-cat-2016-right {
    width: 100%;
  }
  .board-cat-2016-right a {
    display: flex;
    justify-content: center;
  }
  .board-cat-2016-right a img {
    width: auto !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  #vk_groups {
    width: 350px !important;
  }
}

@media (max-width: 660px) {
  .nomobile {
    display: none;
  }
  .formobile {
    display: block;
  }
  #vk_groups {
    width: 100% !important;
  }
  #vk_groups iframe {
    width: 100% !important;
  }
  .status-link {
    margin-top: 0;
  }
  body .pager strong {
    margin-right: 240px;
  }
  body .pager ul li.next {
    margin-left: 102px;
  }
  body .pager ul li.previous {
    margin-left: -10px;
  }
  body .pager {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    position: relative;
  }
  #auto-portal-row-1 {
    width: 80%;
    border: none;
  }
  #auto-portal-row-2 {
    border: none;
  }
  .header-login-block a:nth-child(7) {
    display: block;
  }
  .header-login-block a:nth-child(8) {
    display: block;
  }
  #sidebar {
    width: 100% !important;
  }
  #user-menu {
    display: flex;
    flex-direction: column;
  }
  #user-menu li {
    width: 75%;
  }
  .fileinput-button {
    width: 100%;
    margin: 0 auto;
  }
  #posts-menu {
    margin-left: 10px;
  }
  .board-cat-2016,
  .board-cat-2016-right,
  .board-sub-cat-2016 {
    width: 95%;
  }
  #news .n-date {
    margin-bottom: 10px;
    text-align: center;
  }
  #news article {
    width: 98%;
    margin-bottom: 20px;
  }
  #nav-subcategory {
    display: flex;
    flex-direction: column;
  }
  #nav-category li {
    width: 50%;
  }
  #news article h6,
  #news article p {
    text-align: center;
  }
  #upped-grid-view .view {
    flex-direction: column;
    display: flex;
    /* margin-bottom: 62px; */
    height: auto;
  }
  #upped-grid-view .view img {
    width: 170px !important;
    display: block;
    margin: 0 auto;
  }
  .grid-view .view .thumb {
    width: 100%;
    padding: 0;
  }
  #grid-view .view {
    flex-direction: column;
    display: flex;
    /* margin-bottom: 62px; */
    height: auto;
  }
  #grid-view .view img {
    width: 180px !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  #news article a {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .grid-view .view .details {
    padding-left: 10px;
  }
  #news article img {
    width: 200px !important;
    height: auto;
  }
  .main-header-adapt {
    display: flex;
    flex-direction: column;
  }
  #logo-2106 {
    background-position: center top;
    margin: 15px auto !important;
    text-align: center;
  }
  #nav-portal-2016 {
    margin-left: 15px;
  }
  #nav-portal-2016 li {
    margin-left: 5px;
    margin-right: 16px;
  }
  #search-2016 {
    flex-direction: column;
  }
  #btn-post-create-2016 {
    display: block;
    margin: 15px auto 0;
  }
  #news-block-2 {
    display: flex;
    flex-direction: column;
  }
  .news-block {
    margin: 0 auto !important;
  }
  #news-sidebar {
    margin-left: 0;
    width: 100%;
  }
  #gen-form #promo-box input {
    margin-top: 38px;
  }
  #gen-form .radio input {
    margin-right: auto;
  }
  .profile-post-btn-adapt {
    margin-left: 25px !important;
  }
  .portal-post-more {
    margin: 0 auto !important;
  }
  #portal-post-info {
    left: 20px;
    max-width: 92%;
    padding-left: 0;
    padding-right: 0;
  }
  #auto-portal-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #portal-post-main img {
    max-width: 100%;
  }
  #portal-post-main {
    margin-top: 100px;
    max-width: 100%;
  }
  #portal-post-more {
    margin-top: 30px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }
  #auto-portal-row-2 {
    margin-top: 20px;
  }
  #auto-portal-row-3 {
    width: 100%;
    margin-top: 20px;
  }
  .form-body .pull-right {
    margin: 25px 0;
  }
  .post-contacts {
    width: 100% !important;
  }
  #category-select .clearfix {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
  }
  #category-select .clearfix ul {
    width: 100%;
  }
  #equipment-form #Promo_active {
    margin-top: 35px;
    width: 100%;
  }
  .post-form input {
    max-width: 100%;
  }
  .post-form textarea {
    max-width: 100%;
  }
  .post-form .thumb {
    display: none;
  }
  .promo-lenta {
    display: none;
  }
  #promo-box input {
    margin-top: 40px;
  }
  #promo-pay {
    margin-left: -15px !important;
  }
  #promo-pay .promo-method-radio {
    margin-right: auto;
  }
  #__okGroup0 {
    width: 100% !important;
  }
  .portal-col {
    display: flex;
    flex-direction: column;
    height: auto !important;
    margin-left: 0 !important;
  }
  .portal-col-wrap-adap {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .portal-col-wrap-adap .portal-col {
    width: 100% !important;
  }
  #home-news-pop #home-news-pop-inner {
    padding: 20px 22px 10px;
  }
  #btn-post-create-2016 {
    font-size: 12px;
  }
  body .pager ul li.previous {
    margin-left: 38px;
  }
  body .pager ul li.next {
    margin-left: 142px;
  }
}

@media (max-width: 420px) {
  body .pager strong {
    margin-top: 10px;
    align-self: flex-start;
    margin-left: 10px;
    margin-bottom: 8px;
  }
  #rek-paper-1 {
    margin-left: 90px !important;
  }
  #rek-paper-2 {
    margin-left: 140px !important;
  }
  #rek-paper-3 {
    margin-left: 200px !important;
  }
  #rek-paper-4 {
    margin-left: 255px !important;
  }
}

@media (max-width: 375px) {
  #header-2016-nav a {
    margin-right: 2px !important;
  }
  .board-cat-2016-left .clearfix {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
  }
  .board-cat-2016,
  .board-cat-2016-right,
  .board-sub-cat-2016 {
    width: 100%;
  }
  #vk_groups {
    width: 100%;
  }
  #btn-post-create-2016 {
    font-size: 11px;
  }
  #header-2016-login-link {
    font-size: 10px;
  }
}

@media (max-width: 325px) {
  body .pager strong {
    margin-left: 0;
  }
  #btn-post-create-2016 {
    font-size: 10px;
  }
  .grid-view .view .thumb {
    width: 82%;
  }
  #gen-form .checkbox #Gen_disableComments {
    margin-top: 40px;
  }
  .header-login-block #header-2016-nav {
    margin-left: 4px;
    padding: 0;
    width: 107%;
  }
}
