/* Desktop: кнопка «Меню» + панель списка страниц сайта */

.user-bar__btn_pages {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: auto;
	padding: 6px 10px;
	border: none;
	background: transparent;
	cursor: pointer;
	color: #fff;
	-webkit-appearance: none;
	appearance: none;
}

.user-bar__pages-icon {
	display: block;
	width: 21px;
	height: 16px;
	flex-shrink: 0;
}

.user-bar .user-bar__btn.user-bar__btn_pages .user-bar__pages-label,
.user-bar__pages-label {
	position: static !important;
	display: inline-block;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1 !important;
	white-space: nowrap;
	color: #fff !important;
	background: none !important;
	width: auto !important;
	height: auto !important;
	border-radius: 0 !important;
	top: auto !important;
	right: auto !important;
}

/* При открытом меню — скрыть кнопку «Меню» */
body.pages-menu-open .user-bar__item_pages {
	visibility: hidden;
	pointer-events: none;
}

/* Панель: скрыта справа, выезжает на right: 0 */
.popup-menu-profile {
	right: -100% !important;
	left: auto !important;
	-webkit-transition: right .3s ease;
	-o-transition: right .3s ease;
	transition: right .3s ease;
}

.popup-menu-profile.popup-menu-profile--open {
	right: 0 !important;
}

.popup-menu-profile__toolbar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 50px;
	padding: 0 12px;
	background: #F2F2F2;
	border-bottom: 1px solid #e5e5e5;
}

.popup-menu-profile__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: transparent;
	color: #888;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
	transition: color .15s, background .15s;
}

.popup-menu-profile__close:hover,
.popup-menu-profile__close:focus {
	color: #79B928;
	background: #ebebeb;
	outline: none;
}

.popup-menu-profile .popup-menu-profile__wrap {
	padding-top: 16px;
}

/* График в боковом меню (мобильный блок контактов) */
.popup-menu-profile .phone-list-wrap .phone-list__item_mode {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px 10px;
}

.popup-menu-profile .phone-list-wrap .phone-list__item_mode .headphones-img,
.popup-menu-profile .phone-list-wrap .phone-list__item_mode > img {
	flex-shrink: 0;
	position: static;
	left: auto;
}

.popup-menu-profile .phone-list-wrap .phone-list__item_mode .mode {
	display: block;
	width: 100%;
	margin-top: 0;
	margin-left: 0;
	line-height: 1.45;
}

.popup-menu-profile .phone-list-wrap .phone-list__item_mode .mode ul {
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
}

.popup-menu-profile .phone-list-wrap .phone-list__item_mode .mode ul li {
	display: inline;
}

.popup-menu-profile .phone-list-wrap .phone-list__menu:first-child a {
	display: block;
	margin-bottom: 6px;
	color: #363636;
	font-size: 14px;
}

@media (min-width: 992px) {
	.popup-menu-profile {
		width: 420px;
		max-width: calc(100vw - 40px);
		top: 0 !important;
		height: 100% !important;
		z-index: 10050;
		box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
		right: -420px !important;
	}

	.popup-menu-profile.popup-menu-profile--open {
		right: 0 !important;
	}

	/* Затемнение не перекрывает полосу прокрутки и панель */
	.header .blackout.blackout--pages-menu {
		display: block !important;
		position: fixed;
		top: 0;
		left: 0;
		right: min(420px, calc(100vw - 40px));
		bottom: 0;
		width: auto;
		height: auto;
		z-index: 10040;
	}
}
