/* PARTS — блок «Ремонт и замена деталей…» / «Что чиним в…» / «Другие работы…» */

section.parts {
	background: #ffffff;
}

section.parts .parts__subtitle {
	text-align: center;
	color: #2e384d;
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 30px;
}

section.parts .parts__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

section.parts .parts__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 128px;
	padding: 18px 18px 16px;
	background: #f3f6fd;
	border: 1px solid #e1e7f5;
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* стрелка в правом верхнем углу */
section.parts .parts__item::after {
	content: "→";
	position: absolute;
	top: 16px;
	right: 16px;
	color: #194fb9;
	font-size: 18px;
	line-height: 1;
	transition: transform 0.2s ease;
}

section.parts .parts__item:hover {
	background: #eaf1fd;
	border-color: #194fb9;
}

section.parts .parts__item:hover::after {
	transform: translateX(3px);
}

section.parts .parts__item:focus-visible {
	outline: 2px solid #194fb9;
	outline-offset: 2px;
}

section.parts .parts__name {
	padding-right: 24px; /* место под стрелку */
	color: #0c163b;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

section.parts .parts__price {
	align-self: flex-start;
	margin-top: auto; /* цена всегда прижата к низу карточки */
	padding: 5px 12px;
	background: #00de5d;
	border-radius: 30px;
	color: #0c163b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

/* иконка детали (необязательная) */
section.parts .parts__icon {
	display: block;
	width: 52px;
	height: 52px;
}

/* при иконке стрелка стоит на её уровне, и заголовку отступ справа не нужен */
section.parts .parts__icon + .parts__name {
	padding-right: 0;
}

@media (prefers-reduced-motion: reduce) {
	section.parts .parts__item,
	section.parts .parts__item::after {
		transition: none;
	}
}

@media screen and (max-width: 1024px) {
	section.parts .parts__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 768px) {
	section.parts .parts__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	section.parts .parts__subtitle {
		margin-bottom: 20px;
	}

	section.parts .parts__item {
		min-height: 112px;
		padding: 14px 14px 12px;
	}

	section.parts .parts__item::after {
		top: 13px;
		right: 12px;
	}

	section.parts .parts__name {
		font-size: 14px;
		padding-right: 18px;
	}

	section.parts .parts__icon {
		width: 44px;
		height: 44px;
	}
}

@media screen and (max-width: 359px) {
	section.parts .parts__grid {
		grid-template-columns: 1fr;
	}

	section.parts .parts__item {
		min-height: 0;
	}
}