@font-face {
	font-family: 'AmericanTypewriterRegular';
	src: url('../fonts/AmericanTypewriterRegular.eot');
	src: url('../fonts/AmericanTypewriterRegular.eot') format('embedded-opentype'),
		 url('../fonts/AmericanTypewriterRegular.woff') format('woff'),
		 url('../fonts/AmericanTypewriterRegular.ttf') format('truetype'),
		 url('../fonts/AmericanTypewriterRegular.svg#AmericanTypewriterRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}
html, body{height: 100%;}
/* General Reset */
body{
	margin:0;
	color:#3c3c3c;
	font:18px/22px 'AmericanTypewriterRegular', serif;
	/*background: #fbf9ef url(../images/bg-body.png) 50% 0;*/
	background: #fff;
	min-width: 1016px;
	position: relative;
	display: table;
	width: 100%;
}
img{border-style:none;}
input,
textarea,
select{
	color:#000;
	vertical-align:middle;
	font:100% Verdana, Geneva, sans-serif;
}
button::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner{
	border: none;
	padding: 0;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: none;
	cursor: pointer;
	-webkit-transition: all .3s;
	-o-transition: all .3s;
	transition: all .3s;
}
form,fieldset{
	margin:0;
	padding:0;
	border-style:none;
}
blockquote, q{quotes: none;}
q:before,
q:after {content: '';}
a{
	color:#2e2e2e;
	text-decoration:none;
	-webkit-transition: all .3s;
	-o-transition: all .3s;
	transition: all .3s;
}
a:hover{color: #f78a1e;}
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus{outline:none;}
/* General settings */
.container{
	width: 850px;
	min-height: 100%;
	margin: 0 auto;
	padding: 0 65px;
	background: #f9d200;
	position: relative;
}
.container:after,
.container:before{
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: rgba(255,255,255,.8) url(../images/bg-lotus-border.png) repeat-y 6px 0;
	z-index: 1;
}
.container:after{
	z-index: 2;
	background-position: 100% 0;
	background-color: transparent;
	width: 22px;
	left: auto;
	right: 6px;
}
.container > *{
	position: relative;
	z-index: 5;
}
/* header */
#header{
	padding: 54px 0 20px;
	z-index: 50;
}
#header:after{
	content: '';
	clear: both;
	display: block;
}
.opened #header{z-index: 5;}
.logo{
	display: block;
	margin: 0 auto;
	text-indent: -9999px;
	overflow: hidden;
	background: url(../images/logo.png) no-repeat;
	width: 384px;
	height: 117px;
}
.logo a{
	display: block;
	height: 100%;
}
.sublogo{
	float: left;
	text-indent: -9999px;
	overflow: hidden;
	background: url(../images/bg-sublogos.png) no-repeat;
	width: 135px;
	height: 128px;
}
.sublogo.right{
	float: right;
	background-position: -135px 0;
}
#header .sublogo{margin-top: -20px;}
/* main-nav */
#main-nav{
	text-align: center;
	padding: 2px 0 25px;
	margin-top: -10px;
	min-height: 34px;
	font-size: 0;
	line-height: 0;
	z-index: 10;
}
#main-nav .affix{
	position: fixed;
	top: 0;
	width: 100%;
	max-width: 850px;
	padding: 12px 0;
	background: #fef6cc;
}
#main-nav .affix-bottom{position: absolute;}
#main-nav > ul{
	list-style: none;
	padding: 0;
	margin: 0;
}
#main-nav > ul > li{
	display: inline-block;
	padding: 8px 20px;
}
#main-nav > ul > li > a{
	display: inline-block;
	vertical-align: top;
	position: relative;
	font: 22px/24px 'EB Garamond', serif;
}
#main-nav .active > a,
#main-nav .current_page_parent > a{
	color: #f78a1e;
}
#main-nav .active > a:after,
#main-nav .current_page_parent > a:after{
	content: '';
	position: absolute;
	top: -14px;
	right: -39px;
	background: url(../images/ico-sun.png) no-repeat;
	width: 47px;
	height: 47px;
}
.header-top{
	display: none;
	background: rgba(253,244,204,.9);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 10px 20px;
	z-index: 20;
	border-bottom: 1px solid #3c3c3c;
}
/* btn-openmenu */
.btn-openmenu{
	float: left;
	width: 30px;
	height: 20px;
	border-radius: 5px;
	padding: 10px;
	background: rgba(247,138,30,.9);
	font-size: 0;
	line-height: 0;
	z-index: 200;
}
.btn-openmenu span{
	display: block;
	background: #2e2e2e;
	height: 4px;
	border-radius: 2px;
}
.btn-openmenu span+span{margin-top: 4px;}
/* main */
#main{
	padding-bottom: 33px;
	overflow: hidden;
}
/* content */
#content{
	overflow: hidden;
	padding-left: 20px;
}
h1{
	margin: -45px 0 9px;
	padding: 45px 0 0;
	color: #bc0101;
	font: 26px/30px 'EB Garamond', serif;
}
p{margin: 0 0 9px;}
/* footer */
#footer{
	font: 14px/18px 'EB Garamond', serif;
	color: #bd0101;
	z-index: 2;
	padding: 135px 2px 30px;
}
#footer:after{
	content: '';
	clear: both;
	display: block;
}
#footer p{margin: 0;}
#footer .link{
	color: #cacaca;
	float: right;
}
#footer .link:hover{color: #f78a1e;}
#footer .sublogo{margin-top: -135px;}
#footer .sublogo.right{margin-right: 2px;}
/* fader */
.fader{
	position: fixed;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	background: rgba(0,0,0,.8);
	opacity: 0;
	z-index: -5;
	-webkit-transition: opacity .3s;
	-o-transition: opacity .3s;
	transition: opacity .3s;
}
.opened .fader{
	z-index: 20;
	opacity: 1;
	width: 100%;
	height: 100%;
}
@media screen and (min-width: 767px) {
	.fader{display: none !important;}
}
@media screen and (max-width: 1120px) {
	body{min-width: 320px;}
	.container{
		width: auto;
		padding-left: 60px;
		padding-right: 60px;
	}
	#main-nav .affix{
		max-width: 100%;
		left: 0;
	}
}
@media screen and (max-width: 767px),
	   screen and (orientation: landscape) and (max-width: 767px),
	   screen and (orientation: portrait ) and (max-width: 767px) {
	body{-webkit-text-size-adjust: none;}
	body.opened{overflow: hidden;}
	.container{
		padding: 0 30px;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		width: 100%;
	}
	.container:before{
		left: 0;
		right: 0;
		background-position: 0 0;
	}
	.container:after{right: 0;}
	#header{padding: 76px 0 15px;}
	#header .logo{
		display: block;
		float: none;
		width: 230px;
		height: 70px;
		-webkit-background-size: 230px 70px;
		background-size: 230px 70px;
	}
	#header .sublogo{display: none;}
	#main{padding-bottom: 10px;}
	#main-nav{
		position: fixed;
		top: 0;
		left: -100%;
		margin-left: -50px;
		bottom: 0;
		background: #fff;
		overflow-x: hidden;
		overflow-y: auto;
		font-size: 24px;
		line-height: 24px;
		padding-right: 40px;
		-webkit-transition: left .3s;
		-o-transition: left .3s;
		transition: left .3s;
		z-index: 100;
		width: 190px;
	}
	.opened #main-nav{
		margin-left: 0;
		left: 0;
	}
	#main-nav > ul{padding: 5px 0 5px 10px;}
	#main-nav .active > a:after{
		-webkit-background-size: 100% auto;
		background-size: 100% auto;
		width: 37px;
		height: 37px;
		top: 0;
	}
	#main-nav li > a{padding: 5px 0;}
	#main-nav > ul > li + li{margin-top: 10px;}
	#main-nav .affix{top: 0;}
	.header-top{display: block;}
	#content{margin-left: -5px;}
}