.site-header.th {
	--th-p: #660099;
	--th-p-dark: #4A0070;
	--th-p-deep: #2A0040;
	--th-lav: #E6E8EA;
	--th-line: #E1E4E7;
	--th-grey: #6A747D;
	--th-ink: #1C1F23;
	--th-muted: #5B6370;
	background: #fff;
	color: var(--th-ink);
	font-family: 'Inter', Arial, sans-serif;
	position: relative;
	z-index: 40;
}

.site-header.th a {
	text-decoration: none;
}

.site-header.th svg {
	flex: none;
}

/* Верхняя полоса */
.th-top {
	display: none;
	background: var(--th-p-deep);
	color: #E9DDF0;
	font-size: 13px;
}

.th-top-in {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 40px;
	gap: 24px;
}

.th-top-list {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}

.th-top-nav {
	margin-left: auto;
}

.site-header.th .th-top-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #E9DDF0;
	transition: color .2s, background .2s;
}

.site-header.th .th-top-list a:hover {
	color: #fff;
}

.th-top-list svg {
	width: 16px;
	height: 16px;
}

.site-header.th .th-top-list .th-top-button > a {
	height: 28px;
	padding: 0 12px;
	border-radius: 6px;
	background: var(--th-p);
	color: #fff;
	font-weight: 600;
}

.site-header.th .th-top-list .th-top-button > a:hover {
	background: #7a1fb0;
}

/* Средняя строка */
.th-mid {
	border-bottom: 1px solid var(--th-line);
}

.th-mid-in {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 64px;
}

.th-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 0 1 auto;
	min-width: 0;
}

.th-brand > a {
	display: block;
	min-width: 0;
	line-height: 0;
}

.th-brand img.custom-logo {
	display: block;
	height: 28px;
	width: auto;
	max-width: 100%;
	max-height: none;
	object-fit: contain;
	object-position: left center;
}

.th-brand-name {
	font-size: 24px;
	font-weight: 700;
	color: var(--th-p);
}

.th-brand-sep,
.th-brand-tagline {
	display: none;
}

.th-brand-sep {
	width: 1px;
	height: 40px;
	background: var(--th-line);
}

.th-brand-tagline {
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--th-ink);
	white-space: nowrap;
}

.th-search-desktop,
.th-contacts,
.th-request {
	display: none;
}

.th-mob-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.site-header.th .th-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--th-grey);
	cursor: pointer;
	transition: color .2s, background .2s;
}

.site-header.th .th-icon:hover {
	color: var(--th-p);
	background: #F4EEFF;
}

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

.site-header.th .th-icon .header-cart-count {
	top: 2px;
	right: 2px;
	width: 18px;
	height: 18px;
	font-size: 11px;
	background: var(--th-p);
}

.site-header.th .th-icon .header-cart-count.hidden {
	display: none;
}

/* Поиск */
.th-search {
	flex: 1;
	min-width: 0;
}

.site-header.th .th-search .search-form {
	position: relative;
	display: flex !important;
	align-items: stretch;
	gap: 0 !important;
	height: 44px;
	border: 1.5px solid var(--th-line);
	border-radius: 10px;
	background: #fff;
	transition: border-color .2s;
}

.site-header.th .th-search .search-form:focus-within {
	border-color: var(--th-p);
}

.th-search-ic {
	display: flex;
	align-items: center;
	padding: 0 10px 0 14px;
	color: var(--th-grey);
}

.th-search-ic svg {
	width: 18px;
	height: 18px;
}

.site-header.th .th-search .search-form input[type="search"] {
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	padding: 0 8px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 15px !important;
	line-height: normal !important;
	color: var(--th-ink) !important;
}

.site-header.th .th-search .search-form input[type="search"]::placeholder {
	color: #8B8F99 !important;
}

.site-header.th .th-search .search-form button[type="submit"] {
	margin: -1.5px -1.5px -1.5px 0;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 0 10px 10px 0 !important;
	background: var(--th-p) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.site-header.th .th-search .search-form button[type="submit"]:hover {
	background: var(--th-p-dark) !important;
}

.site-header.th .th-search .search-autocomplete-results {
	top: calc(100% + 6px);
}

.th-search-mobile {
	padding: 10px 0;
	border-bottom: 1px solid var(--th-line);
}

/* Контакты и кнопка */
.th-contacts {
	flex: none;
	text-align: right;
}

.site-header.th .th-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--th-ink);
	white-space: nowrap;
}

.th-phone svg {
	width: 20px;
	height: 20px;
	color: var(--th-p);
}

.site-header.th .th-email {
	display: block;
	font-size: 13px;
	color: var(--th-muted);
}

.site-header.th .th-phone:hover,
.site-header.th .th-email:hover {
	color: var(--th-p);
}

.site-header.th .th-request {
	flex: none;
	align-items: center;
	height: 48px;
	padding: 0 26px;
	border-radius: 8px;
	background: var(--th-p);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	transition: background .2s;
}

.site-header.th .th-request:hover {
	background: var(--th-p-dark);
}

/* Нижняя строка: меню */
.site-header.th .th-nav {
	display: none;
	border-bottom: 1px solid var(--th-line);
	background: #fff;
	padding: 0;
}

.th-nav-in {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 60px;
}

.site-header.th .th-nav-left {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
}

.site-header.th .th-nav .catalog-toggle {
	height: 42px;
	padding: 0 18px !important;
	margin-right: 10px;
	border-radius: 8px;
	background: var(--th-lav);
	color: var(--th-p) !important;
	font-size: 15px;
	font-weight: 600 !important;
	gap: 10px !important;
}

.site-header.th .th-nav .catalog-toggle:hover {
	background: #F4EEFF;
}

.site-header.th .th-nav .industries-toggle,
.site-header.th .th-nav .main-nav-list > li > a {
	height: 60px;
	padding: 0 12px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: var(--th-ink) !important;
	white-space: nowrap;
}

.site-header.th .th-nav .industries-toggle:hover,
.site-header.th .th-nav .main-nav-list > li > a:hover,
.site-header.th .th-nav .main-nav-list > li.current-menu-item > a,
.site-header.th .th-nav .main-nav-list > li.current_page_item > a {
	color: var(--th-p) !important;
}

.site-header.th .th-nav .catalog-menu-wrapper .mega-menu,
.site-header.th .th-nav .industries-menu-wrapper .dropdown-menu,
.site-header.th .th-nav .main-nav-list li .sub-menu {
	margin-top: 0 !important;
}

.site-header.th .th-nav .catalog-menu-wrapper .mega-menu {
	top: calc(100% + 9px) !important;
}

.site-header.th .th-nav .catalog-menu-wrapper::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 10px;
}

.site-header.th .th-nav-center {
	flex: 1 1 auto;
	min-width: 0;
}

.site-header.th .th-nav .main-nav-list {
	justify-content: flex-start !important;
	gap: 0 !important;
}

.site-header.th .th-nav .main-nav-list > li.menu-item-has-children > a::after {
	width: 7px !important;
	height: 7px !important;
	margin: -3px 0 0 6px !important;
	border: 0 !important;
	border-right: 1.8px solid currentColor !important;
	border-bottom: 1.8px solid currentColor !important;
	transform: rotate(45deg) !important;
}

.site-header.th .th-nav .main-nav-list > li.menu-item-has-children:hover > a::after {
	transform: rotate(225deg) !important;
	margin-top: 4px !important;
}

.site-header.th .th-nav .menu-badge {
	margin-left: 8px;
	padding: 2px 6px;
	background: var(--th-p);
	font-size: 11px;
}

.th-icons {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
	margin-left: auto;
}

/* ≥ 768: кнопка заявки и телефон в средней строке */
@media (min-width: 768px) {
	.th-mid-in {
		height: 80px;
		gap: 24px;
	}

	.th-brand img.custom-logo {
		height: 36px;
	}

	.th-contacts {
		display: block;
	}

	.th-mob-phone {
		display: none !important;
	}

	.th-email {
		display: none !important;
	}
}

/* ≥ 1024: полная шапка, меню отдельной строкой */
@media (min-width: 1024px) {
	.th-top {
		display: block;
	}

	.th-top-list .th-wide-only {
		display: none;
	}

	.th-search-mobile,
	.th-mob-actions {
		display: none;
	}

	.th-search-desktop {
		display: block;
	}

	.site-header.th .th-request {
		display: inline-flex;
	}

	.site-header.th .th-nav {
		display: block;
	}

	.th-contacts {
		margin-left: 0;
	}

	.site-header.th .th-nav .industries-toggle,
	.site-header.th .th-nav .main-nav-list > li > a {
		padding: 0 9px !important;
		font-size: 14px !important;
	}

	.site-header.th .th-nav .catalog-toggle {
		padding: 0 14px !important;
		margin-right: 6px;
	}

	.th-icons {
		gap: 0;
	}
}

/* ≥ 1280: как в макете */
@media (min-width: 1280px) {
	.th-top-list .th-wide-only {
		display: list-item;
	}

	.th-mid-in {
		height: 96px;
		gap: 24px;
	}

	.th-brand img.custom-logo {
		height: 44px;
	}

	.th-brand-sep,
	.th-brand-tagline {
		display: block;
	}

	.th-email {
		display: block !important;
	}

	.site-header.th .th-search .search-form {
		height: 48px;
	}

	.site-header.th .th-nav .industries-toggle,
	.site-header.th .th-nav .main-nav-list > li > a {
		padding: 0 14px !important;
		font-size: 15px !important;
	}

	.site-header.th .th-nav .catalog-toggle {
		padding: 0 18px !important;
		margin-right: 14px;
	}

	.th-icons {
		gap: 6px;
	}
}

/* Ссылки верхней полосы в мобильном меню */
.th-mob-links {
	padding: 8px 0;
}

.th-mob-links-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-mob-links .th-hide-mob {
	display: none;
}

.th-mob-links a {
	display: block;
	padding: 12px 16px 12px 32px;
	font-size: 15px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
}

.th-mob-links a:hover {
	color: #660099;
	background: #F4EEFF;
}
