body {
	margin: 0 auto;
	max-width: 1200px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11pt;
	line-height: 1.3;
	background-color: white;
}

* {
	box-sizing: border-box;
}

p {
	text-indent: 18px;
}

h1 {
	color: #447c01;
	font-weight: bold;
	font-style: italic;
	font-size: 16pt;
	text-align: left;
	margin-left: 40px;
}

h2 {
	color: #447c01;
	font-weight: normal;
	font-style: italic;
	font-size: 16pt;
	text-align: left;
	margin-left: 90px;
}

h3 {
	font-family: Times, serif;
	color: #447c01;
	font-style: italic;
	font-weight: normal;
	font-size: 14pt;
	margin-left: 40px;
}

#shapka {
	height: 197px;
	background-image: url('/pics/header_bg.jpg');
	background-repeat: no-repeat;
	background-position-x: right;
}

#shapka>img {
	float: left;
	padding-left: 17px;
}

@media screen and (min-width: 1120px) {
	#shapka>img {
		padding-left: 97px;
	}
}
@media screen and (max-width: 850px) {
	#shapka>img {
		padding-left: 0px;
	}
}

#nav-wrap {
	display: table;
}

#site-navigation {
	display: block;
}

#site-navigation > label {
	display: block;
	font-size: 16px;
	color: white;
	width: 120px;
	height: 30px;
	text-align: center;
	padding-top: 6px;
	border-style: solid;
	border-width: 0px 1px 0px 1px;
	border-color: #a2be80;
	background-color: #447c01;
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#site-navigation > input:checked + #menu {
	display: block;
	clear: both;
	top: 2px;
	left: 27px;
	position: relative;
	color: #ffcc00;
}

#menu {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-width: 0px 0px 0px 1px;
	border-style: solid;
	border-color: #a2be80;
	background-color: #447c01;
}

#menu li {
	float: left;
}

#menu li a, #menu li span {
	display: block;
	height: 30px;
	width: 120px;
	color: white;
	font-size: 12px;
	text-align: center;
	padding-top: 9px;
	text-decoration: none;
	border-style: solid;
	border-width: 0px 1px 0px 0px;
	border-color: #a2be80;
}

#menu li a:hover {
	background-color: #528d0d;
	text-decoration: underline;
	color: yellow;
}

#content {
	display: table;
	width: 100%;
}

#pre-content-wide {
	display: table-cell;
	width: 180px;
	font-size: 10pt;
	background-color: #fffde8;
	border-width: 0px 1px 0px 0px;
	border-style: solid;
	border-color: #72aa30;
	padding: 10px 5px 5px 10px;
}

#pre-content-narrow {
	display: table-cell;
	width: 80px;
	font-size: 10pt;
	background-color: #fffde8;
	border-width: 0px 1px 0px 0px;
	border-style: solid;
	border-color: #72aa30;
}

#main-content {
	display: table-cell;
	background-color: white;
	padding: 10px 8px 5px 15px;
}

#add-content {
	display: table-cell;
	width: 225px;
	background-color: #e3f5ce;
	border-width: 0px 0px 0px 1px;
	border-style: solid;
	border-color: #72aa30;
}

@media screen and (max-width: 779px) {
	#nav-wrap {
		width: 122px;
		margin-left: 50px;
		margin-top:1px;
	}
	
	#site-navigation #menu, #site-navigation > input {
		display: none;
	}
	
	#menu li a, #menu li span {
		border-width: 0px 1px 1px 0px;
	}
	
	#shapka>img {
		padding-left: 0px;
	}
	
	.float-right, .float-left {
		display: block;
		float: none;
		margin: 0 auto;
	}
	
	#content {
		display: flex;
		flex-direction: column;
	}
	
	#pre-content-wide {
		display: block;
		width: 100%;
		order: 2;
	}
	#pre-content-narrow {
		display: none;
	}
	#main-content {
		display: block;
		width: 100%;
		order: 1;
	}
	#add-content {
		display: block;
		width: 100%;
		order: 3;
	}
	.vert-spacer {
		margin-top: 20px;
		margin-bottom: 20px;
	}
}

@media screen and (min-width: 780px) {
	#nav-wrap {
		width: 602px;
		margin: 0 auto;
		margin-top:1px;
	}
	
	#site-navigation > input {
		display: none;
	}
	#site-navigation {
		height: auto;
	}
	#site-navigation menu {
		display: block;
	}
	#site-navigation > label {
		display: none
	}
	
	.float-right {
		float: right;
		margin: 5px 20px 5px 20px;
	}
	.float-left {
		float: left;
		margin: 5px 20px 5px 20px;
	}
	.vert-spacer {
		margin-top: 60px;
		margin-bottom: 60px;
	}
}

#main-content img {
	max-width: 100%;
	height: auto;
}

.img-center {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

td {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10pt;
}
.cr {
	font-size: 10px;
	color: white;
	text-align: center;
}
.copy {
	font-size: 10px;
	color: white;
	text-decoration: underline;
}
a.copy:hover {
	font-size: 10px;
	color: yellow;
	text-decoration: underline;
}
a.panel {
	text-decoration: none;
	color: blue;
}

a.panel:hover {
	text-decoration: underline;
	color: red;
}
tr.menutop td {
	background-color: #447c01;
}
tr.menutop td.hovered {
	background-color: #528d0d;
}
.navi {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: white;
}
a.navi {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	text-decoration: none;
	color: white;
}
a.navi:hover {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	text-decoration: underline;
	color: yellow;
}
.right_li {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	margin-left : 22px;
	padding-left: 0px;
	margin-right: 8px;
	list-style-image : url("/pics/kvadratik.gif");
}
.right_p {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	margin-left : 12px;
	margin-right: 8px;
}
#footer {
	display: block;
	width: 100%;
	height: 63px;
	background-image: url('/pics/bg-bottom.gif');
	background-repeat: repeat-x;
	position: relative;
}

.counter {
	position: absolute;
	top: 20px;
	left: 10px;
}
@media screen and (max-width: 504px) {
	.counter {
		display: none;
	}
}