/* 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: absolute;
	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;
	-moz-transform-origin: @x @y;
	-o-transform-origin: @x @y;
	-webkit-transform-origin: @x @y;
}

html, body {
	width: 100%;
	height: 100%;
	background: #f3f3f3;
}

@green: #2ab69d;
@yellow: #fdc536;

@width: 1200px;
@padding_left: 60px;
@shift: -@width * 0.5 + @padding_left;

@pink: #fabbc3;
@cardWidth: 300px;
@cardHeight: 450px;

.no-select {
	-webkit-user-select: none;
	-moz-user-select: none;
}

#page {
	position: relative;
	width: 100%;
	height: 100%;
	min-width: 1200px;
	
	.park {
		position: absolute;
		width: 150px;
		height: 41px;
		background-image: url(../images/logo.jpg);
		top: 10px;
		left: 80%;
		margin-left: -160px;
		display: block;
	}
	
	.action {
		position: relative;
		height: 850px;
		overflow: hidden;
		.no-select;
		
		.card-object {
			position: absolute;
			z-index: 100;
			display: block;
			cursor: move;
			.no-select;
			
			&.over {
				z-index: 3000;
			}
		}
		
		.action-title {
			width: 788px;
			height: 86px;
			background-image: url(../images/3.png);
			top: 0px;
			margin-top: 0px;
			position: absolute;
			left: 50%;
			margin-left: @shift;
		}
		
		.change-card-cover {
			width: 121px;
			height: 37px;
			background-image: url(../images/b4.png);
			top: 610px;
			margin-top: 0px;
			position: absolute;
			left: 50%;
			margin-left: @shift + 90px;
			cursor:  pointer;
		}
		
		.change-card-inner {
			width: 121px;
			height: 37px;
			background-image: url(../images/b4.png);
			top: 610px;
			margin-top: 0px;
			position: absolute;
			left: 50%;
			margin-left: @shift + 560px;
			cursor:  pointer;
		}
		
		.card {
			position: absolute;
			height: @cardHeight;
			border: 1px solid @pink;
			left: 50%;
			top: 150px;
			.box-sizing;
			
			&.card-cover {
				width: @cardWidth;
				margin-left: @shift;
				
				&:after {
					position: absolute;
					content: '';
					width: 117px;
					height: 29px;
					background-image: url(../images/info3.png);
					margin-top: -40px;
					margin-left: 90px;
				}
			}
			
			&.card-inner {
				width: @cardWidth * 2;
				margin-left: @shift + 320px;
				
				&:before {
					content: '';
					position: absolute;
					width: 1px;
					height: @cardHeight;
					background-color: @pink;
					margin-top: -1px;
					margin-left: @cardWidth;
				}
				
				&:after {
					position: absolute;
					content: '';
					width: 117px;
					height: 29px;
					background-image: url(../images/info2.png);
					margin-top: -40px;
					margin-left: 240px;
				}
			}
		}
		
		.objects-panel {
			position: absolute;
			width: 100%;
			left: 0px;
			top: 665px;
			height: 150px;
			background-image: url(../images/bg.jpg);
			.cover;
			.no-select;
			
			&:before {
				content: '';
				position: absolute;
				width: 176px;
				height: 92px;
				margin-top: 30px;
				margin-left: -600px;
				left: 50%;
				background-image: url(../images/5.png);
			}
			
			.objects-slider {
				height: 100%;
				width: 800px;
				margin: 0 auto;
				position: relative;
				overflow: hidden;
				
				.slider-container {
					height: 100%;
					margin-left: 0px;
					.transition( 800ms, margin );
					
					.slide {
						width: 800px;
						float: left;
						height: 100%;
						text-align: center;
					
						.object {
							margin: 20px 16px;
							width: 110px;
							height: 110px;
							display: inline-block;
							cursor: move;
							background-size: contain;
							background-position: center center;
							background-repeat: no-repeat;
							.no-select;
						}
					}
				}
			}
			
			.slider-button {
				position: absolute;
				width: 49px;
				height: 49px;
				cursor: pointer;
				top: 50%;
				left: 50%;
				margin-top: -25px;
				z-index: 9999;
			
				&.left {
					margin-left: -600px + 175px;
					background-image: url(../images/left.png);
					
					&:hover {
						background-image: url(../images/lefth.png);
					}
				}
				
				&.right {
					margin-left: 375px;
					background-image: url(../images/right.png);
					
					&:hover {
						background-image: url(../images/righth.png);
					}
				}
			}
		}
		
		.control-panel {
			position: absolute;
			width: 133px;
			height: @cardHeight;
			left: 50%;
			margin-left: -@shift - 133px;
			top: 150px;
			
			&:before {
				content: '';
				position: absolute;
				width: 162px;
				height: 122px;
				background-image: url(../images/info1.png);
				margin-top: -142px;
				margin-left: -19px;
			}
			
			.add-text-button {
				width: 133px;
				height: 145px;
				background-image: url(../images/b1.png);
				cursor: pointer;
				position: absolute;
				margin-top: 0px;
				margin-left: 0px;
				
				&:hover {
					background-image: url(../images/b1h.png);
				}
			}
			
			.clear-button {
				width: 132px;
				height: 49px;
				background-image: url(../images/b2.png);
				cursor: pointer;
				position: absolute;
				margin-top: 200px;
				margin-left: 0px;
				
				&:hover {
					background-image: url(../images/b2h.png);
				}
			}
			
			.save-button {
				width: 132px;
				height: 49px;
				background-image: url(../images/b3.png);
				cursor: pointer;
				position: absolute;
				margin-top: 400px;
				margin-left: 0px;
				
				&:hover:not(.saved) {
					background-image: url(../images/b3h.png);
				}
				
				&.saved {
					cursor: default;
					opacity: 0.5;
				}
			}
		}
		
		.add-text-window {
			position: absolute;
			width: 530px;
			left: 50%;
			margin-left: 9px;
			z-index: 2000;
			top: 150px;
			height: 370px;
			background-color: #1f34f8;
			.transition;
			.radius(13px);
			.no-select;
			
			&:after {
				content: '';
				position: absolute;
				width: 411px;
				height: 31px;
				background-image: url(../images/drag.png);
				margin-top: 0px;
				margin-left: 60px;
			}
			
			&.hidden {
				left: 100%;
			}
			
			.close {
				cursor: pointer;
				width: 33px;
				height: 33px;
				background-image: url(../images/cross.png);
				margin-top: 10px;
				margin-left: 487px;
			}
			
			.text-slider {
				height: 300px;
				width: 300px;
				margin: 0 auto;
				margin-top: -30px;
				position: relative;
				overflow: hidden;
				
				.slider-container {
					height: 100%;
					margin-left: 0px;
					.transition( 400ms, margin );
					
					.slide {
						width: 300px;
						float: left;
						height: 100%;
						text-align: center;
					
						.object {
							margin: 0px 0px;
							width: 300px;
							height: 300px;
							display: inline-block;
							cursor: move;
							background-size: contain;
							background-position: center center;
							background-repeat: no-repeat;
						}
					}
				}
			}
			
			.slider-button {
				position: absolute;
				width: 49px;
				height: 49px;
				cursor: pointer;
				top: 50%;
				left: 50%;
				margin-top: -55px;
				z-index: 9999;
			
				&.left {
					margin-left: -600px + 175 + 250px - 50px;
					background-image: url(../images/left2.png);
				}
				
				&.right {
					margin-left: 125px + 50px;
					background-image: url(../images/right2.png);
				}
			}
		}
	}

	.footer {
		padding-top: 0px;
		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;
					}
				}
			}
		}
	}
}

.start {
	.zahod {
		width: 898px;
		height: 591px;
		background: url(../images/zahod.jpg);
		margin: 0 auto;
	}
	.kakashka {
		width: 364px;
		height: 503px;
		background: url(../images/2.jpg);
		margin: 0 auto;
	}
	.lead {
		font-family: MonoCondensed-Bold;
		font-size: 20px;
		line-height: 26px;
		width: 680px;
		text-align: center;
		margin: 50px auto;
		padding-bottom: 50px;
	}
}

.postcard {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -225px 0 0 -150px;
	width: 300px;
	height: 450px;
	
	-webkit-transform: translateX(0px);
	-moz-transform: translateX(0px);
	-o-transform: translateX(0px);
	transform: translateX(0px);
	
	-webkit-transition: all 2s ease;
	-moz-transition: all 2s ease;
	-o-transition: all 2s ease;
	transition: all 2s ease;
	
	.cover {
		position: absolute;
		width: 300px;
		height: 450px;
		z-index: 2;
		/*-webkit-transition: translate3d(0,0,0);*/
		
		-webkit-transform-style: preserve-3d;
		-moz-transform-style: preserve-3d;
		-o-transform-style: preserve-3d;
		transform-style: preserve-3d;
		
		-webkit-perspective: 800px;
		-moz-perspective: 800px;
		-o-perspective: 800px;
		perspective: 800px;
		
		
		
		.face, .back {
			position: absolute;
			top: 0px;
			left: 0px;
			width: 100%;
			height: 100%;
			z-index: 2;
			
			-webkit-backface-visibility: hidden;
			-moz-backface-visibility: hidden;
			-o-backface-visibility: hidden;
			backface-visibility: hidden;
			
			-webkit-transition: all 2s ease;
			-moz-transition: all 2s ease;
			-o-transition: all 2s ease;
			transition: all 2s ease;
			
		}
		.face {
			.transform-origin(0%, 50%);
		}
		.back {
			.transform-origin(100%, 50%);
			-webkit-transform: rotateY(-180deg);
			-moz-transform: rotateY(180deg);
			-o-transform: rotateY(-180deg);
			transform: rotateY(-180deg);
			left: -300px;
		}
	}
	.page {
		position: absolute;
		width: 300px;
		height: 450px;
		z-index: 1;
		background-position: -300px 0;
		
		.shadow {
			display: none;
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: #000;
			opacity: 0.9;
		}
	}
	
	&.flip {
		-webkit-transform: translateX(150px);
		-moz-transform: translateX(150px);
		-o-transform: translateX(150px);
		transform: translateX(150px);
		
		
		.face {
			-webkit-transform: rotateY(-180deg) !important;
			-moz-transform: rotateY(-180deg) !important;
			-o-transform: rotateY(-180deg) !important;
			transform: rotateY(-180deg) !important;
		}
		.back {
			-webkit-transform: rotateY(0deg)!important;
			-moz-transform: rotateY(0deg)!important;
			-o-transform: rotateY(0deg)!important;
			transform: rotateY(0deg)!important;
		}
		.end, .make {
			-webkit-transform: translateX(-280px);
			-moz-transform: translateX(-280px);
			-o-transform: translateX(-280px);
			transform: translateX(-280px);
		}
	}
	
	.open, .close {
		display: none;
		position: absolute;
		right: -200px;
		top: 50%;
		margin-top: -21px;
		width: 151px;
		height: 42px;
		background: url(../images/open.png);
		cursor: pointer;
	}
	.close {
		background: url(../images/close.png);
	}
	.end {
		position: absolute;
		left: -300px;
		width: 310px;
		height: 165px;
		background: url(../images/end.png);
		
		-webkit-transition: all 2s ease;
		-moz-transition: all 2s ease;
		-o-transition: all 2s ease;
		transition: all 2s ease;
		
		input {
			border: 3px solid #e7304d;
			padding: 10px;
			width: 236px;
			color: #e7304d;
			font-size: 12px;
			margin-left: 10px;
			position: absolute;
			bottom: -90px;
			.radius(13px)
		}
	}
	.make {
		position: absolute;
		left: -300px;
		width: 154px;
		height: 80px;
		background: url(../images/make.png);
		cursor: pointer;
		display: block;
		-webkit-transition: all 2s ease;
		-moz-transition: all 2s ease;
		-o-transition: all 2s ease;
		transition: all 2s ease;
		bottom: 0px;
		
		&:hover {
			background: url(../images/make_hover.png);
		}
	}
	
}

.huynushka {
	position: fixed;
	top: 0px;
	left: 50px;
	width: 228px;
	height: 111px;
	background: url(../images/vam.png);
}


.endd {
	top: 100px;
	width: 1050px;
	height: 250px;
	left: 50%;
	position: relative;
	margin-left: -500px;
	text-decoration: none;
	font-family: MonoCondensed-Bold;
	font-size: 25px;
	line-height: 23px;
	background-image: url(../images/pg2.png);
}

.parkg{
	margin-top: -38px;
	margin-bottom: 150px;
	position: relative;
	width: 100%;
	height: 500px;	
	background-image: url(../images/bg2.jpg);
	.cover;
	
	
	
}