/* 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%;
}

@blue: #1926fc;

#page {
	width: 100%;
	height: 100%;
	min-width: 1200px;
	
	.start {
		position: relative;
		height: 1000px;
	
		.title {
			width: 457px;
			height: 392px;
			background-image: url(../images/zahod.png);
			position: absolute;
			left: 50%;
			margin-left: -400px;
			top: 30px;
		}
		
		.lead {
			width: 457px;
			position: absolute;
			left: 50%;
			margin-left: -400px;
			top: 455px;
			text-align: center;
			color: #000000;
			font-family: MonoCondensed-Bold;
			font-size: 16px;
			line-height: 19px;
		}
		
		.authors {
			width: 457px;
			position: absolute;
			left: 50%;
			margin-left: -400px;
			top: 510px;
			text-align: center;
			color: #000000;
			font-family: PTSerif-Italic;
			font-size: 12px;
			line-height: 19px;
			
			a {
				color: @blue;
			}
		}
		
		.abrege {
			width: 457px;
			position: absolute;
			left: 50%;
			margin-left: -400px;
			top: 570px;
			text-align: left;
			color: #000000;
			font-family: PTSerif-Regular;
			font-size: 16px;
			line-height: 25px;
			
			a {
				color: @blue;
			}
		}
		
		.description {
			width: 300px;
			padding: 30px;
			position: absolute;
			left: 50%;
			margin-left: 200px;
			top: 500px;
			background-color: #eaeaea;
			font-family: ProximaNova-Regular;
			font-size: 12px;
			line-height: 19px;
			.box-sizing;
			
			span {
				font-family: ProximaNova-Extrabld;
			}
		}
	}
	
	.action {
		height: 100%;
		width: 100%;
		overflow: hidden;
		position: relative;
		
		.container {
			width: 300%;
			height: 100%;
			
			.frame {
				width: 33.333%;
				height: 100%;
				float: left;
				position: relative;
				margin-left: 0%;
				.transition(1200ms);
				
				.left, .right {
					width: 100px;
					height: 100px;
					position: absolute;
					border: 20px solid @blue;
					background-color: #ffffff;
					z-index: 10;
					.box-sizing;
					top: 50%;
					margin-top: -50px;
					margin-left: -50px;
					left: 0%;
				}
				
				.right {
					left: 100%;
					margin-left: -50px;
				}
				
				.inner {
					position: absolute;
					left: 50%;
					top: 50%;
					margin-left: -280px;
					margin-top: -200px;
					width: 560px;
					height: 400px;
					border: 20px solid @blue;
					background-color: #ffffff;
					z-index: 10;
					.box-sizing;
					
					.text {
						text-align: center;
						color: @blue;
						font-family: ProximaNova-Extrabld;
						font-size: 40px;
						line-height: 40px;
						display: table;
						.box-sizing;
						
						.itself {
							height: 100%;
							display: table-cell;
							vertical-align: middle;
						}
					}
				}
				
				&.network {
					.text {
						height: 200px;
					}
				
					.options {
						border-top: 20px solid @blue;
						
						.option {
							float: left;
							border-left: 20px solid @blue;
							width: 160px;
							height: 140px;
							line-height: 140px;
							text-align: center;
							color: @blue;
							cursor: pointer;
							font-family: ProximaNova-Extrabld;
							font-size: 28px;
							
							&:first-of-type {
								border-left: none;
							}
							
							&:hover {
								background-color: @blue;
								color: #ffffff;
							}
						}
					}
				}
				
				&.problem {
					.text {
						height: 160px;
					}
				
					.inner {
						height: 540px;
						margin-top: -270px;
					}
				
					.options {
						.option {
							font-family: ProximaNova-Extrabld;
							font-size: 28px;
							border-top: 20px solid @blue;
							padding: 10px 0px;
							text-align: center;
							color: @blue;
							cursor: pointer;
							
							&:hover {
								background-color: @blue;
								color: #ffffff;
							}
						}
					}
				}
				
				&.result {
					.inner {
						height: 540px;
						margin-top: -270px;
					}
					
					.text {
						font-size: 17px;
						line-height: 25px;
						font-family: ProximaNova-Regular;
						height: 300px;
						padding: 0px 20px;
					
						&.twitter {
							font-size: 30px;
							line-height: 36px;
						}
					}
					
					.share-button {
						min-height: 150px;
						padding: 35px 30px 25px 30px;
						background-color: @blue;
						color: #ffffff;
						text-align: center;
						font-size: 28px;
						line-height: 37px;
						font-family: ProximaNova-Extrabld;
						cursor: pointer;
						.box-sizing;
						
						&:hover {
							background-color: #fc8f8c;
						}
					}
					
					.again-button {
						text-align: center;
						color: @blue;
						cursor: pointer;
						text-align: center;
						font-size: 22px;
						font-family: ProximaNova-Extrabld;
						line-height: 50px;
						
						&:hover {
							background-color: @blue;
							color: #ffffff;
						}
					}
				}
				
				&.hidden {
					margin-left: -100%;
				}
			}
		}
		
		&:after {
			content: '';
			position: absolute;
			width: 100%;
			height: 20px;
			background-color: @blue;
			top: 50%;
			margin-top: -10px;
		}
	}
	
	.footer {
		padding-top: 50px;
		padding-bottom: 100px;
	}
}

.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;
					}
				}
			}
		}
	}
}