:root {
	--mobile-menu-shadow: -20px 15px 15px 0px var(--mobile-header-background-color);
}

.mobile-header {
	--menu-shadow: -2px 1px 2px 0px var(--mobile-header-text-color);

	margin-bottom: calc(0.25rem * 14);
}

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

.mobile-header__sticky {
	position: fixed;
	z-index: 10002;
	top: 0;

	display: flex;
	align-items: center;
	justify-content: space-between;

	width: 100%;
	max-width: 100vw;
	height: calc(0.25rem * 14);
	padding: calc(0.25rem * 1) calc(0.25rem * 2);

	background: var(--mobile-header-background-color);
	box-shadow: var(--menu-shadow);

	transition: all 300ms;
}

body.nav-open .mobile-header__sticky {
	box-shadow: var(--mobile-menu-shadow);
}

.mobile_header__info {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	width: 83.3333%;
}

.mobile-header__logo {
	display: block;
}

.mobile-header__logo img {
	display: block;
	max-height: calc(0.25rem * 13);
}

.mobile_header__slogan {
	display: flex;
	flex-direction: column;
	gap: 2px;
	justify-content: center;
	align-items: center;

	margin: 0;

	line-height: 0.9;
	font-weight: bold;
	color: var(--mobile-header-text-color);
}

.mobile_header__slogan > :first-child {
	font-size: var(--mobile-header-slogan-1-font-size);
}

.mobile_header__slogan > :nth-child(2) {
	font-size: var(--mobile-header-slogan-2-font-size);
}

.mobile_header__slogan > :last-child {
	font-size: var(--mobile-header-slogan-3-font-size);
}

/* hamburger */
.menu-toggle {
	cursor: pointer;

	z-index: 10001;

	display: flex;
	flex-direction: column;
	gap: calc(0.25rem * 1);
	align-items: center;
	justify-content: center;

	width: fit-content;
	height: calc(0.25rem * 10);
	padding: 0 calc(0.25rem * 3);
	border: 0;
	border-radius: 0.25rem;

	background: var(--menu-toggle-background-color);
}

.menu-toggle span {
	display: block;

	width: calc(0.25rem * 6);
	height: calc(0.25rem * 1);

	background: var(--menu-toggle-icon-color);

	transition: 0.25s;
}

.menu-toggle.active span:nth-child(1) {
	transform: translateY(calc(0.25rem * 1.95)) translateX(-3%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: translateY(calc(-0.25rem * 1.95)) translateX(-3%) rotate(-45deg);
}

/* затемнение */
.drawer-overlay {
	position: absolute;
	z-index: 10001;
	top: calc(0.25rem * 14);
	right: -100%;

	display: flex;
	justify-content: end;

	width: 100%;
	height: calc(100vh - 3.5rem);

	backdrop-filter: blur(2px);

	transition: all 0.3s;
}

body.nav-open .drawer-overlay {
	right: 0;
	visibility: visible;
}

/* Sliding block */
.mobile-drawer {
	overflow-y: auto;

	width: 83.3333%;
	height: 100%;
	min-height: calc(100vh - calc(0.25rem * 14));
	border-width: 1px;

	background: var(--mobile-menu-background-color);
	box-shadow: var(--mobile-menu-shadow);

	transition: all 300ms;
}

body.nav-open .mobile-drawer {
	box-shadow: var(--mobile-menu-shadow);
}

/* root list */
.drawer-menu,
.drawer-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* top level */
.drawer-menu > li,
.drawer-menu > ul > li {
	border-bottom: 1px solid var(--mobile-menu-item-border-color);
	text-align: center;
	background: var(--mobile-menu-item-background-color);
}

.drawer-menu > li > a,
.drawer-menu > ul > li > a {
	display: block;

	padding: 8px 0;

	font-size: 18px;
	font-weight: 600;
	color: var(--mobile-menu-item-text-color);
	text-decoration: none;
}

/* submenu button */
.drawer-menu .submenu-toggle {
	cursor: pointer;

	position: absolute;
	top: 21px;
	right: 10px;
	transform: translateY(-50%);

	display: flex;
	align-items: center;
	justify-content: center;

	width: 42px;
	height: 28px;
	border: 0;
	border-radius: 16px;

	color: var(--mobile-submenu-toggle-icon-color);

	background: var(--mobile-submenu-toggle-background-color);
}

.drawer-menu .submenu-toggle svg {
	transition: transform 0.25s;
}

.drawer-menu li.is-open > .submenu-toggle svg {
	transform: rotate(180deg);
}

/* submenu container */
.drawer-menu li {
	position: relative;
}

.drawer-menu .sub-menu {
	overflow: hidden;
	display: none;

	margin: 0;
	padding: 8px 0 10px;
	border-bottom: 1px solid var(--mobile-submenu-border-color);

	list-style: none;

	background: var(--mobile-submenu-background-color);

	transition: max-height 0.3s ease;
}

.drawer-menu li.is-open > .sub-menu {
	display: block;
}

/* submenu items */
.drawer-menu .sub-menu > li > a {
	display: block;

	padding: calc(0.25rem * 2) calc(0.25rem * 4);
	border-top: 1px solid var(--mobile-submenu-item-border-color);

	font-size: 1rem;
	color: var(--mobile-submenu-item-text-color);
	text-decoration: none;
}

@media (width >= 960px) {
	.menu-toggle,
	.mobile-drawer,
	.drawer-overlay {
		display: none;
	}
}

.mobile-drawer__info {
	padding: calc(0.25rem * 2);
	line-height: 1.2;
	color: var(--mobile-header-text-color);
}

.mobile-drawer__info p {
	margin: 0;
}

.mobile-drawer__info > * ~ * {
	margin-top: calc(0.25rem * 2) !important;
	padding-top: calc(0.25rem * 2);
	border-top: 2px solid var(--mobile-header-text-color);
}

.mobile-drawer__info > *,
.mobile_drawer__emails a,
.mobile_drawer__phones a {
	display: flex;
	gap: calc(0.25rem * 2);
	align-items: center;
}

.mobile-drawer__info svg {
	width: calc(0.25rem * 8);
	height: calc(0.25rem * 8);
}
