/*  Adaptive AmbientMedia  */
@media (min-width: 1020px){
    .single_item .article_img_wr{
        margin: 0 20px 0 0;
        width: 50%;
        float: left;
    }

}
@media screen and (max-width: 1260px){
    .wrap{
        width: 960px;
    }
    .fixed_panel .wrap{
        width: 100%;
        max-width: 1200px;
    }
    .header_right{
        margin-right: 8px;
    }
    .left{
        width: 630px;
    }
    #slide_desktop_menu{
        max-width: 100%;
    }
    .main_news:first-of-type .post_img{
        height: 200px;
    }
    .hblock h4, .mblock h4, .side_header{
        font-size: 18px;
        line-height: 20px;
    }
    .hblock h4 a, .mblock h4 a, .side_header a{
        font-size: 18px;
    }
    .s_text{
        width: 165px;
    }
    .custom1 .post_img{
        height: 126px;
    }
    .custom_video{
        width: 150px;
        height: 194px;
    }
    .custom_video .post_img{
        height: 100px;
    }
    .video_title{
        padding: 15px;
        font-size: 14px;
        line-height: 16px;
        max-height: 94px;
    }
    .custom_photo{
        width: 210px;
        height: 105px;
    }
    .custom_photo:first-of-type, .custom_photo:nth-of-type(4n){
        width: 105px;
    }
    .photo_title{
        font-size: 12px;
        padding: 10px;
        line-height: 14px;
    }
    .custom3 a, .afisha_title, .catalog li a{
        font-size: 14px;
    }
    .footer_nav li{
        margin: 0 20px 0 0;
    }
    .left_col{
        display: none;
    }
    .mid_col{
        float: none;
        margin-left: 0;
    }

  
    .adsbygoogle{
        width: 100% !important;
    }

    .adsbygoogle iframe{
        width: 100% !important;
    }

    .adsbygoogle ins{
        width: 100% !important;
    }

    .advframe2{
        width: 100% !important;
        display:block;
        height:270px;
        border:none;
        outline: none;
        margin:0 auto;
        position:relative;
        overflow: hidden !important;
    }

  

    #aswift_0_expand{
        width: 100% !important;
    }

    #aswift_0_anchor{
        width: 100% !important;
    }

    .directadvert_block_frame{
        width: 100% !important;
        display:block;
        height:270px;
        overflow-x:hidden !important;
        outline: none;
        border:none;
        margin:5px auto;
        padding:5px !important;
        box-sizing: border-box !important;
    }

    .leftsnowdrift{
        display:none;
    }

    .rightsnowdrift{
        display:none;
    }

    .leftcity{
        display:none;
    }

    .rightcity{
        display:none;
    }

    .newyear-main-link{
        width: 100%;
        height:30px;
        margin-top:30px;
    }

}
@media screen and (min-width: 1032px){
    .nav ul.main_nav{
        display: block !important;
    }
    .widead{
        float: right;
        width: 300px;
        margin: 0 0 5px 5px;
    }

    .adsbygoogle{
        width: 100% !important;
    }

    .adsbygoogle iframe{
        width: 100% !important;
    }

    .adsbygoogle ins{
        width: 100% !important;
    }

    .advframe2{
        width: 100% !important;
        display:block;
        height: 230px;
        overflow: hidden !important;
        border:none;
        outline: none;
        margin:0 auto;
    }

    #gnezdo_ru_13116 .gnezdo_block_img_wrap {
        width: 100%!important;
    }

    .directadvert_block_frame{
        width: 100% !important;
        display:block;
        height:270px;
        overflow-x:hidden !important;
        outline: none;
        border:none;
        margin:5px auto;
        padding:5px !important;
        box-sizing: border-box !important;
    }


}
@media screen and (max-width: 1031px){
    .fixed_panel{
        position: fixed;
        border-bottom: 1px solid #d3d3d3;
    }
    .inheaderwr{
        width:100% !important;
        padding-top:0;
        padding-left:0;
        padding-right:0;
        height:auto;
        position:relative;
        margin-top:0;
    }
    .nav_btn{
        background-position: center -1126px;
        background-color: #8c0000;
        height: 50px;
        top:0;
        left: 0;
        
        position: absolute;
    }
    .header_left,.nav .nav_btn{
        display: none !important;
    }
    .wrap{
        width:640px;
    }
    .left{
        width: 640px;
        float: none;
    }
    .right{
        float: none;
        width: 100%;
    }
 

    .date_head {
      display: none;
    }

    .day {
        padding-top: 4px;
        display: none;
    }

    .nav_btn{
        display: block !important;
    }
    .second_nav{
        display: none;
    }

    .second_nav li, .second_nav li a, .second_nav li.first_item{
        line-height: 28px;
    }
    .nav{
        height: 0;
    }
    .nav ul.main_nav{
        position: absolute;
        background-color: #404040;
        border: 1px solid rgba(0,0,0,0.15);
        border-bottom: 0;
        height: auto;
        z-index: 9999;
        width: 100%;
        display: none;
    }
    .nav li, .nav li a{
        float: none;
        height: auto;
        width: 100%;
        text-align: left;
    }
    .nav li a{
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,0.15);
    }
    .nav li ul{
        display: block;
        position: relative;
        left: auto;
    }
    .nav li li a{
        padding: 2px 25px 0 25px;
    }

    .navigation a, .nav_ext{
        display: none;
    }
    .navigation .next a, .navigation .prev a{
        display: block;
    }
    .side_block, .footer_nav{
        display: none;
    }
    .top_news_widget{
        display: block;
    }
    .last_news .post_img, .custom_top .post_img{
        margin-bottom: 0;
    }
    .widead{
        float: right;
        width: 300px;
        margin: 0 0 5px 5px;
    }
    .content2 {
        padding: 60px 0 0 0;
    }  

    .sideadv{
        display:none;
    }

    .advframe2{
        width: 100% !important;
        display:block;
        height: 220px;
        overflow: hidden !important;
        outline: none;
        border:none;
        margin:0 auto;
    }

    .adsbygoogle{
        width: 100% !important;
    }

    .adsbygoogle iframe{
        width: 100% !important;
    }

    .adsbygoogle ins{
        width: 100% !important;
    }

    #aswift_0_expand{
        width: 100% !important;
    }

    #gnezdo_ru_13116 .gnezdo_block_img_wrap {
        width: 100%!important;
    }

    .directadvert_block_frame{
        width: 100% !important;
        display:block;
        height:270px;
        overflow-x:hidden !important;
        outline: none;
        border:none;
        margin:5px auto;
        padding:5px !important;
        box-sizing: border-box !important;
    }

    .horses{
        display:none;
    }

    .newyear-main-link {
        width: 100%;
        height: 50px;
        margin-top: 38px;
    }

}
@media screen and (max-width: 733px) {
    .wrap{
        width: 100%;
        padding-left:20px;
        padding-right: 20px;
    }
    .left, .mid_col{
        width: 100%;
    }

    .header_right{
        display:block;
    }

    .nav ul.main_nav{
        width: calc(100% - 40px);
        display: none;
        left: 0;
        margin-right: 20px;
        margin-left: 20px;
    }
    .col2{
        width: 100%;
        float: none;
    }
    .col2:nth-of-type(n){
        padding: 0;
    }
    .main_news:first-of-type .post_img{
        height: 280px;
    }
    .s_text{
        width: auto;
        margin-left: 135px;
        float: none;
    }
    .custom_video{
        width: calc(50% - 5px);
        margin: 0 0 20px 0;
    }
    .custom_video:nth-of-type(2n+1){
        margin-right: 5px;
    }
    .custom_video:nth-of-type(2n){
        margin-left: 5px;
    }
    .custom_video{
        height: 231px;
    }
    .custom_video .post_img{
        height: 137px;
    }
    .custom_photo, .custom_photo:nth-of-type(4n){
        width: 50%;
        height: 160px;
    }
    .photo_title{
        font-size: 14px;
        line-height: 16px;
    }
    .custom_photo:first-of-type{
        width: 100%;
    }
    .custom1 a .custom_title{
        font-size: 16px;
        line-height: 18px;
    }
    .hblock h4, .mblock h4, .side_header{
        font-size: 16px;
        line-height: 18px;
    }
    .hblock h4 a, .mblock h4 a, .side_header a{
        font-size: 16px;
    }
    .afisha_content{
        margin: 0;
    }
    .custom_afisha .post_img{
        margin-bottom: 5px;
    }
    .catalog ul{
        width: 50%;
    }
    .custom3 a, .afisha_title, .catalog li a{
        font-size: 16px;
    }
    .full_images img{
        width: 25%;
    }
    .second_nav li.first_item{
        display: none;
    }

    .second_nav ul.main_nav{
        display: none;
    }

    .find_rel{
        margin: 15px 0 0 0;
    }
    .social-likes{
        float: none;
        clear: both;
        margin: 0;
    }
    .ratebox, .ratebox2, .ratebox3{
        margin: 0 0 30px 0;
    }
    .related_news_block{
        width: 415px;
        margin: 0 auto;
    }
    .related_news_post:nth-of-type(3n){
        margin-right: 15px;
    }
    .related_news_post:nth-of-type(2n){
        margin-right: 0;
    }
    .left{
        margin-bottom: 30px;
    }
    .top_news_category{
        width: 480px;
        margin: 0 auto;
    }
    .top_news_category .related_news_post:nth-of-type(n){
        width: 480px;
        height: 320px;
        margin-right: 0;
    }
    .widead{
        float: right;
        width: 300px;
        margin: 0 0 5px 5px;
    }
    .fixed_panel {
        position: relative;
    }
    .content2 {
        padding: 15px 15px 0;
    }
    .post_content {
        width: 100%;
        margin-bottom: 0;
    }

    .nav_btn{
        display: block !important;
    }

    .header_left{
        display: none !important;
    }

    .inheaderwr{
        width:100% !important;
        padding-top:0;
        padding-left:0;
        padding-right:0;
        height:50px;
        position:relative;
    }

    .header_right_in {
        display: none !important
    }



    .sideadv{
        display:none;
    }

    .advframe2{
        width: 100% !important;
        display:block;
        height: 220px;
        overflow: hidden !important;
        outline: none;
        border:none;
        margin:0 auto;
        padding:0 !important;
    }

    .adsbygoogle{
        width: 100% !important;
    }

    .adsbygoogle iframe{
        width: 100% !important;
    }

    .adsbygoogle ins{
        width: 100% !important;
    }

    #gnezdo_ru_13116 .gnezdo_block_img_wrap {
        width: 100%!important;
    }

    #aswift_0_expand{
        width: 100% !important;
    }

    .directadvert_block_frame{
        width: 100% !important;
        display:block;
        height:270px;
        overflow-x:hidden !important;
        outline: none;
        border:none;
        margin:5px auto;
        padding:5px !important;
        box-sizing: border-box !important;
    }

    .invis{
        display:none !important;
    }

    .horses{
        display:none;
    }

    .newyear-main-link {
        width: 70%;
        height: 50px;
        margin-top: 38px;
    }


    .header_right{
        display: none !important;
    }

    
    .post_title {
        padding: 0;
        font-size: 22px !important;
        line-height: 24px !important;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .comm-button{
        display:none !important;
    }

    .social-likes-wr{
        display:none !important;
    }

    #LentaInform2573 .mgbox .text-elements {
         bottom: 4px !important;
    }

    .post_content #directadvert_block_frame table tr {
        float: left;
        width: 49% !important;
        padding:0 !important;
        min-height: 132px  !important;;
        max-height: 257px !important;
        overflow: hidden !important;
    }

    .post_content #directadvert_block_frame table {
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
    padding-left: 2px !important;
    }

    .post_content #directadvert_block_frame table tr .da_adp_teaser tr {
        width: 100% !important;
        padding-right: 5px !important;
        padding-left: 5px !important;
    }

    .post_content .da_adp_teaser{
        height:150px !important;
        overflow:hidden;
    }

    .da_adp_title a{
        font-size: 13px !important;
        line-height: 10px  !important;
    }

    .da_adp_title{
        text-align: left !important;
        padding:0 !important;
        max-height: 120px !important;
        overflow: hidden !important;
    }

    .da_adp_teaser td {
        width: 100% !important;
        padding:0 !important;
    }

    .da_adp_img img{
        padding:0 !important;
        width: 100% !important;
        height:auto !important;
    }

    #directadvert_block_frame table td {
        padding: 0 !important;
    }

    .da_adp_teaser table{
        margin-bottom: 5px !important;
    }

    .dopadv{
        min-height: 0 !important;
    }

    .post_title a {
        font-size: 22px !important;
        line-height: 24px !important;
        text-decoration: underline;
    }


    #byrelom-in {
        height: auto !important;
        margin: 0 auto  !important;
    }


    #byrelom-in .item a {
        overflow-y: hidden;
        height: auto !important;
        display: inline-block;
        border-radius: 5px 5px;
        width: 100%;
    }

    #byrelom-1.byrelom-list .item {
        width: 49% !important;
        border: none;
    }

    #byrelom-1.byrelom-list .title, #byrelom-1.byrelom-list .image {
        max-width: 100%;
        display: block;
        width: 100% !important;
    }

    .advframe2{
        height: 686px!important;
    }


    .advframe3{
        width: 100% !important;
        display:block;
        height: 193px;
        overflow:hidden !important;
        outline: none;
        border:none;
        margin:0 auto !important;
        padding:0 !important;
        box-sizing: border-box;
        position:relative !important;
    }

    .full-story{
        padding:0 !important;
    }

    #directadvert_block_frame{
        padding:0 !important;
    }

    .post_content iframe{
        margin: 0 auto !important;
    }

    .afterpic-wr {
        display: none;
    }
}

@media screen and (max-width: 560px){
    .post_title {
        font-size: 30px;
    }
    .logo_text {
        width: 215px;
        margin-top: 10px;
    }
    .smiteaser-container3154, .tizADK .item {
        display: block !important;
        width: 100% !important;
    }
    .article_img{
        margin: 0 0 10px 0;
    }

    .photo_video .post_img{
        height: 280px;
    }
    .photo_video{
        height: auto;
        margin-bottom: 30px !important;
    }
    .related_news_block{
        width: 200px;
    }
    .related_news_post:nth-of-type(n){
        margin-right: 0;
    }
    .top_news_category{
        width: 280px;
    }
    .top_news_category .related_news_post:nth-of-type(n){
        width: 280px;
        height: 186px;
    }
    .wrap{
        min-width: 320px;
    }
    .col3{
        width: 100%;
        margin-bottom: 15px;
    }
    .col3:nth-of-type(3n+1), .col3:nth-of-type(3n+2), .col3:nth-of-type(3n){
        padding-right:0;
        padding-left: 0;
    }
    .custom1 .post_img{
        height: 280px;
    }
    .logo{
        width: 280px !important;
        height: 28px;
    }
    .hblock h4, .mblock h4, .side_header{
        font-size: 18px;
        line-height: 20px;
    }
    .hblock h4 a, .mblock h4 a, .side_header a{
        font-size: 18px;
    }
    .catalog ul{
        width: 100%;
    }
    .counters, .about, .comment_avatar, .teaserno{
        display: none;
    }
    .footer_links{
        width: 200px;
        padding:0;
        margin: auto;
        float: none;
    }
    .pmlinks a{
        width: 100%;
        float: none;
        border-left: 0;
    }

    .addcomment_editor, .comment_content{
        width: 100%;
    }
    .comment_content{
        padding-left: 0;
    }
    .short_post{
        width: 100%;
        height: 150px;
        margin: 0 0 15px 0;
    }
    .widead{
        width: 100%;
        margin: 0 0 20px 0;
    }


    .footer{
        text-align: center;
    }
    .header, .container{
        width:100% !important;
    }

    .header{
        height: 100% !important;
    }

    .pm_head{
        font-size: 14px;
    }
    .profile_popup_counter b{
        font-size: 14px;
    }
    #totop{
        display: none !important;
    }
    .full_images img{
        width: 50%;
    }

    .nav_btn{
        display: block !important;
    }

    .quizWrapper{
        width:100% !important;
    }

    .inheaderwr{
        width:100% !important;
        padding-top:0;
        padding-left:0;
        padding-right:0;
        height:auto;
        position:relative;
        margin-top:0;
    }

    .current_date{
        width:100px !important;
        text-align:left  !important;
    }

    .advframe2{
        width: 100% !important;
        display:block;
        height: 220px;
        overflow: hidden !important;
        outline: none;
        border:none;
        margin:0 auto;
        padding:0 !important;
    }

    .adsbygoogle{
        width: 100% !important;
    }

    .adsbygoogle iframe{
        width: 100% !important;
    }

    .adsbygoogle ins{
        width: 100% !important;
    }

    #gnezdo_ru_13116 .gnezdo_block_img_wrap {
        width: 100%!important;
    }

    #aswift_0_expand{
        width: 100% !important;
    }

    .directadvert_block_frame{
        width: 100% !important;
        display:block;
        height:270px;
        overflow-x:hidden !important;
        outline: none;
        border:none;
        margin:5px auto;
        padding:5px !important;
        box-sizing: border-box !important;
    }

    #news_nest_spb_su_13483 .gnezdo_td {
        display: block !important;
        width: 100% !important;
    }

}

@media screen and (max-width: 414px) {
    .header_right {
        width: 70%;
    }

    .header_left {
        width: 30%;
    }

    .header_left_in {
        display:none;
    }

    .header_right_in {
        margin-top: 8px;
    }

    .advframe2{
        width: 100% !important;
        display:block;
        height:700px;
        overflow: hidden !important;
        outline: none;
        border:none;
        margin:0 auto;
        padding:0 !important;
        position: relative;

    }

    .adsbygoogle{
        width: 100% !important;
    }

    .adsbygoogle iframe{
        width: 100% !important;
    }

    .adsbygoogle ins{
        width: 100% !important;
    }

    #gnezdo_ru_13116 .gnezdo_block_img_wrap {
        width: 100%!important;
    }

    #aswift_0_expand{
        width: 100% !important;
    }

    .directadvert_block_frame{
        width: 100% !important;
        display:block;
        height:200px;
        overflow-x:hidden !important;
        outline: none;
        border:none;
        margin:5px auto;
        padding:5px !important;
        box-sizing: border-box !important;
    }

    #news_nest_spb_su_13483 .gnezdo_td {
        display: block !important;
        width: 100% !important;
    }


}