/* Нижний мобильный сайдбар (без glass) + scroll-top */
.gt-mnav {
	position: fixed;
	left: 8px;
	right: 8px;
	bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	z-index: 1050;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0;
	pointer-events: none;
	transition: gap .62s cubic-bezier(.22, 1.55, .36, 1);
}
.gt-mnav.has-scroll-top { gap: 8px; }
.gt-mnav__bar {
	position: relative;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
	height: 58px;
	padding: 6px 7px;
	border-radius: 999px;
	overflow: hidden;
	transform: translateZ(0);
	transform-origin: center center;
	background: #2a2d38;
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
	transition: flex-basis .62s cubic-bezier(.22, 1.55, .36, 1);
}
.gt-mnav.has-scroll-top .gt-mnav__bar { animation: gt-mnav-liquid .7s cubic-bezier(.22, 1.2, .36, 1) both; }
.gt-mnav.is-collapsing .gt-mnav__bar { animation: gt-mnav-liquid-out .65s cubic-bezier(.22, 1.2, .36, 1) both; }
@keyframes gt-mnav-liquid {
	0% { transform: translateZ(0) scale(1, 1); }
	32% { transform: translateZ(0) scale(.988, 1.055); }
	58% { transform: translateZ(0) scale(1.006, .975); }
	100% { transform: translateZ(0) scale(1, 1); }
}
@keyframes gt-mnav-liquid-out {
	0% { transform: translateZ(0) scale(1, 1); }
	30% { transform: translateZ(0) scale(1.012, .96); }
	58% { transform: translateZ(0) scale(.995, 1.03); }
	100% { transform: translateZ(0) scale(1, 1); }
}
.gt-mnav__item {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	height: 40px;
	padding: 0 4px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	color: rgba(255, 255, 255, .78);
	background: transparent;
	text-align: center;
	text-decoration: none;
	opacity: .72;
	cursor: pointer;
	transition: flex .38s cubic-bezier(.22, .61, .36, 1), background .28s ease, box-shadow .28s ease, padding .28s ease, gap .28s ease, opacity .35s ease, color .35s ease, transform .28s ease;
}
.gt-mnav__item.is-active {
	flex: 1.85 1 0;
	padding: 0 12px 0 10px;
	gap: 6px;
	background: linear-gradient(180deg, #fff 0%, #f3f7f6 100%);
	opacity: 1;
	color: #1f2937;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.gt-mnav.has-scroll-top .gt-mnav__item.is-active { padding: 0 5px; gap: 4px; }
.gt-mnav__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	flex-shrink: 0;
	color: currentColor;
}
.gt-mnav__icon img,
.gt-mnav__icon-img,
.gt-mnav__svg,
.gt-mnav__icon .svgicon {
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	min-height: 24px;
	display: block;
	flex-shrink: 0;
	fill: currentColor;
	transition: filter .35s ease, opacity .35s ease;
}
.gt-mnav__item.is-active .gt-mnav__icon img.menu-iconify,
.gt-mnav__item.is-active .gt-mnav__icon-img.menu-iconify {
	/* Iconify home optically lighter than sprite icons */
	width: 26px !important;
	height: 26px !important;
	min-width: 26px;
	min-height: 26px;
}
.gt-mnav__item:not(.is-active) .gt-mnav__icon img,
.gt-mnav__item:not(.is-active) .gt-mnav__icon-img {
	filter: brightness(0) invert(1);
	opacity: .9;
}
.gt-mnav__item.is-active .gt-mnav__icon img,
.gt-mnav__item.is-active .gt-mnav__icon-img {
	filter: none;
	opacity: 1;
}
.gt-mnav__item--on-dark:not(.is-active) { color: rgba(255, 255, 255, .92); opacity: .9; }
.gt-mnav__item--on-light:not(.is-active) { color: rgba(31, 41, 55, .88); opacity: .88; }
.gt-mnav__item--on-light:not(.is-active) .gt-mnav__icon img,
.gt-mnav__item--on-light:not(.is-active) .gt-mnav__icon-img {
	filter: none;
	opacity: .85;
}
.gt-mnav--sampling .gt-mnav__bar,
.gt-mnav--sampling .gt-mnav__bar *,
.gt-mnav--sampling .gt-mnav__scroll,
.gt-mnav--sampling .gt-mnav__scroll * { pointer-events: none !important; }
.gt-mnav__label {
	font-size: 11px;
	line-height: 1;
	font-weight: 600;
	white-space: nowrap;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-width .38s cubic-bezier(.22, .61, .36, 1), opacity .22s ease .04s;
}
.gt-mnav__item.is-active .gt-mnav__label { max-width: 96px; opacity: 1; }
.gt-mnav.has-scroll-top .gt-mnav__item.is-active .gt-mnav__label { max-width: 72px; }

.gt-mnav__scroll {
	--gt-scroll-w: 48px;
	--gt-scroll-h: 58px;
	position: relative;
	z-index: 1;
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	max-width: 0;
	height: var(--gt-scroll-h);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 18px;
	color: #fff;
	background: #2a2d38;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
	transform: scale(.45);
	transform-origin: center center;
	transition:
		flex-basis .62s cubic-bezier(.22, 1.55, .36, 1),
		width .62s cubic-bezier(.22, 1.55, .36, 1),
		max-width .62s cubic-bezier(.22, 1.55, .36, 1),
		opacity .32s ease,
		visibility .62s,
		transform .62s cubic-bezier(.22, 1.55, .36, 1),
		background .2s ease,
		color .2s ease,
		border-color .2s ease;
}
.gt-mnav__scroll.is-visible {
	flex: 0 0 var(--gt-scroll-w);
	flex-basis: var(--gt-scroll-w);
	width: var(--gt-scroll-w);
	min-width: var(--gt-scroll-w);
	max-width: var(--gt-scroll-w);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: scale(1);
}
.gt-mnav__scroll--on-dark { color: #fff; border-color: rgba(255, 255, 255, .2); background: #1f2430; }
.gt-mnav__scroll--on-light { color: #1f2937; border-color: rgba(15, 23, 42, .12); background: #eef2f6; }
.gt-mnav__scroll svg { position: relative; z-index: 1; display: block; flex-shrink: 0; }

@media screen and (max-width: 76.25rem) {
	.gt-mnav { display: flex; }
	body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
	body.search-isactive .gt-mnav,
	body.mod-isactive .gt-mnav { opacity: 0; pointer-events: none; }
}

html[data-theme="light"] .gt-mnav__bar {
	background: #e8eef5;
	border-color: rgba(15, 23, 42, .1);
	box-shadow: 0 10px 24px rgba(15, 36, 73, .12);
}
html[data-theme="light"] .gt-mnav__item { color: rgba(31, 41, 55, .75); }
html[data-theme="light"] .gt-mnav__item:not(.is-active) .gt-mnav__icon img,
html[data-theme="light"] .gt-mnav__item:not(.is-active) .gt-mnav__icon-img {
	filter: none;
	opacity: .8;
}
html[data-theme="light"] .gt-mnav__scroll {
	background: #e8eef5;
	color: #1f2937;
	border-color: rgba(15, 23, 42, .1);
	box-shadow: 0 10px 24px rgba(15, 36, 73, .12);
}

@media (prefers-reduced-motion: reduce) {
	.gt-mnav,
	.gt-mnav__bar,
	.gt-mnav__scroll { transition-duration: .01ms !important; animation: none !important; }
	.gt-mnav.has-scroll-top .gt-mnav__bar,
	.gt-mnav.is-collapsing .gt-mnav__bar { animation: none !important; }
}
