/**
 * Header styles.
 * BEM methodology. Desktop 1440px.
 *
 * @package Harmony
 */

/* Reset for header elements */
.header p,
.header h1,
.header h2,
.header h3,
.header h4,
.header h5 {
	margin: 0;
}

/* Block: header */
.header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0 auto;
	padding: 18px 46px;
	background-color: #fff;
	box-sizing: border-box;
	transition: transform 0.3s ease;
}

.header--hidden {
	transform: translateY(-100%);
}

.header__inner {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 1440px;
}

/* Element: logo */
.header__logo {
	flex-shrink: 0;
}

.header__logo-link {
	display: block;
	color: #292929;
	font-size: 14px;
	font-family: var(--font-family);
	font-weight: 700;
	text-decoration: none;
}

.header__logo-link--text {
	width: 90px;
	height: 16px;
	line-height: 16px;
}

.header__logo-img {
	display: block;
	height: 16px;
	width: auto;
}

/* Element: nav container */
.header__nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex: 1;
	max-width: 664px;
	gap: 63px;
}

/* Element: consultation button */
.header__consultation {
	flex-shrink: 0;
}

/* Element: phone */
.header__phone {
	flex-shrink: 0;
}

.header__phone .header__btn--outline {
	border: none;
	padding: 0;
}

.header__phone-icon {
	display: none;
}

.header__phone-icon svg {
	width: 22px;
	height: 22px;
}

/* Element: actions group */
.header__actions {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
}

/* Modifier: buttons */
.header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 7px;
	min-height: 42px;
	box-sizing: border-box;
	font-size: 14px;
	font-family: var(--font-family);
	text-decoration: none;
	text-transform: uppercase;
	text-align: left;
	border: 1px solid #dadada;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	white-space: nowrap;
}

.header__btn--outline {
	color: #292929;
	background: #fff;
}

.header__btn--phone{
	color: var(--green-16ab92);
	font-weight: 600;
}

.header__consultation .header__btn--outline{
	background: var(--yellow-ead286);
}


.header__btn--primary {
	color: #fff;
	background-color: #16ab92;
	border-color: #16ab92;
}

/* .header__btn--primary:hover {
	background-color: #139a83;
	border-color: #139a83;
}

.header__btn--outline:hover {
	background-color: #f5f5f5;
} */

/* Element: language switcher - vertical dropdown */
.header__language {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.header__language-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 12px;
	border: 1px solid #dadada;
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	font-family: var(--font-family);
}

.header__language-current {
	display: block;
	color: #292929;
	font-size: 14px;
	font-family: var(--font-family);
	font-weight: 500;
}

.header__language-dropdown {
	position: absolute;
	top: 120%;
	left: 0;
	right: 0;
	margin-top: -1px;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #dadada;
	border-top: none;
	z-index: 10;
}

.header__language-dropdown[hidden] {
	display: none;
}

.header__language-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 12px;
	border-top: 1px solid #dadada;
	color: #808080;
	font-size: 14px;
	font-family: var(--font-family);
	text-decoration: none;
}

.header__language-item:hover {
	color: #292929;
	background: #f5f5f5;
}

/* Element: menu trigger */
.header__menu-trigger {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 12px 7px;
}

.header__menu-text {
	color: #292929;
	font-size: 14px;
	font-family: var(--font-family);
}

/* Element: hamburger icon */
.header__menu-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: 18px;
	height: 18px;
}

.header__menu-icon-line {
	display: block;
	width: 13.5px;
	height: 0;
	border-top: 1.2px solid #292929;
}

.header__menu-icon--close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}

.header__menu-icon--close svg {
	display: block;
}

.header__choose-house-text--mobile {
	display: none;
}

/* Mobile: 550px and below */
@media (max-width: 550px) {
	.header {
		width: 100%;
		max-width: 100%;
		padding: 8px 14px;
		box-sizing: border-box;
	}

	.header__logo-link--text {
		width: 90px;
		height: 16px;
	}

	.header__logo-img {
		width: 90px;
		height: 16px;
		object-fit: contain;
		object-position: left center;
	}

	.header__nav {
		max-width: 180px;
		gap: 8px;
	}

	.header__consultation {
		display: none;
	}

	.header__choose-house-text--desktop {
		display: none;
	}

	.header__choose-house-text--mobile {
		display: inline;
	}

	.header__actions .header__btn--primary {
		display: inline-flex;
		width: 79px;
		height: 42px;
		min-height: 42px;
		padding: 10px;
		font-size: 13px;
	}

	.header__phone {
		order: 1;
	}

	.header__actions {
		order: 3;
		gap: 5px;
	}

	.header__phone-text {
		display: none;
	}

	.header__phone-icon {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.header__phone .header__btn--outline {
		width: 42px;
		height: 42px;
		min-height: 42px;
		padding: 10px;
		border: 1px solid #dadada;
	}

	.header__consultation .header__btn {
		width: 79px;
		height: 42px;
		min-height: 42px;
		padding: 12px;
		font-size: 13px;
		color: #fff;
		background-color: #16ab92;
		border-color: #16ab92;
	}

	.header__consultation .header__btn:hover {
		background-color: #139a83;
		border-color: #139a83;
		color: #fff;
	}

	.header__language {
		display: none;
	}

	.header__menu-trigger {
		width: 42px;
		height: 42px;
		min-width: 42px;
		padding: 12px;
	}

	.header__menu-text {
		display: none;
	}

	.header__menu-icon--hamburger {
		width: 18px;
		height: 18px;
	}

	.header__menu-icon-line {
		width: 13.5px;
	}
}
