/* ==========================================================================
   ХЕДЕР — єдині стилі (css/components/header.css)
   Це ПОВНІ стилі хедера сайту. Усі зміни хедера робимо тільки тут.
   Згенеровано з: legal (каркас) + custom.css (меню) + поправки 14–16.11.2026.
   Підключається на всіх сторінках після custom.css/style.css (functions-assets.php).
   ========================================================================== */


/* ---- 0. Перенесено з кореневого style.css (раніше завантажувались перед усім хедером; тому стоять на початку, щоб порядок каскаду не змінився) ---- */

.header__bottom {
	box-shadow: 0px 10px 30px rgba(124, 10, 31, 0.1);
}

.three_columns .sub-menu {
	column-count: 3;
	column-gap: 55px;
}

@media screen and (max-width: 1200px) {
	.three_columns .sub-menu {
		column-count: 1;
	}
}

.logo {
	position: relative;
}

.logo .century {
	position: absolute;
	right: 0;
	bottom: -8px;
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 0.05px;
}

/* ---- 1. Каркас хедера: логотип, верхній ряд, пошук, мова, кнопка, бургер, соцмережі (база з legal/style.css) ---- */

.header {
	position: fixed;
	z-index: 90;
	width: 100%;
	top: 0;
	left: 0;
	background: #fff;
}

.header.active {
	z-index: 100;
}

.header__top {
	padding: 12px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	line-height: 14px;
	font-weight: 700;
}

.header__top-phone {
	padding-left: 21px;
	opacity: 0.5;
	letter-spacing: 0.03rem;
	position: relative;
}

.header__top-phone::before {
	content: '';
	position: absolute;
	left: 0;
	top: 1px;
	width: 11px;
	height: 11px;
	background-repeat: no-repeat;
	background-size: contain;
}

.header__top-lang {
	position: relative;
}

.header__top-lang a {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	color: rgba(0, 0, 0, 0.5);
	position: relative;
}

.header__top-lang a img {
	margin-right: 8px;
}

.header__top-lang__choose span {
	position: relative;
	padding-right: 16px;
}

.header__top-lang__choose span::after {
	content: '';
	position: absolute;
	right: 0;
	top: 6px;
	width: 8px;
	height: 5px;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: .5;
}

.header__top-lang__choose img {
	margin-right: 8px;
}

.header__top-lang__list {
	min-width: 160px;
	padding: 24px;
	background: #fff;
	box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.13);
	border-radius: 10px;
	position: absolute;
	top: 30px;
	left: -50%;
	transform: translateX(25px);
	z-index: 10;
	display: none;
}

.header__top-lang__list li {
	margin-bottom: 24px;
}

.header__top-lang__list li:last-child {
	margin-bottom: 0;
}

.header__top-lang__list span:hover,
.header__top-lang__list span:focus {
	text-decoration: underline;
}

.header__top-lang.active .header__top-lang__list {
	display: block;
}

.header__top-lang.active .header__top-lang__choose span::after {
	opacity: 1;
}

.header__top-lang.active a {
	color: #000;
}

.header__bottom {
	z-index: 100;
	width: 100%;
	left: 0;
	top: 0;
	border-top: 1px solid #EBEBEB;
	border-bottom: 1px solid #EBEBEB;
	background: #fff;
}

.header__bottom-inner {
	min-height: 90px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.header__bottom-search {
	width: 100%;
	position: relative;
	display: none;
}

.header__bottom-search__btn {
	width: 32px;
	height: 44px;
	position: absolute;
	right: 0;
	bottom: 0;
	text-align: center;
	line-height: 44px;
}

.header__bottom-search__btn img {
	display: inline-block;
	margin-top: 17px;
}

.header__bottom-search input {
	width: 100%;
	display: inline-block;
	min-height: 44px;
	padding: 9px 15px;
	padding-right: 35px;
	background: #F0F0F0;
	border: none;
	outline: none;
}

.header__burger {
	display: none;
	width: 20px;
	height: 17px;
	position: relative;
}

.header__burger span {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: #000000;
	border-radius: 2px;
	box-shadow: 0 7px 0 #000, 0 14px 0 #000;
}

.header__menu {
	width: 946px;
	max-width: 946px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	background: #fff;
}

.header__menu-hidden {
	width: 20px;
	height: 17px;
	position: absolute;
	z-index: 10;
	top: 42px;
	right: 24px;
	display: none;
}

.header__menu-hidden::before,
.header__menu-hidden::after {
	content: '';
	position: absolute;
	top: 7px;
	right: 1px;
	width: 100%;
	height: 3px;
	background: #000000;
	border-radius: 2px;
}

.header__menu-hidden::before {
	transform: rotate(45deg);
}

.header__menu-hidden::after {
	transform: rotate(-45deg);
}

.header__call {
	font-size: 13px;
	line-height: 13px;
	padding: 13px 15px;
	border-radius: 6px;
	background: #F21940;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.header__call:hover,
.header__call:focus {
	background: #F43B5D;
}

.header__soc {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.header__soc li:not(:last-child) {
	margin-right: 16px;
}

.header__soc-fb,
.header__soc-yt,
.header__soc-ins {
	display: inline-block;
	padding: 15px 25px;
	background: #F0F0F0;
	border-radius: 6px;
	font-weight: bold;
	font-size: 12px;
	line-height: 14px;
	text-align: center;
	position: relative;
}

.header__soc-fb::before,
.header__soc-yt::before,
.header__soc-ins::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background-repeat: no-repeat;
	background-size: contain;
}

.header__soc-yt::before {
	height: 13px;
}

.logo {
	margin-bottom: 3px;
	font-size: 16px;
	line-height: 100%;
	font-weight: 700;
	display: -ms-inline-flexbox;
	display: inline-flex;
	align-items: center;
	letter-spacing: -0.08rem;
}

.logo img {
	margin-right: 6px;
	margin-top: 3px;
}

.nav {
	width: 692px;
	max-width: 692px;
}

.nav.active a {
	opacity: 0.3;
}

.nav__list {
	font-weight: bold;
	font-size: 16px;
	line-height: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.nav__item {
	cursor: pointer;
	position: relative;
}

.nav__item .sub-menu {
	padding: 40px;
	position: absolute;
	z-index: 10;
	top: 110%;
	left: -10px;
	opacity: 0;
	visibility: hidden;
	font-size: 15px;
	line-height: 20px;
	transition: all 0.2s ease;
	background: #FFFFFF;
	box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.13);
	white-space: nowrap;
}

.nav__item .sub-menu li:not(:last-child) {
	margin-bottom: 20px;
}

.nav__item .sub-menu a {
	padding: 0;
	position: relative;
}

.nav__item .sub-menu a::after {
	content: '';
	position: absolute;
	width: 0;
	bottom: 0;
	left: auto;
	right: 0;
	height: 1px;
	background: #000;
	transition: all .3s ease;
}

.nav__item .sub-menu a:hover::after,
.nav__item .sub-menu a:focus::after {
	width: 100%;
	left: 0;
	right: auto;
}

.nav__item .sub-menu .nav__link-show {
	color: #F21940;
	padding-right: 16px;
	font-weight: 700;
	position: relative;
}

.nav__item .sub-menu .nav__link-show::after {
	background: #F21940;
}

.nav__item .sub-menu .nav__link-show::before {
	content: '';
	position: absolute;
	right: 0;
	top: 6px;
	width: 9px;
	height: 10px;
	background-repeat: no-repeat;
}

.nav__item .sub-menu__inner {
	display: flex;
}

.nav__item .sub-menu__inner ul:not(:last-child) {
	margin-right: 55px;
}

.nav__item.active a {
	opacity: 1;
}

.nav__item.active .sub-menu {
	top: 90px;
	opacity: 1;
	visibility: visible;
}

.nav__item a {
	display: inline-block;
	padding: 33px 0;
	position: relative;
}

.nav__item .nav__link-sub {
	padding-right: 16px;
}

.nav__item .nav__link-sub::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 5px;
	transition: all .3s ease;
}

.nav__item .nav__link-sub:hover::after {
	transform: rotate(-180deg);
}


/* ---- 2. Адаптив каркаса (база з legal/adaptive.css) ---- */

@media screen and (max-width: 1200px) {
	.header {
		z-index: 110;
		position: fixed;
	}

	.header__bottom {
		position: relative;
	}

	.header.active::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.2);
	}

	.header__menu {
		width: 280px;
		max-height: 100vh;
		padding: 38px 24px;
		position: fixed;
		z-index: 10;
		right: -100%;
		top: 0;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-y: scroll;
		-ms-overflow-style: none;
		overflow: -moz-scrollbars-none;
		transition: all 0.2s ease;
		overflow-y: scroll;
		-ms-overflow-style: none;
		overflow: -moz-scrollbars-none;
	}

	.header__menu::-webkit-scrollbar {
		width: 0;
		height: 0;
	}

	.header__menu-hidden {
		display: block;
	}

	.header__menu.active {
		right: 0;
	}

	.header__bottom-search {
		margin-top: auto;
		margin-bottom: 24px;
		display: block;
	}

	.header__burger {
		display: inline-block;
	}

	.header__call {
		width: 100%;
		font-size: 14px;
		line-height: 18px;
	}
}

@media screen and (max-width: 800px) {
	.header__top-search {
		display: none;
	}
}

@media screen and (max-width: 767px) {
	.header__top {
		min-height: 48px;
	}

	.header__bottom-inner {
		min-height: 68px;
	}
}

@media screen and (max-width: 520px) {
	.header__soc li:not(:last-child) {
		margin-right: 5px;
	}

	.header__soc-yt,
	.header__soc-fb,
	.header__soc-ins {
		padding: 10px 15px;
	}
}

@media screen and (max-width: 391px) {
	.header__soc {
		order: 1;
		position: relative;
		top: 5px;
	}
}

@media screen and (max-width: 1200px) {
	.nav {
		width: 100%;
		max-width: 100%;
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		font-size: 18px;
		border-bottom: 1px solid #EEEEEE;
	}

	.nav__item {
		margin-bottom: 20px;
	}

	.nav__item a {
		padding: 0;
	}

	.nav__item .sub-menu {
		padding: 0;
		padding-left: 8px;
		position: static;
		max-height: 0;
		overflow: hidden;
		visibility: visible;
		opacity: 1;
		box-shadow: none;
		white-space: normal;
		transition: all .2s ease;
		font-weight: 400;
		font-size: 16px;
		line-height: 24px;
		overflow-y: scroll;
		-ms-overflow-style: none;
		overflow: -moz-scrollbars-none;
	}

	.nav__item .sub-menu::-webkit-scrollbar {
		width: 0;
		height: 0;
	}

	.nav__item .sub-menu__inner {
		flex-direction: column;
	}

	.nav__item .sub-menu li:not(:last-child) {
		margin-bottom: 15px;
	}

	.nav__item .sub-menu .nav__link-show::before {
		top: 8px;
	}

	.nav__item .nav__link-sub:hover::after {
		transform: rotate(0);
	}

	.nav__item.active .sub-menu {
		padding-top: 20px;
		max-height: 100vh;
		transition: all .2s ease;
	}

	.nav__item.active .nav__link-sub::after {
		transform: rotate(-180deg);
	}
}


/* ---- 3. Меню, випадайки, пошук, мова, прилипання (перенесено з custom.css) ---- */

.nav_box {
	display: flex;
}

.top_menu .menu-item.active a {
	opacity: 1;
}

.top_menu .menu-item.active .sub-menu {
	top: 90px;
	opacity: 1;
	visibility: visible;
}

.top_menu .menu-item a {
	display: inline-block;
	padding: 33px 0;
}

.top_menu .menu-item a span {
	position: relative;
}

.top_menu .menu-item-has-children>a span {
	padding-right: 16px !important;
}

.top_menu .menu-item-has-children>a>span::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 5px;
	transition: all .3s ease;
}

.top_menu .menu-item-has-children:hover>a::after {
	transform: rotate(-180deg);
	margin-top: -3px;
}

.top_menu .menu-item.current-menu-ancestor>a,
.top_menu .menu-item.current-menu-item:not(.not-current-menu-item)>a {
	color: #F21940;
}

body.no-scroll>.header {
	left: -8.5px;
}

.header__top-lang__choose {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	color: rgba(0, 0, 0, 0.5);
	position: relative;
	cursor: pointer;
}

.header__top-lang.active .header__top-lang__choose {
	color: #000;
}

.header__top-lang svg {
	margin-right: 8px;
}

.top_menu .menu-item {
	cursor: pointer;
	position: relative;
}

.top_menu>li {
	margin-right: 20px;
}

.top_menu>li:last-child {
	margin-right: 0;
}

.top_menu .menu-item .sub-menu {
	padding: 40px;
	position: absolute;
	z-index: 10;
	top: 110%;
	left: -10px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	background: #FFFFFF;
	box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.13);
	white-space: nowrap;
}

.top_menu .menu-item .sub-menu li:not(:last-child) {
	margin-bottom: 10px;
}

.top_menu .menu-item .sub-menu a {
	padding: 0;
	position: relative;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 340px;
}

.top_menu .menu-item .sub-menu a::after {
	content: '';
	position: absolute;
	width: 0;
	bottom: 0;
	left: auto;
	right: 0;
	height: 1px;
	background: #000;
	transition: all .3s ease;
}

.top_menu .menu-item a:hover {
	color: #F21940;
}

.top_menu .menu-item .sub-menu a:hover::after,
.top_menu .menu-item .sub-menu a:focus::after {
	width: 100%;
	left: 0;
	right: auto;
	background: #F21940;
}

.top_menu .menu-item .sub-menu .nav__link-show a {
	color: #F21940;
	padding-right: 16px;
	font-weight: 700;
	position: relative;
}

.top_menu .menu-item .sub-menu .nav__link-show a::after {
	background: #F21940;
}

.top_menu .menu-item .sub-menu .nav__link-show a::before {
	content: '';
	position: absolute;
	right: 0;
	top: 6px;
	width: 9px;
	height: 10px;
	background-repeat: no-repeat;
}

.top_menu .menu-item .sub-menu__inner {
	display: flex;
}

.top_menu .menu-item .sub-menu__inner ul:not(:last-child) {
	margin-right: 55px;
}

.top_menu>.menu-item>.sub-menu>.menu-item>.sub-menu {
	opacity: 0;
	overflow: hidden;
	visibility: hidden;
	position: absolute;
	left: 100%;
	top: -60px;
	background: #fff;
	padding: 20px 40px;
}

.top_menu>.menu-item>.sub-menu>.menu-item.active>.sub-menu {
	opacity: 1;
	overflow: visible;
	visibility: visible;
}

.two_columns .sub-menu {
	column-count: 2;
	column-gap: 55px;
}

.top_menu .scroll-list>ul {
	height: 307px;
	overflow-y: scroll !important;
}

.top_menu .scroll-list>ul::-webkit-scrollbar {
	width: 5px !important;
	height: 100% !important;
}

.top_menu .scroll-list>ul::-webkit-scrollbar-track {
	background: #FFF;
	border-radius: 10px;
}

.top_menu .scroll-list>ul::-webkit-scrollbar-thumb {
	background: #F21940;
	border-radius: 10px;
	border-top: 5px solid #FFF;
	border-bottom: 5px solid #FFF;
	border-right: 3px solid #FFF;
}

.top_menu .scroll-list>ul::-webkit-scrollbar-thumb:hover {
	background: #F21940;
}

.top_menu .scroll-list>ul::-webkit-scrollbar-corner {
	background: transparent;
}

.admin-bar .header__bottom.fixed {
	top: 32px;
}

.header__top-search {
	width: 322px;
	position: relative;
	transition: all 0.2s ease;
}

.header__top-search.active {
	width: 58%;
	max-width: 692px;
}

.header__top-search.active {
	display: block;
}

.header__top-search__btn {
	width: 40px;
	height: 28px;
	line-height: 32px;
	position: absolute;
	right: 2px;
	bottom: 2px;
	text-align: center;
	background: #fff;
	border-radius: 6px;
}

.header__top-search__btn img {
	display: inline-block;
}

.header__top-search input {
	width: 100%;
	padding: 8.5px 15px;
	padding-right: 75px;
	background: #F0F0F0;
	border: none;
	border-radius: 8px;
	outline: none;
	line-height: normal;
}

.header {
	background: white;
}

.admin-bar .header {
	top: 32px;
}

.header>.container {
	position: relative;
	transition: 300ms;
}

.header.fixed>.container {
	margin-top: -62px;
}

.header.active {
	z-index: 100;
}

.header {
	position: fixed;
	z-index: 90;
	width: 100%;
	top: 0;
	left: 0;
	background: #fff;
}

.header__top-search__btn svg {
	color: #7D7C7F;
}

.header__top-search__btn:hover svg {
	color: #F21940;
}

.header__top-clear {
	display: none;
	position: absolute;
	top: 2px;
	right: 50px;
	padding: 10px;
}

.header__top-search.active .header__top-clear {
	display: flex;
}

.compensate-for-scrollbar .header {
	left: -8.5px;
}

.header__menu {
	width: auto;
	max-width: none;
}

.nav {
	width: auto;
	max-width: none;
}

.header__top-lang__list {
	z-index: 101;
}

.nav__list {
	font-size: 14px;
}

@media screen and (max-width: 1200px) {
	.nav_box {
		width: 100%;
		flex-direction: column;
	}

	.top_menu .menu-item {
		width: 100%;
		max-width: 100%;
		margin-bottom: 20px;
	}

	.top_menu .menu-item a {
		padding: 0;
		display: block;
	}

	.top_menu .menu-item .sub-menu {
		padding: 0;
		padding-left: 8px;
		position: static;
		max-height: 0;
		overflow: hidden;
		visibility: visible;
		opacity: 1;
		box-shadow: none;
		white-space: normal;
		transition: all .2s ease;
		font-weight: 400;
		overflow-y: scroll;
		-ms-overflow-style: none;
		overflow: -moz-scrollbars-none;
	}

	.top_menu .menu-item .sub-menu::-webkit-scrollbar {
		width: 0;
		height: 0;
	}

	.top_menu .menu-item .sub-menu li:not(:last-child) {
		margin-bottom: 10px;
	}

	.top_menu .menu-item.active .sub-menu {
		padding-top: 20px;
		max-height: 100vh;
		transition: all .2s ease;
	}

	.top_menu>.menu-item>.sub-menu>.menu-item>.sub-menu {
		position: static;
		opacity: 1;
		overflow: visible;
		visibility: visible;
		padding: 0;
		padding-top: 15px;
		padding-left: 15px;
	}

	.top_menu>.menu-item>.sub-menu>.menu-item-has-children>a>span::after {
		content: none;
	}

	.top_menu .scroll-list>ul {
		height: auto;
		overflow-y: inherit;
	}

	.header__menu {
		width: 280px;
		max-height: 100%;
		height: 100%;
		z-index: 100;
	}

	.nav__list {
		border-bottom: none;
	}

	.header__bottom-search {
		border-top: 1px solid #EEE;
		padding-top: 24px;
	}

	.header,
	.admin-bar .header {
		z-index: 90;
	}

	.admin-bar .header {
		top: 0;
	}

	body.no-scroll>.header {
		left: 0;
	}

	.top_menu .menu-item .sub-menu a {
		max-width: 100%;
		overflow: visible;
		white-space: normal;
	}

	.two_columns .sub-menu {
		column-count: 1;
		column-gap: 0;
	}

	.header__call.mob-hide {
		display: flex;
		align-items: center;
		width: auto;
		order: 1;
	}

	.header__burger {
		order: 2;
	}

	.header__call.pc-hide {
		display: none;
	}
}

@media screen and (max-width: 767px) {
	.top_menu .menu-item-has-children.active>a::after {
		transform: rotate(-180deg) !important;
		margin-top: -3px !important;
	}

	.header__top-search {
		display: none;
	}
}

@media screen and (min-width: 1201px) {
	.header .container {
		max-width: 1440px;
	}
}


/* ---- 4. Поправки (липкий хедер, мобільний верхній ряд, кнопка, лендинги) ---- */

/* 1. Хедер липкий скрізь на планшеті й мобілці (article/adaptive.css ставить position:relative на ≤1200) */
@media screen and (max-width: 1200px) {
	.header {
		position: fixed;
	}
}

/* 2. Мобілка: верхній ряд однаковий для всіх мов — ряд 1: телефон + мова, ряд 2: соцмережі зліва */
@media screen and (max-width: 767px) {
	.header__soc {
		order: 2;
		flex-basis: 100%;
		justify-content: flex-start;
		margin-top: 8px;
		position: static;
	}
}

/* 3. Кнопка «Call me back» на вузьких екранах: менший шрифт і відступи, щоб довгі переклади не виходили за екран */
@media screen and (max-width: 380px) {
	.header__call.mob-hide {
		padding: 11px 10px;
		font-size: 12px;
		letter-spacing: 0;
	}
}

/* 4. Лендинги: соцмережі в хедері (css/landing/style.css їх ховає і не має стилів іконок; самі іконки задає add_styles()) */
body[class*="page-template-landing"] .header__soc {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

body[class*="page-template-landing"] .header__soc li:not(:last-child) {
	margin-right: 16px;
}

body[class*="page-template-landing"] .header__soc-fb,
body[class*="page-template-landing"] .header__soc-yt,
body[class*="page-template-landing"] .header__soc-ins {
	display: inline-block;
	padding: 15px 25px;
	background: #F0F0F0;
	border-radius: 6px;
	font-weight: bold;
	font-size: 12px;
	line-height: 14px;
	text-align: center;
	position: relative;
}

body[class*="page-template-landing"] .header__soc-fb::before,
body[class*="page-template-landing"] .header__soc-yt::before,
body[class*="page-template-landing"] .header__soc-ins::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background-repeat: no-repeat;
	background-size: contain;
}

body[class*="page-template-landing"] .header__soc-yt::before {
	height: 13px;
}

@media screen and (max-width: 520px) {
	body[class*="page-template-landing"] .header__soc li:not(:last-child) {
		margin-right: 5px;
	}

	body[class*="page-template-landing"] .header__soc-fb,
	body[class*="page-template-landing"] .header__soc-yt,
	body[class*="page-template-landing"] .header__soc-ins {
		padding: 10px 15px;
	}
}