/**
 * Jimmy G's — Mobile Menu
 * Размеры и цвета сняты с макета Figma 4To9XeKIdtpfsUlSfbCarh, фреймы 63:2 и 65:2.
 */

.jgmm {
	--jgmm-bg: #0a1a2b;
	--jgmm-accent: #0c71c3;
	--jgmm-accent-soft: #59a7e8;
	--jgmm-rule: #1d3550;
	--jgmm-muted: #8fa8bd;
	--jgmm-sub: #dbe6f0;
	--jgmm-soc-bg: #16304a;
	--jgmm-font: "Roboto Condensed", "Roboto", "Helvetica Neue", Arial, sans-serif;

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	background: var(--jgmm-bg);
	transform: translateX(100%);
	/* visibility скрывает закрытое меню от табуляции и скринридеров. */
	visibility: hidden;
	transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.3s;
	font-family: var(--jgmm-font);
	-webkit-font-smoothing: antialiased;
}

.jgmm.is-mounted {
	display: block;
}

.jgmm.is-open {
	transform: none;
	visibility: visible;
	transition-delay: 0s, 0s;
}

@media (prefers-reduced-motion: reduce) {
	.jgmm,
	.jgmm__screen--panel {
		transition-duration: 0.01ms;
	}
}

.jgmm__dialog {
	position: absolute;
	inset: 0;
	/*
	 * `clip` вместо `hidden`: `hidden` создаёт прокручиваемый контейнер, и
	 * браузер прокручивает его сам, когда фокус уходит на элемент за краем.
	 * `clip` просто обрезает, прокрутить его нельзя. `hidden` оставлен
	 * запасным для старых браузеров.
	 */
	overflow: hidden;
	overflow: clip;
}

/* --- Экраны -------------------------------------------------------------- */

.jgmm__screen {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	/* Панель выезжает поверх корневого экрана — фон обязателен. */
	background: var(--jgmm-bg);
	padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.jgmm__screen--panel {
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.28s;
}

.jgmm__screen--panel.is-active {
	transform: none;
	visibility: visible;
	transition-delay: 0s, 0s;
}

.jgmm__spacer {
	flex: 1 0 0;
	min-height: 0;
}

/* --- Верхняя панель ------------------------------------------------------ */

.jgmm__topbar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 24px 0 20px;
}

.jgmm__topbar--panel {
	padding-bottom: 16px;
}

.jgmm__logo {
	display: flex;
	align-items: center;
	width: 144px;
	height: 44px;
	text-decoration: none;
}

.jgmm__logo-img {
	display: block;
	width: 144px;
	height: auto;
	max-width: 100%;
}

.jgmm__logo-text {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
}

.jgmm .jgmm__close {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--jgmm-accent);
	color: #fff;
	font-family: var(--jgmm-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 22px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.jgmm .jgmm__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--jgmm-accent-soft);
	font-family: var(--jgmm-font);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.jgmm__back-chevron {
	font-size: 26px;
	font-weight: 700;
	line-height: 28px;
}

.jgmm__back-label {
	font-size: 17px;
	font-weight: 500;
	line-height: 22px;
}

/* --- Корневая навигация -------------------------------------------------- */

.jgmm__nav {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
}

.jgmm .jgmm__item {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 15px 0;
	border: 0;
	border-bottom: 1px solid var(--jgmm-rule);
	border-radius: 0;
	background: none;
	color: #fff;
	font-family: var(--jgmm-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 30px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.jgmm__nav > .jgmm__item:first-child {
	border-top: 1px solid var(--jgmm-rule);
}

.jgmm .jgmm__item--parent {
	color: var(--jgmm-accent-soft);
}

.jgmm__chevron {
	flex: 0 0 auto;
	font-size: 26px;
	line-height: 30px;
}

/* --- Нижний блок --------------------------------------------------------- */

.jgmm__bottom {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.jgmm__bottom--panel {
	gap: 0;
}

.jgmm .jgmm__cta {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	padding: 15px 12px;
	border-radius: 4px;
	background: var(--jgmm-accent);
	color: #fff;
	font-family: var(--jgmm-font);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.6px;
	line-height: 20px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.jgmm__bottom--panel .jgmm__cta {
	padding-top: 14px;
	padding-bottom: 14px;
}

.jgmm .jgmm__phone {
	width: 100%;
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	line-height: 32px;
	text-align: center;
	text-decoration: none;
}

.jgmm__meta {
	width: 100%;
	margin: 0;
	color: var(--jgmm-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 19px;
	text-align: center;
}

/*
 * Ссылки на точки под часами работы. Размер тот же, что у часов, но
 * цвет обычного текста — чтобы было видно, что это кликабельно.
 */
.jgmm__locations {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	width: 100%;
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 19px;
}

.jgmm__location {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.jgmm__location:hover,
.jgmm__location:focus-visible {
	border-bottom-color: #fff;
}

.jgmm__locations-sep {
	color: var(--jgmm-muted);
}

.jgmm__socials {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.jgmm .jgmm__soc {
	display: flex;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	border-radius: 15px;
	background: var(--jgmm-soc-bg);
	color: var(--jgmm-muted);
	font-size: 13px;
	line-height: 16px;
	text-decoration: none;
}

.jgmm .jgmm__soc:hover,
.jgmm .jgmm__soc:focus-visible {
	color: #fff;
}

.jgmm__soc-icon {
	display: block;
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.jgmm__sr {
	position: absolute;
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --- Панель второго уровня ----------------------------------------------- */

.jgmm__panel-title {
	margin: 0;
	color: #fff;
	font-family: var(--jgmm-font);
	font-size: 30px;
	font-weight: 700;
	line-height: 36px;
}

.jgmm__panel-desc {
	margin: 0;
	color: var(--jgmm-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.jgmm__grid {
	display: flex;
	flex: 0 0 auto;
	gap: 14px;
	padding-top: 18px;
}

/* Панель «Our Services», разложенная по категориям. */
.jgmm__groups {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 24px;
	padding-top: 20px;
}

.jgmm__group-title {
	margin: 0;
	color: var(--jgmm-accent-soft);
	font-family: var(--jgmm-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 17px;
	text-transform: uppercase;
}

.jgmm__group .jgmm__grid {
	padding-top: 6px;
}

.jgmm__column {
	display: flex;
	min-width: 0;
	flex: 1 1 0;
	flex-direction: column;
}

.jgmm .jgmm__sub {
	display: block;
	padding: 11px 0;
	border-bottom: 1px solid var(--jgmm-rule);
	color: var(--jgmm-sub);
	font-family: var(--jgmm-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 19px;
	text-decoration: none;
}

.jgmm__column > .jgmm__sub:first-child {
	border-top: 1px solid var(--jgmm-rule);
}

.jgmm .jgmm__sub:hover,
.jgmm .jgmm__sub:focus-visible,
.jgmm .jgmm__item:hover,
.jgmm .jgmm__item:focus-visible {
	color: var(--jgmm-accent-soft);
}

.jgmm :focus-visible {
	outline: 2px solid var(--jgmm-accent-soft);
	outline-offset: 2px;
}

/* --- Блокировка прокрутки страницы --------------------------------------- */

body.jgmm-locked {
	position: fixed;
	left: 0;
	width: 100%;
	overflow: hidden;
}
