@o: #FF4E00;
@b: rgb(40,40,255);

@mm: ~"screen and (max-width: 360px)";
@m: ~"screen and (max-width: 1023px)";
@d: ~"screen and (min-width: 1024px)";

html, body {
	height: 100%;
}
body {
	// background: #7d7e7f;
	background-color: #000;
	* {
		line-height: 1em;
	}
}
body, input {
	font-family: 'Work Sans', sans-serif;
}
.times() {
	font-family: 'Times New Roman', serif;
}
.times {
	.times;
}
.italic {
	font-style: italic;
}
.clear() {
	clear: both;
	display: block;
	content: '';
}

#document {
	@media @m {
		position: relative;
		z-index: 2;
	}
	@media @d {
		position: absolute;
		left: 50%;
		z-index: 2;
		transform: translateX(-50%) scale(1);
	    transform-origin: 50% 0;
	}
}
.background {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: url('/images/pracownia.jpg') no-repeat center;
	background-size: cover;
	opacity: 0.7;
	video {
		position: absolute;
		left: 50%;
		top: 50%;
		min-width: 100%;
		min-height: 100%;
		transform: translate(-50%,-50%);
	}
}
.pw {
	margin: 0 auto;
	@media @m {
		max-width: 600px;
	}
	@media @d {
		width: 1280px;
		padding: 0 40px;
	}
}
h2 {
	text-transform: uppercase;
	font-weight: 800;
	@media @m { font-size: 35px; }
	@media @d { font-size: 120px; }
}
h3, .number {
	@media @m { font-size: 28px; }
	@media @d { font-size: 35px; }
	line-height: 1.2em;
	text-transform: uppercase;
}
h3 {
	font-weight: 800;
	@media @m { margin-bottom: 20px; }
	@media @d { margin-bottom: 50px; }
}

/* SECTIONS */


#header {
	.pw {
		position: relative;
	}
	.top {
		position: relative;
		.logo {
			@media @m { height: 40px; }
			@media @mm { height: 34px; }
			@media @d { height: 120px; }
			display: block;
			float: left;
		}
		.asp-logo {
			background: #fff;
		}
		&:after {
			.clear;
		}
	}
	.edition-year {
		position: absolute;
		top: 0;
		color: @o;
		font-weight: 900;
		cursor: default;
		@media @m { right: 18px; font-size: 28px; line-height: 40px; }
		@media @mm { font-size: 24px; line-height: 36px; }
		@media @d { right: 100px; font-size: 120px; line-height: 1em; }
	}
	.lang {
		position: absolute;
		top: 77px;
		right: -3px;
		text-transform: uppercase;
		font-size: 72px;
		font-weight: 900;
		color: #fff;
		line-height: 1em;
		&:hover {
			color: @o;
		}
	}
	.archive {
		@media @mm {
			display: none;
		}
		color: #fff;
		text-transform: uppercase;
		span, a {
			display: block;
			float: left;
			@media @m { margin: 0 5px; }
			@media @d { margin: 0 10px; }
		}
		position: absolute;
		@media @m {
			margin-top: 20px;
			font-size: 13px;
			right: 20px;
			span {
				display: none;
			}
		}
		@media @d {
			margin-top: 60px;
			right: 40px;
		}
		top: 50%;
		transform: rotate(-90deg) translateX(50%);
		transform-origin: 100% 100%;
		a {
			&:hover {
				color: @o;
			}
		}
	}
	.content {
		@media @m { padding: 25px 80px 25px 25px; }
		@media @d { padding: 0 25px; }
		margin-top: 30px;
		color: #fff;
		text-transform: uppercase;
		:not(.times) {
			font-weight: 800;
		}
		@media @m {
			font-size: 35px;
			// a {
			// 	display: block;
			// }
		}
		@media @d {
			font-size: 120px;
			a {
				display: inline-block;
				position: relative;
				&:after {
					content: '';
					display: none;
					position: absolute;
					left: 50%;
					top: 90%;
					transform: translateX(-50%);
					width: 100%;
					height: 28px;
					pointer-events: none;
					background: url('/images/hover2.gif') repeat-x center;
					background-size: auto 90px;
				}
				&:hover {
					&:after {
						display: block;
					}
				}
			}
		}
	}
}

#news {
	margin-top: 40px;
	.content {
		background-color: @o;
		color: #fff;
		@media @m {
			padding: 20px 25px 30px;
			font-size: 35px;
		}
		@media @d {
			padding: 5px 25px 80px;
			font-size: 120px;
		}
		.times;
	}
}

#studia {
	margin-top: 40px;
	.content {
		background-color: @b;
		color: #fff;
		@media @m {
			padding: 20px 25px 30px;
			font-size: 35px;
		}
		@media @d {
			padding: 5px 25px 80px;
			font-size: 120px;
		}
		p {
			.times;
		}
	}
}

#idea, #rekrutacja {
	margin-top: 20px;
	.content {
		position: relative;
		background-color: #fff;
		@media @m {
			padding: 25px 25px 40px;
		}
		@media @d {
			padding: 15px 25px 100px;
			.columns {
				.column {
					float: left;
					&.title {
						width: 575px;
					}
					&.text {
						width: 575px;
					}
				}
				&:after {
					.clear;
				}
			}
		}
		.menu {
			@media @m { margin: 20px 0 10px; }
			@media @d { margin-top: 40px; }
			div {
				@media @m { font-size: 28px; }
				@media @d { font-size: 56px; }
				line-height: 1em;
				color: #000;
				font-weight: 800;
				text-transform: uppercase;
				cursor: pointer;
			}
			.active {
				&:after {
					display: inline-block;
					margin-left: 5px;
					@media @m { content: '↓'; }
					@media @d { content: '→'; }					
				}
			}
		}
		.text {
			padding-top: 10px;
			> :not(.p1) {
				display: none;
			}
			p {
				@media @m { font-size: 16px; }
				@media @d { font-size: 24px; }
				line-height: 1.15em;
				.times;
			}
			p + p {
				margin-top: 1em;
			}
			a {
				&:hover {
					text-decoration: underline;
				}
			}
		}
	}
}

#idea {
	.content {
		.menu {
			div:hover {
				color: @o;
			}
			.active {
				color: @o;
			}
		}
		.text {
			a {
				color: @o;
			}
		}
	}
}

#rekrutacja {
	h2 {
		color: #fff;
	}
	.content {
		background-color: @b;
		.menu {
			div:hover {
				color: #fff;
			}
			.active {
				color: #fff;
			}
		}
		.text {
			color: #fff;
			a, .open-form {
				cursor: pointer;
				text-decoration: underline;
			}
		}
	}
}

@media @d {
	#rekrutacja .content .columns .column.text {
	    padding-top: 166px;
	}
}

.gallery {
	@media @m { height: 300px; }
	@media @d { height: 720px; }
	margin-top: 20px;
	.slider {
		@media @m { height: 300px; }
		@media @d { height: 720px; }
		overflow: hidden;
		.slick-arrow {
			-webkit-appearance: none;
			border: 0;
			background-color: transparent;
			border-radius: 0;
			appearance: none;
			display: block;
			position: absolute;
			top: 50%;
			transform: translateY(-50%);
			@media @m { 
				width: 40px;
				height: 40px;
				background-size: 30px;
			}
			@media @d { 
				width: 80px;
				height: 80px;
			}
			background-repeat: no-repeat;
			background-position: center;
			z-index: 2;
			cursor: pointer;
			font-size: 0;
			&.slick-next {
				@media @m { right: 10px; }
				@media @d { right: 60px; }
				background-image: url('/images/arrow-right.svg');
				&:hover {
					background-image: url('/images/arrow-right-h.svg');
				}
			}
			&.slick-prev {
				@media @m { left: 10px; }
				@media @d { left: 60px; }
				background-image: url('/images/arrow-left.svg');
				&:hover {
					background-image: url('/images/arrow-left-h.svg');
				}
			}
		}
		.item {
			height: 100%;
			background-size: cover;
			position: relative;
			.title {
				position: absolute;
				left: 0;				
				padding: 25px;
				@media @m { bottom: 15px; font-size: 18px; }
				@media @d { bottom: 0; font-size: 35px; }
				font-weight: 800;
				text-transform: uppercase;
				color: #fff;
			}
			.author {
				position: absolute;
				@media @m {
					left: 0;
					bottom: 0;
					padding: 0 25px 20px;
				}
				@media @d {
					right: 0;
					bottom: 0;
					padding: 0 25px 25px;		
				}
				color: #fff;
				font-size: 12px;		
			}
		}
	}
}

#konferencja {
	margin-top: 40px;
	.content {
		padding: 0 25px;
		color: #fff;
		position: relative;
		@media @d { margin-bottom: -268px; }
		p {
			@media @m { font-size: 35px; }
			@media @d { font-size: 120px; }
			text-transform: uppercase;
		}
		.date {
			font-weight: 800;
			@media @d { margin-left: 400px; }
		}
	}
}

#program, #zajecia {
	position: relative;
	z-index: 2;
	.table {
		padding: 20px 25px 30px;
		@media @m { margin-top: 20px; }
		@media @d { width: 386px; }
		.list {
			> div + div {
				margin-top: 25px;
			}
			.open-prelegent {
				cursor: pointer;
				&:hover {
					.host {
						text-decoration: underline;
					}
				}
			}
		}
		p {
			font-size: 18px;
			line-height: 22px;
			.times;
			&.host {
				color: #fff;
			}
			&.title {
				font-style: italic;
			}
		}
	}
	.columns {
		@media @d { 
			margin-top: 20px;
			.column {
				width: 386px;
				float: left;
				& + .column {
					margin-left: 20px;
				}
			}
			&:after {
				.clear;
			}
		}
	}
}

#program {
	@media @m { padding-top: 40px; }
	@media @d {
		padding-top: 50px;
		.columns .column .table h3 {
			height: 126px;
		}
	}
	.table {
		background: @o;
	}
}

#zajecia {
	.table {
		background-color: @b;
	}
	.number,
	h3,
	.brand {
		color: #fff;
	}
	.host {
		color: #000 !important;
	}
}

.modal-list {
	margin-top: 20px;
	h2 {
		@media @m { padding: 25px 25px 9px; }
		@media @d { padding: 20px 25px; }
	}
	.columns {
		@media @m {
			padding: 25px 25px 9px;
		}
		.column {
			@media @d {
				width: 386px;
				float: left;
				padding: 20px 25px 30px;
				& + .column {
					margin-left: 20px;
				}
			}
			div {
				@media @m { font-size: 18px; }
				@media @d { font-size: 24px; }
				line-height: 1.3em;
				margin-bottom: 16px;
				text-transform: uppercase;
				font-weight: 800;
				cursor: pointer;
			}
		}
		&:after {
			.clear;
		}
	}
}
#prelegenci {
	.content {
		background: #fff;
	}
	@media @d {
		.open-prelegent:hover {
			color: @o;
		}
	}
}
#warsztaty-lista {
	.content {
		background: @o;
		color: #fff;
	}
	@media @d {
		.open-workshop:hover {
			color: #000;
		}
	}
	&:after {
		.clear;
	}
}

#warsztaty {
	margin-top: 20px;
	.content {
		background: #000;
		color: #fff;
		@media @m { padding: 40px 25px; font-size: 35px; }
		@media @d { padding: 5px 25px 80px; font-size: 120px; }
		position: relative;
		// p {
		// 	max-width: 800px;
		// }
	}
}

#partnerzy {
	margin-top: 20px;
	.content {
		background-color: #000;
		color: #fff;
		@media @m {
			padding: 1px 25px 25px;
			h3 {
				margin: 25px 0;
			}
		}
		@media @d {
			padding: 25px;
			h3 {
				margin-top: 50px;
			}
		}
		img {
			@media @m {
				height: 30px;
				margin: 0 30px 20px 0;
			}
			@media @d {
				height: 50px;
				margin: 0 40px 30px 0;
				&:hover {
					opacity: 0.5;
				}
			}			
		}
		.authors {
			font-size: 12px;
			color: #999;
			@media @m { margin-top: 25px; }
			@media @d { margin-top: 50px; }
			a:hover {
				text-decoration: underline;
			}
		}
	}
}







/* MODAL */

.modal {
	display: none;
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: rgba(0,0,0,.5);
	@media @m { padding: 20px; }
	@media @d { padding: 80px 40px; }
	.content {
		display: none;
		@media @m { max-width: 400px; margin: 0 auto; }
		@media @d { width: 740px; }
		&.active {
			display: block;
		}
	}
	.item {
		display: none;
		&.active {
			display: block;
		}
	}


	.rekrutacja {
		background-color: #fff;
		z-index: 2;
		margin: 0 auto;
		@media @m {
			padding: 20px;
		}
		@media @d {
			padding: 20px 270px 20px 20px;
		}
		h2, input[type="submit"] {
			@media @d {
				font-size: 38px;
			}
			font-weight: 900;
			text-transform: uppercase;
		}
		h2 {
			@media @m {
				font-size: 24px;
			}
			color: @b;
			margin-bottom: 40px;
			padding: 5px;
		}
		input {
			-webkit-appearance: none;
			appearance: none;
			display: block;
			background-color: #e3e3e3;
			border: 0;
			border-radius: 0;
			height: 40px;
			width: 100%;
			margin-top: 6px;
			padding: 0 5px;
		}
		.field {
			display: block;
			@media @m {
				padding: 5px 0;
			}
			@media @d {
				padding: 10px 0;
			}	
		}
		a {
			color: @b;
			&:hover {
				text-decoration: underline;
			}
		}
		.columns {
			label {
				width: ~"calc( 50% - 10px )";
				float: left;
				& + label {
					margin-left: 20px;
				}
			}
			&:after {
				.clear;
			}
		}
		label {
			@media @m {
				font-size: 15px;
			}
			@media @d {
				font-size: 23px;
			}
			.times;
			cursor: pointer;
		}
		.title {
			padding: 0 5px;
			@media @m {
				font-size: 15px;
			}
			@media @d {
				font-size: 23px;
			}
			.times;
		}
		input:not([type="submit"]) {
			.times;
			@media @m {
				font-size: 18px;
			}
			@media @d {
				font-size: 28px;
			}
		}
		input[type="file"] {
			font-size: 17px;
		    line-height: 0;
		    padding: 9px;
		}
		input[type="checkbox"] {
			-webkit-appearance: none;
			appearance: none;
			display: inline-block;
			vertical-align: middle;
			float: left;
			border: 2px solid #000;
			border-radius: 100%;
			background: #fff;
			width: 22px;
			height: 22px;
			padding: 2px;
			margin-right: 5px;
			margin-top: 3px;
			cursor: pointer;
			&:after {
				display: none;
				content: '';
				background-color: @b;
				width: 100%;
				height: 100%;
				border-radius: 100%;
			}
			&:hover {
				border-color: @b;
			}
			&:checked {
				border-color: @b;
				&:after {
					display: block;
				}
			}
			& + span {
				display: inline-block;
				vertical-align: middle;
				line-height: 31px;
			}
		}
		input[type="submit"] {
			display: block;
			background-color: @b;
			color: #fff;
			padding: 10px;
			cursor: pointer;
			height: 60px;
			@media @m {
				font-size: 19px;
			}
			&:hover {
				background-color: #000;
			}
			&:disabled {
				background-color: #bbb;
				color: #999;
				cursor: wait;
			}
		}
		.sep {
			height: 30px;
		}
		.rules {
			margin: 10px 0 15px;
			padding-left: 33px;
			.times;
			font-size: 20px;
			line-height: 27px;
			input {
				float: left;
				margin-left: -33px;
			}
		}
		&:after {
			.clear;
		}
		.alert {
			display: none;
		}
	}

	.prelegenci {
		background-color: #fff;
		@media @d {
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%,-50%);
		}
		z-index: 2;
		.photo {
			@media @d {
				width: 50%;
				float: left;
			}
			img {
				display: block;
				width: 100%;
			}
		}
		.about {
			padding: 20px 15px 20px 25px;
			@media @d {
				width: 50%;
				float: left;
			}
			h3 {
				margin-bottom: 0;
			}
			p {
				margin-top: 20px;
				@media @m { font-size: 16px; }
				@media @d { font-size: 20px; }
				line-height: 1.2em;
				.times;
				&:empty {
					display: none;
				}
			}
		}
		&:after {
			.clear;
		}
	}

	.warsztaty {
		background-color: @o;
		margin: 0 auto;
		.item {
			h3 {
				color: #fff;
				padding: 20px 25px 0;
				margin-bottom: 0;
				max-width: 80%;
			}
			.info {
				padding: 25px;
				@media @d { 
					.about, .details {
						float: left;
					}
					.about {
						width: 70%;
						padding-right: 30px;
					}
					.details {
						width: 30%;
					}
				}
				.about {
					p {
						@media @m { font-size: 16px; }
						@media @d { font-size: 20px; }
						line-height: 1.2em;
						.times;
					}
				}
				.details {
					@media @m {
						margin-top: 24px;
					}
					h4 {
						margin-bottom: 0;
					}
					h4, p {
						@media @m { font-size: 16px; }
						@media @d { font-size: 20px; }
						line-height: 1.2em;
						text-transform: uppercase;
					}
					p {
						.times;
					}
					p + h4 {
						margin-top: 24px;
					}
				}
				&:after {
					.clear;
				}
			}
			.photos {
				.photo {
					position: relative;
					.author {
						position: absolute;
						left: 10px;
						bottom: 10px;
						color: #fff;
						font-size: 12px;
					}
				}
				img {
					display: block;
					width: 100%;
				}
			}
		}
	}
	.icon.close {
		@media @m { position: absolute; }
		@media @d { position: fixed; }
		right: 20px;
		top: 20px;
		background: url('/images/close.svg') no-repeat center;
		cursor: pointer;
		z-index: 2;
		@media @m {
			height: 40px;
			width: 40px;
			background-size: 25px;
			background-color: #000;
		}
		@media @d {
			height: 80px;
			width: 80px;
			&:hover {
				background-image: url('/images/close-h.svg');
			}
		}
	}
	.icon.prev,
	.icon.next {
		@media @m {
			display: none;
		}
		@media @d {
			appearance: none;
			display: block;
			position: fixed;
			top: 50%;
			transform: translateY(-50%);
			width: 80px;
			height: 80px;
			background-repeat: no-repeat;
			background-position: center;
			z-index: 2;
			cursor: pointer;
			&.inactive {
				opacity: 0;
				cursor: default;
				pointer-events: none;
			}
		}
	}
	.icon.next {
		right: 30px;
		background-image: url('/images/arrow-right.svg');
		&:hover {
			background-image: url('/images/arrow-right-h.svg');
		}
	}
	.icon.prev {
		left: 30px;
		background-image: url('/images/arrow-left.svg');
		&:hover {
			background-image: url('/images/arrow-left-h.svg');
		}
	}
}

#warsztaty-galeria {
	.item {
		p.title {
			cursor: pointer;
			&:hover {
				color: @o;
			}
		}
	}
}

.modal-visible .modal {
	display: block;
}