.vlg-home-certs,
.vlg-home-certs * {
	box-sizing: border-box;
}

.vlg-home-certs {
	font-family: "Suisse Intl", "Inter", Arial, sans-serif;
	background: #ffffff;
}

.vlg-home-certs__inner {
	width: 100%;
	max-width: 90rem;
	margin: clamp(4rem, 8.5vw, 7.3rem) auto 0;
	padding: 0 clamp(1rem, 2.78vw, 2.5rem);
}

.vlg-home-certs__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.vlg-home-certs__title {
	margin: 0;
	color: #1a1a1a;
	font-size: clamp(1.75rem, 2.222vw, 2rem);
	line-height: 1.5;
	font-weight: 500;
}

.vlg-home-certs__arrows {
	display: flex;
	gap: 2.5rem;
	padding-top: 1rem;
}

.vlg-home-certs__arrow-btn {
	width: 1.25rem;
	height: .875rem;
	padding: 0;
	border: 0;
	background-color: transparent;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	cursor: pointer;
	transition: opacity .22s ease, transform .22s ease;
}

.vlg-home-certs__arrow-btn:disabled {
	opacity: .25;
	cursor: default;
}

.vlg-home-certs__arrow-btn--prev {
	background-image: url("/bitrix/templates/furniture_red/images/arrow-left.svg");
}

.vlg-home-certs__arrow-btn--next {
	background-image: url("/bitrix/templates/furniture_red/images/arrow-right.svg");
}

.vlg-home-certs__arrow-btn--prev:not(:disabled):hover {
	opacity: .72;
	transform: translateX(-.1875rem);
}

.vlg-home-certs__arrow-btn--next:not(:disabled):hover {
	opacity: .72;
	transform: translateX(.1875rem);
}

.vlg-home-certs__viewport {
	margin-top: 2rem;
	overflow: hidden;
}

.vlg-home-certs__grid {
	--vlg-slider-x: 0px;
	display: flex;
	gap: clamp(1rem, 2.05vw, 1.82rem);
	transform: translate3d(var(--vlg-slider-x), 0, 0);
	transition: transform .78s cubic-bezier(.22, 1, .36, 1);
	will-change: transform;
}

.vlg-home-certs__item {
	flex: 0 0 calc((100% - clamp(4rem, 8.2vw, 7.28rem)) / 5);
	display: block;
	overflow: hidden;
	border: .0625rem solid #adb6c4;
	background: #ffffff;
	aspect-ratio: 250/354;
	transition: border-color .22s ease, box-shadow .22s ease;
}

.vlg-home-certs__item:hover {
	border-color: #2858ff;
	box-shadow: 0 .45rem 1.25rem rgba(40, 88, 255, .12);
}

.vlg-home-certs__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vlg-cert-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(10, 18, 40, .76);
	backdrop-filter: blur(.25rem);
	opacity: 0;
	transition: opacity .18s ease;
}

.vlg-cert-lightbox.is-active {
	display: flex;
	opacity: 1;
}

.vlg-cert-lightbox__panel {
	position: relative;
	max-width: min(92vw, 56rem);
	max-height: 90vh;
	padding: clamp(.75rem, 1.5vw, 1rem);
	border-radius: .5rem;
	background: #ffffff;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .28);
	transform: scale(.98);
	transition: transform .18s ease;
}

.vlg-cert-lightbox.is-active .vlg-cert-lightbox__panel {
	transform: scale(1);
}

.vlg-cert-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(90vh - 2rem);
	object-fit: contain;
}

.vlg-cert-lightbox__close {
	position: absolute;
	right: -.75rem;
	top: -.75rem;
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #2858ff;
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 74.9375rem) {
	.vlg-home-certs__item {
		flex-basis: calc((100% - 2rem) / 3);
	}
}

@media (max-width: 47.9375rem) {
	.vlg-home-certs__inner {
		margin-top: 3rem;
		padding-inline: 1rem;
	}

	.vlg-home-certs__arrows {
		display: none;
	}

	.vlg-home-certs__title {
		font-size: clamp(1.5rem, 7vw, 2rem);
		line-height: 1.2;
	}

	.vlg-home-certs__viewport {
		overflow: hidden;
		margin-inline: 0;
	}

	.vlg-home-certs__grid {
		display: flex;
		gap: .875rem;
		overflow-x: auto;
		overflow-y: hidden;
		padding-right: 1rem;
		transform: none !important;
		transition: none;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		touch-action: pan-x pan-y;
	}

	.vlg-home-certs__grid::-webkit-scrollbar {
		display: none;
	}

	.vlg-home-certs__item {
		flex: 0 0 min(68vw, 16rem);
		scroll-snap-align: start;
	}
}

@media (hover: none) {
	.vlg-home-certs__item:hover {
		border-color: #adb6c4;
		box-shadow: none;
	}
}


/* final: premium vanilla lightbox */
html.vlg-cert-lightbox-open,
body.vlg-cert-lightbox-open {
	overflow: hidden !important;
}

.vlg-cert-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
	background:
		radial-gradient(circle at 50% 20%, rgba(40, 88, 255, .18), transparent 38%),
		rgba(2, 6, 23, .92) !important;
	backdrop-filter: blur(.5rem) saturate(120%);
	-webkit-backdrop-filter: blur(.5rem) saturate(120%);
	opacity: 0;
	transition: opacity .22s ease;
}

.vlg-cert-lightbox.is-active {
	display: flex;
	opacity: 1;
}

.vlg-cert-lightbox__panel {
	position: relative;
	max-width: min(92vw, 58rem);
	max-height: 90vh;
	padding: clamp(.625rem, 1.25vw, .875rem);
	border: .0625rem solid rgba(255, 255, 255, .16);
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .98));
	box-shadow:
		0 2rem 5rem rgba(0, 0, 0, .58),
		0 0 0 .0625rem rgba(255, 255, 255, .06) inset;
	transform: translateY(.5rem) scale(.985);
	transition: transform .22s ease;
}

.vlg-cert-lightbox.is-active .vlg-cert-lightbox__panel {
	transform: translateY(0) scale(1);
}

.vlg-cert-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(90vh - 2rem);
	border-radius: .625rem;
	background: #ffffff;
	object-fit: contain;
}

.vlg-cert-lightbox__close {
	position: absolute;
	right: -.875rem;
	top: -.875rem;
	width: 2.625rem;
	height: 2.625rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: .0625rem solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: linear-gradient(180deg, #2858ff, #1f49df);
	box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .32);
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.vlg-cert-lightbox__close:hover {
	transform: scale(1.04);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, .38);
}

@media (max-width: 47.9375rem) {
	.vlg-cert-lightbox {
		padding: 1rem;
	}

	.vlg-cert-lightbox__panel {
		max-width: 94vw;
		max-height: 88vh;
		border-radius: .875rem;
	}

	.vlg-cert-lightbox__img {
		max-height: calc(88vh - 1.5rem);
		border-radius: .5rem;
	}

	.vlg-cert-lightbox__close {
		right: -.5rem;
		top: -.5rem;
		width: 2.25rem;
		height: 2.25rem;
	}
}


/* final v4: premium certificate lightbox */
html.vlg-cert-lightbox-open,
body.vlg-cert-lightbox-open {
	overflow: hidden !important;
}

.vlg-cert-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
	background:
		radial-gradient(circle at 50% 8%, rgba(40, 88, 255, .22), transparent 34%),
		radial-gradient(circle at 85% 70%, rgba(17, 157, 139, .12), transparent 32%),
		rgba(0, 3, 14, .9) !important;
	backdrop-filter: blur(1.25rem) saturate(115%);
	-webkit-backdrop-filter: blur(1.25rem) saturate(115%);
	opacity: 0;
	transition: opacity .24s ease;
}

.vlg-cert-lightbox.is-active {
	display: flex;
	opacity: 1;
}

.vlg-cert-lightbox::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 28%),
		linear-gradient(0deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .18));
	pointer-events: none;
}

.vlg-cert-lightbox__panel {
	position: relative;
	z-index: 2;
	max-width: min(92vw, 58rem);
	max-height: 90vh;
	padding: clamp(.625rem, 1.15vw, .875rem);
	border: .0625rem solid rgba(255, 255, 255, .18);
	border-radius: 1rem;
	background:
		linear-gradient(180deg, rgba(22, 31, 55, .78), rgba(7, 12, 28, .88)),
		rgba(8, 12, 26, .88);
	box-shadow:
		0 2rem 6rem rgba(0, 0, 0, .72),
		0 0 0 .0625rem rgba(255, 255, 255, .08) inset,
		0 1.5rem 4rem rgba(40, 88, 255, .16);
	transform: translateY(.75rem) scale(.982);
	transition: transform .24s ease, box-shadow .24s ease;
}

.vlg-cert-lightbox.is-active .vlg-cert-lightbox__panel {
	transform: translateY(0) scale(1);
}

.vlg-cert-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(90vh - 2rem);
	border-radius: .625rem;
	background: #ffffff;
	object-fit: contain;
	box-shadow:
		0 .75rem 2rem rgba(0, 0, 0, .34),
		0 0 0 .0625rem rgba(255, 255, 255, .14);
}

.vlg-cert-lightbox__close,
.vlg-cert-lightbox__nav {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: .0625rem solid rgba(255, 255, 255, .2);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
		rgba(11, 18, 36, .82);
	box-shadow:
		0 .75rem 1.5rem rgba(0, 0, 0, .38),
		0 0 0 .0625rem rgba(255, 255, 255, .06) inset;
	cursor: pointer;
	transition:
		transform .18s ease,
		border-color .18s ease,
		background-color .18s ease,
		opacity .18s ease;
}

.vlg-cert-lightbox__close:hover,
.vlg-cert-lightbox__nav:hover {
	border-color: rgba(255, 255, 255, .36);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .09)),
		rgba(22, 34, 68, .86);
	transform: scale(1.04);
}

.vlg-cert-lightbox__close {
	right: -.875rem;
	top: -.875rem;
	width: 2.625rem;
	height: 2.625rem;
	border-radius: 50%;
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
}

.vlg-cert-lightbox__nav {
	top: 50%;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 1.25rem .875rem;
	transform: translateY(-50%);
}

.vlg-cert-lightbox__nav:hover {
	transform: translateY(-50%) scale(1.04);
}

.vlg-cert-lightbox__nav--prev {
	left: -4.25rem;
	background-image: url("/bitrix/templates/furniture_red/images/arrow-left.svg");
}

.vlg-cert-lightbox__nav--next {
	right: -4.25rem;
	background-image: url("/bitrix/templates/furniture_red/images/arrow-right.svg");
}

.vlg-cert-lightbox__nav:disabled {
	opacity: .25;
	cursor: default;
	pointer-events: none;
}

@media (max-width: 64rem) {
	.vlg-cert-lightbox__nav--prev {
		left: .75rem;
	}

	.vlg-cert-lightbox__nav--next {
		right: .75rem;
	}
}

@media (max-width: 47.9375rem) {
	.vlg-cert-lightbox {
		padding: 1rem;
	}

	.vlg-cert-lightbox__panel {
		max-width: 94vw;
		max-height: 88vh;
		border-radius: .875rem;
	}

	.vlg-cert-lightbox__img {
		max-height: calc(88vh - 1.5rem);
		border-radius: .5rem;
	}

	.vlg-cert-lightbox__close {
		right: -.5rem;
		top: -.5rem;
		width: 2.25rem;
		height: 2.25rem;
	}

	.vlg-cert-lightbox__nav {
		width: 2.5rem;
		height: 2.5rem;
		background-size: 1.05rem .75rem;
	}

	.vlg-cert-lightbox__nav--prev {
		left: .5rem;
	}

	.vlg-cert-lightbox__nav--next {
		right: .5rem;
	}
}


/* final lightbox fix: SimpleLightbox premium override */
.sl-overlay {
	background:
		radial-gradient(circle at 50% 8%, rgba(40, 88, 255, .22), transparent 34%),
		radial-gradient(circle at 85% 70%, rgba(17, 157, 139, .12), transparent 32%),
		rgba(0, 3, 14, .90) !important;
	opacity: 1 !important;
	backdrop-filter: blur(1.25rem) saturate(115%) !important;
	-webkit-backdrop-filter: blur(1.25rem) saturate(115%) !important;
}

.sl-wrapper {
	z-index: 100000 !important;
}

.sl-wrapper .sl-image {
	border-radius: 1rem !important;
	overflow: visible !important;
	background:
		linear-gradient(180deg, rgba(22, 31, 55, .78), rgba(7, 12, 28, .88)),
		rgba(8, 12, 26, .88) !important;
	box-shadow:
		0 2rem 6rem rgba(0, 0, 0, .72),
		0 0 0 .0625rem rgba(255, 255, 255, .08) inset,
		0 1.5rem 4rem rgba(40, 88, 255, .16) !important;
}

.sl-wrapper .sl-image img {
	border-radius: .625rem !important;
	background: #ffffff !important;
	box-shadow:
		0 .75rem 2rem rgba(0, 0, 0, .34),
		0 0 0 .0625rem rgba(255, 255, 255, .14) !important;
}

.sl-wrapper .sl-close {
	width: 2.625rem !important;
	height: 2.625rem !important;
	right: clamp(1rem, 4vw, 2.5rem) !important;
	top: clamp(1rem, 4vw, 2.5rem) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: .0625rem solid rgba(255, 255, 255, .2) !important;
	border-radius: 50% !important;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
		rgba(11, 18, 36, .82) !important;
	box-shadow:
		0 .75rem 1.5rem rgba(0, 0, 0, .38),
		0 0 0 .0625rem rgba(255, 255, 255, .06) inset !important;
	color: #ffffff !important;
	font-size: 0 !important;
	line-height: 1 !important;
	opacity: 1 !important;
	transition: transform .18s ease, border-color .18s ease, background-color .18s ease !important;
}

.sl-wrapper .sl-close::before,
.sl-wrapper .sl-close::after {
	content: "" !important;
	position: absolute !important;
	width: 1rem !important;
	height: .125rem !important;
	border-radius: 999px !important;
	background: #ffffff !important;
}

.sl-wrapper .sl-close::before {
	transform: rotate(45deg) !important;
}

.sl-wrapper .sl-close::after {
	transform: rotate(-45deg) !important;
}

.sl-wrapper .sl-close:hover {
	border-color: rgba(255, 255, 255, .36) !important;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .09)),
		rgba(22, 34, 68, .86) !important;
	transform: scale(1.04) !important;
}

.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-navigation .sl-prev,
.sl-wrapper .sl-navigation .sl-next {
	width: 3rem !important;
	height: 3rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: .0625rem solid rgba(255, 255, 255, .2) !important;
	border-radius: 50% !important;
	background-color: rgba(11, 18, 36, .82) !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 1.25rem .875rem !important;
	box-shadow:
		0 .75rem 1.5rem rgba(0, 0, 0, .38),
		0 0 0 .0625rem rgba(255, 255, 255, .06) inset !important;
	color: transparent !important;
	font-size: 0 !important;
	opacity: 1 !important;
	transition: transform .18s ease, border-color .18s ease, background-color .18s ease !important;
}

.sl-wrapper .sl-navigation button::before,
.sl-wrapper .sl-navigation button::after {
	display: none !important;
	content: none !important;
}

.sl-wrapper .sl-navigation .sl-prev {
	background-image: url("/bitrix/templates/furniture_red/images/arrow-left.svg") !important;
}

.sl-wrapper .sl-navigation .sl-next {
	background-image: url("/bitrix/templates/furniture_red/images/arrow-right.svg") !important;
}

.sl-wrapper .sl-navigation button:hover,
.sl-wrapper .sl-navigation .sl-prev:hover,
.sl-wrapper .sl-navigation .sl-next:hover {
	border-color: rgba(255, 255, 255, .36) !important;
	background-color: rgba(22, 34, 68, .86) !important;
	transform: translateY(-50%) scale(1.04) !important;
}

.sl-wrapper .sl-counter,
.sl-wrapper .sl-caption {
	color: rgba(255, 255, 255, .76) !important;
	font-family: "Suisse Intl", "Inter", Arial, sans-serif !important;
}

@media (max-width: 47.9375rem) {
	.sl-wrapper .sl-navigation button,
	.sl-wrapper .sl-navigation .sl-prev,
	.sl-wrapper .sl-navigation .sl-next {
		width: 2.5rem !important;
		height: 2.5rem !important;
		background-size: 1.05rem .75rem !important;
	}

	.sl-wrapper .sl-close {
		width: 2.25rem !important;
		height: 2.25rem !important;
	}
}


/* final override: white blurred SimpleLightbox background, static black SVG arrows */
.sl-overlay {
	background: rgba(255, 255, 255, .72) !important;
	opacity: 1 !important;
	backdrop-filter: blur(1.5rem) saturate(125%) !important;
	-webkit-backdrop-filter: blur(1.5rem) saturate(125%) !important;
}

.sl-wrapper .sl-image {
	border-radius: 1rem !important;
	background: rgba(255, 255, 255, .86) !important;
	box-shadow:
		0 1.75rem 4.5rem rgba(15, 23, 42, .22),
		0 0 0 .0625rem rgba(15, 23, 42, .08) !important;
}

.sl-wrapper .sl-image img {
	border-radius: .625rem !important;
	background: #ffffff !important;
	box-shadow:
		0 .75rem 2rem rgba(15, 23, 42, .14),
		0 0 0 .0625rem rgba(15, 23, 42, .08) !important;
}

.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-navigation .sl-prev,
.sl-wrapper .sl-navigation .sl-next {
	border: 0 !important;
	background-color: transparent !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 1.25rem .875rem !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	opacity: 1 !important;
	transform: translateY(-50%) !important;
	transition: opacity .18s ease !important;
}

.sl-wrapper .sl-navigation .sl-prev {
	background-image: url("/bitrix/templates/furniture_red/images/arrow-left.svg") !important;
}

.sl-wrapper .sl-navigation .sl-next {
	background-image: url("/bitrix/templates/furniture_red/images/arrow-right.svg") !important;
}

.sl-wrapper .sl-navigation button:hover,
.sl-wrapper .sl-navigation .sl-prev:hover,
.sl-wrapper .sl-navigation .sl-next:hover {
	opacity: .62 !important;
	transform: translateY(-50%) !important;
	border: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.sl-wrapper .sl-close {
	border: 0 !important;
	background: rgba(255, 255, 255, .86) !important;
	box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .16) !important;
	color: #1a1a1a !important;
	transform: none !important;
	transition: opacity .18s ease !important;
}

.sl-wrapper .sl-close:hover {
	opacity: .68 !important;
	transform: none !important;
	border: 0 !important;
	background: rgba(255, 255, 255, .86) !important;
	box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .16) !important;
}

.sl-wrapper .sl-close::before,
.sl-wrapper .sl-close::after {
	background: #1a1a1a !important;
}

.sl-wrapper .sl-counter,
.sl-wrapper .sl-caption {
	color: rgba(26, 26, 26, .72) !important;
}
