html, body {
	margin: 0px;
	padding: 0px;
	height: 100%;
}
#main-page {
    margin: 0px auto;
    min-height: 100%;
    width: 100%;
}
#r-main-page {
	display: none;
}
#nav-menu {
	width: 100%;
	height: 47px;
	background-color: black;
}
#top-part {
	background: url(../images/bg-lines.png) repeat-x #f4c639;
	height: 475px;
}
.top-container {
	background: url(../images/bg-sign.png) top center no-repeat;
	position: relative;
	padding: 0px 20px;
	max-width: 960px;
	height: inherit;
	margin: 0px auto;
}
.top-container .bfm-project {
	position: absolute;
	border: 1px solid white;
	font-family: 'Open Sans';
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	height: 28px; width: 94px;
	line-height: 28px;
	color: white;
	top: 42px;
}
.top-container .solt {
	position: absolute;
	top: 95px;
}
.top-container .social-buttons {
	position: absolute;
	top: 42px; right: 20px;
}
.top-container .share-text {
	position: absolute;
	font-family: 'Noto Serif';
	font-size: 12px;
	height: 31px; line-height: 31px;
	top: 42px; right: 130px;
	color: white;
}
.top-container .social-buttons ul {
	list-style: none;
	margin: 0px;
	padding: 0px;
	height: 31px;
	width: 96px;
}
.top-container .social-buttons ul li {
	background: url(../images/social.png) no-repeat;
	float: left; height: 31px; width: 31px;
	margin-right: 1px; cursor: pointer;
}
.top-container .social-buttons ul li.fb {
	background-position: 0px -33px;
}
.top-container .social-buttons ul li.vk {
	background-position: -32px -33px;
}
.top-container .social-buttons ul li.tw {
	background-position: -64px -33px;
}
.top-container .social-buttons ul li.fb:hover {
	background-position: 0px 0px;
}
.top-container .social-buttons ul li.vk:hover {
	background-position: -32px 0px;
}
.top-container .social-buttons ul li.tw:hover {
	background-position: -64px 0px;
}
.top-container .main-text-part {
	font-family: 'Noto Serif';
	padding-top: 185px;
	margin: 0px auto;
	max-width: 740px;
	text-align: center;
}
.top-container .main-text-part .text-title {
	font-size: 60px;
	font-weight: bold;
	height: 70px;
}
.top-container .main-text-part .text-author {
	font-size: 21px;
	font-style: italic;
}
.top-container .main-text-part .text-caption {
	padding-top: 40px;
	font-size: 18px;
}
#squares {
	background: url(../images/bg-square.png) repeat-x #f4c639;
	height: 39px;
}
#bottom-part {
	min-height: 450px;
}
#bottom-part .outer-wrapper {
	position: relative;
	max-width: 1000px;
	margin: 0px auto;
}
#bottom-part .inner-wrapper {
	max-width: 740px;
	margin: 0px auto;
}
#bottom-part .arrows {
	background: url(../images/arrows.png) no-repeat;
	position: absolute;
	cursor: pointer;
	height: 89px;
	width: 30px;
	top: 120px;
}
#bottom-part .left-arrow {
	background-position: -30px 0px;
	left: 50px;
}
#bottom-part .right-arrow {
	background-position: -60px 0px;
	right: 50px;
}
#bottom-part .left-arrow:hover {
	background-position: 0px 0px;
}
#bottom-part .right-arrow:hover {
	background-position: -90px 0px;
}
#bottom-part .bx-wrapper {
	margin-top: -80px !important;
}
#bottom-part .slide {
	background: url(../images/bg-item.png) no-repeat;
	padding: 15px;
	height: 304px;
	width: 240px;
}
#bottom-part .slide a {
	text-decoration: none;
	color: black;
}
#bottom-part .slide div {
	font-family: 'Noto Serif';
	overflow: hidden;
	padding-top: 10px;
}
#bottom-part .slide .d-title {
	font-size: 18px;
	height: 72px;
}
#bottom-part .slide .d-summary {
	font-size: 14px;
	height: 75px;
}
#fake-footer {
	height: 85px;
}
#footer {
	height: 85px;
	margin-top: -85px;
}
#footer .f-container {
	position: relative;
	height: 85px;
}
#footer .f-container .copyright {
	position: relative;
	max-width: 960px;
	height: 46px;
	padding: 0px 20px;
	margin: 0px auto;
}
#footer .f-container .copyright .bfm-logo {
	display: block;
	background: url(../images/bfm-logo.png) no-repeat;
	margin-left: 6px;
	margin-top: 6px;
	float: left;
	width: 117px;
	height: inherit;
}
#footer .f-container .copyright .license {
	font-family: 'Open Sans';
	font-size: 14px;
	margin-left: 32px;
	float: left;
	height: inherit;
}
#footer .f-container .copyright .taxi-icon {
	background: url(../images/taxi-icon.png) no-repeat;
	position: absolute;
	bottom: 0px; right: 0px;
	width: 175px;
	height: 116px;
}
#footer .f-container .back {
	background: url(../images/bg-footer.png) repeat-x;
	position: absolute;
	bottom: 0px;
	height: 39px;
	width: 100%;
}

/* Адаптивная верстка для малой ширины экрана */
#r-main-page .r-bfm-logo {
	background: url(../images/r-bfm-logo.png) no-repeat 50% 50%;
	height: 94px;
}
#r-main-page .r-header,
#r-main-page .r-footer {
	max-width: 100%;
	height: auto;
}
#r-main-page .r-header img,
#r-main-page .r-footer img {
	width: 100%;
}
#r-main-page .r-description {
	font-family: 'Noto Serif';
	font-size: 16px;
	text-align: center;
	padding: 30px 20px;
	max-width: 100%;
}
#r-main-page .r-article {
	padding: 0px 20px;
}
#r-main-page .r-article a {
	text-decoration: none;
	color: black;
}
#r-main-page .r-article .r-line {
	background-color: #b5b4be;
	max-width: 100%; height: 2px;
	margin-bottom: 15px;
}
#r-main-page .r-article .r-image img {
	width: 100%;
}
#r-main-page .r-article .r-title {
	font-family: 'Noto Serif';
	font-size: 16px;
	padding: 10px 10px 20px;
}
#r-main-page .r-footer {
	position: relative;
}
#r-main-page .r-footer .r-social {
	position: absolute;
	width: 50%;
	max-height: 20%;
	text-align: center;
	top: 10%;
	left: 25%;
}
#r-main-page .r-footer .r-social > div {
	display: inline-block;
	margin-right: 3%;
	width: 30%;
}
#r-main-page .r-footer .r-social > div img {
	width: 100%;
}
#r-main-page .r-back .r-arrow {
	padding-top: 25px;
	text-align: center;
}
#r-main-page .r-back .r-back-text {
	padding: 10px 0px 25px;
	text-align: center;
}
#r-main-page .r-back .r-back-text a {
	text-decoration: none;
	font-family: 'Noto Sans';
	font-size: 16px;
	color: #848484;
}
#r-main-page .r-copyright {
	font-family: 'Open Sans';
	font-size: 14px;
	border-top: 2px solid black;
	text-align: right;
	padding: 20px;
	min-height: 45px;
}

@media screen and (min-width: 768px) and (max-width: 999px) {
	.top-container {
		background-size: 60%;
	}
	#bottom-part .arrows, .share-text {
		display: none !important;
	}
	#footer .f-container .copyright .taxi-icon {
		background-size: 70%;
		background-position-x: 30px;
		background-position-y: bottom;
	}
	#footer .f-container .copyright .license {
		font-size: 13px;
	}
}
@media screen and (max-width: 767px) {
	#main-page, #footer {
		display: none;
	}
	#r-main-page {
		display: block;
	}
	#footer .f-container .copyright .license {
		font-size: 13px;
		width: 73%;
	}
	#r-main-page .r-copyright {
		text-align: left;
	}
}
@media screen and (max-width: 990px) {
	.r1 { display: none !important; }
}
@media screen and (max-width: 900px) {
	.r2 { display: none !important; }
}

/** Common menu  */
#nav-menu * {
	font-family: 'Noto Sans';
	font-weight: bold;
}
.menu-wrapper {
	width:100%;
	height:50px;
	margin: -10px 0px 0px 0px;
	background:#000;
}
.menu {
	width:1050px;
	margin:auto;
}
.menu ul {
	padding:8px 0px;
	margin: 0;
}
.menu ul li:first-child  {
	background: none;
	padding: 0px;
}
.menu ul li:nth-child(2) {
	background: none;
}
.menu ul li {
	display: inline;
	padding: 0px 0px 0px 36px;
	background:url(../images/dot.png) left no-repeat;
	line-height: 35px;
}
.menu ul li a{
	color:#FFF;
	font-size:12px;
	text-decoration:none;
	text-transform:uppercase;
}
.menu ul li img {
	vertical-align: middle;
}
.menu-wrapper {
	overflow: hidden;
}
.menu-wrapper ul li {
	display: block;
	float: left;
}