.services {
	background: var(--color-bg);
	padding: 120px 0;
}

.services__heading {
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: var(--font-weight-h2);
	color: var(--color-accent);
	margin-bottom: 56px;
}

.services__layout {
	display: grid;
	grid-template-columns: calc(40% - 24px) calc(60% - 36px);
	align-items: start;
	gap: 60px;
}

.services__media {
	min-width: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	position: sticky;
	top: calc(var(--header-height) + 40px);
}

.services__media-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.services__list {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.service-item {
	border-top: 1px solid var(--color-border);
	padding: 28px 0;
	transition: padding 0.4s ease;
}

.service-item:last-child {
	border-bottom: 1px solid var(--color-border);
}

.service-item__body {
	flex: 1;
	min-width: 0;
}

.service-item__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.service-item__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 700;
	color: var(--color-text-muted);
	transition: color 0.3s ease, font-size 0.3s ease;
}

.service-item__arrow {
	flex-shrink: 0;
	color: var(--color-text-muted);
	font-size: 20px;
	transition: opacity 0.3s ease;
}

.service-item__panel {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
}

.service-item__text {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--color-text-muted);
	max-width: 440px;
}

.service-item__actions {
	display: flex;
	align-items: center;
	gap: 32px;
}

.service-item__more {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15px;
	color: var(--color-accent-light);
	text-decoration: underline;
}

.service-item.is-active .service-item__title {
	color: var(--color-accent-light);
	font-size: 28px;
}

.service-item.is-active .service-item__arrow {
	opacity: 0;
}

.service-item.is-active .service-item__panel {
	max-height: 320px;
	opacity: 1;
	margin-top: 20px;
}

/* Breakpoints: 1440 / 1280 / 1024 / 768 / 380 */

@media (max-width: 1280px) {
	.services__heading {
		font-size: 34px;
	}
}

@media (max-width: 1024px) {
	.services {
		padding: 80px 0;
	}

	.service-item__row {
		width: 100%;
	}

	.services__layout {
		grid-template-columns: 1fr;
	}

	.services__media {
		position: static;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 768px) {
	.services__heading {
		font-size: 28px;
		margin-bottom: 32px;
	}

	.service-item__title {
		font-size: 18px;
	}

	.service-item.is-active .service-item__title {
		font-size: 22px;
	}

	.service-item__actions {
		flex-wrap: wrap;
		gap: 16px;
	}
}

@media (max-width: 380px) {
	.service-item__title {
		font-size: 16px;
	}

	.service-item.is-active .service-item__title {
		font-size: 19px;
	}
}