/* —— Шапка —— */
.site-top-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 20;
	background: var(--site-header-bg, #e1d6d8);
	color: var(--site-header-fg, var(--site-fg, #000b5a));
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
	backdrop-filter: saturate(1.1);
}
.site-header {
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	letter-spacing: 0.01em;
}
.quote-variant-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	color: var(--site-fg, #0c4a6e);
	background: color-mix(in srgb, var(--site-fg, #0c4a6e) 8%, var(--site-bg, #e0f2fe));
	border-top: 1px solid color-mix(in srgb, var(--site-fg, #0c4a6e) 18%, transparent);
}
.quote-variant-banner__back,
.quote-variant-banner__fin {
	cursor: pointer;
	text-decoration: underline;
	white-space: nowrap;
}
.div-desktop {
	display: flex;
	align-items: stretch;
	min-height: 48px;
}
.div-mobile { display: none; }

.header-catalog {
	display: inline-flex;
	flex: 0 0 260px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	color: inherit;
	/* фон совпадает с шапкой/сайдбаром; затемнение только на hover */
	background: transparent;
	user-select: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.header-catalog:hover,
.header-catalog:focus-visible {
	background: rgba(15, 23, 42, 0.08);
	outline: none;
}
.header-catalog__ico {
	display: inline-block;
	width: 16px;
	height: 11px;
	flex-shrink: 0;
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
		linear-gradient(currentColor, currentColor) 0 4.5px / 100% 2px no-repeat,
		linear-gradient(currentColor, currentColor) 0 9px / 100% 2px no-repeat;
	opacity: 0.9;
}

.other-elements {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 14px 6px 10px;
	min-width: 0;
	flex: 1 1 auto;
}

/* Без корзины — растягиваем пункты по ширине шапки */
.other-elements--no-basket {
	justify-content: space-between;
	gap: clamp(10px, 2vw, 28px);
}
.other-elements--no-basket .header-cluster--nav {
	flex: 1 1 auto;
	justify-content: space-between;
	gap: clamp(10px, 1.8vw, 32px);
	overflow: visible;
}
.other-elements--no-basket .header-nav__search {
	flex: 1 1 200px;
	max-width: min(320px, 30vw);
	min-width: 160px;
}
.other-elements--no-basket .header-nav {
	flex: 1 1 auto;
	justify-content: space-evenly;
	gap: clamp(8px, 1.5vw, 24px);
	overflow: visible;
}
.other-elements--no-basket .header-cluster--tools {
	flex: 0 0 auto;
	margin-left: 0;
}

.header-cluster {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.header-cluster--nav {
	flex: 1 1 auto;
	flex-wrap: nowrap;
	gap: 0;
	min-width: 0;
	overflow: visible;
	justify-content: space-evenly;
}
.header-cluster--tools {
	flex: 0 0 auto;
	justify-content: flex-end;
	gap: 12px;
	min-width: 0;
}
.header-nav {
	display: flex;
	align-items: center;
	gap: 0;
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: nowrap;
	overflow: visible;
	justify-content: space-evenly;
}
.header-nav__search {
	flex: 0 1 200px;
	max-width: 220px;
	min-width: 140px;
	display: flex;
	align-items: center;
}
.header-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 0;
	min-width: 0;
	padding: 6px 8px;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.2;
	transition: background 0.18s ease, transform 0.18s ease;
}
.header-nav__link:hover,
.header-nav__link:focus-visible {
	background: rgba(15, 23, 42, 0.1);
	outline: none;
}
.header-nav__link:active { transform: translateY(1px); }

.header-home::before,
.header-about::before,
.header-guarantee::before,
.header-contacts::before,
.header-faq::before,
.header-auth::before,
.header-basket::before {
	font-size: 24px;
	line-height: 1;
	opacity: 0.95;
	flex-shrink: 0;
}
.header-home::before { content: "⌂"; }
.header-about::before { content: "ℹ"; }
.header-guarantee::before { content: "✓"; }
.header-contacts::before { content: "☎"; }
.header-faq::before { content: "?"; }
.header-auth::before { content: "👤"; }
.header-basket::before { content: "🛒"; }

.header-auth,
.header-basket {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	white-space: nowrap;
	padding: 6px 10px;
	border-radius: 8px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-decoration: none;
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}
.header-auth:hover { background: rgba(15, 23, 42, 0.1); }
span.header-auth {
	cursor: default;
}
span.header-auth:hover { background: transparent; }
.header-basket {
	flex: 0 0 auto;
	margin-left: auto;
	margin-right: auto;
	max-width: none;
	width: auto;
	padding: 0 10px;
	height: 32px;
	border-radius: 8px;
	background: rgba(13, 148, 136, 0.16);
	box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.35);
	font-weight: 650;
	z-index: 1;
	min-height: 0;
	align-self: center;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
}
.header-basket:hover {
	background: rgba(13, 148, 136, 0.26);
	box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.5);
	transform: none;
}
.header-basket::before {
	font-size: 15px;
	line-height: 1;
	opacity: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.header-auth a,
.header-basket a {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	align-self: center;
	gap: 6px;
	line-height: 1;
	min-width: 0;
	max-width: none;
	height: 100%;
	white-space: nowrap;
}
.header-basket .basket-name {
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
}
.header-basket .basket-meta {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 4px !important;
	margin: 0 !important;
	max-width: none;
	overflow: hidden;
	white-space: nowrap;
	font-size: 11.5px;
	opacity: 0.9;
	font-weight: 600;
	line-height: 1;
}
.header-auth--in {
	font-size: 12px;
	max-width: 180px;
	line-height: 1.2;
}
.header-auth-menu {
	position: relative;
	flex: 0 0 auto;
}
.header-auth-cluster {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	min-width: 0;
}
.header-auth-menu__drop {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 45;
	display: none;
	flex-direction: column;
	min-width: 160px;
	padding: 6px;
	border-radius: 12px;
	background: var(--site-header-bg, #fff);
	color: var(--site-header-fg, #000b5a);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	border: 1px solid rgba(15, 23, 42, 0.1);
	box-sizing: border-box;
}
.header-auth-menu.is-open .header-auth-menu__drop {
	display: flex;
}
.header-auth-menu__drop[hidden] { display: none !important; }
.header-auth-menu__user {
	padding: 8px 12px 6px;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	margin-bottom: 4px;
}
.header-auth-menu__prices {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 8px;
}
.header-auth-menu__link {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 9px;
	color: inherit;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.header-auth-menu__link:hover,
.header-auth-menu__link:focus-visible {
	background: rgba(15, 23, 42, 0.08);
	outline: none;
}
.header-auth-menu__exit {
	color: #b91c1c;
}
.header-auth__txt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.header-auth__label { opacity: 0.75; font-weight: 500; white-space: nowrap; }
.header-auth__user {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	min-width: 0;
	line-height: 1.15;
}
.header-auth__name {
	font-weight: 650;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 7em;
}
.header-auth__prices {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-top: 1px;
}
.header-auth__exit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	flex-shrink: 0;
	color: inherit;
	background: rgba(15, 23, 42, 0.1);
	text-decoration: none;
	line-height: 1;
}
.header-auth__exit::before { content: "×"; font-size: 18px; font-weight: 700; }
.header-auth__exit:hover { background: rgba(185, 28, 28, 0.18); color: #b91c1c; }

.header-auth-row {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}
.header-price-lab {
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	opacity: 0.92;
	line-height: 1;
}
.header-price-lab .js-show-price0__txt {
	line-height: 1.2;
}
.header-price-lab input {
	margin: 0;
	width: 13px;
	height: 13px;
	accent-color: #0d9488;
}

.search-wrapper {
	display: flex;
	width: 100%;
	height: 32px;
	background: #fff;
	align-items: center;
	color: #1e293b;
	border-radius: 999px;
	padding: 2px;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
	transition: box-shadow 0.2s ease;
}
.search-wrapper:focus-within {
	box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.45), 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.search-input {
	flex: 1;
	min-width: 0;
	height: 28px;
	margin-left: 10px;
	border: none;
	outline: none;
	font-size: 14px;
	background: transparent;
	color: inherit;
}
.search-btn {
	height: 28px;
	min-width: 32px;
	background: #f1f5f9;
	padding: 0 10px;
	font-size: 12px;
	cursor: pointer;
	border: none;
	border-radius: 999px;
	transition: background 0.18s ease;
}
.search-btn:hover { background: #e2e8f0; }

.custom-select-wrapper { user-select: none; width: 48px; position: relative; flex-shrink: 0; }
.custom-select {
	background: transparent;
	border-radius: 8px;
	border: 0;
	padding: 4px 6px;
	cursor: pointer;
	transition: background 0.18s ease;
}
.custom-select:hover { background: rgba(255,255,255,0.14); }
.custom-select__trigger { display: flex; align-items: center; justify-content: center; gap: 0; }
.custom-select__trigger img, .current-lang-img { width: 32px; height: 22px; vertical-align: middle; object-fit: cover; border-radius: 2px; }
.custom-option img { width: 24px; height: 16px; vertical-align: middle; }
.custom-options {
	position: absolute;
	display: none;
	top: calc(100% + 6px);
	right: 0;
	width: 148px;
	background: var(--site-header-bg, #16a085);
	color: var(--site-header-fg, #fff);
	z-index: 30;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	overflow: hidden;
}
.custom-select.active .custom-options { display: block; }
.custom-option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; }
.custom-option:hover { background: rgba(255,255,255,0.14); }
.arrow {
	display: none;
}
.custom-select.active .arrow { display: none; }

