html {
	scroll-behavior: smooth;

	/* scrollbar-gutter: stable; */
}

body {
	overflow-x: hidden;
	/* scrollbar-gutter: stable; */

	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	background-color: #f8f8f9;
}

body::before {
	background: rgba(9, 9, 9, 0.7);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	content: '';
	height: 100%;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	top: 0;
	transition: opacity 0.3s ease;
	width: 100%;
	z-index: 90;
}

body.lock {
	overflow: hidden;
}
body.lock::before {
	opacity: 1;
	pointer-events: auto;
}

.hide {
	display: none !important;
}

.filtered-show,
.showmore-show {
	transition: 0.3s;

	opacity: 1;
}

.filtered-hide,
.showmore-hide {
	display: none;
	/* opacity: 0; */
}

.js--show-more.hidden {
	display: none;
}

.blur {
	transition: all 0.3s ease;

	filter: blur(2px);
	-webkit-filter: blur(2px);
}

/* Расположение кнопки закрытия fancybox  */

.f-button.is-close-btn {
	position: absolute;
	z-index: 1000;
	top: 0;
	right: 8px;

	--f-button-svg-stroke-width: 2;
}

.fancybox__content > .f-button.is-close-btn {
	top: 0;
	right: 0;

	opacity: 1;

	--f-button-bg: transparent;
	--f-button-color: var(--color-black);
	--f-button-hover-color: var(--color-black);
	--f-button-width: 50px;
	--f-button-height: 50px;
	--f-button-border-radius: 50%;
}

.is-compact .fancybox__content > .f-button.is-close-btn {
	top: 0px;
	right: 0px;

	--f-button-bg: transparent;
	--f-button-color: var(--color-white);
	--f-button-hover-color: var(--color-white);
	--f-button-svg-width: 24px;
	--f-button-svg-height: 24px;
}

.fancybox__content {
	padding: 0;

	background: transparent !important;
}

.fancybox__slide {
	justify-content: center;
}

/* Фильтр для фона fancybox  */

.fancybox__backdrop {
	background: rgba(0, 0, 0, 0.8);
	-webkit-backdrop-filter: blur(5px) grayscale(1);
	backdrop-filter: blur(5px) grayscale(1);
}

/* Custom checkbox  */

.checkbox-container {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
}

.form-checkbox label {
	position: relative;

	display: flex;
	align-items: flex-start;

	width: 100%;
	margin-top: 11px;
	margin-bottom: 0px;

	gap: 10px;
}

.form-input__check[type='checkbox'] {
	position: absolute;
	z-index: 2;
	left: 0;

	opacity: 0;
}

.checkbox {
	position: relative;
	display: inline-block;
}

.form-input__check[type='checkbox'] + .custom-checkbox {
	display: block;
	position: relative;

	width: 16px;
	height: 16px;

	border: 1px solid #272727;
	background-color: transparent;
}

.form-input__check[type='checkbox'] + .custom-checkbox::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 10px;
	height: 10px;
	background-image: url(../../img/icons/checkbox-white.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-input__check[type='checkbox']:checked + .custom-checkbox::before {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.custom-checkbox-text {
	font-weight: 400;
	font-size: 10px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.44);
}

/* Кнопки  */

.btn {
	max-width: 190px;
	width: 100%;
	font-size: 14px;
	height: 38px;
	border-radius: 27px;
	transform: translateY(0);
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn:active {
	transform: translateY(2px);
}

.btn--white {
	background-color: var(--color-white);
	color: #3d3938;
	border: 1px solid var(--color-black);
}
@media (hover: hover) {
	.btn--white:hover {
		background-color: var(--color-accent);
		color: var(--color-white);
		border-color: var(--color-accent);
	}
}

.btn--red {
	background-color: var(--color-accent);
	color: var(--color-white);
}

@media (hover: hover) {
	.btn--red:hover {
		background-color: var(--color-black);
		color: var(--color-white);
	}
}

.btn--transparent {
	border: 1px solid var(--color-black);
	color: var(--color-black);
	background-color: transparent;
}

@media (hover: hover) {
	.btn--transparent:hover {
		border: 1px solid transparent;
		background-color: var(--color-accent);
		color: var(--color-white);
	}
}

/* Заголовки  */

.section-title {
	font-weight: 400;
	font-size: 42px;
	line-height: 1;
	text-transform: uppercase;
	margin-bottom: 30px;
}

@media screen and (max-width: 1540px) {
	.section-title {
		font-size: 36px;
	}
}

@media screen and (max-width: 992px) {
	.section-title {
		font-size: 24px;
		margin-bottom: 20px;
	}
}

/* Отступы между секциями */

.section-margin {
	margin-top: 120px;
}

@media (max-width: 768px) {
	.section-margin {
		margin-top: 80px;
	}
}

section[id] {
	scroll-margin-top: 140px;
}

@media (max-width: 1024px) {
	section[id] {
		scroll-margin-top: 100px;
	}
}

@media (max-width: 768px) {
	section[id] {
		scroll-margin-top: 80px;
	}
}

/* lozad  */

.fade-in {
	opacity: 0;
	animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}


