/* Общая обертка */
.services-section {
	font-family: Golos, Helvetica, sans-serif;
	color: #333333;
}

.services-section__title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 24px;
}

.services-section__title a {
	color: inherit;
	text-decoration: none;
}

/* Сетка карточек */
.services-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
}

.services-list__item {
	display: block;
}

/* Карточка */
.service-card {
	display: flex;
	justify-content: space-between;
	padding: 10px 10px 10px 10px;
	box-sizing: border-box;
	height: 320px;

	border-radius: 20px;
	background: #F5F6FB;
}


.service-card__content {
	display: flex;
	flex-direction: column;
	width: 60%;
	padding: 22px 0 46px 22px;
	box-sizing: border-box;
}

.service-card__title {
	margin: 0 0 16px 0;
	font-size: 22px;
	font-weight: 700;
	color: #2b2d33;
}

.service-card__title-link {
	color: #111827;
	font-size: 24px;
	font-style: normal;
	font-weight: 500;
	line-height: 32px;
}

.service-card__title-link:hover {
	color: #000000;
}

/* Список услуг внутри карточки */
.service-card__nav {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
	flex-grow: 1;
}

.service-card__nav-item {
	margin-bottom: 10px;
}

.service-card__nav-item:last-child {
	margin-bottom: 0;
}

.service-card__nav-link {
	color: #5A616C;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 24px;
}

.service-card__nav-link:hover {
	color: #111827;
}

/* Ссылка "Смотреть все" */
.service-card__more {
	color: #5A616C;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;

	align-items: center;
	display: flex;
	gap: 4px;
	transition: 0.3s;
}

.service-card__more--arrow {
	width: 24px;
	height: 24px;

	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.3s;
}

.service-card__more path {
	transition: 0.3s;
}

.service-card__more:hover {
	color: #111827;
}

.service-card__more:hover path {
	stroke: #111827;
}

.service-card__more-icon {
	margin-left: 8px;
	display: block;
}

/* Правая часть с картинкой */
.service-card__image-wrap {
	max-width: 240px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
}

.service-card__image-wrap picture {
	display: contents;
}

.service-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.services-list {
	margin-top: 32px;
}

.services-categories {
	display: flex;
	padding: 3px;
	background: #F5F6FB;
	width: fit-content;
	border-radius: 8px;
}

.services-categories__link {
	color: #111827;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
	padding: 10px 20px;
	background: #F5F6FB;
	border-radius: 8px;

	transition: 0.3s;

	&:hover {
		background: #DEE1E9;
	}
}

.services-categories__link.services-categories__link--active {
	background: #FFF;
	border-radius: 6px;
}

.service-card__arrow {
	display: none;
}

/* Адаптивность */
@media (max-width: 991px) {
	.service-card__image-wrap{
		max-width: unset;
	}
	.services-list {
		gap: 12px;
	}

	.service-card__arrow {
		display: block;
		pointer-events: none;
	}

	.services-categories {
		padding: 0;
		background: unset;
		gap: 8px;
	}


	.services-categories__link {
		padding: 3px 8px;

		font-size: 14px;
		font-style: normal;
		font-weight: 400;
		line-height: 20px;

		border-radius: 6px;
		border: 2px solid #E6E8EC;
		background: #FFF;

		&:hover {
			background: unset;
			border-color: #D0D4DA;
		}

		&.services-categories__link--active {
			border: 2px solid #4B68D4;
		}
	}

	.service-card {
		height: unset;
		flex-direction: column;
		padding: 4px 4px;
		border-radius: 16px;
	}

	.service-card__content {
		padding: 12px 12px 0 12px;
		width: 100%;
	}

	.services-list {
		grid-template-columns: 1fr;
	}

	.service-card__image-wrap {
		width: 100%;
		height: 200px;
	}

	.service-card__title {
		font-size: 18px;
		font-style: normal;
		font-weight: 500;
		line-height: 24px;

		position: relative;

		margin-bottom: 12px;
	}

	.service-card__title-link {
		font-size: 18px;
		font-style: normal;
		font-weight: 500;
		line-height: 24px;
	}

	.service-card__arrow {
		position: absolute;
		right: 0;
		top: 50%;
		transform: translate(-0%, -50%);
	}

	.services-list__item.--active .service-card__arrow {
		transform: rotate(180deg);
	}

	.service-card__nav {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin-bottom: 24px;
	}

	.service-card__image-wrap img {
		border-radius: 16px;
		width: 100%;
		object-fit: cover;
	}

	.service-card__more {
		display: none;
	}

	.service-card__nav-link {
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 22px;
	}


	.services-list__item:not(.--active) .service-card__nav {
		height: 0;
		overflow: hidden;
		margin-bottom: 0;
	}

	.services-list__item:not(.--active) .service-card__nav {
		height: 0;
		overflow: hidden;
		margin-bottom: 0;
	}

	.services-list__item:not(.--active) .service-card__image-wrap {
		height: 0;
	}
}