/* «Ми працюємо і в інших нішах»: слайдер білих карток із фото-«пігулкою», назвою і посиланням «Докладніше» (макет Figma). */
.niches-slider {
	padding-top: 60px;
	padding-bottom: 80px;
}

.niches-slider__title {
	margin: 0 0 40px;
	text-align: center;
}

.niches-slider__wrap {
	display: flex;
	align-items: center;
	gap: 16px;
}

.niches-slider__track {
	display: flex;
	gap: 24px;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px;
}

.niches-slider__track::-webkit-scrollbar {
	display: none;
}

.niches-slider__track:focus-visible {
	outline: 2px solid #4C65FF;
	outline-offset: 4px;
}

.niches-slider__card {
	flex: 0 0 calc((100% - 48px) / 3 - 2px);
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
	background: #FFFFFF;
	border: 1px solid #ECECF2;
	border-radius: 28px;
	box-shadow: 0 2px 14px rgba(44, 44, 61, .05);
	scroll-snap-align: start;
}

.niches-slider__image {
	flex: 0 0 96px;
	height: 140px;
	border-radius: 48px;
	background: 50% no-repeat;
	background-size: cover;
}

.niches-slider__body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-self: stretch;
	gap: 16px;
	min-width: 0;
	padding: 6px 0;
}

.niches-slider__name {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.niches-slider__link {
	font-size: 14px;
	color: #4C65FF;
	text-decoration: none;
}

.niches-slider__link:hover {
	text-decoration: underline;
}

.niches-slider__nav {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.niches-slider__nav::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-top: 3px solid #2C2C3D;
	border-right: 3px solid #2C2C3D;
}

.niches-slider__prev::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.niches-slider__next::before {
	transform: translate(-70%, -50%) rotate(45deg);
}

.niches-slider__nav:hover::before {
	border-color: #4C65FF;
}

.niches-slider__nav:focus-visible {
	outline: 2px solid #4C65FF;
}

@media only screen and (max-width: 1024px) {
	.niches-slider {
		padding-top: 40px;
		padding-bottom: 50px;
	}

	.niches-slider__card {
		flex: 0 0 calc((100% - 24px) / 2 - 2px);
	}
}

@media only screen and (max-width: 760px) {
	.niches-slider__title {
		margin-bottom: 24px;
	}

	.niches-slider__wrap {
		gap: 0;
	}

	.niches-slider__nav {
		display: none;
	}

	.niches-slider__card {
		flex: 0 0 86%;
	}
}
