/* =======================================================
   header_menu-desktop.css
   Функционал десктопного меню
   Схема:
   [левая группа] [лого по центру] [правая группа]
======================================================= */


/* ===== [01] LOCAL RESET ===== */

.menu-desktop,
.menu-desktop * {
	box-sizing: border-box;
}

.menu-desktop ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-desktop a {
	display: block;
	text-decoration: none;
	white-space: nowrap;
}


/* ===== [02] MAIN LAYOUT ===== */

.menu-desktop {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	gap: 16px;
	position: relative;
}


/* ===== [03] LEFT / RIGHT GROUPS ===== */

.menu-desktop_group {
	display: flex;
	align-items: stretch;
	gap: 4px;
	min-width: 0;
	flex: 1 1 0;
}

.menu-desktop_group-left {
	order: 1;
	justify-content: flex-start;
}

.menu-desktop_group-right {
	order: 3;
	justify-content: flex-end;
}

.menu-desktop_group-left:empty,
.menu-desktop_group-right:empty {
	display: none;
}


/* ===== [04] CENTER LOGO ===== */

.menu-desktop_logo {
	order: 2;
	display: flex;
	align-items: stretch;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 0;
}

.menu-desktop_logo > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 0 14px;
	text-align: center;
}


/* ===== [05] FIRST LEVEL ITEMS ===== */

.menu-desktop_group > li {
	position: relative;
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
}

.menu-desktop_group > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 0 12px;
	text-align: center;
}


/* ===== [06] DROPDOWN LEVELS ===== */

.menu-desktop_group > li > ul,
.menu-desktop_group > li > ul ul {
	display: none;
	position: absolute;
	z-index: 1000;
	min-width: 220px;
}

.menu-desktop_group > li > ul li {
	position: relative;
}

.menu-desktop_group > li > ul a {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 40px;
	padding: 0 14px;
	white-space: nowrap;
}


/* ===== [07] DROPDOWN RIGHT ===== */

.menu-desktop_group > li.dropdown-right > ul {
	top: calc(100% + 4px);
	left: 0;
}

.menu-desktop_group > li.dropdown-right > ul ul {
	top: 0;
	left: calc(100% + 4px);
}

.menu-desktop_group > li.dropdown-right:hover > ul,
.menu-desktop_group > li.dropdown-right:focus-within > ul {
	display: block;
}

.menu-desktop_group > li.dropdown-right > ul li:hover > ul,
.menu-desktop_group > li.dropdown-right > ul li:focus-within > ul {
	display: block;
}


/* ===== [08] DROPDOWN LEFT ===== */

.menu-desktop_group > li.dropdown-left > ul {
	top: calc(100% + 4px);
	right: 0;
}

.menu-desktop_group > li.dropdown-left > ul ul {
	top: 0;
	right: calc(100% + 4px);
}

.menu-desktop_group > li.dropdown-left:hover > ul,
.menu-desktop_group > li.dropdown-left:focus-within > ul {
	display: block;
}

.menu-desktop_group > li.dropdown-left > ul li:hover > ul,
.menu-desktop_group > li.dropdown-left > ul li:focus-within > ul {
	display: block;
}




.site-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 100%;
	text-align: center;
	line-height: 1.1;
}

.site-logo_top,
.site-logo_bottom {
	display: block;
	white-space: nowrap;
}