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

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

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

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

.translate(@x: 0px, @y: 0px, @z: 0px) {
	-webkit-transform: translateX( @x );
	-moz-transform: translateX( @x );
	-ms-transform: translateX( @x );
	-o-transform: translateX( @x );
	transform: translateX( @x );
	
	-webkit-transform: translateY( @y );
	-moz-transform: translateY( @y );
	-ms-transform: translateY( @y );
	-o-transform: translateY( @y );
	transform: translateY( @y );
	
	-webkit-transform: translateZ( @z );
	-moz-transform: translateZ( @z );
	-ms-transform: translateZ( @z );
	-o-transform: translateZ( @z );
	transform: translateZ( @z );
	
	-webkit-transform: translate3d( @x, @y, @z );
	-moz-transform: translate3d( @x, @y, @z );
	-ms-transform: translate3d( @x, @y, @z );
	-o-transform: translate3d( @x, @y, @z );
	transform: translate3d( @x, @y, @z );
}

.box-shadow(@value) {
	-webkit-box-shadow: @value;
	box-shadow: @value;
}

.clear {
	clear: both;
}

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

.animation(@str) {
	-webkit-animation: @str;
	-moz-animation: @str;
	-o-animation: @str;
	animation: @str;
}

.rotate( @value: 0deg ) {
	-webkit-transform: rotate( @value );
	-moz-transform: rotate( @value );
	-ms-transform: rotate( @value );
	-o-transform: rotate( @value );
	transform: rotate( @value );
}

/**/

@red: #CF311A;
@white: #ffffff;
@black: #000000;
@grey: #F5F3F4;

@width: 850px;

body {
	font-family: 'trivia-grotesk';
}

.the-end {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0px;
	top: 0px;
	background: fadeout(@red, 10%);
	z-index: 100;
	.transition(@duration: 800ms);
	
	.container {
		position: absolute;
		width: 600px;
		height: 400px;
		margin: auto;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		color: #fff;
		
		p {
			text-align: center;
			line-height: 1.35;
			width: 80%;
			margin: 0 auto;
			font-size: 18px;
		}
		.title {
			font-size: 35px;
			padding-bottom: 45px;
			width: 100%;
		}
		.button {
			border: 1px solid #fff;
			.border-radius;
			line-height: 44px;
			color: #fff;
			text-align: center;
			font-size: 20px;
			margin: 45px auto;
			cursor: pointer;
			width: 240px;
			.transition(@duration: 150ms);
			
			&:hover {
				background: #fff;
				color: @red;
			}
			&:active {
				position: relative;
				top: 1px;
			}
		}
	}
	
	&.hidden {
		.translate(0px, -100%);
	}
}

#intro {
	position: relative;
	height: 1080px;
	background-color: @grey;
	overflow: hidden;
	min-width: 1100px;
	
	.ikea-logo {
		position: absolute;
		z-index: 4;
		top: 48px;
		left: 50%;
		margin-left: -560px;
		width: 132px;
		height: 48px;
		background-image: url(../images/newlogo.png);
	}
	
	.pairs {
		@s: 80px;
	
		position: absolute;
		z-index: 4;
		width: @s * 2;
		left: 50%;
		margin-left: 427px;
		top: 40px;
		
		.caption {
			font-size: 20px;
			line-height: 26px;
		}
		
		.faces {
			padding: 20px 0px 10px 0px;
			margin: 0 auto;
			width: @s * 2;
			
			.face {
				position: relative;
				float: left;
				width: @s;
				height: @s;
				.border-radius;
				.cover;
			
				&.left {
					left: 0px;
				}
				
				&.right {
					left: -10px;
				}
			}
		}
		
		.text {
			font-size: 14px;
			line-height: 20px;
		}
		
		a {
			text-decoration: underline;
			
			&:hover {
				color: @red;
			}
		}
	}
	
	.title {
		position: absolute;
		top: 50px;
		width: 600px;
		left: 50%;
		margin-left: -300px;
		text-align: center;
		font-size: 110px;
		font-weight: 400;
		color: @red;
		z-index: 2;
	}
	
	.description {
		position: absolute;
		bottom: 50px;
		width: 720px;
		left: 50%;
		margin-left: -360px;
		z-index: 2;
		font-size: 18px;
		line-height: 26px;
		text-align: left;
		text-align: center;
		
		a {
			color: @black;
			text-decoration: underline;
			
			&:hover {
				color: @red;
			}
		}
	}
	
	.layer {
		position: absolute;
		z-index: 3;
	}
	
	.heart {
		position: absolute;
		width: 666px;
		height: 528px;
		background-image: url(../images/heart.png);
		left: 50%;
		top: 180px;
		margin-left: -666px / 2;
		z-index: 20;
		/*-webkit-animation: heartbeat 2.6s ease infinite 2s normal;*/
	}
}

#page {
	min-width: 1200px;
	overflow: hidden;
}

#footer {
	padding: 40px;
	background-color: darken(@red, 5%);
	color: @white;
	
	.container {
		width: 800px;
		margin: 0 auto;
		position: relative;
		text-align: center;
	}
	
	.ikea-logo {
		position: absolute;
		top: 6px;
		left: -90px;
		width: 100px;
		height: 34px;
		background-image: url(../images/logo.png);
	}
	
	.hashtag {
		display: block;
		font-size: 64px;
		text-transform: uppercase;
		margin-bottom: 0px;
		
		&:hover {
			text-decoration: underline;
		}
	}
	
	.bed {
		background-image: url(../images/new2.png);
		margin: 0 auto;
		width: 444px;
		height: 301px;
		margin: 0 auto;
	}
	
	.link {
		display: inline-block;
		font-size: 16px;
		text-decoration: underline;
		margin-right: 20px;
		
		&.last {
			margin-right: 0px;
		}
	}
}

.tt-dropdown-menu {
	width: 100%;
	background-color: @white;
	font-family: 'trivia-grotesk';
	font-size: 22px;
	line-height: 32px;
	color: @black;
	.border-radius(4px);
	
	.tt-dataset-states {
		padding: 10px 0px;
		
		&:empty {
			display: none;
		}
		
		.tt-suggestion {
			padding: 0px 10px;
		}
		
		.tt-highlight, .tt-cursor {
			background-color: lighten(@red, 35%);
		}
	}
}

/* moderator */

#moderator {
	text-align: center;
	background-color: #023199;
	display: none;

	div {
		display: inline-block;
		cursor: pointer;
		padding: 20px;
		color: #FFCB01;
		
		&:hover {
			background-color: darken(#023199, 10%);
		}
	}
	
	&.shown {
		display: block;
	}
}

.page-moderator-forms {
	.card {
		float: left;
		margin: 20px;
	}
}

.page-moderator-pairs {
	padding: 40px;

	.card {
		float: left;
	}
	
	.pair {
		position: relative;
		background-color: @red;
		padding: 20px;
		width: 620px;
		margin-right: 20px;
		float: left;
		margin-top: 20px;
		.border-radius(4px);
	
		.card {
			&:first-child {
				margin-right: 20px;
			}
		}
		
		@w: 104px;
		@h: 104px;
	
		.bp(@x: 1, @y: 1) {
			background-position: -@w * (@x - 1) -@h * (@y - 1);
		};
		
		.like {
			position: absolute;
			left: 51%;
			top: 19%;
			margin-left: -@w / 2;
			width: @w;
			height: @h;
			cursor: pointer;
			background-image: url(../images/buttons.png);
			.no-select;
		}
		
		.like {
			.bp(1, 1);
			
			&:hover {
				.bp(2, 1);
			}
			
			&:active {
				.bp(3, 1);
			}
		}
	}
}

.page-moderator-films {
	padding: 20px 0px 70px 0px;

	.film {
		width: 600px;
		margin: 0 auto;
		padding: 10px;
		.border-radius(4px);
		
		.name {
			width: 450px;
			float: left;
			margin-right: 20px;
			height: 30px;
			line-height: 30px;
		}
		
		.delete {
			float: left;
			width: 130px;
			background-color: @red;
			height: 30px;
			line-height: 30px;
			color: @white;
			cursor: pointer;
			text-align: center;
			.border-radius(4px);
			
			&:hover {
				background-color: darken(@red, 10%);
			}
		}
		
		&:hover {
			background-color: #e6e6e6;
		}
	}
}

/**/

.page-start {
	position: relative;
	width: 100%;
	background-color: @red;
	padding-bottom: 100px;
	
	.header {
		width: @width;
		margin: 0 auto;
		padding: 70px 0;
	
		p {
			text-align: center;
			font-size: 24px;
			line-height: 32px;
			color: @white;
		}
	}
	
	.start {
		width: 430px;
		height: 96px;
		line-height: 96px;
		text-align: center;
		cursor: pointer;
		font-size: 36px;
		color: @red;
		background-color: @white;
		margin: 0 auto;
		.border-radius(10px);
		
		&.disabled {
			pointer-events: none;
		}
		
		&:hover {
			background-color: fadeout(@white, 10%);
		}
	}
	
	.confirm {
		text-align: center;
		padding-top: 20px;
		
		label {
			color: #fff;
			font-size: 12px;
			
			a {
				text-decoration: underline;
			}
		}
	}
	
	.pillow1 {
		top: 200px;
		left: 11%;
		margin-left: -340px;
	}
	.pillow2 {
		top: -100px;
		right: 10%;
		margin-right: -370px;
	}
	
}

.pillow1 {
	position: absolute;
	width: 444px;
	height: 407px;
	background-image: url(../images/pillow1.png);
}

.pillow2 {
	position: absolute;
	width: 455px;
	height: 429px;
	background-image: url(../images/pillow2.png);
}

.page-form {
	width: 100%;
	background-color: @red;
	padding-bottom: 100px;
	
	.header {
		width: @width;
		margin: 0 auto;
		padding: 70px 0;
	
		p {
			text-align: center;
			font-size: 24px;
			line-height: 32px;
			color: @white;
		}
	}
	
	.form {
		color: @white;
		width: @width;
		margin: 0 auto;
	
		.row {
			.left, .right {
				float: left;
			}
			
			&.first, &.second {
				.left {
					width: 300px;
					margin-right: 50px;
				}
				
				.right {
					width: @width - 300px - 50px;
				}
			}
			
			&.second {
				margin-top: 25px;
			}
			
			&.third {
				margin-top: 25px;
				
				.left {
					width: 480px;
					margin-right: 50px;
				}
				
				.right {
					width: @width - 480px - 50px;
				}
			}
		}
		
		.label {
			font-size: 15px;
			margin-bottom: 9px;
		}
		
		input {
			display: block;
			width: 100%;
			height: 100%;
			background-color: @red;
			color: @white;
			font-family: 'trivia-grotesk';
			font-size: 22px;
			line-height: 22px;
			border: 1px solid @white;
			padding: 10px 10px 11px 10px;
			outline: none !important;
			.border-radius(4px);
			.box-sizing;
		}
		
		textarea {
			resize: none;
			display: block;
			width: 100%;
			height: 100%;
			padding: 10px;
			background-color: @red;
			color: @white;
			font-family: 'trivia-grotesk';
			font-size: 22px;
			border: 1px solid @white;
			outline: none !important;
			.border-radius(4px);
			.box-sizing;
		}
		
		.switcher {
			position: relative;
			z-index: 999999999;
			width: 92px;
			height: 45px;
			border: 1px solid @white;
			background-color: @red;
			color: @white;
			overflow: hidden;
			.border-radius(4px);
			.box-sizing;
			
			.switcher-option {
				position: relative;
				z-index: 9999999;
				float: left;
				width: 44px;
				height: 43px;
				line-height: 43px;
				text-align: center;
				cursor: pointer;
				/*.border-radius(4px);*/
				
				&.active {
					background-color: @white;
					color: @red;
					pointer-events: none;
				}
				
				&:hover {
					/*background-color: fadeout(@white, 80%)*/
				}
				
				&.o-right {
					float: right;
				}
			}
		}
		
		.photo {
			width: 300px;
			height: 300px;
			margin-bottom: 15px;
			.border-radius(4px);
			.cover;
			background-position: center top;
		}
		
		.change-photo {
			text-decoration: underline;
			cursor: pointer;
			.label;
			
			.qq-drop-processing, .qq-upload-list {
				display: none;
			}
		}
		
		.name {
			float: left;
			width: 180px;
			margin-right: 40px;
		}
		
		.surname {
			float: left;
			width: 280px;
		}
		
		.about {
			margin-top: 57px;
			height: 150px;
		}
		
		.your-sex {
			margin-bottom: 39px;
		}
		
		.films {
			input, span {
				display: block !important;
				margin-bottom: 9px;
			}
		}
		
		.submit {
			position: relative;
			width: 100%;
			height: 49px;
			background-color: @white;
			line-height: 49px;
			text-align: center;
			color: @red;
			font-size: 26px;
			text-transform: uppercase;
			letter-spacing: 4px;
			cursor: pointer;
			margin-top: 24px;
			.border-radius(4px);
			
			&:hover {
				background-color: fadeout(@white, 10%);
			}
			
			&:after {
				content: 'Будьте внимательны, анкету нельзя редактировать';
				position: absolute;
				width: 100%;
				top: 100%;
				margin-top: 10px;
				text-align: center;
				color: @white;
				left: 0;
				font-size: 12px;
				line-height: 16px;
				letter-spacing: 0px;
			}
		}
	}
}

.page-user {
	position: relative;

	.up {
		padding-top: 60px;
		background-color: @red;
	}
	
	.down {
		background-color: @grey;
		padding: 40px 0px 40px 0px;
		
		.hint {
			width: 600px;
			margin: 40px auto 0px auto;
			text-align: center;
			color: @black;
			font-size: 18px;
			line-height: 28px;
		}
	}
	
	
	
	.title {
		width: 600px;
		margin: 0 auto 60px auto;
		text-align: center;
		color: @white;
		font-size: 18px;
		line-height: 28px;
	}

	.pick-a-partner {
		@w: 104px;
		@h: 104px;
	
		.bp(@x: 1, @y: 1) {
			background-position: -@w * (@x - 1) -@h * (@y - 1);
		};
	
		width: 640px;
		margin: 0 auto;
		
		.you, .candidate {
			position: relative;
			width: 300px;
			float: left;
			z-index: 2;
		}
		
		.pillow1 {
			top: 330px;
			left: 50%;
			margin-left: -490px;
			z-index: 1;
		}
		.pillow2 {
			top: 310px;
			left: 50%;
			margin-left: 80px;
			z-index: 1;
		}
		
		.candidate {
			position: relative;
			margin-left: 40px;
		}
	
		.like, .next {
			position: absolute;
			right: -@w / 2;
			width: @w;
			height: @h;
			cursor: pointer;
			background-image: url(../images/buttons.png);
			.no-select;
			
			&:after {
				content: '';
				position: absolute;
				width: 100px;
				height: 32px;
				right: -100px;
				padding-left: 5px;
				top: 50%;
				margin-top: -21px;
				font-size: 12px;
				line-height: 16px;
				color: @white;
			}
		}
		
		.like {
			top: @h / 3;
			.bp(1, 1);
			
			&:hover {
				.bp(2, 1);
			}
			
			&:active {
				.bp(3, 1);
			}
			
			&:after {
				content: 'Пригласить в кино';
			}
		}
		
		.next {
			top: @h * 4 / 3 + 0px;
			.bp(1, 2);
			
			&:hover {
				.bp(2, 2);
			}
			
			&:active {
				.bp(3, 2);
			}
			
			&:after {
				content: 'Следующая анкета';
			}
		}
	}
	
	.partners {
		width: 980px;
		margin: 0 auto;
	
		.card {
			float: left;
			width: 300px;
			margin-right: 40px;
			
			&:nth-child(3n) {
				margin-right: 0px;
			}
		}
		
		.no {
			text-align: center;
		}
	}
	
	.partners-data {
		position: relative;
		width: 640px;
		margin: 0 auto;
		padding: 60px 0px 30px 0px;
		text-align: center;
		font-size: 18px;
		line-height: 28px;
		color: @white;
		
		b {
			font-size: 30px;
			line-height: 42px;
		}
		
		/*&:after {
			content: '';
			position: absolute;
			width: 42px;
			height: 43px;
			background-image: url(../images/arrow.png);
			left: 50%;
			margin-left: -21px;
			bottom: 20px;
		}*/
		
		.zero, .nezero {
			display: none;
			
			&.shown {
				display: block;
			}
		}
		
		&.hide-arrow {
			&:after {
				content: none;
			}
		}
	}
}

.card {
	width: 300px;
	background-color: @white;
	color: @black;
	padding-top: 20px;
	padding-bottom: 20px;
	z-index: 2;
	.border-radius(4px);
	.box-shadow(0px 2px 4px rgba(0, 0, 0, 0.24));
	
	.photo {
		width: 260px;
		height: 260px;
		margin: 0px 20px 20px 20px;
		.cover;
		background-position: center top;
		.border-radius(4px);
	}
	
	.name {
		font-size: 20px;
		width: 260px;
		margin: 0px 20px 10px 20px;
	}
	
	.about {
		font-size: 12px;
		width: 260px;
		height: 50px;
		margin: 0px 20px 20px 20px;
	}
	
	.films {
		border-top: 1px solid @red;
		padding: 15px 20px 0px 20px;
		overflow: hidden;
	
		.label {
			font-size: 14px;
			color: #8f8f8f;
		}
		
		.items {
			.item {
				margin-top: 10px;
				color: @black;
				white-space: nowrap;
				.transition(@target: color, @duration: 150ms, @type: ease);
			
				&.matched {
					color: @red;
				}
			}
		}	
	}
	
	.info {
		border-top: 1px solid @red;
		margin-top: 20px;
		padding: 15px 20px 0px 20px;
		font-size: 16px;
		display: none;
		
		.email {
			display: none;
			margin-bottom: 10px;
		}
		
		.social {
			color: #1F98D8;
			text-decoration: underline;
			
			&:hover {
				color: @red;
			}
		}
	}
	
	.delete {
		display: none;
		margin: 0px 20px 20px 20px;
		padding: 10px;
		text-align: center;
		background-color: @red;
		color: @white;
		cursor: pointer;
		.border-radius(4px);
		
		&:hover {
			background-color: darken(@red, 10%);
		}
	}
	
	&.card-user {
	}
	
	&.card-candidate {
	}
	
	&.card-partner {
		.info {
			display: block;
		}
	}
	
	&.card-mod-form {
		/*min-height: 700px;*/
	
		.info {
			display: block;
			
			.email {
				display: block;
			}
		}
	
		.delete {
			display: block;
		}
	}
	
	&.card-mod-pair {
		.info {
			display: block;
			
			.email {
				display: block;
			}
		}
	}
}

@-webkit-keyframes heartbeat {
  0% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  7% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  14% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  21% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  35% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.shares {
	@s: 36px;

	/*position: absolute;
	top: 136px;
	left: 50%;
	margin-left: -560px;
	width: 60px;
	color: @white;
	font-size: 12px;
	line-height: 16px;*/
	
	width: 130px;
	margin: 0 auto;
	padding-bottom: 40px;
	color: @white;
	font-size: 12px;
	line-height: 16px;
	
	.label {
		margin-bottom: 10px;
		text-align: center;
	}
	
	.buttons {
		
	}
	
	.reset {
		position: static !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
		display: block !important;
		border: none !important;
		.border-radius(0px) !important;
	}
	
	.b-share {
		.reset;
	}
	
	.b-share-btn__wrap {
		.reset;
		/*margin: @s / 2 0 0 0 !important;*/
		margin: 0 10px 0px 0px !important;
		width: @s;
		float: left!important;
		
		a {
			.reset;
			height: @s !important;
			background-color: transparent !important;
			
			&:after {
				content: '' !important;
				display: none !important;
			}
		}
		
		&:last-of-type {
			margin-right: 0!important;
		}
	}
	
	.b-share-icon {
		.reset;
		width: 36px !important;
		height: 36px !important;
		cursor: pointer;
		background-position: 0px 0px !important;
		
		&.b-share-icon_vkontakte {
			background-image: url(../images/shares/vk.png);
		}
		
		&.b-share-icon_facebook {
			background-image: url(../images/shares/fb.png);
		}
		
		&.b-share-icon_twitter {
			background-image: url(../images/shares/tw.png);
		}
	}
	
	.b-share-counter {
		.reset;
		display: none !important;
	}
}