/********************************************************************************************/
/**************************************** RESPONSIVE ***************************************/
/******************************************************************************************/
/* Large desktop */
@media (max-width: 1229px) {
    img{ max-width:100%}
    *{ box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box;}
    a[href^=tel] { /* css */
      color:inherit;
      text-decoration: inherit;
      font-size:inherit;
      font-style:inherit;
      font-weight:inherit;
    }   


.obtb th {   /***************************************Задает размер заголовка категории объявлений****************************************/
font-size:18px;
}

.grpoz {
font-size:18px;
}


    .boxed-layout #page{
      width: 100%;
    }
    .wrapper{ width: 980px ;}           
    .content-wrapper{
      padding-top: 13px !important;
    }

/*** HEADER ***/

.site-logo.f-left > a {
    padding-top: 12px;
}

.header-wrapper ul.sub-menu.mega-sub-menu{
  width: 920px;
}

.header-wrapper .menu li a{
  padding:0 18px;
}

/*** FOOTER ***/

.footer-wrapper .col{
  margin-left: 31px;
}
  
#footer-bottom .footer-columns .col {
    margin-left: 57px;
}


.footer4 {
margin-left:0 !important;
}



/*** SLIDER ***/

.slider-section{
  width: 58%;
}

.slider-section .bx-viewport{
  height: 290px !important;
}

.besides-block {
width:42%;
height:42%;
}





.besides-block {   /********************************************* Растягивает правые блоки слайдера********/
max-width:42%;
}
.beside-thumb {   /*********************************************** Задает размер картинки в правых блоках****************/
width: 180px !important;
height: 135px !important;
}
.beside-caption {      /*********************************************** Задает область заголовков правого блока*********************/
height: 120px !important;
width:175px !important;
}

.slider-section .slider-desc {   /************************************************ Задает нижнюю строку со ссылкой перехода******************/
    background: rgb(0, 0, 0);
    background: transparent;
    background: rgba(0, 0, 0, 0.5);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000)";
    zoom: 1;
    bottom: 0;
    color: #ffffff;
    left: 0;
    padding-bottom: 80px;
    position: absolute;
    width: 100%;
}

.slider-section .bx-controls-direction a {   /************************************************************* Задает положение кнопок переключения слайдов**********/
  top:20px;
}




.besides-block .beside-post{
  margin:0 0 15px 3%;
}

/*** HOME ***/

.home-featured-block-single-col{
  width: 44.6%;
}

.featured-post-block-coltype {
    min-height: 150px;
}

.popular-widget-area li {
    margin: 0 0 0 2%;
    width: 23%;
}

.profitmag_widget_recent_entries .widget-image,
.footer-columns .profitmag_widget_popular_entries .widget-image,
.sidebar .profitmag_widget_popular_entries .widget-image {
  float: none;
}

.footer-columns .profitmag_widget_popular_entries li .post-desc,
.sidebar .profitmag_widget_popular_entries li .post-desc,
.footer-columns .profitmag_widget_recent_entries li .post-desc,
.sidebar .profitmag_widget_recent_entries li .post-desc {
  margin-top: 0;
  display: block;
}

.profitmag_widget_popular_entries li .post-desc a,
.profitmag_widget_recent_entries li .post-desc a {
  width: 100%;
}

#social-post-shares + .post-content {
  width: 85%;
}

body.both_sidebar #social-post-shares + .post-content {
  width: 80%;
}

}

/******************************************************************************************/

@media screen and (min-width:993px) and (max-width:1229px) {
  body.both_sidebar #social-post-shares + .post-content {
    width: 75%;
  }
  
  .featured-post{    /*********************************************Добавил элемент для выравнивания в 1 линию постов на главной*/
  margin: 0 5px 16px 0; 
}
}

@media screen and (min-width:767px) and (max-width:1229px) {
body.both_sidebar .secondary-sidebar .widget-area.sidebar .profitmag-like-count li {
  width: 48%;
}
.header-wrapper .menu li a{  /******************************** добавил класс .header-wrapper .menu li a */
	color:#ffffff;
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 48px;
	padding: 0 12px;
	position: relative;
	text-transform: uppercase;
}

.gmaps {
width:100%;
height:550px !important;
}

#footer-top .footer3 {
float:right;
margin:0 40% 0 0;
padding:0 0 0 0;
}

}

@media screen and (max-width:992px){
  .wrapper{ 
    padding:0 5px;
    width: 740px ;
  }

/*** HEADER ***/

.slicknav_menu, .responsive-slick-menu{
  display: block;
}

.header-wrapper .desktop-menu .menu{
  display: none;
}

.responsive-slick-menu{
  color:#ffffff;
}

.slicknav_btn:before {
    background: none repeat scroll 0 0 #ffffff;
    box-shadow: 0 6px 0 0 #ffffff, 0 12px 0 0 #ffffff;
    content: "";
    height: 3px;
    left: 3px;
    position: absolute;
    top: 6px;
    width: 22px;
}

.slicknav_btn {
    background: #000000;
    background-position: center center;
    border: 1px solid #ffffff;
    border-radius: 4px;
    color: transparent;
    cursor: pointer;
    display: block;
    float: left;
    font: 0px/0 a;
    height: 28px;
    left: 68px;
    position: absolute;
    text-decoration: none;
    text-shadow: none;
    top:10px;
    width: 30px;
}

.slicknav_menu li{
  border-top: 1px solid #383838;
    display: block;
    padding: 0 12px;
    width: 100%;
}

.slicknav_menu li a{
  color:#ffffff;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  line-height:40px;
  text-transform: uppercase;
  display: block;
}

.slicknav_menu .slicknav_arrow {
  position:absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  z-index: 99;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.slicknav_menu li:not(.menu-item-has-children) .slicknav_arrow {
  display: none;
}

.slicknav_menu .slicknav_arrow:hover,
.slicknav_menu .slicknav_arrow:focus {
  color: #fff;
}

.header-wrapper .main-navigation .slicknav_menu ul.sub-menu {
    background: #000000;
    left: 0;
    margin-left: 12px;
    position: relative;
    top: 0;
    width: 100%;
}

.header-wrapper .main-navigation .slicknav_menu ul.mega-sub-menu {
  display: none !important;
}

.mega-sub-menu .pm-mega-menu-cat-wrap{
  position: relative;
  height: auto !important;
  width: 100%;
}

.mega-sub-menu .pm-mega-menu-cat-wrap a{
  padding: 0 10px;
}

.mega-sub-menu .pm-mega-menu-con-wrap{
  display: none;
}

.header-wrapper .slicknav_item.slicknav_row{
  width: 100%;
}

.header-wrapper .menu-right .slicknav_btn{
  left: auto;
  right: 10px;
}
    
/*** FOOTER ***/

.footer-wrapper{
  padding: 30px 0 0;
}

.footer-columns.full-col .col,
.footer-columns.half-col .col,
.footer-columns.four-cols .col {
  width: 50%;
}

.footer-columns .col:nth-child(2n+1) {
  clear: both;
}

.profitmag_widget_recent_entries .widget-image,
.footer-columns .profitmag_widget_popular_entries .widget-image,
.sidebar .profitmag_widget_popular_entries .widget-image {
  display: block;
  float: left;
  max-width: 15%;
  margin-right: 10px;
}

.profitmag_widget_popular_entries li .post-desc a,
.profitmag_widget_recent_entries li .post-desc a {
  width: 65%
}

#footer-top .footer1.col {
/*    margin-bottom: 25px;
    margin-left: 0;
    text-align: center;
    width: 100%;*/
}

#footer-top .footer2.col{
  /*margin-left: 0;*/
}

.footer-wrapper .col {
    /*margin-left: 32px;*/
}

#footer-bottom .clear{
  display: block;
}

#footer-bottom .footer-columns .col{
  float: left;
  margin-left:0;
  width: 50%;
}

.footer-wrapper .col li a{
  line-height: 24px;
}

/*** SLIDER ***/

.slider-section .bx-viewport{
  height: 229px !important;
}

/*** HOME ***/

.featured-post{
  margin: 0 3% 16px 0; /** Заменил margin: 0 0 16px 3%;*/
  width: 30%;
}

#social-post-shares + .post-content {
  width: 80%;
}

.beside-thumb {
height:42%;
width:42%;
}

.worktb th {   /*********************************************Задает размер заголовка категории работы***************************************/
font-size:18px;
}

.grpoz {
font-size:18px;
}

.obtb th {   /***************************************Задает размер заголовка категории объявлений****************************************/
font-size:18px;
}

}

/******************************************************************************************/

@media (min-width: 480px) and (max-width: 992px) {
  .sidebar .profitmag_widget_popular_entries .post-date,
  .sidebar .profitmag_widget_recent_entries .post-date {
    clear: both;
  }
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 992px) {

  .both_sidebar .single-thumb, .both_sidebar .related-post{
    width: 100%;
  }

  .both_sidebar .related-post{
    margin: 20px 0;
  }

  #social-post-shares {
    width: 100%;
  }

  #social-post-shares h3 {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e5e5;
  }




.grpoz {
font-size:14px;
}

.obtb th {   /***************************************Задает размер заголовка категории объявлений****************************************/
font-size:14px;
}




#footer-top .footer3 {
float:right;
margin:0 0 0 0;
padding:0 0 0 0;
}

#footer-top .footer2 {
float:left;
margin:0 0 0 0;
padding:0 0 0 0;
}

#footer-top .footer1 {
float:left;
margin:0 0 0 0;
padding:0 0 0 0;
}

#footer-top .footer4 {
float:left;
margin:0 0 0 0;
padding:0 4% 0 0;
}

  #social-post-shares ul li {
    display: inline-block;
    border: none;
    margin: 0 5px 15px;
  }

  #social-post-shares + .post-content {
    width: 100%;
  }
  body.both_sidebar  #social-post-shares + .post-content {
    width: 100%;
  }

.besides-block {   /********************************************* Растягивает правые блоки слайдера********/
max-width:42%;
}
.beside-thumb {   /*********************************************** Задает размер картинки в правых блоках****************/
width: 144px !important;
height: 110px !important;
}
.beside-caption {      /*********************************************** Задает область заголовков правого блока*********************/
height: 97px !important;
}
.slider-section .bx-viewport{ /**************************************************** Задает высоту слайдера************/
  height: 240px !important;
}

.slider-section .slider-desc {   /************************************************ Задает нижнюю строку со ссылкой перехода******************/
    background: rgb(0, 0, 0);
    background: transparent;
    background: rgba(0, 0, 0, 0.5);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000)";
    zoom: 1;
    bottom: 0;
    color: #ffffff;
    left: 0;
    padding-bottom: 100px;
    position: absolute;
    width: 100%;
}

.slider-section .bx-controls-direction a {   /************************************************************* Задает положение кнопок переключения слайдов**********/
  top:40px;
}



}


/******************************************************************************************/

/* Landscape phone to portrait tablet */
@media screen and (max-width:767px){

.fancybox-inner {overflow: scroll !important;} /********************Добавляет полосу прокрутки к таблице**************************/
.table-responsive {overflow: scroll;} /********************Добавляет полосу прокрутки к таблице**************************/
.divwrapper {overflow: scroll;} /********************Добавляет полосу прокрутки к таблице**************************/
.divtable {width:90% !important;}

.wrapper{ width: 98% ;}

/*** HEADER ***/

.site-logo.f-left {
    margin-bottom: 0px;
    text-align: center;
    width: 100%;
}

.baner-top.f-left {
    margin-bottom: 2px;
    text-align: center;
    width: 100%;
}


.header-ads.f-right {
    text-align:center;
    width: 100%;
}

/*** SIDEBAR ***/



.slider-section .slider-desc {   /************************************************ Задает нижнюю строку со ссылкой перехода******************/
    background: rgb(0, 0, 0);
    background: transparent;
    background: rgba(0, 0, 0, 0.5);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000)";
    zoom: 1;
    bottom: 0;
    color: #ffffff;
    left: 0;
    padding-bottom: 20px !important;
    position: absolute;
    width: 100%;
   display: inline-block !important;
}

.besides-block {   /********************************************* Растягивает правые блоки слайдера********/
display:none;
}

#primary, .right_sidebar #primary, .left_sidebar #primary, .no_sidebar #primary, .both_sidebar #primary-wrap, .both_sidebar #primary-wrap #primary{
  margin:0 0 20px;
  width: 100%;
}

.secondary-sidebar, .right_sidebar .secondary-sidebar, .left_sidebar .secondary-sidebar, .no_sidebar .secondary-sidebar, .both_sidebar #primary-wrap .secondary-sidebar, .both_sidebar .secondary-sidebar{
      clear: both;
    float: none;
    margin: 0 auto;
    width: 304px;
}

/*** FOOTER ***/

.footer-wrapper .col,
#footer-bottom .footer-columns .col,
.footer-columns.full-col .col,
.footer-columns.half-col .col,
.footer-columns.four-cols .col {
    margin: 0 0 10px;
    text-align: center;
    width: 100%;
}

.profitmag_widget_popular_entries,
.profitmag_widget_recent_entries {
  text-align: left;
}

.profitmag_widget_popular_entries li .post-desc a,
.profitmag_widget_recent_entries li .post-desc a {
  width: 100%
}

.sidebar .profitmag_widget_popular_entries li .post-desc a,
.sidebar .profitmag_widget_recent_entries li .post-desc a {
  width: 60%
}

/*** SLIDER ***/

.slider-section, .besides-block{
  width: 100%;
}

.slider-section .bx-viewport{
  height: auto !important;
}

.besides-block .beside-post {
    margin: 5px 0 15px;
    width: 25%;
	height:25%;
}




#footer-top .footer3 {
float:right;
margin:0 4% 0 0;
padding:0;
width: 47%;
}

#footer-top .footer2 {
float:right;
margin:0 4% 0 0;
padding:0 !important;
width: 47%;
}

#footer-top .footer1 {
float:left;
margin:0;
padding:0;
width: 47%;
}

#footer-top .footer4 {
float:left;
margin:0;
padding:0;
width: 47%;
}

.okru {
float:left !important;
}


}


/******************************************************************************************/


/* Landscape phones and down */
@media screen and (max-width:639px){







.grpoz {
font-size:12px;
}

.obtb th {   /***************************************Задает размер заголовка категории объявлений****************************************/
font-size:12px;
}




/*** HEADER ***/

.header-latest-posts{
  display: none;
}


.oneline {
padding:0;
margin: 0 0 0 25% !important;
max-width:40%;
vertical-align: top;
}

.abt {
vertical-align: top;
}



.right-header.f-right {
    text-align: center;
    width: 100%;
}

/*** SLIDER ***/

.slider-section .slider-desc, .beside-caption{
  display: none;
}

.slider-section .bx-viewport{ /**************************************************** Задает высоту слайдера************/
  height: 300px !important;
}

.slider-section .bx-wrapper img {
  height: 300px !important;
}

.slider-section .slider-desc {   /************************************************ Задает нижнюю строку со ссылкой перехода******************/
    background: rgb(0, 0, 0);
    background: transparent;
    background: rgba(0, 0, 0, 0.5);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000)";
    zoom: 1;
    bottom: 0;
    color: #ffffff;
    left: 0;
    padding-bottom: 20px !important;
    position: absolute;
    width: 100%;
   display: inline-block !important;
}

.slider-section .bx-controls-direction a {   /************************************************************* Задает положение кнопок переключения слайдов**********/
  top:-10px;
}



.besides-block {   /********************************************* Растягивает правые блоки слайдера********/
display:none;
}



.slider-section .bx-controls-direction{
  bottom: 12px;
}

.slider-section .bx-wrapper img {
 height: 220px;
}

/*** HOME ***/

.featured-post{
  margin: 0 0 16px 2%;
  width: 48%;
}

.featured-post + .clear{
  display: none;
}

.featured-post-three{
  width: 23%;
}

.single-col{
  margin: 0;
}

.home-featured-block-single-col {
  float: none;
    width: 96%;
    margin: 0 auto;
}

.home-featured-block.popular-widget-area{
  padding: 0 7px;
}

.home-featured-block.popular-widget-area ul{
  margin: 0;
}

.popular-widget-area li {
    margin: 0 0 0 2%;
    width: 47%;
}

.gallery-block{
  padding:16px 12px 26px;
}

/*** INNER ***/

.single-thumb, .related-post{
  width: 100%;
}

.related-post{
  margin: 20px 0;
}

.comment-form textarea{
  width: 100%;
}

article.post .entry-content, article.post .post-thumb{
  width: 100%;
}

article.post .entry-content{
  padding: 0;
}

.post-thumb {
  text-align: center;
}

.post-thumb img {
        width: auto;
}

}


/******************************************************************************************/


@media screen and (max-width:560px) {
  #social-post-shares {
    width: 100%;
  }




.besides-block {   /********************************************* Растягивает правые блоки слайдера********/
display:none;
}


  #social-post-shares h3 {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e5e5;
  }

  #social-post-shares ul li {
    display: inline-block;
    border: none;
    margin: 0 5px 15px;
  }

  #social-post-shares + .post-content {
    width: 100%;
  }
body.both_sidebar  #social-post-shares + .post-content {
    width: 100%;
  }
  .gmaps {
width:100%;
height:320px !important;
}
}

/* Landscape phones and down */
@media screen and (max-width:479px){

#to_top_scrollup {display:none !important;} /*****************Скрывает кнопку to top**************************************/
.wpcf7 input {width:50% !important; min-width:140px;}  /************Растягивает поля формы обратной связи в моб. версии.*******************/


/*** HOME ***/

.featured-post, .featured-excerpt-block .featured-post, .featured-post-main{
  float: none;
  margin: 0 auto 16px;
    width: 96%;
    
}


#footer-top .footer3 {
float:left;
margin:0 0 0 8%;
padding:0;
width: 95%;
}

#footer-top .footer2 {
float:left;
margin:0 0 0 8%;
padding:0 !important;
width: 95%;
}

#footer-top .footer1 {
float:left;
margin:0;
padding:0;
width: 95%;
}

#footer-top .footer4 {
float:left;
margin:0;
padding:0;
width: 95%;
}

.okru {
float:left !important;
}




.featured-post-three{
  margin: 0 2% 10px;
  width: 46%;
}

.featured-excerpt-block{
  padding: 0;
}

.post-main-thumb, .post-main-desc {
    float: none;
    padding: 0;
    width: 100%;
}

.featured-post-main{
  float: none;
  width: 96%;
}

/*** FOOTER ***/

.profitmag_widget_recent_entries .widget-image,
.footer-columns .profitmag_widget_popular_entries .widget-image,
.sidebar .profitmag_widget_popular_entries .widget-image {
  max-width: 30%
}

}

@media screen and (max-width:370px){

.tablered th {min-width:120px !important;}  /********Ширина таблички в справочной на моб. версии*****************/
.tablered td {min-width:150px !important;}  /********Ширина таблички в справочной на моб. версии*****************/
/**** .widget {margin: 0 0 17em;} /**********Сдвигает вниз E- от E-mail*******************/
.tml {padding-top: 15em;} /**********Сдвигает вниз E- от E-mail*******************/
.menutoplevel img{float:none;}

  .gmaps {
width:100%;
height:200px !important;
}

#ok_group_widget {
display:none;
}
#vk_groups {
display:none;
}
.slider-section {
display:none;
}
.textwidget {
width:85% !important;
height:85% !important;
}
input#s {
width:80% !important;
}
input#searchsubmit {
float:left;
padding:2px;
position:relative !important;
}
input#user_login1.input {
width:80% !important;
}
input#user_pass1.input {
width:80% !important;
}
.share_footer {
display: inline-block;
}
#kmvh1_title {
display:none;
}
}

.profitmag-facebook-like-box .fb_iframe_widget_fluid,
.profitmag-facebook-like-box iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow: auto;
}
