@keyframes display_menu {
	from {
		left: -15rem;
	}
	to {
		left: 0rem;
	}
}
@keyframes hide_menu {
	from {
		left: 0rem;
	}
	to {
		left: -15rem;
	}
}
@keyframes display_submenu {
	from {
		left: 15rem;
	}
	to {
		left: 0;
	}
}
@keyframes hide_submenu {
	from {
		left: 0;
	}
	to {
		left: 15rem;
	}
}
@keyframes display_content_menu {
	from {
		margin-left: 0.5rem;
	}
	to {
		margin-left: 16rem;
	}
}
@keyframes hide_content_menu {
	from {
		margin-left: 16rem;
	}
	to {
		margin-left: 0.5rem;
	}
}
@keyframes button_display_menu {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(90deg);
	}
}
@keyframes button_hide_menu {
	from {
		transform: rotate(90deg);
	}
	to {
		transform: rotate(0deg);
	}
}

@media screen and (max-width: 800px) {
	header img {
		position: relative;
		left: 10px;
		top: 10px;
	}
	header img {
		margin-top: 0.25rem;
	}
	/*
	#user-info > *:not(last-child) {
		display: none;
	}
	#user-info > *:last-child {
		position: absolute;
		top: 20px;
		left: 50px;
	}
	*/
	#logo img {
		display: none;
	}
	body, header button, #nav-menu, #nav-menu-mobile > div, main > aside {
	animation-duration: 0.5s;
	animation-timing-function: ease;
	animation-delay: 0;
	animation-iteration-count: 1;
	animation-direction: normal;
	animation-fill-mode: both;
	animation-play-state: running;
	}
	body.display-menu {
	animation-name: display_content_menu;
	overflow-x: hidden;
	}
	body.hide-menu {
	animation-name: hide_content_menu;
	}
	body.display-menu header button{
	animation-name: button_display_menu;
	}
	body.hide-menu header button {
	animation-name: button_hide_menu;
	}
	body.display-menu #nav-menu {
	animation-name: display_menu;
	}
	body.hide-menu #nav-menu {
	animation-name: hide_menu;
	}
	#nav-menu-mobile > div[attr-display] {
	animation-name: display_submenu;
	}
	#nav-menu-mobile > div:not(attr-display) {
	animation-name: hide_submenu;
	}
	body.display-menu main > aside {
		animation-name: hide_submenu;
	}
	body.hide-menu main > aside {
		animation-name: display_submenu;
	}
}
@media screen and (min-width: 801px) {
	main {
		margin-top: 3rem;
	}
	#nav-menu {
		position: static !important;
	}
	h1, h2 {
		font-family: Georgia,Times,serif;
	}
	#header-content {
		background-color: #333333;
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
	}
	#header-content .table {
		margin: auto;
		width: 935px;
		border: 0px solid red;
	}
	#header-content img {
		width: 160px;
		height: 40px;
	}
}
#user-info {
	display: none;
}
#header-content .table > * > * {
	text-align: center;
	vertical-align: middle;
}
#logo {
	width: 238px;
}
#user-info {
	display: none;
}
body {
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
	text-align: justify;
	margin: 0.5rem;
	font-size: 12px;
	color: #333;
}
figure + figure {
	margin-top: 10px;
}
figcaption hr + i {
	font-size: 80%;
}

header {
min-height: 50px;
}
header button {
display: block;
text-align: center;
padding: 0.25rem 0.25rem 0.1rem 0.25rem;
}
header button img {
width: 1.5rem;
height: 1.5rem;
}
main {
display: flex;
position: relative;
}
main aside {
	display: none;
}
body.display-menu header {
z-index: 2;
}


h1, h2 {
	margin: 5px 0;
}
h1 {
	border-bottom: 1px solid #999;
	font-weight: 500;
	line-height: 1.1;
}
h2 {
	font-size: 8pt;
}
figure + figure, h3 + figure {
	background-color: #f0eee5;
}


@media screen and (min-width: 801px) {
	main > aside {
		order: 1;
	}
	main > section {
		order: 2;
	}
	main > *:not(:last-child) {
		margin-right: 1rem;
	}
	h1 {
		font-size: 18pt;
	}
	#ruba-banner + * {
		display: none;
	}
	
	#nav-menu-mobile, header button {
		display: none;
	}
	#nav-menu {
		background-color: #333333;
	}
	#nav-menu {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 5rem;
	}
	#nav-menu-desctop {
		display: table;
		margin: auto;
	}
	#nav-menu-desctop > ul {
		list-style-type: none;
		display: table-row;
		margin: 0;
		padding: 0;
	}
	#nav-menu-desctop > ul > * {
		display: table-cell;
		height: 5rem;
		vertical-align: middle;
		text-align: center;
		padding: 0 1rem;
	}
	#nav-menu-desctop figcaption span {
		display: block;
		color: white;
	}
	#nav-menu-desctop figcaption select {
		width: 8rem;
	}
}
@media screen and (min-width: 520px)  {
	body.display-menu main > aside {
		z-index: 2;
	}
	body.display-menu main > section {
		z-index: 1;
	}
	body.display-menu main section::after {
		content: '';
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 15rem;
	}
}
@media screen and (max-width: 520px)  {
	main > aside {
		width: 100%;
	}
	body.display-menu main::after {
		content: '';
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 15rem;
	}
}
@media screen and (max-width: 800px) {
	h1 {
		font-size: 18px;
	}
	header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		border-bottom: 1px outset grey;
		height: 1.7rem;
		box-shadow: 0 2px 2px grey;
		background-color: #333333;
	}
	header img{
		width: 99px;
		height: 25px;
	}
	
	main aside {
		position: relative;
	}
	#ruba-banner + * a {
		position: absolute;
		top: 0.9rem;
		right: 0;
		bottom: 0;
		left: 0;
	}
	
	
	#nav-menu-mobile > * {
	position: absolute;
	top: 0;
	bottom: 0;
	}
	#nav-menu-mobile > ul {
	left: 0;
	}
	#nav-menu-mobile ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	}
	#nav-menu-mobile > ul {
	z-index: 1;
	}
	#nav-menu-mobile > div {
	left: 15rem;
	z-index: 2;
	}
	#nav-menu-mobile li {
	border-color: #2b2b2b;
	border-width: 1px;
	}
	#nav-menu-mobile li:first-child {
	border-top-style: solid;
	}
	#nav-menu-mobile li {
	position: relative;
	margin-left: 1rem;
	border-bottom-style: solid;
	}
	#nav-menu-mobile > ul::before, #nav-menu-mobile > div ul::before {
	display: block;
	height: 3rem;
	line-height: 3rem;
	text-align: center;
	color: white;
	font-size: 120%;
	font-weight: bold;
	}
	#nav-menu-mobile > ul::before {
	content: 'Меню сайта';
	display: block;
	height: 3rem;
	line-height: 3rem;
	}
	#nav-menu-mobile > div ul::before {
	content: attr(attr-label);
	}
	#nav-menu-mobile li > *:not(button){
	height: 2.5rem;
	line-height: 2.5rem;
	}
	#nav-menu-mobile li[attr-length]::after {
	content: attr(attr-length);
	position: absolute;
	top: 0;
	right: 3rem;
	bottom: 0;
	height: 2.5rem;
	line-height: 2.5rem;
	color: white;
	}
	#nav-menu-mobile a, #nav-menu-mobile span, #nav-menu-mobile button {
	color: white;
	display: block;
	}
	#nav-menu-mobile a {
	text-decoration: none;
	}
	#nav-menu-mobile > ul button::after {
	transform: rotate(-45deg);
	}
	#nav-menu-mobile > div button::after {
	transform: rotate(135deg);
	}
	#nav-menu-mobile button {
	border-top: 0;
	border-right: 0;
	border-bottom: 0;
	border-left: 1px solid #2b2b2b;
	position: absolute;
	width: 2rem;
	background-color: transparent;
	}
	#nav-menu-mobile > ul button {
	top: 0;
	right: 0;
	bottom: 0;
	}
	#nav-menu-mobile > div button {
	top: 1.25rem;
	left: 1rem;
	}
	#nav-menu-mobile button::after {
	content: '';
	border-width: 2px;
	border-style: solid;
	border-top-color: transparent;
	border-right-color: white;
	border-bottom-color: white;
	border-left-color: transparent;
	width: 0.25rem;
	height: 0.25rem;
	display: block;
	}
	#nav-menu, #nav-menu-mobile > * {
	background-color: #333333;
	width: 15rem;
	}
	#nav-menu-mobile {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	}
	#nav-menu {
	overflow: hidden;
	z-index: 1;
	position: fixed;
	top: 0;
	bottom: 0;
	}
	body:not([class]) #nav-menu {
	left: -15rem;
	}




	body.display-menu main {
		height: 1000rem;
	}
	body.display-menu {
		overflow: hidden;
	}

	body.display-menu header {
		position: relative;
	}
	body:not([class]) main > aside {
		left: 0rem;
	}
	main > section {
		order: 1;
	}
	#ruba-banner {
		display: none;
	}
}



#header {
font: 10pt Arial,Helvetica,sans-serif;
width: 100%;
margin-bottom: 3px;
}
#header, .table {
display: table;
}
#header > div, .table > * {
display: table-row;
}
#header > div > div {
height: 200px;
}
#header > div > div, .table > * > * {
vertical-align: top;
display: table-cell;
}
a {
	color: #428bca;
}


#header > div > div + div {
width: 690px;
background: url(http://router.test/image/header.png) no-repeat;
}
#header table em {
font-size: 15pt;
display: block;
}

#additional-info {
margin: 0;
padding: 0;
list-style-type: none;
display: table;
}
#additional-info li {
display: table-cell;
}
#additional-info li {
display: table-row;
white-space: nowrap;
}
#additional-info li > * {
display: table-cell;
}
#additional-info strong {
padding-right: 20px;
width: 80px;
text-align: right;
}
#additional-info strong:after {
content: ':';
}
#header td > strong {
font-size: 18pt;
color: rgb(102,102,102);
}
#header table th {
text-align: right;
vertical-align: top;
}
#header tbody th:after {
content:":";
}#additional-info img {
position: absolute;
margin-left: -20px;
}#header th + td {
padding-left: 20px;
}
#header th + td img {
position: absolute;
margin-left: -20px;
}
#header tbody tr:first-child + tr + tr td:last-child img {
position: absolute;
margin-left: -20px;
}#header > div > div > div {
width: 100%;
height: 180px;
position: relative;
}

#header div > div.table {
margin-top: 5px;
position: absolute;
right: 0;
}
#header div > div.table ul {
list-style-type: none;
margin:0;
padding: 0;
}
#header div > div.table li {
height: 28px;
width: 30px;
vertical-align: top;
}
#header li img, #header li a {
border: 0 !important;
}
#header div.table li a {
position: absolute;
display: block;
text-decoration: none;
}
#header a img {
border: 0;
}

#header th label.table {
position: relative;
z-index: 3;
}
#header th label.table:hover {
color: red;
border-color: red;
}
#display-menu:checked + label:hover + .table {
border-color: red;
}

#logo {
position: relative;
z-index: 4;
}
#logo > div {
display: table-row;
}
#logo > div > div {
display: table-cell;
}
#logo .logo div{
width: 48px;
height: 48px;
overflow: hidden;
}
#logo .logo a, #logo .logo span {
display: block;
width: 48px;
height: 48px;
background: url('../../image/logo.png') no-repeat top left;
}
#logo .logo:hover a{
background: url('../../image/logo.png') no-repeat top center;
}
#logo .logo:active a{
background: url('../../image/logo.png') no-repeat top right;
}

#logo .menu > div {
width: 44px;
height: 16px;
border: 2px solid rgba(200,200,200,0.3);
border-radius: 3px;
background: #fff url('../../image/menu-closed.png') no-repeat center center;
position: relative;
}
#logo .menu:hover > div {
border-color: rgba(23,163,165,0.5)
}
#logo .menu div div {
position: absolute;
display: block;
top: 0;
right: 0;
bottom: 0;
left: 0;
border: 1px solid transparent;
border-radius: 1px;
}
#logo .menu:hover div div {
border-color: rgba(200,200,200,0.3);
}
#logo .menu ul {
position: absolute;
top: 18px;
margin: 0;
padding: 0;
list-style-type: none;
display: none;
box-shadow: 5px 5px 5px #cfcfcf;
background-color: white;
}


#logo .menu ul a {
text-decoration: none;
display: block;
width: 120px;
color: #025ea0;
padding: 3px 5px;
font-size: 10pt;
margin: 2px 5px;
}







#logo .menu ul a:hover {
background: #025ea0;
color: white;
}
#logo .menu ul li:last-child a {
background: #ea6c18;
}


#logo .menu ul li:last-child hr {
margin: 0 auto;
padding: 0;

border: 0;
border-top: 1px solid grey;

border-style: solid;
margin: auto;

}



#logo.show .menu ul {
display: block;
border-radius: 5px;
border: 1px solid #e0e0e0;
font-weight: bold;
}



#ip-info {
position: absolute;
top: 7px;
left: 56px;
z-index: 4;
margin: 0;
padding: 0;
}
#ip-info em {
display: block;
font-style: italic;
font-size: 15pt
}
#ip-info strong {
font-size: 18pt;
color: rgb(102, 102, 102);
}



#logo .menu ul li:last-child {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
#logo .menu ul li:last-child,
#logo .menu ul li:last-child a {
background-color: #f2f2f2;
margin-bottom: 0;
}
#logo .menu ul li:last-child:hover,
#logo .menu ul li:last-child:hover a {
background: #025ea0;
}










#display-menu {
display: none;
}
#nav {
text-align: left;
}

#nav span.logo {
display: block;
width: 60px;
height: 60px;
overflow: hidden;
}
#nav .table {
border-collapse: collapse;
}
#display-menu + .table {
border: 1px solid grey;
border-top: 0;
width: 59px;
background-color: #dfdfdf;
cursor: pointer;
}
#display-menu:checked + .table {
background-color: #efefef;
border-bottom: 0;
}

#nav ul.table {
display: none;
position: absolute;
margin: 0;
padding: 0;
z-index: 2;
border: 1px solid grey;
}

#display-menu:checked + label + .table {
display: table;
margin-top: -1px;
}
#nav ul.table li + li span {
border-top: 1px ridge grey;
}

#nav .table a {
display: block;
border: 1px solid red;
background-color: #efefef;
padding: 5px 8px;
}


#logo-block {
position: absolute;
}
#articles-feed li {
list-style-image: url('image/ul_li.gif');
}
#articles-feed a > span {
color: black;
}


#header {
	display: none !important;
}

#logo-block {
position: absolute;
}
.grid {
display: table;
}
.grid > div {
display: table-row;
}
.grid > div > div {
display: table-cell;
vertical-align: top;
}
.block-even, .block-odd {
margin: 5px 10px;
overflow: auto;
padding: 10px;
text-align: justify;
}
.block-even {

}
.block-odd {

}
#submenu {
margin: 10px 20px 0 0;
padding: 0;
text-align: right;
}
#submenu ul li+li:before {
content: '|';
margin: 0 5px;
}
#submenu ul {
list-style-type: none;
display: inline;
margin: 0;
padding: 0;
}
#submenu li{
margin-left: 0;
display: inline;
}
#footer {

margin: auto;
}


#footer {
margin-top: 3px;
border: 1px solid #E0E0E0;
color: #bbb; /* Цвет текста */
padding: 5px; /* Отступы вокруг текста */
margin-left: 245px;
}

#footer table { 
margin:0 auto; /* Выравнивание таблице по центру блока "footer" */
}

#footer table td {
text-align: right; /* Выравнивание строчки '© PavelS 2011' по правому краю */
} 
a[href^="http://top100.rambler.ru"] img {
visibility: hidden;
position: absolute;
}
h3 {
    color:#143D55;
    font-size: 16pt;
    font-family: Georgia, Times, serif;
    font-weight: normal;
    text-align: left;
}

h4 {
	margin: 0px 0px 0px 15px;
	border-bottom: 1px solid #999;
}

table tr {
vertical-align: top;
}

table.style111 {
	margin: 0px 0px 5px 0px;
        padding: 10px;
	display: block;
	overflow: auto;
	background: #F0EEE5;
	}
	
table.clean {
	margin: 0px 0px 5px 0px;
	padding: 10px;
	display: block;
	overflow: auto;
	background: #FDFDFD;
	}

table.style333 {
	margin: 0px 0px 5px 0px;
    padding: 10px;
	display: block;
	overflow: auto;
	background: #FFF8DE;
	}
	
p.st0 {
margin: 0px 0px 0px 0px;
font-size: 10pt;
text-align: justify;
}

p.st1 {
margin: 0px 0px 0px 15px;
font-size: 10pt;
text-align: justify;
}

p.st2 {
margin: 0px 0px 0px 15px;
font-size: 8pt;
text-align: justify;
font-style: italic;
}

p.fig {
text-align: center;
}


section > figure:not(.skip-flex) {
	display: flex;
}
section > figure:not(.skip-flex) figcaption {
	padding-left: 10px;
}
figure {
	margin: 0;
	padding: 20px;
}

@media screen and (max-width: 1204px) {
	figure:not(.skip-flex) {
		flex-direction: column;
	}
	figure {
		text-align: center;
	}
	figure figcaption {
		text-align: left;
	}
	
	figure:not(.skip-flex) div {
		text-align: center;
	}
}
main {
	max-width: 935px;
	margin-left: auto;
	margin-right: auto;
}



#choose-rev a, #choose-rev strong {
	padding-right: 5px;
}

#choose-rev *:not(b) + a, #choose-rev *:not(b) + strong {
	border-left: 1px solid grey;
	padding-left: 5px;
}










/* footer block */
@media screen and (min-width: 801px) {
	html {
		height: 100%;
	}

	body {
		min-height: 100%;
		margin: 0;
		padding: 0;
	}
	body {
		display: flex;
		flex-wrap: wrap;
	}
	body > div {
		border: 0px solid red;
		width: 100%;
		
	}
	footer {
		 height: 60px; 
		 
		 width: 100%;
		 align-self: flex-end;
		 
		 
	}
	
	main, footer > div {
		border-left: 0px solid red;
		border-right: 0px solid red;
	}
	
	
	footer > div {
		text-align: right;
		width: 935px;
		margin: auto;
		border-top: 1px solid grey;
		position: relative;
	}
	
	#partner-1 {
		display: none;
		position: absolute;
		right: 0;
		top: -18px;
	}
	
	footer span {
		white-space: nowrap;
		line-height: 60px;
	}
	
}
@media screen and (max-width: 800px) {
	body {
		padding-top: 3rem;
	}
	footer {
		text-align: center;
		padding: 1rem 0;
	}
}

/* Ораньжевая рамка над баннером 
@media screen and (max-width: 800px) {
	aside {
		border-top: 2px solid white;
	}
	aside div + div::before {
		content: '';
		position: absolute;
		height: 5px;
		border-top: 1px solid #cfcfcf;
		top: -8px;
		left: 0;
		right: 0; 
		background: radial-gradient(circle farthest-corner at center top, #f38416 10%, white 60%);
		border-bottom: 0 solid white;
		box-shadow: 0 2px 2px grey;
	}
}
*/


