.hm-service-detail {
	width: 100%;
	padding: var(--hm-layout-section-top) var(--hm-layout-gutter) var(--hm-layout-section-bottom);
	background: var(--hm-color-background);
}

.hm-service-detail.hm-not-found {
	padding-top: calc(var(--hm-layout-section-top) + clamp(5.5rem, 10vw, 9rem));
}

.hm-service-detail__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: start;
	gap: 4.6vw;
	width: 100%;
}

.hm-service-detail__content {
	min-width: 0;
}

.hm-service-detail__title {
	margin: 0;
	color: var(--hm-color-text);
	font-size: clamp(2.1rem, 3.2vw, 3.6rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.hm-service-detail__lead,
.hm-service-detail__text,
.hm-service-detail__body {
	width: 100%;
	color: var(--hm-color-text);
	font-size: clamp(1rem, 1.08vw, 1.2rem);
	line-height: 1.55;
}

.hm-service-detail__lead {
	margin: 1.15rem 0 0;
}

.hm-service-detail__text {
	margin: 0.9rem 0 0;
}

.hm-service-detail__body {
	margin-top: 1.15rem;
}

.hm-service-detail__body p {
	margin: 0.9rem 0 0;
}

.hm-service-detail__body > p:first-child {
	margin-top: 0;
}

.hm-service-detail__body h2 {
	margin: clamp(1.8rem, 2.5vw, 2.8rem) 0 0.75rem;
	color: var(--hm-color-text);
	font-size: clamp(1.35rem, 1.7vw, 1.8rem);
	font-weight: 500;
	line-height: 1.15;
}

.hm-service-detail__body h3 {
	margin: clamp(1.45rem, 2vw, 1.9rem) 0 0.7rem;
	color: var(--hm-color-text);
	font-size: clamp(1.18rem, 1.35vw, 1.45rem);
	font-weight: 500;
	line-height: 1.22;
}

.hm-service-detail__body ul,
.hm-service-detail__body ol {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-service-detail__body p + ul,
.hm-service-detail__body p + ol {
	margin-top: 0.75rem;
}

.hm-service-detail__body li {
	position: relative;
	padding-left: 1.1rem;
	color: var(--hm-color-text);
	font-size: clamp(0.98rem, 1vw, 1.1rem);
	line-height: 1.45;
}

.hm-service-detail__body ul li::before {
	position: absolute;
	top: 0.68em;
	left: 0;
	width: 0.32rem;
	height: 0.32rem;
	border-radius: 50%;
	background: var(--hm-color-accent);
	content: '';
	transform: translateY(-50%);
}

.hm-service-detail__body ol {
	counter-reset: hm-service-list;
}

.hm-service-detail__body ol li {
	counter-increment: hm-service-list;
	padding-left: 1.7rem;
}

.hm-service-detail__body ol li::before {
	position: absolute;
	left: 0;
	font-weight: 500;
	content: counter(hm-service-list) '.';
}

.hm-service-detail__topics {
	margin-top: clamp(1.8rem, 2.5vw, 2.8rem);
}

.hm-service-detail__topics-title {
	margin: 0 0 0.75rem;
	color: var(--hm-color-text);
	font-size: clamp(1.35rem, 1.7vw, 1.8rem);
	font-weight: 500;
	line-height: 1.15;
}

.hm-service-detail__topics-list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-service-detail__topics-list li {
	position: relative;
	padding-left: 1.1rem;
	color: var(--hm-color-text);
	font-size: clamp(0.98rem, 1vw, 1.1rem);
	line-height: 1.45;
}

.hm-service-detail__topics-list li::before {
	position: absolute;
	top: 0.68em;
	left: 0;
	width: 0.32rem;
	height: 0.32rem;
	border-radius: 50%;
	background: var(--hm-color-accent);
	content: '';
	transform: translateY(-50%);
}

.hm-service-detail__media {
	--hm-service-image-offset: 0.7rem;
	width: 100%;
	margin: 0 0 0.75rem;
}

.hm-service-detail__image-frame {
	position: relative;
	z-index: 0;
}

.hm-service-detail__image-frame::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 1.1rem;
	background: linear-gradient(
		135deg,
		var(--hm-color-surface-medium) 0%,
		var(--hm-color-border-strong) 100%
	);
	content: '';
	transform: translate(var(--hm-service-image-offset), var(--hm-service-image-offset));
}

.hm-service-detail__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center;
	border-radius: 1.1rem;
	background: var(--hm-color-surface);
}

.hm-service-detail__caption {
	margin-top: calc(0.85rem + var(--hm-service-image-offset));
	color: var(--hm-color-text);
	font-size: 0.85rem;
	line-height: 1.4;
	opacity: 0.72;
}

.hm-service-detail__back {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-top: clamp(2rem, 3vw, 3.25rem);
	color: var(--hm-color-text);
	font-size: clamp(0.95rem, 1vw, 1.05rem);
	text-decoration: none;
}

.hm-service-detail__back--mobile {
	display: none;
}

.hm-service-detail__back-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	aspect-ratio: 1;
	border: 1px solid var(--hm-color-border-strong);
	border-radius: 50%;
	background: var(--hm-color-surface);
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hm-service-detail__back:hover .hm-service-detail__back-icon,
.hm-service-detail__back:focus-visible .hm-service-detail__back-icon {
	border-color: var(--hm-color-accent-hover);
	background: var(--hm-color-accent-hover);
	color: var(--hm-color-surface);
}

.hm-service-detail__back:focus-visible {
	outline: 2px solid var(--hm-color-accent);
	outline-offset: 4px;
}

@media (max-width: 60rem) {
	.hm-service-detail__layout {
		grid-template-columns: 1fr;
		gap: clamp(2.5rem, 6vw, 4rem);
	}

	.hm-service-detail__media {
		width: 100%;
	}

	.hm-service-detail__back--desktop {
		display: none;
	}

	.hm-service-detail__back--mobile {
		display: inline-flex;
		justify-self: start;
		margin-top: -1rem;
	}
}

@media (max-width: 36rem) {
	.hm-service-detail__media {
		--hm-service-image-offset: 0.45rem;
	}
}
