html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	position: relative;
	background: #d5d5d5;
}

body {
	min-height: 100%;
}

body, html {
	width: 1000px;
	margin: 0 auto;
}

img {
	border: 0;
}

a[href^="tel:"] {
	color: inherit;
	text-decoration: none;
	cursor: default;
}

#container {
	min-height: 100%;
	height: auto;
	width: 1000px;
	min-width: 1000px;
	/*background: #e8e9e4 url(/sources/template/images/bg_html.gif) repeat-y top center;*/
	background-color: #e8e9e4;
}

#header {
	width: 1000px;
	height: 342px;
	background: #e8e9e4 url(/sources/template/images/bg_header.jpg) no-repeat top center;
	position: relative;
	overflow: hidden;
}

#inquiry_mobile_text {
	display: none;
}

#main {
	width: 1000px;
	min-height: 200px;
	height: auto;
	padding-bottom: 96px;
}

#content {
	width: 1000px;
	float: left;
	position: relative;
	margin-top: -29px;
}

#page_text {
	position: relative;
	margin-left: 345px;
	padding-left: 25px;
	margin-right: 60px;
}

#left_block {
	width: 285px;
	float: left;
	margin-left: -940px;
	position: relative;
	margin-top: -29px;
}

#footer {
	margin: -55px auto 0 auto;
	width: 912px;
	height: 55px;
	min-width: 912px;
	background: url(/sources/template/images/bg_footer.png) no-repeat bottom center;
	font: normal 10px Tahoma;
	color: #fff;
	overflow: hidden;
}

#footer a {
	font: bold 10px Tahoma;
	color: #fff;
}

#contacts {
	width: 260px;
	float: left;
	color: #000;
	margin-top: 5px;
	margin-left: 110px;
}

#copyright {
	width: 127px;
	float: right;
	margin-top: 15px;
}

#counters {
	width: 270px;
	padding-right: 13px;
	float: right;
	text-align: right;
	margin-top: 15px;
}

#copyright p, #counters p, #contacts p { /* Обнуление нежелательных отступов */
	padding: 0;
	margin: 0;
}

div.clear { clear: both;font: normal 0px/0px Tahoma;height: 0;overflow: hidden; /*Отбивка */ }

form { margin: 0; padding: 0;}

/* Стилизация основных текстовых элементов */
body {
	font: normal 12px Tahoma;
	color: #000;
}

p {
	padding: 0 22px;
	margin: 7px 0;
}

p.error {
	font: bold 12px Tahoma;
	color: red;
}

p.message {
	font: bold 12px Tahoma;
	color: green;
}

a {
	font: normal 12px Tahoma;
	color: #143664;
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 8px -15px;
	padding: 0 0 0 35px;
	font: bold 12px/18px Tahoma;
	color: #143664;
	text-transform: uppercase;
	background: url(/sources/template/images/bg_head.png) no-repeat left 5px;
	height: 21px;
}

h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
	padding: 0 206px 4px 2px;
	font: bold 12px/18px Tahoma;
	color: #143664;
	text-transform: uppercase;
	display: block;
	float: left;
	height: 21px;
	width: 320px;
	overflow: hidden;
	position: relative;
}

h1 span::before, h2 span::before, h3 span::before, h4 span::before, h5 span::before, h6 span::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 545px;
	height: 21px;
	background: url(/sources/template/images/bg_head.png) no-repeat left -21px;
}

#left_block h1 span::before, #left_block h2 span::before, #left_block h3 span::before, #left_block h4 span::before, #left_block h5 span::before, #left_block h6 span::before {
	background: url(/sources/template/images/bg_head_news.png) no-repeat left -21px;
}

h1 span a, h2 span a, h3 span a, h4 span a, h5 span a, h6 span a {
	text-decoration: none;
	cursor: pointer;
}

h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong {
	padding: 0 2px 2px 0;
	font: bold 12px/18px Tahoma;
	color: #143664;
	text-transform: uppercase;
	display: block;
	float: left;
	height: 19px;
	overflow: hidden;
}

h2 {
	margin-top: 20px;
	margin-bottom: 13px;
}

#left_block h3, #left_block h4 {
	margin-left: 5px;
}

#news h4 {
	margin-left: -25px;
}

/* /Стилизация основных текстовых элементов */

/* Системы меню */
/* Верхнее меню */
#tmenu {
	width: 879px;
	height: 40px;
	padding-left: 0px;
	position: absolute;
	overflow: hidden;
	top: 250px;
	left: 60px;
}

#tmenu table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	padding: 0;
	margin: 0;
	height: 40px;
	background: url(/sources/template/images/bg_tmenu.gif) repeat-x left top;
}

#tmenu table td {
	border: 0;
	padding: 0;
	text-align: center;
	vertical-align: top;
	background: url(/sources/template/images/bg_tmenu_separator.gif) no-repeat right 0;
}

#tmenu table td.tbegin {
	width: 10px;
	background: url(/sources/template/images/bg_tmenu_corner.gif) no-repeat left top;
}

#tmenu table td.tlast {
	background: url(/sources/template/images/bg_tmenu_corner2.gif) no-repeat right top;
}

#tmenu table td a {
    display: block;
    padding: 0 22px;
    margin-right: 1px;
    height: 38px;
	text-align: center;
	font: normal 11px/38px Tahoma;
	color: #565656;
	text-transform: uppercase;
	text-decoration: none;
}

#tmenu table td a:hover, #tmenu table td a.active {
	background: url(/sources/template/images/bg_tmenu_a.gif) no-repeat center top;
	position: relative;
	margin: 0 0 0 -1px;
	padding: 0 23px;
	color: #fff;
}
/* /Верхнее меню */

/* Левое меню */
#lmenu {
	padding: 0px 0 35px 29px;
	position: relative;
}

#lmenu ul {
	padding: 0;
	margin: 12px 0 0 0;
	list-style-type: none;
}

#lmenu ul li {
	padding: 0 0 0 12px;
	margin: 0;
	background: url(/sources/template/images/bg_lmenu.gif) no-repeat left 9px;
}

#lmenu ul li a {
	font: normal 12px/20px Tahoma;
	color: #143664;
}


/* /Левое меню */
/* /Системы меню */

#smenu {
	width: 134px;
	height: 43px;
	padding-top: 6px;
	display: block;
	position: absolute;
	overflow: hidden;
	text-align: center;
	top: 0px;
	left: 806px;
	background: url(/sources/template/images/bg_smenu.png) no-repeat left top;
}
#smenu a {
	width: 42px;
	float: left;
	overflow: hidden;
}

#smenu a:hover {
	background: url("/sources/template/images/i_circle.png") no-repeat center center;
}


#logo {
	width: 291px;
	height: 62px;
	display: block;
	position: absolute;
	top: 14px;
	left: 44px;
	cursor: pointer;
}

#logo span {
	display:none;
}

#phone {
	width: 350px;
	height: 50px;
	overflow: hidden;
	position: absolute;
	top: 192px;
	left: 60px;
}

#phone p {
	padding: 0;
	margin: 0;
	font: bold 12px Tahoma;
	color: #b8b9bc;
}
#phone p a {
	font: bold 12px Tahoma;
	color: #66BEE8;
}


#phone p span {
	/*text-transform: uppercase;*/
}

div.gallery {
	padding-left: 22px;
}

.gallery table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	padding: 0;
	margin: 0;
}

.gallery td {
	width: 33%;
	border: 0;
	padding: 0;
	text-align: left;
	vertical-align: top;
}

.gallery td img {
	border: 1px solid #d2d3ce;
}

#news {
	background: #e4e5e0 url(/sources/template/images/bg_news.gif) no-repeat left top;
	padding: 11px 20px 23px 31px;
}

div.one_news {
	background: #e4e5e0 url(/sources/template/images/bg_one_news.gif) repeat-x left bottom;
	padding: 10px 0 15px 10px;
}

div.date {
	height: 28px;
	overflow: hidden
}

div.num {
	font: normal 24px Tahoma;
	color: #777672;
	float: left;
	padding-right: 4px;
	text-align: right;
}

div.month {
	font: normal 11px/12px Tahoma;
	color: #777672;
	float: left;
	width: 100px;
	height: 28px;
	padding-top: 2px;
}

div.news_title {
	background: url(/sources/template/images/bg_one_news_title.gif) no-repeat left 6px;
	position: relative;
	margin: 3px 0 0 -12px;
	padding-left: 12px;
	margin-bottom: 5px;
	font-weight: bold;
}

.news_anons p {
	margin: 0;
	padding: 0;
}

div.news_arhive {
	background: #e4e5e0 url(/sources/template/images/bg_one_news_title.gif) no-repeat left 6px;
	position: relative;
	margin: -5px 0 0 -12px;
	padding-left: 12px;
}

.main_images
{
	width: 139px;
	height: 139px;
	overflow: hidden;
}

.feedback-wrap {
	margin-left: 20px;
}
.addthis_toolbox {
	padding: 0 22px;
	margin-top: 14px;
}

.pagination { margin-top: 15px; }

.pagination a,
.pagination strong {
	padding: 5px 10px;
	margin-right: 5px;
	border: 1px solid #ccc;
}

@media (max-width: 1023px) {

	h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
		width: auto;
		height: auto;
		float: none;
	}

	h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong {
		height: auto;
	}
	

	h1, h2, h3, h4, h5, h6 {
		height: auto;
	}

	img {
		max-width: 100%;
		vertical-align: top;
		height: auto;
	}

	body,
	html {
		width: auto;
	}

	#container {
		width: 100%;
		min-width: 0;
	}

	#footer {
		width: auto;
		min-width: 0;
		margin-top: 0;
		background-color: #e8e9e4;
	}

	#header {
		width: auto;
		background-size: 100% auto;
	}

	#main {
		width: auto;
		padding-bottom: 20px;
		padding-left: 370px;
		position: relative;
		min-height: 700px;
	}

	#content {
		width: auto;
		margin-top: 0;
	}

	#left_block {
		margin-top: 0;
	}

	#page_text {
		margin: 0;
		padding: 0 60px 0 0;
	}
	
	
	#left_block {
		margin-left: 0;
		float: none;
		position: absolute;
		top: 0;
		left: 73px;
	}
	
	#copyright {
		display: none;
	}

	#counters {
		padding-right: 65px;
	}

	#tmenu {
		width: auto;
		position: static;
		padding: 0 60px;
		margin-top: 250px;
	}

	#tmenu table td a {
		padding: 0 5px;
	}
	#tmenu table td a:hover, #tmenu table td a.active {
		padding: 0 5px;
		margin-left: 0;
		margin-right: 1px;
	}
}

@media (max-width: 960px) {

	#smenu {
		left: auto;
		right: 0;
	}

	#phone {
		background-color: rgba(0,0,0,.5);
		padding: 10px;
		color: #fff;
		top: 166px;
		left: 40px;
	}

	#phone p {
		color: inherit;
	}

	.gallery table {
		display: block;
	}

	.gallery tbody {
		display: block;
	}

	.gallery tr {
		display: block;
		text-align: center;
	}

	.gallery td {
		display: inline-block;
		vertical-align: top;
		width: auto;
		margin: 0 10px 10px;
	}

	.main_images {
		width: 144px;
		height: 115px;
	}

	.main_images a {
		display: block;
		height: 100%;
	}

	.main_images img {
		height: 100%;
		min-width: 100%;
		max-width: none;
		box-sizing: border-box;
	}

	form > table {
		display: block;
	}

	form > table > tbody {
		display: block;
	}

	form > table > tbody > tr {
		display: block;
		margin-top: 10px;
	}

	form > table > tbody > tr > td {
		display: block;
		width: 100% !important;
		padding: 0;
		margin-bottom: 4px;
	}

	form input {
		max-width: 100%;
		box-sizing: border-box;
	}

	form textarea {
		max-width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 854px) {

	#tmenu {
		padding: 0;
	}

	#tmenu table td.tbegin,
	#tmenu table td.tlast {
		background: none;
	}

	#header {
		height: auto;
		margin-bottom: 20px;
	}

	#left_block {
		left: 28px;
	}

	#main {
		padding-left: 335px;
	}
}

@media (max-width: 768px) {

	#left_block {
		width: 220px;
	}

	h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
		padding-right: 40px;
	}

	#page_text {
		padding-right: 0;
	}

	#main {
		padding-left: 280px;
	}
	
	#phone {
		left: 32px;
	}

	#contacts {
		margin-left: 10px;
		margin-top: 11px;
	}
	#counters {
		padding-right: 10px;
	}
}

@media (max-width: 720px) {
	#main {
		padding-right: 20px;
		padding-left: 20px;
		padding-bottom: 0;
	}

	#content {
		float: none;
	}

	#left_block {
		width: auto;
		position: relative;
		left: auto;
		top: auto;
		margin-left: -20px;
		margin-right: -20px;
	}
	#logo {
		width: 220px;
		top: 0;
		left: 0;
	}

	.addthis_toolbox {
		width: auto;
		height: auto;
		position: fixed;
		z-index: 9000;
		right: 0;
		bottom: 0;
		left: 0;
		float: none;
		padding: 0;
	}

	.addthis_toolbox a,
	.addthis_toolbox.addthis_20x20_style .addthis_counter.addthis_bubble_style {
		margin: 0 !important;
		float: left !important;
		width: 16.6666666667% !important;
		height: 48px !important;
		line-height: 48px !important;
		text-align: center;
		position: relative;
		box-sizing: border-box;
		padding: 0 !important;
	}

	.addthis_toolbox.addthis_20x20_style .addthis_counter.addthis_bubble_style a.addthis_button_expanded {
		width: 100% !important;
		background: #fff;
	}

	.addthis_toolbox .at-icon-wrapper {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		margin: auto;
	}

	.addthis_toolbox .addthis_button_vk {
		background-color: #6383A8;
	}

	.addthis_toolbox .addthis_button_odnoklassniki_ru {
		background-color: #D57819;
	}

	.addthis_toolbox .addthis_button_facebook {
		background-color: #3B5998;
	}

	.addthis_toolbox .addthis_button_twitter {
		background-color: #1DA1F2;
	}

	.addthis_toolbox .addthis_button_compact {
		background-color: #FF6550;
	}
}

@media (max-width: 640px) {	
	#counters {
		display: none;
	}
}

@media (max-width: 600px) {

	#tmenu table td {
		display: inline-block;
		vertical-align: top;
		background: none;
	}

	#tmenu table tr {
		text-align: center;
		display: block;
	}

	#tmenu table tbody {
		display: block;
	}

	#tmenu table {
		display: block;
		height: auto;
		background: #b8bab8;
		border-top: 1px solid #fff;
		border-bottom: 1px solid #fff;
	}

	#tmenu {
		height: auto;
	}

	#tmenu table td.tbegin {
		display: none;
	}
	
	#tmenu table td a {
		height: auto;
	}

	#tmenu table td a:hover, #tmenu table td a.active {
		background: none;
	}
}

@media (max-width: 576px) {
	#footer {
		background: #bdc1bd;
		border-top: 1px solid #bdc1bd;
		position: relative;
		text-align: center;
	}
	#footer::before {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		border-top: 1px solid #fff;
		content: '';
	}
	#contacts {
		text-align: center;
		width: auto;
		float: none;
	}
}

@media (max-width: 540px) {
	#logo {
		width: 165px;
		height: 45px;
	}

	#phone {
		position: static;
		margin-top: 120px;
		width: auto;
		float: none;
		display: block;
	}

	#tmenu {
		margin-top: 0;
	}
}

@media (max-width: 480px) {
	#header {
		margin-top: 0;
		background-size: 120% auto;
		background-position: 0 0;
	}

	#recaptcha_widget_div {
		height: 146px;
		overflow: auto;
	}
	
	#inquiry_mobile_text {
		display: block;
	}
	
	#feedback_header_link {
		display: none;
	}

	.feedback-wrap {
		margin-right: 20px;
	}
}

@media (max-width: 360px) {

	#header {
		background-size: 145% auto;
	}
}

.input-check { display: none; }
