// -----[ HEADER ]-------------------------------------------------------------
@import 'util/mixins';

.wrapper {
	padding: 0;
	position: relative;
}

// -----[ TOP-BAR ]------------------------------------------------------------
.top-bar-wrapper {
	background: $white;
	border-bottom: 1px solid #ebebeb;
	width: 100%;
	position: fixed;
	top: 0;
	z-index: 5;
}
.top-bar {
	min-height: 70px;
	left: 0;
	right: 0;
	margin: 0 auto;
	max-width: 1200px;
	width: 100%;

	.logo {
		@include single-transition;
		display: inline-block;
		padding: 0;
		max-width: 180px;
	}

	a {
		@include single-transition;
		font-weight: $global-weight-normal;
	}

	.menu-icon {
		display: none;
		outline: none;
	}
}

.title-bar {
	background: transparent;
}

.top-bar-right {
	// display: none!important;
	transition-duration: 200ms!important;
	top: 70px;

	.menu__footer {
		display: none;
	}
}

.logo {
	width: 130px;
}

.menu {
	a {
		color: $secondary-color;
		font-weight: 500;

		&:hover,
		&:focus {
			color: $primary-color;
		}
	}

	.button {
		font-weight: 600;
		max-width: 193px;
		min-width: 100%;
	}

	.menu__item--active {
		a {
			color: $primary-color;
			pointer-events: none;
		}
	}
}

// -----[ LANG ]---------------------------------------------------------------
.lang {
	padding: 0 15px 0 30px;
	position: relative;

	&::before {
		background: #59616e;
		border-radius: 100%;
		content: '';
		height: 4px;
		left: 0;
		position: absolute;
		top: calc(50% - 2px);
		width: 4px;
	}
}

.lang__item {
	display: inline-block;
	padding: 0 6px 0 8px;
	position: relative;
	text-transform: uppercase;

	& ~ li {
		&::before {
			background: #59616e;
			content: '';
			height: 15px;
			left: 0;
			position: absolute;
			top: calc(50% - 9px);
			width: 1px;
		}
	}

	a {
		padding-left: 5px;
		padding-right: 5px;
		text-transform: uppercase;
	}
}

.menu {
	.lang__item--active {
		a {
			color: $primary-color;
			pointer-events: none;
		}
	}
}

// -----[ FOOTER ]-------------------------------------------------------------
.contact {
	background: #f7faff no-repeat calc(50% + 35px) 35px;
	@include img-url('bg/shapes/footer.svg');

	.grid-container {
		max-width: 1350px;
	}

	.text-big {
		border-bottom: 1px solid #ebebeb;
		padding-bottom: 40px;
		margin-top: 50px;
	}
}

.contact-address-container__image {
	position: relative;
	z-index: 1;
}

.list-gray {
	list-style: none;
	margin: 0;

	a {
		color: $secondary-color;
		font-size: rem-calc(16);

		span {
			color: $primary-color;
			font-weight: 700;
		}
	}
}

.list-gray__item--disabled {
	font-style: italic;
	opacity: .35;
	pointer-events: none;
	display: none;
}

.footer {
	position: relative;

	&::after {
		@include img-url('bg/shapes/footer-mobile-right.svg');
		background-position: 0 0 ;
		background-repeat: no-repeat;
		content: '';
		right: 0;
		height: 90px;
		position: absolute;
		top: -10px;
		width: 30px;
	}

	p {
		width: 100%;
	}
}

.footer--short {
	.footer__copyright {
		position: relative;
	}
}

.footer-media {
	display: flex;
	flex-wrap: wrap;
	// font-size: rem-calc(22);
	font-size: rem-calc(18);
	justify-content: space-between;
	list-style: none;
	margin: 50px auto;
	max-width: 500px;
}

.footer-media__item {
	// width: 33.33%;

	a {
		@extend %short-line;
		color: $grenade;
		font-weight: 700;
		// padding: 0 0 18px 35px;
		padding: 0;

		&:hover,
		&:focus {
			color: $primary-color;
			text-decoration: none!important;

			&::before {
				background: $primary-color;
				left: 35px;
				width: calc(100% - 35px);
			}
		}

		&:focus {
			outline: none;
		}

		&::before {
			@include single-transition;
			top: 35px;
			display: none;
		}
	}
}

.footer__contact {
	@include img-url('bg/shapes/footer-mobile-left.svg');
	background-position: 10px 10px;
	background-repeat: no-repeat;
	font-size: rem-calc(15);
	margin: 0 auto;
	max-width: 1350px;
	overflow: hidden;
	// padding: 10px 0 25px;
	padding: 10px 0 0;
	position: relative;

	.shape {
		background: $primary-color;
		height: 80px;
		left: calc(50% + 692px);
		position: absolute;
		top: calc(50% - 15px);
		width: 80px;
	}
}

.footer__copyright {
	background: $grenade;
	padding: 15px 0;

	bottom: 0;
	left: 0;
	position: absolute;
	width: 100%;

	p {
		color: $white;
		font-size: rem-calc(14);
		font-style: italic;
		margin: 0;
	}

	a {
		color: $white;
		font-weight: $global-weight-normal;

		&:hover,
		&:focus {
			text-decoration: underline;
			outline: none;
		}
	}
}

.privacy-policy {
	margin-left: 10px;
}

.realization {
	text-align: right;
}

// cookies
.cookies-wrap {
	background: rgba($grenade, .95);
	bottom: 0;
	left: 0;
	padding: 15px;
	position: fixed;
	width: 100%;
	z-index: 10;

	.button-close {
		color: #eaf3ff;
		margin: 0;
		position: absolute;
		right: 0;
		top: 0;
		min-width: 50px;

		&:hover,
		&:focus {
			color: $white;
			border-color: $white;
		}

		i {
			font-size: rem-calc(18);
		}
	}
}

.cookies {
	display: flex;
	flex-wrap: wrap;
	margin: 0 auto;
	max-width: 920px;
	padding-right: 40px;

	> div {
		vertical-align: middle;
	}

	p {
		color: #eaf3ff;
		font-size: rem-calc(15);
		line-height: 140%;
		margin: 0;
	}
}

.cookies__desc {
	// padding-left: 75px;
	padding: 0 0 15px;
	position: relative;
	// width: calc(100% - 180px);
	width: 100%;

	i {
		position: absolute;
		left: 0;
		top: calc(50% - 23px);
	}
}

.cookies__button {
	text-align: center;
	// width: 170px;
	width: 100%;

	button.hollow {
		margin: 0;
		text-transform: uppercase;
		width: 150px;

		&:hover,
		&:focus {
			color: $white;
			border-color: $white;
		}
	}
}


.sitemap-wrap {
	padding: 40px;

	ul {
		margin: 0 0 10px;
		list-style: none;
		text-align: center;
		width: 100%;

		li {
			display: inline-block;
			line-height: 100%;
			padding: 0 8px 0 12px;

			~ li {
				border-left: 2px solid $grenade;
			}

			a {
				color: $grenade;
				font-weight: 600;
			}
		}
	}

	p {
		color: #7a7a82;
		font-family: $body-font-family;
		font-style: italic;
		font-weight: 500;
		text-align: center;
	}
}

.sitemap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 770px;

	a {
		color: #84868a;
		font-weight: 400;

		&:hover {
			color: $primary-color;
		}

		&:focus {
			color: $primary-color;
			outline: none;
		}
	}

	p {
		span {
			display: none;
		}
	}
}

@media only screen and (min-width: 640px) {
	.cookies__desc {
		@include img-url('icons/cookies.svg');
		background-position: 0 0;
		background-repeat: no-repeat;
		background-size: 55px;
		padding: 0 0 15px 75px;
	}
}

@media only screen and (min-width: 960px) {
	.logo {
		width: 150%;
	}

	.cookies {
		flex-direction: row;
		justify-content: space-between;
	}

	.cookies__desc {
		padding-bottom: 0;
		width: calc(100% - 240px);
	}

	.cookies__button {
		text-align: right;
		width: 200px;

		button.hollow {
			min-width: auto;
			width: 100%;
		}
	}

	.top-bar {
		.top-bar-right {
			top: 79px;
		}
	}

	.sitemap {
		p {
			span {
				display: inline-block;
			}
		}
	}
}

@media only screen and (min-width: 1024px) {
	.footer-media {
		font-size: rem-calc(22);
		margin-bottom: 40px;

		a {
			padding: 0 0 18px 35px;

			&::before {
				display: block;
			}
		}
	}

	.footer__contact {
		padding: 25px 0 0;
	}

	.footer__copyright p {
		font-size: 1rem;
	}

	.sitemap {
		font-size: rem-calc(16);
	}

	.sitemap-wrap {
		padding: 40px 40px 25px;

		ul {
			margin: 0 0 25px;
		}
	}
}

@media only screen and (min-width: 1200px) {
	.footer {
		&::after {
			display: none;
		}
	}

	.footer__contact {
		background: none;
	}
}
