.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: #FF160E;
@white: #ffffff;
@black: #000000;
@grey: #F5F3F4;

@width: 850px;

body {
	font-family: 'trivia-serif';
	background-image: url(../images/bg.jpg);
	.cover;
}

.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 {
	padding: 100px 0;
	position: relative;
	overflow: hidden;
	width: 868px;
	height: 440px;
	margin: 0 auto;
	background-image: url(../images/bgbg.png);
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center 100px;
	
	.link {
		position: absolute;
		
		/*&-1 {
			width: 400px;
			height: 100px;
			top: 270px;
			left: 0px;
		}*/
	}
}

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

#footer {
	padding: 40px 0;
}

.tt-dropdown-menu {
	width: 100%;
	background-color: @white;
	font-family: 'trivia-serif';
	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 !important;

	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%;
	padding-bottom: 100px;
	color: @black;
	
	.header {
	}
	
	.text {
		width: 400px;
		margin: 0 auto;
		margin-bottom: 70px;
		color: @black;
		font-family: 'trivia-serif';
		font-size: 14px;
		line-height: 18px;
		text-align: center;
		
		a {
			text-decoration: underline;
		}
	}
	
	.start {
		width: 386px;
		margin: 0 auto;
		height: 318px / 2;
		cursor: pointer;
		background-position: 0px 0px;
		background-image: url(../images/btnStartPage.png);
		
		&:hover {
			background-position: 0px -318px / 2;
		}
		
		&.disabled {
			pointer-events: none;
		}
	}
	
	.confirm {
		text-align: center;
		padding-top: 20px;
		display: none;
		
		label {
			color: #fff;
			font-size: 12px;
			
			a {
				text-decoration: underline;
			}
		}
	}
	
}

.page-form {
	@w1: 140px;
	@w2: 400px;
	
	width: 100%;
	/*background-color: @red;*/
	padding-bottom: 100px;
	
	.form {
		color: @red;
		background-color: @white;
		width: 600px;
		margin: 0 auto;
		
		.label {
			font-size: 16px;
			line-height: 18px;
			text-align: right;
		}
		
		input {
			display: block;
			width: 100%;
			height: 100%;
			background-color: @white;
			color: @red;
			font-family: 'trivia-serif';
			font-size: 18px;
			line-height: 18px;
			border: 2px solid @red;
			padding: 8px 8px 9px 8px;
			outline: none !important;
			.box-sizing;
		}
		
		.switcher {
			position: relative;
			z-index: 999999999;
			height: 47px;
			border: 1px solid @white;
			background-color: @white;
			color: @red;
			overflow: hidden;
			.box-sizing;
			
			.switcher-option {
				position: relative;
				z-index: 9999999;
				float: left;
				width: 41px;
				height: 41px;
				line-height: 41px;
				text-align: center;
				cursor: pointer;
				border: 2px solid @red;
				
				&.active {
					background-color: @red;
					color: @white;
					pointer-events: none;
				}
				
				&:hover {
				}
				
				&.o-right {
					float: right;
				}
			}
		}
		
		.autolist {
			.tt-dropdown-menu {
				border: 2px solid @red;
				.box-sizing;
				.border-radius(0) !important;
				margin-top: -2px;
				
				.tt-dataset-states {
					padding: 0 !important;
				}
			
				* {
					font-size: 18px !important;
					line-height: 36px !important;
				}
			}
		
			&>span {
				display: block !important;
			}
		}
		
		.section {
			padding: 30px 30px;
			border-bottom: 1px dashed @red;
			
			&-name, &-email {
				.label {
					width: @w1;
					float: left;
					line-height: 42px;
					.box-sizing;
					padding-right: 30px;
				}
				
				input {
					width: @w2;
					float: left;
				}
			
				.name {
					margin-bottom: 10px;
				}
				
				.surname {
				}
			}
			
			&-bands, &-transport, &-wear {
				.left {
					width: @w1;
					float: left;
				}
				
				.right {
					width: @w2;
					float: left;
				}
				
				.label {
					padding-right: 30px;
					color: #756B68;
				}
				
				input {
					margin-bottom: 10px;
					
					&.no-margin {
						margin-bottom: 0;
					}
				}
			}
			
			&-panel {
				.left {
					width: @w1;
					float: left;
				}
				
				.right {
					width: @w2;
					float: left;
				}
				
				.label {
					font-size: 14px;
					padding-right: 30px;
				}
				
				.submit {
					width: 386px;
					margin: 0 auto;
					height: 318px / 2;
					cursor: pointer;
					background-position: 0px 0px;
					background-image: url(../images/btnStartPage.png);
					
					&:hover {
						background-position: 0px -318px / 2;
					}
					
					&.disabled {
						pointer-events: none;
					}
				}
			}
			
			&-photo {
				.left {
					width: 270px;
					float: left;
				}
				
				.right {
					width: 270px;
					float: left;
				}
				
				.label {
					line-height: 270px;
					.box-sizing;
					padding-right: 30px;
				}
			
				.photo {
					width: 270px;
					height: 270px;
					margin-bottom: 15px;
					.box-sizing;
					border: 2px solid @red;
					.cover;
					background-position: center top;
				}
				
				.change-photo {
					text-decoration: underline;
					line-height: 18px;
					cursor: pointer;
					text-align: center;
					
					.qq-drop-processing, .qq-upload-list {
						display: none;
					}
				}
			}
			
			&-sex {
				.left {
					width: 270px;
					float: left;
				}
				
				.right {
					width: 270px;
					float: left;
				}
				
				.label {
					width: 120px;
					float: left;
					font-size: 14px;
					padding-left: 20px;
				}
				
				.switcher {
					width: 105px;
					float: left;
					margin-left: 25px;
				}
			}
		}
	}
}

.page-user {
	position: relative;
	
	.instr {
		color: @black;
		font-size: 14px;
		line-height: 20px;
		text-align: center;
		width: 400px;
		margin: 0 auto;
		padding-bottom: 40px;
	}
	
	.card-container {
		&:empty {
			&~.like, &~.next {
				display: none;
			}
		
			&:after {
				content: 'Пока мы не смогли\Aнайти вам пару.\AПопробуйте позже';
				white-space: pre;
				color: @black;
				text-align: center;
				display: block;
				font-size: 16px;
				line-height: 22px;
			}
		}
	}
	
	.map {
		width: 815px;
		padding: 10px 0 30px 0;
		margin: 0 auto;
	
		.text {
			width: 198px;
			padding-right: 30px;
			padding-top: 70px;
			color: @white;
			float: left;
			font-size: 18px;
			line-height: 24px;
			text-align: right;
			display: none;
		}
		
		.image {
			width: 815px;
			height: 319px;
			background-image: url(../images/map.png);
			float: left;
		}
	}

	.up {
	}
	
	.down {
		padding: 0px 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 {
		width: 640px;
		margin: 0 auto;
		
		.you, .candidate {
			position: relative;
			width: 300px;
			float: left;
			z-index: 2;
		}
		
		.candidate {
			position: relative;
			margin-left: 40px;
		}
	
		.like, .next {
			position: absolute;
			cursor: pointer;
			.no-select;
		}
		
		.like {
			top: 40px;
			width: 118px;
			height: 133px;
			right: -140px;
			background-image: url(../images/like.png);
			background-position: 0px 0px;
			
			&:hover {
				background-position: 0px -129px;
			}
			
			&:active {
				background-position: 0px -258px;
			}
		}
		
		.next {
			top: 200px;
			width: 118px;
			height: 148px;
			right: -140px;
			background-image: url(../images/next.png);
			background-position: 0px 0px;
			
			&:hover {
				background-position: 0px -144px;
			}
			
			&:active {
				background-position: 0px -288px;
			}
		}
	}
	
	.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 60px 0px;
		text-align: center;
		font-size: 18px;
		line-height: 28px;
		color: @black;
		
		b {
			font-size: 30px;
			line-height: 42px;
		}
		
		.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;
	text-align: center;
	color: @red;
	
	.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 {
		padding: 15px 20px 0px 20px;
		overflow: hidden;
	
		.label {
			font-size: 12px;
			color: #FFCBBD;
			margin-bottom: 12px;
		}
		
		.items {
			.item {
				margin-top: 10px;
				white-space: nowrap;
				
				span {
					display: inline-block;
					padding: 1px 4px;
				}
			
				&.matched {
					color: @white !important;
					
					span {
						background-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 {
	background-color: @red;
}

.shares, .f-shares {
	@s: 36px;

	/*position: absolute;
	top: 136px;
	left: 50%;
	margin-left: -560px;
	width: 60px;
	color: @white;
	font-size: 12px;
	line-height: 16px;*/
	
	width: 130px;
	padding: 20px;
	margin: 0 auto;
	margin-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;
	}
}

.f-shares {
	position: fixed;
	z-index: 22;
	left: 30px;
	top: 30px;
}