.home-services {
	padding: clamp(1.75rem, 5vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
	background: #f4f6f5;
}

.home-services .container {
	padding-left: clamp(0.65rem, 3vw, 0.75rem);
	padding-right: clamp(0.65rem, 3vw, 0.75rem);
}

.home-services__header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(1rem, 4vw, 2.5rem);
	padding: 0 0.25rem;
}

.home-services__eyebrow {
	display: inline-block;
	font-size: clamp(0.68rem, 2.5vw, 0.8rem);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #f8b34b;
	margin-bottom: 0.5rem;
}

.home-services__title {
	font-size: clamp(1.35rem, 5vw, 2.35rem);
	font-weight: 500;
	color: #21302f;
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.home-services__title span {
	color: #f8b34b;
}

.home-services__subtitle {
	font-size: clamp(0.85rem, 2.8vw, 1.05rem);
	color: #5a6b69;
	margin: 0;
	line-height: 1.45;
}

.home-services__grid {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

/* Мобильные: компактные горизонтальные карточки */
.home-service-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(33, 48, 47, 0.1);
	box-shadow: 0 6px 18px rgba(33, 48, 47, 0.08);
	min-height: 102px;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-service-card:active {
	transform: scale(0.99);
}

.home-service-card--featured {
	border-left: 3px solid #f8b34b;
}

.home-service-card__media {
	position: relative;
	flex: 0 0 30%;
	width: 30%;
	max-width: 120px;
	min-width: 96px;
	align-self: stretch;
	min-height: 102px;
	overflow: hidden;
}

.home-service-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-service-card__overlay {
	position: absolute;
	inset: 0;
	background: rgba(33, 48, 47, 0.2);
}

.home-service-card__icon {
	display: none;
}

.home-service-card__media-title {
	display: none;
}

.home-service-card__body {
	flex: 1;
	min-width: 0;
	padding: 0.6rem 0.7rem 0.65rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
}

.home-service-card__body::before {
	content: attr(data-mobile-title);
	font-size: clamp(0.85rem, 3.2vw, 0.92rem);
	font-weight: 500;
	color: #21302f;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-service-card__text {
	font-size: clamp(0.7rem, 2.6vw, 0.76rem);
	color: #4a5c5a;
	margin: 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-service-card__list {
	display: none;
}

.home-service-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding-top: 0.25rem;
	margin-top: 0.1rem;
	border-top: 1px solid rgba(33, 48, 47, 0.08);
}

.home-service-card__cta {
	font-size: clamp(0.68rem, 2.5vw, 0.75rem);
	font-weight: 500;
	color: #21302f;
}

.home-service-card__cta::after {
	content: " →";
}

.home-service-card__tag {
	font-size: 0.58rem;
	font-weight: 500;
	text-transform: uppercase;
	padding: 0.18rem 0.4rem;
	border-radius: 3px;
	background: rgba(248, 179, 75, 0.3);
	color: #21302f;
	white-space: nowrap;
}

/* Планшет и десктоп: полноразмерные карточки */
@media (min-width: 768px) {
	.home-services__grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.home-service-card {
		flex-direction: column;
		min-height: 0;
		border-left: none;
		border-radius: 12px;
		box-shadow: 0 6px 20px rgba(33, 48, 47, 0.08);
		height: 100%;
	}

	.home-service-card:active {
		transform: none;
	}

	.home-service-card:hover {
		transform: translateY(-6px);
		border-color: #f8b34b;
		box-shadow: 0 14px 32px rgba(33, 48, 47, 0.14);
		color: inherit;
	}

	.home-service-card--featured {
		border-left: none;
		border-bottom: 4px solid #f8b34b;
	}

	.home-service-card__media {
		flex: none;
		width: 100%;
		max-width: none;
		min-width: 0;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.home-service-card__media img {
		transition: transform 0.4s ease;
	}

	.home-service-card:hover .home-service-card__media img {
		transform: scale(1.05);
	}

	.home-service-card__overlay {
		background: linear-gradient(to top, rgba(33, 48, 47, 0.75) 0%, rgba(33, 48, 47, 0.15) 55%, transparent 100%);
	}

	.home-service-card__icon {
		display: flex;
		position: absolute;
		top: 14px;
		right: 14px;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background: #f8b34b;
		color: #21302f;
		align-items: center;
		justify-content: center;
		font-size: 1.25rem;
		font-weight: 500;
		z-index: 1;
	}

	.home-service-card__media-title {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1;
		margin: 0;
		padding: 1rem 1.15rem;
		font-size: 1.2rem;
		font-weight: 500;
		color: #fff;
		line-height: 1.25;
	}

	.home-service-card__body {
		padding: 1.25rem 1.35rem 1.35rem;
		gap: 0.85rem;
	}

	.home-service-card__body::before {
		display: none;
	}

	.home-service-card__text {
		font-size: 0.98rem;
		display: block;
		overflow: visible;
		-webkit-line-clamp: unset;
	}

	.home-service-card__list {
		display: flex;
		flex-direction: column;
		gap: 0.4rem;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.home-service-card__list li {
		position: relative;
		padding-left: 1.15rem;
		font-size: 0.9rem;
		color: #21302f;
		line-height: 1.35;
	}

	.home-service-card__list li::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.45em;
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: #f8b34b;
	}

	.home-service-card__footer {
		padding-top: 0.5rem;
		margin-top: 0;
	}

	.home-service-card__cta {
		font-size: 0.95rem;
		transition: color 0.2s ease;
	}

	.home-service-card:hover .home-service-card__cta {
		color: #c8922e;
	}

	.home-service-card__tag {
		font-size: 0.72rem;
		padding: 0.3rem 0.6rem;
	}
}
