/************ responsive ****************/

@media screen and (max-width: 1590px) {
	#jm-allpage #djcatalog table.djc_items_table {
		position: relative;
		width: auto;
		overflow-x: scroll;
		display: block;
	}
	#jm-allpage #djcatalog table.djc_items_table::-webkit-scrollbar {
		-webkit-appearance: none;
		width: 14px;
		height: 14px;
	}
	#jm-allpage #djcatalog table.djc_items_table::-webkit-scrollbar-thumb {
		border-radius: 8px;
		border: 3px solid #fff;
		background-color: rgba(0, 0, 0, 0.3);
	}
	#jm-allpage .djc_attributes table, #jm-allpage #djcatalog table table {
		display: table;
		position: static;
		width: 100%;
		overflow-x: none;
	}
	#jm-allpage #djcatalog.djc_item .djc_images {
		width: auto;
		margin: 0 0 30px;
		float: left;
		margin-right: 20px;
	}
	#jm-allpage #djcatalog.djc_item .djc_mainimage {
		margin-left: 0;
		margin-right: 0;
	}
	#jm-allpage #djcatalog.djc_item .djc_thumbnail {
		margin: 0 20px 20px 0;
	}
	html[dir='rtl'] #jm-allpage #djcatalog.djc_item .djc_thumbnail {
		margin: 0 0 20px 20px;
	}
	#djcatalog .djc_filter_list li, #djcatalog .djc_filter_search li {
		display: block;
		margin: 0 0 10px;
	}
	/* frontpage module */
	body #jm-allpage .djf_mod .djf_left {
		margin: 0 0 50px;
		text-align: center;
		float: none;
	}
	body #jm-allpage .djf_mod .djf_gal .djf_row {
		display: inline-block;
		clear: none;
	}
	body #jm-allpage .djf_mod .djf_img {
		float: none;
	}
	body #jm-allpage .djf_mod .djf_gal {
		float: none;
	}
	body #jm-allpage .djf_mod .djf_gal .djc_col {
		float: none;
		padding: 0 10px 20px;
	}
	body #jm-allpage .djf_mod .djf_text {
		clear: both;
	}
	body #jm-allpage .djf_mod .djf_left, body #jm-allpage .djf_mod .djf_img {
		max-width: 100%;.box-sizing(border-box);
	}
}

@media screen and (max-width: 979px) {
	#djcatalog table {
		position: relative;
		width: auto;
		overflow-x: scroll;
		display: block;
	}
	#djcatalog .djc_attributes table {
		position: static;
		width: 100%;
		overflow-x: none;
		display: table;
	}
	#djcatalog img {
		max-width: 100%;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
	}
	#djcatalog #fbcomments, #djcatalog .fb-comments, #djcatalog .fb-comments iframe, #djcatalog .fb-comments span {
		width: 100% !important;
	}
}

@media screen and (max-width: 767px) {
	#djcatalog .djc_subcategories_grid .djc_subcategory, #djcatalog .djc_items .djc_item, #djcatalog .djc_related_items .djc_item {
		float: none !important;
		width: 100% !important;
	}
	#djcatalog .djc_subcategory_bg, #djcatalog .djc_item_bg {
		height: auto !important;
	}
	#djcatalog .djc_images {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.mod_djc_item {
		float: none !important;
		width: 100% !important;
	}
	/* added */
	body #jm-allpage .djc_items .mod_djc_item:first-child {
		margin-top: 0 !important;
	}
	body #jm-allpage .djc_items .mod_djc_item {
		width: 100% !important;
	}
	body #jm-allpage .djc_items .mod_djc_item {
		margin-top: 30px !important;
	}
	body #jm-allpage .djf_mod .djf_gal, body #jm-allpage .djf_mod .djf_gal .djc_col, body #jm-allpage .djf_mod .djf_left {
		float: none;
	}
	body #jm-allpage .djf_mod .djf_left {
		text-align: center;
	}
	body #jm-allpage .djf_mod .djf_text {
		clear: both;
	}
	body #jm-allpage .djf_mod .djf_img {
		float: none;
		margin-left: 0;
		margin-right: 0;
	}
	body #jm-allpage .djf_mod .djf_img img, body #jm-allpage .djf_mod .djf_left, body #jm-allpage .djf_mod .djf_img {
		max-width: 100%;.box-sizing(border-box);
	}
	body #jm-allpage .djf_gal .djf_row {
		display: inline-block;
	}
	body #jm-allpage #djcatalog .djc_images {
		float: none;
		margin-left: 0;
		margin-right: 0;
		width: 100% !important;
		text-align: center;
		display: inline-block;
	}
	body #jm-allpage #djcatalog .djc_items .djc_item_bg, body #jm-allpage #djcatalog .djc_related_items .djc_item_bg, body #jm-allpage #djcatalog .djc_subcategory_bg {
		height: auto !important;
	}
	body #jm-allpage #djcatalog .djc_mainimage img, body #jm-allpage #djcatalog .djc_thumbnail img {.box-sizing(border-box);
	}
	body #jm-allpage #djcatalog .djc_order_buttons li span {
		padding: 0;
		border: none !important;
	}
	#djcatalog .djc_filter_list .inputbox, #djcatalog .djc_filter_list select, #djcatalog .djc_filter_search .inputbox {
		min-width: 0;
	}
}

@media screen and (max-width: 480px) {
	#jm-allpage .djc_attributes table {
		position: relative;
		width: auto;
		overflow-x: scroll;
		display: block;
	}
	body #jm-allpage #djcatalog table#jform_description_tbl, body #jm-allpage #djcatalog table#jform_intro_desc_tbl {
		position: relative;
		width: auto;
		height: auto !important;
		overflow-x: scroll;
		display: block;
	}
	body #djcatalog.djc_itemform .formelm-buttons .button {
		margin: 0 0 5px;
	}
}


@media screen and (max-width: 1400px) {
	
	.dj-megamenu {padding: 21px 5px!important}
	.djc_image_relateditem {
    border-right: 10px solid #fff!important;
    margin-bottom: 30px;
}

.footer_service {
    padding-right: 30px;
    margin-right: 30px;
    width: 335px;
}

.footer_catalog {
    padding-right: 30px;
    margin-right: 30px;
}
}


@media screen and (max-width: 1250px) {
	
	.dj-megamenu {padding: 21px 5px!important}
.djc_image_relateditem {
    border-right: 0px solid #fff!important;
    margin-bottom: 20px;
    margin: 0 auto;
    float: none;
}

.footer_service {
    padding-right: 20px;
    margin-right: 20px;
    width: 270px;
}

.footer_catalog {
    padding-right: 20px;
    margin-right: 20px;
}

.djc_td_title {
    background: url(../images/ttit.png);
    background-repeat: no-repeat;
    background-position: 100% 50%;
    border-right: 20px solid #fff!important;
    max-width: 260px;
    min-width: 170px;
}
} 

@media screen and (max-width: 800px) {
	.jm-box.col4 .jm-box-in {
    width: 100%;
}

.jm-our-services .description {
    padding-top: 0px;
    display: table-cell;
    vertical-align: top;
}

#jm-allpage .container, #jm-allpage .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
}

.jm-module-raw {
    display: table;
    float: none;
    margin-left: 0px;
    margin: 0 auto;
    width: auto;
}

#jm-bar-left {float:none;margin:0 auto;display: table;}
#jm-bar-right {float:none;margin:0 auto;display: table;}
	.phone {left: -15px;position:relative;margin-bottom: 10px;margin-top: 10px;}
	
	#jm-allpage .nav.menu.dropdown-ms > li {
    margin: 0 0 5px 15px;}

.top1-bg {display: table;
    margin: 0 auto;
    margin-top: 10px;}
	.lcr #jm-content {
    margin-right: 0px!important;
}

.icon1new:after {display:none;}
.icon2new:after {display:none;}
.icon3new:after {display:none;}

.preimuchestva:after {display:none;}
.preimuchestva:before {display:none;}
.preimuchestva p {    text-align: center;}

.lcr #jm-right {margin-left:0px!important;float: none;display: table;margin: 0 auto!important;padding: 0px;}
.lcr #jm-content-wrapper-in {
    padding: 0 0 0 0px;
    margin-left: 0px!important;
}
#djcatalog .djc_subcategories_grid {
margin-left: 0px;}

.djc_td_title {
    background: none;
    background-repeat: no-repeat;
    background-position: 100% 50%;
    border-right: 0px solid #fff!important;
    max-width: 100%;
    min-width: 100%;
    display: table;
}

.djc_image {
    background: url(../images/timg.png);
    padding: 31px 30px!important;
    background-repeat: no-repeat;
    border-right: 0px solid #fff!important;
    background-size: 100%;
    display: table;
    margin: 0px auto!important;
}

.djc_image img {margin:0 auto;display: table;}
.djc_introtext {
    background: url(../images/tbody.png);
    background-repeat: no-repeat;
    color: #7d7d7d;
    background: none;
    display: table;
    margin: 0 auto!important;
}
.link_pod {display: table;margin: 0 auto;}
.price_box {
    float: none;
    margin-right: 0px;
    font-size: 12px;
    color: #7d7d7d;
    margin-bottom: 10px;
    text-align: center;
}

.footer_catalog {
    padding: 0px;
    background: none;
    margin: 0 auto;
    display: table;
    float: none;
    width: 270px;
    height: auto;
}

.footer_service {
    padding: 0px;
    background: none;
    margin: 0 auto;
    display: table;
    float: none;
    margin-top: 20px;
    width: 270px;
    min-height: auto;
    height: auto;
}

.flogo {
    margin: 20px auto;
    display: table;
}
.footer_menu {margin-top:30px;}
.footer_menu ul li a {
    color: #a6d7f2;
    font-size: 12px;
    text-decoration: none;
}

.footer_block {}

#jm-copyrights {
    font-size: 13px;
    color: #525252;
    line-height: 14px;
    width: auto;
    display: table;
    margin-top: 10px;
    text-align: center;
}

#jm-footer-left, #jm-footer-right {
    line-height: 40px;
    max-width: 100%;
    float: none;
}
.byu_copy {
    font-size: 12px;
    color: #525252;
    line-height: 43px;
    float: none;
    line-height: 13px;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}

#djc_contact_form fieldset div:nth-child(8) {
    width: 100%;
    display: table;
    top: 12px;
    position: relative;
}
}

