/* Site-wide Sparta Garage menu, same as /services/motomasterskaya-v-minske/ */

:root {
	--sg-page: 1440px;
	--sg-gutter: 25px;
	--sg-red: #de1313;
	--sg-red-soft: rgba(222, 19, 19, .16);
	--sg-glass: rgba(10, 10, 10, .62);
	--sg-line: rgba(255, 255, 255, .12);
}

body:has(.sg-nav) .header.site-header,
body:has(.sg-nav) .mobile-menu,
body:has(.sg-nav) .mobile-buttons {
	display: none !important;
}

body:has(.sg-nav) .box-before-header {
	height: 0;
	min-height: 0;
	padding-top: 0 !important;
}

body.privacy-policy:has(.sg-nav) .box-before-header,
body.error404:has(.sg-nav) .box-before-header {
	padding-top: 102px !important;
}

body.home:has(.sg-nav) .box-monitor1 {
	height: 100vh;
	min-height: 100svh;
}

body:has(.sg-nav) .contact-hero-content {
	padding-top: 124px;
}

body:has(.sg-nav) .container-title-category {
	padding-top: 110px;
}

body:has(.sg-nav) .img-single-product .title_big_text {
	padding-top: 24px;
}

@media (max-width: 960px) {
	body:has(.sg-nav) .contact-hero-content {
		padding-top: 112px;
	}

	body:has(.sg-nav) .container-title-category {
		padding-top: 100px;
	}
}

.sg-nav {
	left: 0;
	padding: 14px 0 0;
	pointer-events: none;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 400;
}

.sg-nav.is-open {
	bottom: 0;
}

.sg-nav * {
	box-sizing: border-box;
}

.sg-nav__bar {
	align-items: center;
	background: var(--sg-glass);
	border: 1px solid var(--sg-line);
	border-radius: 22px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
	display: flex;
	gap: 16px;
	margin: 0 auto;
	max-width: var(--sg-page);
	min-height: 72px;
	padding: 8px var(--sg-gutter);
	width: 100%;
	pointer-events: auto;
	position: relative;
	transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
	z-index: 402;
}

.sg-nav__bar::before {
	backdrop-filter: blur(22px) saturate(140%);
	border-radius: inherit;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.sg-nav.is-scrolled .sg-nav__bar {
	background: rgba(8, 8, 8, .88);
	border-color: rgba(255, 255, 255, .16);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}

.sg-nav__logo {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	margin-right: 8px;
}

.sg-nav__logo img {
	display: block;
	height: 62px;
	object-fit: contain;
	width: auto;
}

.sg-nav__links {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 4px;
	justify-content: center;
}

.sg-nav__link,
.sg-nav__drop-btn {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 14px;
	color: #f3f3f3;
	cursor: pointer;
	display: inline-flex;
	font-family: "Cuprum", "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	letter-spacing: .02em;
	line-height: 1;
	padding: 7px 11px 7px 7px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.sg-nav__link:hover,
.sg-nav__drop-btn:hover,
.sg-nav__link.is-current,
.sg-nav__item.is-open .sg-nav__drop-btn {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

.sg-nav__ico {
	align-items: center;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 10px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 32px;
	height: 32px;
	justify-content: center;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
	width: 32px;
}

.sg-nav__ico svg {
	display: block;
	height: 16px;
	width: 16px;
}

.sg-nav__link:hover .sg-nav__ico,
.sg-nav__drop-btn:hover .sg-nav__ico,
.sg-nav__link.is-current .sg-nav__ico,
.sg-nav__item.is-open .sg-nav__ico {
	background: var(--sg-red-soft);
	border-color: rgba(222, 19, 19, .35);
	color: #ff4d4d;
}

.sg-nav__chev {
	display: block;
	height: 12px;
	margin-left: -2px;
	opacity: .7;
	transition: transform .2s ease;
	width: 12px;
}

.sg-nav__item.is-open .sg-nav__chev {
	transform: rotate(180deg);
}

.sg-nav__item {
	position: relative;
}

.sg-nav__mega {
	background: rgba(9, 9, 9, .94);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	left: 0;
	max-width: min(600px, calc(100vw - 40px));
	min-width: min(560px, calc(100vw - 40px));
	opacity: 0;
	padding: 14px;
	position: absolute;
	top: 100%;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
	z-index: 5;
}

.sg-nav__item.is-open .sg-nav__mega {
	display: grid;
	opacity: 1;
	transform: none;
}

.sg-nav__mega-head {
	align-items: end;
	display: flex;
	grid-column: 1 / -1;
	justify-content: space-between;
	padding: 4px 8px 8px;
}

.sg-nav__mega-head p {
	color: #8d8d8d;
	font-family: "Cuprum", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	margin: 0;
	text-transform: uppercase;
}

.sg-nav__mega-head a {
	color: #fff;
	font-family: "Cuprum", sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.sg-nav__mega-head a:hover {
	color: var(--sg-red);
}

.sg-nav__service {
	align-items: center;
	background: rgba(255, 255, 255, .03);
	border: 1px solid transparent;
	border-radius: 14px;
	color: #fff;
	display: flex;
	gap: 8px;
	min-height: 58px;
	padding: 10px 12px;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.sg-nav__service:hover,
.sg-nav__service.is-current {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .08);
	transform: translateY(-1px);
}

.sg-nav__service.is-current {
	border-color: rgba(222, 19, 19, .45);
}

.sg-nav__service .sg-nav__ico,
.sg-nav__item.is-open .sg-nav__service .sg-nav__ico,
.sg-nav__service:hover .sg-nav__ico,
.sg-nav__service.is-current .sg-nav__ico {
	background: none;
	border: 0;
	border-radius: 0;
	color: #f3f3f3;
	flex: 0 0 18px;
	height: 18px;
	width: 18px;
}

.sg-nav__service .sg-nav__ico svg {
	display: block;
	height: 18px;
	width: 18px;
}

.sg-nav__service > span:last-child {
	display: block;
	font-family: "Cuprum", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.sg-nav__actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
	margin-left: auto;
}

.sg-nav__lead {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 999px;
	color: #101010;
	cursor: pointer;
	display: inline-flex;
	font-family: "Cuprum", "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	min-height: 44px;
	padding: 0 16px;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sg-nav__lead:hover {
	background: #fff;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
	color: #101010;
	transform: translateY(-1px);
}

.sg-nav__phone {
	align-items: center;
	background: var(--sg-red);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-family: "Cuprum", sans-serif;
	font-size: 15px;
	font-weight: 700;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px 0 12px;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.sg-nav__phone:hover {
	background: #ff1d1d;
	box-shadow: 0 10px 24px rgba(222, 19, 19, .35);
	color: #fff;
	transform: translateY(-1px);
}

.sg-nav__phone .sg-nav__ico {
	background: rgba(0, 0, 0, .18);
	border-color: transparent;
	color: #fff;
}

.sg-nav__social {
	align-items: center;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 12px;
	color: #fff;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
	width: 44px;
}

.sg-nav__social:hover {
	border-color: rgba(222, 19, 19, .4);
	color: #ff4d4d;
	transform: translateY(-1px);
}

.sg-nav__social svg {
	height: 16px;
	width: 16px;
}

.sg-brand-ico {
	display: block;
	height: 22px;
	object-fit: contain;
	width: 22px;
}

.sg-nav__social:has(.sg-brand-ico),
.sg-foot__soc a:has(.sg-brand-ico) {
	background: transparent;
	border-color: transparent;
}

.sg-nav__social:has(.sg-brand-ico):hover,
.sg-foot__soc a:has(.sg-brand-ico):hover {
	background: rgba(255, 255, 255, .06);
	border-color: transparent;
	color: inherit;
}

.sg-nav__toggle {
	align-items: center;
	background: #161616;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 14px;
	color: #fff;
	cursor: pointer;
	display: none;
	flex-direction: column;
	gap: 5px;
	height: 48px;
	justify-content: center;
	padding: 0;
	width: 48px;
}

.sg-nav__toggle span {
	background: #fff;
	border-radius: 99px;
	display: block;
	height: 2px;
	transition: transform .2s ease, opacity .2s ease, width .2s ease;
	width: 18px;
}

.sg-nav.is-open .sg-nav__toggle span:first-child {
	transform: translateY(3.5px) rotate(45deg);
}

.sg-nav.is-open .sg-nav__toggle span:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

.sg-nav__veil {
	background: rgba(0, 0, 0, .45);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity .25s ease;
	z-index: 401;
}

.sg-nav.is-open .sg-nav__veil {
	opacity: 1;
	pointer-events: auto;
}

.sg-nav__drawer-foot {
	display: none;
}

@media (max-width: 1120px) {
	.sg-nav__links,
	.sg-nav__actions .sg-nav__phone,
	.sg-nav__social {
		display: none;
	}

	.sg-nav__toggle {
		display: inline-flex;
		height: 40px;
		width: 40px;
	}

	.sg-nav {
		padding: 10px 12px 0;
	}

	.sg-nav__bar {
		border-radius: 18px;
		gap: 10px;
		min-height: 56px;
		padding: 4px 8px 4px 10px;
	}

	.sg-nav__logo {
		margin-right: 0;
	}

	.sg-nav__logo img {
		height: 46px;
	}

	.sg-nav__lead {
		font-size: 12px;
		min-height: 38px;
		padding: 0 12px;
	}

	.sg-nav.is-open .sg-nav__links {
		background: #0b0b0b;
		border-top: 1px solid rgba(255, 255, 255, .08);
		bottom: 0;
		display: flex;
		flex-direction: column;
		gap: 6px;
		justify-content: flex-start;
		left: 0;
		overflow: auto;
		padding: 22px 18px 28px;
		pointer-events: auto;
		position: fixed;
		right: 0;
		top: 72px;
		z-index: 403;
	}

	.sg-nav__link,
	.sg-nav__drop-btn {
		font-size: 20px;
		justify-content: flex-start;
		min-height: 56px;
		padding: 10px 12px;
		width: 100%;
	}

	.sg-nav__ico {
		flex-basis: 40px;
		height: 40px;
		width: 40px;
	}

	.sg-nav__ico svg {
		height: 18px;
		width: 18px;
	}

	.sg-nav__service .sg-nav__ico,
	.sg-nav__item.is-open .sg-nav__service .sg-nav__ico {
		flex-basis: 18px;
		height: 18px;
		width: 18px;
	}

	.sg-nav__service .sg-nav__ico svg {
		height: 18px;
		width: 18px;
	}

	.sg-nav__item {
		width: 100%;
	}

	.sg-nav__mega {
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		display: none;
		gap: 8px;
		grid-template-columns: 1fr;
		left: 0;
		min-width: 0;
		padding: 6px 0 10px 16px;
		position: static;
		transform: none;
		width: 100%;
	}

	.sg-nav__item.is-open .sg-nav__mega {
		display: grid;
		transform: none;
	}

	.sg-nav__service {
		background: #141414;
	}

	.sg-nav.is-open .sg-nav__drawer-foot {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		margin-top: 18px;
		width: 100%;
	}

	.sg-nav.is-open .sg-nav__drawer-foot .sg-nav__phone,
	.sg-nav.is-open .sg-nav__drawer-foot .sg-nav__social {
		display: inline-flex;
	}
}

.sg-contact {
	bottom: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	left: 22px;
	pointer-events: none;
	position: fixed;
	z-index: 180;
}

.sg-contact * {
	box-sizing: border-box;
}

.sg-contact__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sg-contact__item {
	align-items: center;
	background: #121212;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
	color: #fff;
	display: flex;
	gap: 10px;
	min-height: 46px;
	opacity: 0;
	padding: 4px 14px 4px 4px;
	pointer-events: none;
	text-decoration: none;
	transform: translateY(12px) scale(.96);
	transition: opacity .22s ease, transform .22s ease;
	visibility: hidden;
}

.sg-contact.is-open .sg-contact__item {
	opacity: 1;
	pointer-events: auto;
	transform: none;
	visibility: visible;
}

.sg-contact.is-open .sg-contact__item:nth-child(1) { transition-delay: .04s; }
.sg-contact.is-open .sg-contact__item:nth-child(2) { transition-delay: .08s; }
.sg-contact.is-open .sg-contact__item:nth-child(3) { transition-delay: .12s; }
.sg-contact.is-open .sg-contact__item:nth-child(4) { transition-delay: .16s; }
.sg-contact.is-open .sg-contact__item:nth-child(5) { transition-delay: .2s; }

.sg-contact__ico {
	align-items: center;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	flex: 0 0 38px;
	height: 38px;
	justify-content: center;
	line-height: 0;
	width: 38px;
}

.sg-contact__ico svg {
	display: block;
	flex: 0 0 auto;
	height: 17px;
	margin: 0;
	width: 17px;
}

.sg-contact__label {
	font-family: "Cuprum", "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	padding-right: 6px;
}

.sg-contact__item.is-phone .sg-contact__ico { background: #de1313; }
.sg-contact__item.is-viber .sg-contact__ico { background: #7360f2; }
.sg-contact__item.is-instagram .sg-contact__ico { background: transparent; }
.sg-contact__ico .sg-brand-ico {
	height: 32px;
	width: 32px;
}
.sg-contact__item.is-telegram .sg-contact__ico { background: #2aabee; }
.sg-contact__item.is-whatsapp .sg-contact__ico { background: #25d366; }

.sg-contact__toggle {
	align-items: center;
	background: #de1313;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 28px rgba(222, 19, 19, .38);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	min-height: 56px;
	padding: 0 18px 0 8px;
	pointer-events: auto;
	position: relative;
}

.sg-contact__toggle-ico,
.sg-contact__toggle-close {
	align-items: center;
	background: rgba(0, 0, 0, .16);
	border-radius: 50%;
	display: inline-flex;
	flex: 0 0 40px;
	height: 40px;
	justify-content: center;
	line-height: 0;
	width: 40px;
}

.sg-contact__toggle-ico svg {
	display: block;
	flex: 0 0 auto;
	height: 18px;
	margin: 0;
	width: 18px;
}

.sg-contact__toggle-close {
	left: 8px;
	opacity: 0;
	position: absolute;
	top: 8px;
	transform: scale(.6);
}

.sg-contact__toggle-close::before,
.sg-contact__toggle-close::after {
	background: #fff;
	content: "";
	height: 2px;
	left: 10px;
	position: absolute;
	top: 19px;
	width: 20px;
}

.sg-contact__toggle-close::before { transform: rotate(45deg); }
.sg-contact__toggle-close::after { transform: rotate(-45deg); }

.sg-contact__toggle-text {
	font-family: "Cuprum", "Open Sans", sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.sg-contact.is-open .sg-contact__toggle-ico,
.sg-contact.is-open .sg-contact__toggle-text {
	opacity: 0;
}

.sg-contact.is-open .sg-contact__toggle-close {
	opacity: 1;
	transform: none;
}

.sg-contact.is-open .sg-contact__toggle {
	padding: 0 8px;
	width: 56px;
}

@media (max-width: 640px) {
	.sg-contact {
		bottom: 16px;
		left: 16px;
	}

	.sg-contact__toggle-text {
		display: none;
	}

	.sg-contact__toggle,
	.sg-contact.is-open .sg-contact__toggle {
		height: 56px;
		justify-content: center;
		padding: 0;
		width: 56px;
	}

	.sg-contact__toggle-ico,
	.sg-contact.is-open .sg-contact__toggle-close {
		left: 50%;
		margin: 0;
		position: absolute;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.sg-contact.is-open .sg-contact__toggle-close {
		transform: translate(-50%, -50%);
	}
}

.sg-nav__link.is-current,
.sg-nav__drop-btn.is-current {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

.sg-nav__drop-btn.is-current .sg-nav__ico {
	background: var(--sg-red-soft);
	border-color: rgba(222, 19, 19, .35);
	color: #ff4d4d;
}

@media (prefers-reduced-motion: reduce) {
	.sg-nav__bar,
	.sg-nav__link,
	.sg-nav__service,
	.sg-nav__phone,
	.sg-nav__lead,
	.sg-nav__mega,
	.sg-contact__item {
		transition: none;
	}
}
