/* ===== Верхнее меню — Abrau Club (ПК) ===== */

.wrapper_top_menu {
	--htm-ink: #151515;
	--htm-line: #e8e8e8;
}

.top_menu {
	height: 44px;
	gap: 24px;
}

.top_menu-menu .navigation {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--htm-ink) !important;
}

.top_menu-menu .navigation .navigation_item {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.top_menu-menu .navigation .navigation_item a.navigation-link,
.top_menu_left a {
	display: inline-flex;
	align-items: center;
	height: 44px;
	margin: 0 !important;
	padding: 0 14px !important;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
	color: #151515 !important;
	transition: opacity .2s ease;
}

.top_menu-menu .navigation .navigation_item a.navigation-link:hover,
.top_menu-menu .navigation .navigation_item a.navigation-link.selected {
	opacity: .72;
}

/* Внутренние страницы: белая шапка, тёмный текст */
@media (min-width: 993px) {
	header.header:not(.main_page_header) {
		background: #fff !important;
		box-shadow: 0 1px 0 var(--htm-line) !important;
	}

	header.header:not(.main_page_header) .logo img {
		filter: none !important;
	}

	header.header:not(.main_page_header) .icon-box_item svg,
	header.header:not(.main_page_header) .title-search-hide-wrap svg {
		filter: none !important;
	}

	header.header:not(.main_page_header) .top_menu-menu .navigation,
	header.header:not(.main_page_header) .top_menu-menu .navigation .navigation_item a.navigation-link,
	header.header:not(.main_page_header) .navigation a {
		color: #151515 !important;
	}

	.header-additional-menu {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		max-width: 100%;
	}

	.header-additional-menu::-webkit-scrollbar {
		display: none;
	}

	.header-additional-menu a {
		flex: 0 0 auto;
		padding: 0 12px 18px;
	}

	.header-additional-menu a span {
		font-size: 11px;
		font-weight: 400;
		letter-spacing: 0.04em;
		white-space: nowrap;
	}

	.header-additional-menu a[href="/catalog/sale/"] span,
	.header-additional-menu a[href*="sekretnaya-rasprodazha"] span,
	.header-additional-menu a.stock span {
		color: #800020 !important;
		-webkit-text-fill-color: #800020 !important;
		font-weight: 400 !important;
	}
}


/* Sale / Secret sale — бордовый брендбука (сильнее правила #151515 на внутренних) */
header.header .top_menu-menu .navigation .navigation_item a.navigation-link.is-sale,
header.header .top_menu-menu .navigation .navigation_item a.navigation-link.stock,
header.header .top_menu-menu .navigation .navigation_item a.navigation-link[href*="/catalog/sale/"],
header.header .top_menu-menu .navigation .navigation_item a.navigation-link[href*="sekretnaya-rasprodazha"],
header.header:not(.main_page_header) .top_menu-menu .navigation .navigation_item a.navigation-link.is-sale,
header.header:not(.main_page_header) .top_menu-menu .navigation .navigation_item a.navigation-link.stock,
header.header:not(.main_page_header) .top_menu-menu .navigation .navigation_item a.navigation-link[href*="/catalog/sale/"],
header.header:not(.main_page_header) .top_menu-menu .navigation .navigation_item a.navigation-link[href*="sekretnaya-rasprodazha"],
header.header.main_page_header .top_menu-menu .navigation .navigation_item a.navigation-link.is-sale,
header.header.main_page_header .top_menu-menu .navigation .navigation_item a.navigation-link.stock,
header.header.main_page_header .top_menu-menu .navigation .navigation_item a.navigation-link[href*="sekretnaya-rasprodazha"] {
	color: #800020 !important;
	-webkit-text-fill-color: #800020 !important;
	font-weight: 400 !important;
	opacity: 1 !important;
}

/* ===== LOGO CENTER (exact v4 size) ===== */
/* Absolute vs header (fixed). Parents must NOT be position:relative
   or logo centers inside the right 60% panel and looks shifted. */
header.header .header-inner,
header.header .wrapper-header-top,
header.header .header-top,
header.header .ht-content,
header.header .header-top-line {
	position: static !important;
}

header.header .logo.top-logo {
	position: absolute !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	z-index: 6;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto !important;
	max-width: 260px;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
}

header.header .logo.top-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

header.header .logo.top-logo img {
	display: block;
	width: auto !important;
	max-width: 230px;
	max-height: 46px;
	height: auto !important;
	margin: 0 auto;
}

header.header .header-top-line .top-icon-box {
	margin-left: auto !important;
}

header.header .header-top-line {
	min-height: 44px;
	align-items: center;
}

@media (max-width: 992px) {
	header.header .logo.top-logo { max-width: 180px; }
	header.header .logo.top-logo img { max-width: 165px; max-height: 38px; }
}

@media (max-width: 767px) {
	header.header .logo.top-logo { max-width: 150px; }
	header.header .logo.top-logo img { max-width: 135px; max-height: 34px; }
}

/* ===== zoom: menu must not cover centered logo ===== */
@media (min-width: 993px) {
	header.header .wrapper_top_menu {
		flex: 1 1 0 !important;
		max-width: calc(50% - 140px) !important;
		min-width: 0 !important;
		overflow: hidden;
		z-index: 4;
	}
	header.header .top_menu {
		height: auto;
		min-height: 44px;
		max-width: 100%;
	}
	header.header .top_menu-menu {
		max-width: 100%;
		min-width: 0;
	}
	header.header .top_menu-menu .navigation {
		flex-wrap: nowrap;
		max-width: 100%;
	}
	header.header .logo.top-logo {
		z-index: 8;
	}
}
@media (min-width: 993px) and (max-width: 1600px) {
	header.header .top_menu-menu .navigation .navigation_item a.navigation-link,
	header.header .top_menu_left a {
		padding: 0 10px !important;
		font-size: 12px !important;
	}
	header.header .logo.top-logo img {
		max-width: 200px;
		max-height: 42px;
	}
}
@media (min-width: 993px) and (max-width: 1360px) {
	header.header .wrapper_top_menu {
		max-width: calc(50% - 120px) !important;
	}
	header.header .top_menu-menu .navigation .navigation_item a.navigation-link,
	header.header .top_menu_left a {
		padding: 0 7px !important;
		font-size: 11px !important;
	}
	header.header .logo.top-logo img {
		max-width: 170px;
		max-height: 38px;
	}
}
@media (min-width: 993px) and (max-width: 1180px) {
	header.header .wrapper_top_menu {
		max-width: calc(50% - 110px) !important;
	}
	header.header .top_menu-menu .navigation .navigation_item a.navigation-link,
	header.header .top_menu_left a {
		padding: 0 5px !important;
		font-size: 11px !important;
	}
	header.header .logo.top-logo img {
		max-width: 150px;
		max-height: 34px;
	}
}
