/* Основные стили (остались прежними) */
.custom-services {
	padding: 0;
}

.custom-services__title {
	margin-bottom: 24px;
	font-weight: 700;
	font-size: 48px;
	line-height: 100%;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.custom-services__row {
	display: grid;
	gap: 24px;
	margin-bottom: 24px;
}

.custom-services__row--1 {
	grid-template-columns: repeat(3, 1fr);
}

.custom-services__row--2 {
	grid-template-columns: repeat(3, 1fr);
}

.custom-services__card-wrapper {
	position: relative;
	overflow: hidden;
}

.custom-services__banner {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-position: center;
	background-size: cover;
	min-height: 448px;
}

.custom-services__banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transition: transform 0.6s ease;
}

.custom-services__banner:hover::before {
	transform: scale(1.08);
}

/* Внутренний слой */
.custom-services__inner {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 24px;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	transition: background 0.3s ease;
	min-height: 448px;
}

.custom-services__banner:hover .custom-services__inner {
	background: rgba(0, 0, 0, 0.55);
	color: white;
}

/* Текстовые блоки */
.custom-services__title-text {
	font-size: 28px;
	font-weight: 700;
	line-height: 114%;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.custom-services__text {
	position: relative;
	font-weight: 400;
	font-size: 16px;
	line-height: 125%;
	z-index: 2;
	height: 100%;
}

/* === ЭФФЕКТЫ === */

/* 1️⃣ Список (проявляется по opacity) */
.custom-services__features {
	margin-top: 12px;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.custom-services__features ol>li {
	margin: 0;
}

.custom-services__banner:hover .custom-services__features {
	opacity: 1;
}

/* 2️⃣ Нижний блок (выезжает снизу и прижимается к низу) */
.custom-services__extra {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -100%;
	transform: translateY(100%);
	opacity: 0;
	transition:
			transform 0.6s ease,
			opacity 0.5s ease;
	font-size: 15px;
	line-height: 140%;
	border-top: 1px solid rgba(255, 255, 255, .24);
	padding-top: 24px;
}

.custom-services__extra h5 {
	font-size: 12px;
	margin-bottom: 12px;
	font-weight: 700;
	color: white;
	line-height: 133%;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* При наведении — появляется и выезжает */
.custom-services__banner:hover .custom-services__extra {
	transform: translateY(0);
	opacity: 1;
	bottom: 0;
}

/* Мобильная адаптация */
@media (max-width: 991px) {
	.custom-services__row--1,
	.custom-services__row--2 {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.custom-services__banner {
		min-height: 223px;
	}

	.custom-services__title {
		display: none;
	}

	.custom-services__title-text {
		font-size: 20px;
	}

	.custom-services__features {
		display: none;
	}

	.custom-services__features ol>li {
		display: none;
	}

	.custom-services__banner:hover .custom-services__features {
		opacity: 0;
	}

	.custom-services__extra {
		display: none;
	}

	.custom-services__inner {
		padding: 16px;
		min-height: 223px;
	}
}
