/* Pro-TF header — только стили. Разметка, ссылки и JS Flatsome не меняются. */
#header,
#header *,
#main-menu,
#main-menu * {
	font-family: 'Montserrat', system-ui, sans-serif;
}

#header {
	--hdr-blue: #11519b;
	--hdr-ink: #08162d;
	--hdr-muted: #64748b;
	--hdr-soft: #f2f4f7;
	--hdr-radius: 10px;
}

/* —— Верхняя полоса —— */
#header .header-main {
	background: #fff;
	box-shadow: 0 1px 0 rgba(8, 22, 45, 0.06);
}

#header .header-inner {
	align-items: center;
}

#header .header-nav-main.nav > li {
	margin: 0 4px;
}

#header:not(.transparent) .header-nav-main.nav > li > a,
#header .header-nav-main.nav > li > a {
	font-family: 'Montserrat', system-ui, sans-serif !important;
	font-weight: 700 !important;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--hdr-ink) !important;
	text-transform: uppercase;
}

/* Контакты слева */
#header .html_topbar_left h3 {
	margin: 0 !important;
	padding: 0;
	text-align: left !important;
	font-family: 'Montserrat', system-ui, sans-serif !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	color: var(--hdr-muted) !important;
	text-transform: none;
}

#header .html_topbar_left a {
	display: inline-block;
	margin-top: 2px;
	font-size: 18px !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	color: var(--hdr-blue) !important;
	text-decoration: none !important;
	letter-spacing: 0;
}

#header .html_topbar_left a:hover {
	opacity: 0.85;
}

/* «Для клиентов» / «Для аффилиатов» */
#header .header-nav-main > .menu-item > a.nav-top-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 14px !important;
	margin: 0;
	border-radius: var(--hdr-radius);
	background: var(--hdr-soft);
	color: var(--hdr-ink) !important;
	line-height: 1 !important;
	transition: background 0.15s ease, color 0.15s ease;
}

#header .header-nav-main > .menu-item > a.nav-top-link:hover {
	background: #e8eef6;
	color: var(--hdr-blue) !important;
}

/* Вход */
#header .account-item .header-button a,
#header .account-item a.button {
	appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: var(--hdr-radius) !important;
	background: var(--hdr-blue) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.04em;
	box-shadow: none !important;
}

#header .account-item .header-button a:hover,
#header .account-item a.button:hover {
	background: #0e4585 !important;
	color: #fff !important;
	opacity: 1;
}

/* Корзина */
#header .cart-item .header-cart-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 36px;
	padding: 0 12px 0 14px !important;
	border-radius: var(--hdr-radius);
	background: var(--hdr-soft);
	color: var(--hdr-ink) !important;
	line-height: 1 !important;
}

#header .cart-item .header-cart-title,
#header .cart-item .cart-price,
#header .cart-item .woocommerce-Price-amount {
	font-family: 'Montserrat', system-ui, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: var(--hdr-ink) !important;
}

#header .cart-item .header-cart-link:hover {
	background: #e8eef6;
}

#header .header-divider {
	opacity: 0.35;
}

/* Соцсети в HTML-блоке шапки */
#header .html_nav_position_text_top,
#header .html_nav_position_text_top .row,
#header .html_nav_position_text_top .col,
#header .html_nav_position_text_top .col-inner {
	display: flex !important;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

#header .html_nav_position_text_top p {
	display: contents;
}

#header .html_nav_position_text_top a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 !important;
	float: none !important;
	border-radius: 50%;
	overflow: hidden;
}

#header .html_nav_position_text_top img,
#header .html_nav_position_text_top img.alignleft {
	float: none !important;
	display: block !important;
	width: 32px !important;
	height: 32px !important;
	max-width: 32px !important;
	margin: 0 !important;
	border-radius: 50%;
	object-fit: cover;
}

/* —— Нижнее меню —— */
#header .header-bottom.wide-nav,
#header .header-bottom {
	background-color: var(--hdr-blue) !important;
	min-height: 52px;
	box-shadow: 0 8px 24px rgba(17, 81, 155, 0.18);
}

#header .header-bottom-nav.nav > li > a,
#header .header-bottom-nav > li > a {
	font-family: 'Montserrat', system-ui, sans-serif !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	letter-spacing: 0.04em;
	color: #fff !important;
	line-height: 1 !important;
	height: auto !important;
	min-height: 36px;
	padding: 8px 12px !important;
	margin: 8px 2px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border-radius: 8px;
	background: transparent !important;
	transition: background 0.15s ease;
}

#header .header-bottom-nav.nav > li > a:hover,
#header .header-bottom-nav > li.current-menu-item > a,
#header .header-bottom-nav > li.current-menu-ancestor > a,
#header .header-bottom-nav > li.current_page_item > a,
#header .header-bottom-nav > li.current_page_parent > a,
#header .header-bottom-nav > li.active > a {
	background: rgba(0, 0, 0, 0.18) !important;
	color: #fff !important;
}

#header .header-bottom-nav .icon-angle-down {
	margin-left: 2px;
	font-size: 12px;
}

/* Правый блок: поиск / почта / телефон */
#header .header-bottom-nav.nav-right {
	display: flex;
	align-items: center;
	gap: 4px;
}

#header .header-bottom-nav.nav-right > li {
	display: flex;
	align-items: center;
	margin: 0;
	height: 32px;
}

#header .header-search > a i,
#header .header-contact i,
#header .header-contact a span {
	display: none !important;
}

#header .header-search > a,
#header .header-search > a:hover,
#header .header-contact a,
#header .header-contact a:hover {
	transform: none !important;
}

#header .header-bottom-nav.nav-right > li.header-search > a,
#header .header-contact a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: 20px 20px !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

#header .header-bottom-nav.nav-right > li.header-search > a:hover,
#header .header-contact a:hover,
#header .header-bottom-nav.nav-right > li.header-search > a:focus,
#header .header-contact a:focus {
	background-color: transparent !important;
	transform: none !important;
	opacity: 1;
}

#header .header-bottom-nav.nav-right > li.header-search > a {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

#header .header-contact a[href^="mailto"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M4.5 7.5L12 13l7.5-5.5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

#header .header-contact a[href^="tel"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.89.35 1.76.66 2.6a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.84.31 1.71.53 2.6.66A2 2 0 0 1 22 16.92z' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

#header .header-contact.nav-divided {
	display: flex;
	align-items: center;
	height: 32px;
	margin: 0;
	padding: 0;
}

#header .header-contact.nav-divided > li {
	display: flex;
	align-items: center;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0 !important;
}

#header .header-contact.nav-divided > li > a {
	border: 0 !important;
}

#header .header-contact.nav-divided > li + li {
	position: relative;
	margin-left: 8px;
	padding-left: 12px;
	border: 0 !important;
	height: 32px;
}
#header .header-contact.nav-divided > li + li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 1px;
	height: 20px;
	background: rgba(255, 255, 255, 0.35);
}

/* Выпадающие меню */
#header .nav-dropdown,
#header .nav-dropdown.nav-dropdown-simple {
	border: 0 !important;
	border-radius: 12px !important;
	padding: 8px !important;
	background: #fff !important;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16) !important;
	min-width: 240px;
}

#header .nav-dropdown > li > a {
	font-family: 'Montserrat', system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: var(--hdr-ink) !important;
	text-transform: none !important;
	letter-spacing: 0;
	border-radius: 8px;
	padding: 10px 12px !important;
}

#header .nav-dropdown > li > a:hover {
	background: #e8f0ff !important;
	color: var(--hdr-blue) !important;
}

/* Мобильная шапка */
#header .mobile-nav > li > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	color: var(--hdr-blue) !important;
}

#header .mobile-nav .icon-menu,
#header .mobile-nav .icon-shopping-basket {
	font-size: 20px;
}

/* Мобильное меню */
#main-menu.mobile-sidebar,
#main-menu.mobile-sidebar .sidebar-menu {
	font-family: 'Montserrat', system-ui, sans-serif;
	background: #fff !important;
	text-align: left !important;
}

#main-menu.mobile-sidebar .sidebar-menu {
	padding: 16px 16px 28px;
}

#main-menu.mobile-sidebar .nav-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#main-menu.mobile-sidebar .nav-sidebar > li > a,
#main-menu.mobile-sidebar .nav > li > a {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 12px !important;
	margin: 0;
	border-radius: 10px;
	font-family: 'Montserrat', system-ui, sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: 0;
	color: #08162d !important;
	text-transform: none !important;
	background: transparent;
}

#main-menu.mobile-sidebar .nav-sidebar > li > a:hover,
#main-menu.mobile-sidebar .nav-sidebar > li.current-menu-item > a,
#main-menu.mobile-sidebar .nav-sidebar > li.active > a {
	background: #e8f0ff !important;
	color: #11519b !important;
}

#main-menu.mobile-sidebar .toggle {
	color: #11519b !important;
	opacity: 0.8;
}

#main-menu.mobile-sidebar .sub-menu,
#main-menu.mobile-sidebar .nav-sidebar-ul {
	background: #f4f7fc;
	border-radius: 12px;
	margin: 4px 0 8px;
	padding: 6px;
	box-shadow: none;
}

#main-menu.mobile-sidebar .sub-menu a,
#main-menu.mobile-sidebar .nav-sidebar-ul a {
	display: block;
	padding: 10px 12px !important;
	border-radius: 8px;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #08162d !important;
	text-transform: none !important;
	letter-spacing: 0;
}

#main-menu.mobile-sidebar .sub-menu a:hover,
#main-menu.mobile-sidebar .nav-sidebar-ul a:hover {
	background: #e8f0ff !important;
	color: #11519b !important;
}

#main-menu.mobile-sidebar .html_topbar_left h3 {
	margin: 0 0 8px !important;
	padding: 8px 4px 12px;
	text-align: left !important;
	font-family: 'Montserrat', system-ui, sans-serif !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: #64748b !important;
}

#main-menu.mobile-sidebar .html_topbar_left a {
	display: inline-block;
	margin-top: 4px;
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #11519b !important;
	text-decoration: none !important;
}

#main-menu.mobile-sidebar .html_nav_position_text_top,
#main-menu.mobile-sidebar .html_nav_position_text_top .row,
#main-menu.mobile-sidebar .html_nav_position_text_top .col,
#main-menu.mobile-sidebar .html_nav_position_text_top .col-inner {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px;
	width: auto !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	float: none !important;
}

#main-menu.mobile-sidebar .html_nav_position_text_top p {
	display: contents;
}

#main-menu.mobile-sidebar .html_nav_position_text_top a {
	display: inline-flex !important;
	width: 32px;
	height: 32px;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

#main-menu.mobile-sidebar .html_nav_position_text_top img,
#main-menu.mobile-sidebar .html_nav_position_text_top img.alignleft {
	float: none !important;
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	border-radius: 50%;
	object-fit: cover;
}

#main-menu.mobile-sidebar .account-item a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 16px !important;
	margin: 8px 0 0;
	border-radius: 10px !important;
	background: #11519b !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

#main-menu.mobile-sidebar .header-search > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #f2f4f7 !important;
	color: #11519b !important;
}

@media (max-width: 849px) {
	#header .html_topbar_left,
	#header .html_nav_position_text_top {
		display: none;
	}
}

/* —— Cookie banner (Flatsome) —— */
.flatsome-cookies {
	font-family: 'Montserrat', system-ui, sans-serif;
	background: #11519b !important;
	color: #fff !important;
	box-shadow: 0 -8px 24px rgba(17, 81, 155, 0.18);
	z-index: 99999;
}
.flatsome-cookies,
.flatsome-cookies * {
	font-family: 'Montserrat', system-ui, sans-serif;
	box-sizing: border-box;
}
.flatsome-cookies__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	max-width: 1370px;
	margin: 0 auto;
	padding: 14px 20px;
}
.flatsome-cookies__text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.45 !important;
	color: #fff !important;
}
.flatsome-cookies__buttons {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 8px;
	font-size: 13px;
}
.flatsome-cookies .flatsome-cookies__more-btn,
.flatsome-cookies .flatsome-cookies__accept-btn {
	appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.02em;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
}
.flatsome-cookies .flatsome-cookies__more-btn {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.7) !important;
	color: #fff !important;
}
.flatsome-cookies .flatsome-cookies__more-btn:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}
.flatsome-cookies .flatsome-cookies__accept-btn {
	background: #fff !important;
	border: 1px solid #fff !important;
	color: #11519b !important;
}
.flatsome-cookies .flatsome-cookies__accept-btn:hover {
	background: #e8f0ff !important;
	color: #11519b !important;
}

@media (max-width: 640px) {
	.flatsome-cookies__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 14px 16px 16px;
		gap: 12px;
	}
	.flatsome-cookies__buttons {
		width: 100%;
	}
	.flatsome-cookies .flatsome-cookies__more-btn,
	.flatsome-cookies .flatsome-cookies__accept-btn {
		flex: 1 1 auto;
	}
}
