/* RESET */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

.clear {
	clear: both;
}

.social-share {
	margin-top:  50px;
	margin-left: 20px;
	position: fixed;
	z-index: 1000;
	
	&.pie {
		display: block;
	}
}

.cover {
	background-size: cover;
	background-position: center center;
}

.transition( @duration:400ms, @target:all ) {
	-webkit-transition: @target @duration ease;
	-moz-transition: @target @duration ease;
	-o-transition: @target @duration ease;
	transition: @target @duration ease;
}

.box-sizing {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.radius( @value: 1000px ) {
	-webkit-border-radius: @value;
	border-radius: @value;
    background-clip: padding-box;
}

.box-scale(@value) {
  -webkit-transform: scale(@value);
     -moz-transform: scale(@value);
      -ms-transform: scale(@value); 
       -o-transform: scale(@value);
          transform: scale(@value);
}

.transform-origin( @x, @y ) {
	transform-origin: @x @y;
	-ms-transform-origin: @x @y;
	-webkit-transform-origin: @x @y;
}

/*********************************/

html, body {
	width: 100%;
	height: 100%;
} 

#page {
	width: 100%;
	height: 100%;
}
.cont {
	position: relative;
	width: 860px;
	margin: 0 auto;
	height: 100%;
}
.cont header {
	height: 510px;
}
.cont header .head-text-img {
	display: block;
	width: 589px;
	height: 340px;
	background: url(../images/1.png) center center;
} 
.cont header .head-text-img div.auth {
	position: relative;
	float: right;
	margin-right: 89px;
	margin-top: 40px;
	font-family: 'ProximaNova-Regular';
	font-size: 14px;
	line-height: 16px;
	
	a {
		color: #000000;
	}
}
.yelow-box {
	position: absolute;
	width: 860px;
	height: 130px;
	top: 350px;
	left: 50%;
	margin-left: -430px;
	z-index: -1;

	.cats {
		position: absolute;
		width: 286px;
		height: 130px;
		top: 0px;
		
		&.one {
			left: 0px;
		}
		
		&.two {
			left: 286px;
		}
		
		&.three {
			left: 572px;
		}
		
		.frame {
			position: absolute;
			width: 100%;
			height: 100%;
			display: none;
			left: 0;
			top: 0;
			.cover;
			
			&.shown {
				display: block;
			}
		}
	}
}
.cont .test-body {
	margin-top: 50px;
}
.cont .test-body .descript p {
	margin-left: 20px;
	font-size: 16px;
	line-height: 24px;
	font-weight: normal;
	width: 500px;
	font-family:'PTSerif-Regular';
	margin-bottom: 20px;

} 
.cont .test-body .descript .start-btn {
	width: 356px;
	height: 94px;
	cursor: pointer;
	background: url(../images/button.png);
	margin-bottom: 50px;
	margin-left: 10px;
	margin-top: 100px;
}
.cont .test-body .descript .start-btn:hover {
	background: url(../images/button_hover.png);
}

.test-items.correct {
	background-color: green;
}
.test-items.encorrect {
	background-color: #E35F5F;
}
.test-items {
	height: 100%;
	.transition;
}

.test-items .item {
	width: 860px;
	height: 490px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -430px;
	margin-top: -245px;
	display: none;
}
.test-items .item.cur {
	display: block;
}
.test-items .item .we-cont {
	width: 420px;
	margin-right: 40px;
	float: left;
}
.test-items .item .number {
	font-family: 'ProximaNova-Regular';
	font-size: 18px;
	line-height: 21px;
	display: block;
	margin-bottom: 50px;
	margin-left: 10px;
}
.test-items .item .text {
	font-family: 'ProximaNova-Regular';
	font-size: 20px;
	line-height: 24px;
	margin-bottom: 40px;
	margin-left: 10px;
}
.test-items .item ul {
	padding: 0;
	margin: 0;

}
.test-items .item ul li {
	font-family: 'PTSerif-Regular';
	font-size: 18px;
	line-height: 24px;
	margin-bottom: 16px;
	cursor: pointer;
	
	&.disabled {
		pointer-events: none;
	}
}
.test-items .item ul li:hover {
	/*color:#ccc;*/
}
.test-items .item .img-box {
	float: left;
	width: 400px;
	height: 400px;
	position: relative;
	
	.hehe {
		position: absolute;
		left: 50%;
		top: 50%;
		opacity: 0;
		pointer-events: none;
		.transition;
		
		&.no {
			background-image: url(../images/incorrect_0-3Points.gif);
			width: 209px;
			height: 288px;
			margin-left: -105px;
			margin-top: -144px;
		}
		
		&.yes {
			background-image: url(../images/correct_9-13points.gif);
			width: 380px;
			height: 350px;
			margin-left: -190px;
			margin-top: -175px;
		}
		
		&.shown {
			opacity: 1;
		}
	}
}
.test-result {
	position: relative;
	height: 100%;
}
.res-box-ps {
	display: block;
	position: absolute;
	width: 550px;
	height: 460px;
	left: 50%;
	top: 50%;
	margin-left: -275px;
	margin-top: -230px;
	text-align: center;
}
.res-box-ps .res-img.ease {
	background: url(../images/incorrect_0-3Points.gif) center center;
	background-size: cover;
}
.res-box-ps .res-img.hard {
	background: url(../images/correct_9-13points.gif) center center;
	background-size: cover;
	width: 210px;
	height: 200px;
}
.res-box-ps .res-img.medium {
	background: url(../images/4-9Points.gif) center center;
	background-size: cover;
	width: 100px;
}
.res-box-ps .res-img {
	width: 138px;
	height: 190px;
	background-color: #f1f1f1; 
	margin: 0 auto;
}
.res-box-ps div.res-h {
	font-size: 36px;
	line-height: 43px;
	font-family: 'ProximaNova-Regular';
	display: inline-block;
	margin-bottom: 20px;
	margin-top: 20px;
}
.res-box-ps div.res-text {
	font-family: 'ProximaNova-Regular';
	font-size: 16px;
	line-height: 20px;
	text-align: center;
	margin-bottom: 20px;
}
.share span {
	display: inline-block;
	height:35px;
	width: 145px;
	cursor: pointer;
}
.share span.tw {
	background: url(../images/twitter.png);
}
.share span.tw:hover {
	background: url(../images/twitter_hover.png);
}
.share span.vk {
	background: url(../images/vk.png);
}
.share span.vk:hover {
	background: url(../images/vk_hover.png);
}

.footer {
	padding: 100px 0;
}
/*********************************/

.comm {
	width: 920px;
	margin: 0 auto;
	
	@active_color: #ffca24;

	.most-read {
		color: #000000!important;
	
		a {
			color: #000000!important;
		}
		margin-bottom: 30px;
	
		.container {
			width: 920px;
			margin: 0 auto;
		
			.label {
				padding: 30px 0px;
				font-family: PTSansPro-Caption;
				font-size: 19px;
			}
		
			.item {
				width: 200px;
				float: left;
				margin-left: 40px;
			
				.image {
					display: block;
					width: 200px;
					height: 200px;
					background-size: cover;
					background-position: 50% 50%;
				}
				
				.title {
					display: block;
					padding: 10px 0px;
					font-family: PTSerif-Regular;
					font-size: 18px;
					line-height: 20px;
					color: #000000;
					text-decoration: none;
				}
				
				.lead {
					font-family: PTSansPro-Caption;
					font-size: 12px;
					line-height: 13px;
				}
				
				&:nth-child(2) {
					margin: 0px;
				}
				
				&:hover {
					.title {
						color: @active_color;
					}
				}
			}
		}
	}
	
	.same-read {
		color: #000000!important;
	
		a {
			color: #000000!important;
		}
		margin-bottom: 30px;
		
		.container {
			width: 920px;
			margin: 0 auto;
			
			.label {
				padding: 30px 0px;
				font-family: PTSansPro-Caption;
				font-size: 19px;
			}
			
			.item {
				width: 300px;
				height: 100px;
				margin-bottom: 30px;
				float: left;
				
				.image {
					display: block;
					width: 100px;
					height: 100px;
					float: left;
					background-size: cover;
					background-position: 50% 50%;
					.transition;
				}
				
				.info {
					float: left;
					width: 170px;
					padding: 0px 15px;
					
					.rubrics {
						margin-bottom: 15px;
						
						 a {
						 	color: #000000;
						 	text-decoration: none;
						 	font-family: MonoCondensed-Bold;
							font-size: 11px;
							line-height: 13px;
						 	
						 	&:hover {
						 		color: @active_color;
						 	}
						 }
					}
					
					.title {
						margin-bottom: 20px;
						display: block;
						font-family: PTSerif-Regular;
						font-size: 20px;
						line-height: 21px;
						color: #000000;
						text-decoration: none;
						
						&:hover {
							color: @active_color;
						}
					}
				}
				
				&:hover {
					.title {
						color: @active_color;
					}
				}
			}
		}
	}
}