/* Header styles */
.desktop-header {
	position: sticky;
	z-index: 10002;
	top: 0;

	display: none;

	width: 100%;
	padding: calc(0.25rem * 1) calc(0.25rem * 4);

	color: var(--desktop-header-text-color);
	text-align: center;

	background: var(--desktop-header-background-color);
}

@media (width >= 960px) {
	.desktop-header {
		display: block;
	}
}

.desktop-header__nav {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: calc(0.25rem * 4);
	align-items: center;

	max-width: 1200px;
	margin: auto;
	padding: 0 1rem;
}

.desktop-header__nav > ul {
	display: flex;
	gap: calc(0.25rem * 4);
	align-items: center;

	height: 60px;
	max-height: calc(0.25rem * 18);
	margin: 0;
	padding: 0;

	list-style: none;
}

.desktop-header__nav .menu-item {
	position: relative;
	height: fit-content;
}

.desktop-header__nav .menu-item > :first-child {
	display: flex;
	gap: calc(0.25rem * 1);
	align-items: center;
	text-transform: uppercase;
}

.desktop-header__nav .menu-item:not(.menu-item-has-children) svg {
	display: none;
}

.desktop-header__nav .menu-item:is(:focus-within, :hover) > .sub-menu {
	display: block;
}

.desktop-header__nav .menu-item > .sub-menu {
	position: absolute;
	z-index: 90;

	display: none;

	padding: calc(0.25rem * 1);
	border: 2px solid var(--desktop-header-submenu-border-color);
	border-radius: 0.375rem;

	font-size: 0.875rem;
	white-space: nowrap;
	list-style: none;

	background: var(--desktop-header-submenu-background-color);
}

.desktop-header__nav .menu-item > .sub-menu > li {
	width: 100%;
}

.desktop-header__nav .menu-item > .sub-menu > a {
	display: block;
	width: 100%;
	height: 100%;
	padding: calc(0.25rem * 2);
}

.desktop-header__nav svg {
	width: 1.25rem;
}

.desktop_header__phones {
	justify-self: end;
}

.desktop_header__phones a {
	display: flex;
	gap: calc(0.25rem * 1);
	align-items: center;
}

.site-header a {
	color: var(--desktop-header-text-color);
	text-decoration: none;
}

.site-header .mobile-icons {
	display: flex;
	gap: calc(0.25rem * 2);
	justify-content: end;
	padding-inline: calc(0.25rem * 2);
}

.site-header .mobile-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-header .mobile-icon svg {
	width: 2.125rem;
	height: 2.125rem;
}

/* десктопное меню */
.desktop-nav {
	display: none; /* по умолчанию скрыто */
}

.desktop-menu {
	display: flex;
	gap: 20px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.desktop-menu li a {
	padding: 10px;
	font-weight: 500;
	color: var(--desktop-header-text-color);
	text-decoration: none;
}

/* desktop only */
@media (width >= 960px) {
	.desktop-nav {
		display: block;
	}

	.menu-toggle {
		display: none;
	}

	.mobile-drawer,
	.drawer-overlay {
		display: none;
	}
}
