img {max-width:100%;height:auto;width:auto\9; /* ie8 */}
embed,object,iframe{width:100%;}
.post embed,.post object,.post iframe{width:100%;}
@media (min-width: 1000px) and (max-width: 1280px) {
.main-block{width:960px;}
.main-nav li{padding:0 10px;}
.main-nav li a{font:700 14px/50px 'Roboto Condensed', Arial, Helvetica, Tahoma, sans-serif;}
.content{width:640px;}
.building .block,.komm .block,.design .block{width:200px;}
#slider .slider .post-info{bottom:30%;}
.wood_works .block,.otdelka .block{width:310px;height:auto;}
.main-header a{font:15px/18px Arial, Helvetica, Tahoma, sans-serif;}
}
@media (min-width: 780px) and (max-width: 999px) {
.header{height:auto;overflow:hidden;margin-bottom:20px;}
.main-block{width:96%;}
.button-menu{display:block;width:35px;height:35px;position:relative;float:right;margin:7px;}
.main-nav{display:none;width:100%;height:auto;padding-top:20px;position:relative;overflow:hidden;}
.main-nav li{float:none;padding:0 0;text-align:left;}
.main-nav li.menu-item-has-children > a,.main-nav li.menu-item-has-children:hover > a{background:transparent;}
.main-nav li:hover,.main-nav li.current-menu-item{background:transparent;}
.main-nav li.current-menu-item a,.main-nav li:hover > a,.main-nav li > ul li.current-menu-item a{color:#FEAF27;}
.main-nav li ul{display:block;height:auto;background:#F4F4F4;}
.main-nav ol,ul{list-style:none;}
.main-nav li:hover > ul,.main-nav li.hover > ul{background:#F4F4F4;top:0;position:relative;}
.main-nav li > ul li{border-bottom:none;z-index:1;position:relative;width:100%;padding:0;}
.main-nav li > ul li:last-child{border-bottom:none;}
.main-nav li > ul li a{font:15px/16px 'Roboto Condensed', Arial, Helvetica, Tahoma, sans-serif;text-transform:none;color:#858585;display:block;padding:10px 15px;}
.main-nav li > ul li:hover{text-decoration:none;background:transparent;}
.main-nav li > ul li.current-menu-item{background:transparent;}
.content,.sidebar{width:100%;margin-bottom:20px;}
#slider .slider .post-info{bottom:30%;}
.building .block,.komm .block,.design .block{width:31%;margin-right:3%;}
.wood_works .block,.otdelka .block{width:48%;height:auto;margin-right:4%;}
.main-header a{font:15px/18px Arial, Helvetica, Tahoma, sans-serif;}
.wp-caption,.wp-caption img,.wp-caption-text{max-width:94%;float:none;margin:15px auto;position:relative;overflow:hidden;display:block;}
}
@media (min-width: 481px) and (max-width: 779px) {
.header{height:auto;overflow:hidden;margin-bottom:20px;}
.main-block{width:96%;}
.button-menu{display:block;width:35px;height:35px;position:relative;float:right;margin:7px;}
.main-nav{display:none;width:100%;height:auto;padding-top:20px;position:relative;overflow:hidden;}
.main-nav li{float:none;padding:0 0;text-align:left;}
.main-nav li.menu-item-has-children > a,.main-nav li.menu-item-has-children:hover > a{background:transparent;}
.main-nav li:hover,.main-nav li.current-menu-item{background:transparent;}
.main-nav li.current-menu-item a,.main-nav li:hover > a,.main-nav li > ul li.current-menu-item a{color:#FEAF27;}
.main-nav li ul{display:block;height:auto;background:#F4F4F4;}
.main-nav ol,ul{list-style:none;}
.main-nav li:hover > ul,.main-nav li.hover > ul{background:#F4F4F4;top:0;position:relative;}
.main-nav li > ul li{border-bottom:none;z-index:1;position:relative;width:100%;padding:0;}
.main-nav li > ul li:last-child{border-bottom:none;}
.main-nav li > ul li a{font:15px/16px 'Roboto Condensed', Arial, Helvetica, Tahoma, sans-serif;text-transform:none;color:#858585;display:block;padding:10px 15px;}
.main-nav li > ul li:hover{text-decoration:none;background:transparent;}
.main-nav li > ul li.current-menu-item{background:transparent;}
.content,.sidebar{width:100%;margin-bottom:20px;}
#slider .slider .post-info{bottom:20%;}
#slider .slider .post-info .title{font:700 17px/20px Arial, Helvetica, Tahoma, sans-serif;}
.building .block,.komm .block,.design .block{width:100%;margin-right:0;}
.building .block img,.komm .block img,.design .block img{width:125px;float:left;margin-right:20px;}
.wood_works .block,.otdelka .block{width:100%;height:auto;margin-right:0;}
.main-header a{font:15px/18px Arial, Helvetica, Tahoma, sans-serif;}
.wp-caption,.wp-caption img,.wp-caption-text{max-width:94%;float:none;margin:15px auto;position:relative;overflow:hidden;display:block;}
.related-posts .block{width:100%;margin-right:0;}
.related-posts .block img{width:90px;}
.search{width:96%;display:block;margin:20px auto;}
.searchform{width:98%;}
.copyrights{width:100%;text-align:center;padding-bottom:20px;}
.footer-menu{width:100%;height:auto;float:left;}
#toTop {right: -150px;}
}
@media (min-width: 320px) and (max-width: 480px) {
.header{height:auto;overflow:hidden;margin-bottom:20px;}
.main-block{width:96%;}
.button-menu{display:block;width:35px;height:35px;position:relative;float:right;margin:7px;}
.main-nav{display:none;width:100%;height:auto;padding-top:20px;position:relative;overflow:hidden;}
.main-nav li{float:none;padding:0 0;text-align:left;}
.main-nav li.menu-item-has-children > a,.main-nav li.menu-item-has-children:hover > a{background:transparent;}
.main-nav li:hover,.main-nav li.current-menu-item{background:transparent;}
.main-nav li.current-menu-item a,.main-nav li:hover > a,.main-nav li > ul li.current-menu-item a{color:#FEAF27;}
.main-nav li ul{display:block;height:auto;background:#F4F4F4;}
.main-nav ol,ul{list-style:none;}
.main-nav li:hover > ul,.main-nav li.hover > ul{background:#F4F4F4;top:0;position:relative;}
.main-nav li > ul li{border-bottom:none;z-index:1;position:relative;width:100%;padding:0;}
.main-nav li > ul li:last-child{border-bottom:none;}
.main-nav li > ul li a{font:15px/16px 'Roboto Condensed', Arial, Helvetica, Tahoma, sans-serif;text-transform:none;color:#858585;display:block;padding:10px 15px;}
.main-nav li > ul li:hover{text-decoration:none;background:transparent;}
.main-nav li > ul li.current-menu-item{background:transparent;}
.content,.sidebar{width:100%;margin-bottom:20px;}
#slider,.main-title a{display:none;}
.building .block,.komm .block,.design .block{width:100%;margin-right:0;}
.building .block img,.komm .block img,.design .block img,.category img{display:none;}
.wood_works .block img,.otdelka .block img{display:none;}
.wood_works .block,.otdelka .block{width:100%;height:auto;margin-right:0;}
.main-header a{font:15px/18px Arial, Helvetica, Tahoma, sans-serif;}
.sidebar-news img{display:none;}
.wp-caption,.wp-caption img,.wp-caption-text{max-width:94%;float:none;margin:15px auto;position:relative;overflow:hidden;display:block;}
.related-posts .block{width:100%;margin-right:0;}
.related-posts .block img{width:90px;}
.author-input,.email-input{width:96%;}
#respond textarea{width:90%!important;}
.search{width:96%;display:block;margin:20px auto;}
.searchform{width:98%;}
.copyrights{width:100%;text-align:center;padding-bottom:20px;}
.footer-menu{width:100%;height:auto;float:left;}
#toTop {right: -150px;}
}