.pe-services,
.pe-services *,
.pe-services *::before,
.pe-services *::after {
	box-sizing: border-box;
}

.pe-services {
	--pe-brand: #7e33ff;
	position: relative;
	margin-inline: calc(var(--pe-header-gutter, 40px) * -1);
	padding: 60px 40px;
	overflow: hidden;
	border-bottom: 1px solid #8b8b8d;
	background: #2b2b2f;
	color: #fff;
	font: 400 16px/1.3 Play, Arial, sans-serif;
	scroll-margin-top: 24px;
}

body:has(.pe-header.is-overlay) .pe-services {
	margin-inline: 0;
}

.pe-services * {
	min-width: 0;
}

.pe-services__empty {
	margin: 0;
	padding: 24px;
	background: #2b2b2f;
	color: #fff;
}

.pe-services__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin: 0 0 40px;
}

.pe-services__head > div {
	flex: 1 1 auto;
}

.pe-services h2,
.pe-services h3 {
	margin: 0;
	font-family: Tektur, Play, sans-serif;
	font-weight: 500;
	white-space: pre-line;
}

.pe-services h2 {
	color: #fff;
	font-size: 48px;
	line-height: 1.18;
	letter-spacing: -0.5px;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.pe-services__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	gap: 6px;
}

.pe-services__arrow {
	display: inline-grid;
	place-items: center;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	min-height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #fff;
	line-height: 0;
	cursor: pointer;
}

.pe-services__arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.pe-services__arrow:focus-visible,
.pe-services__rail:focus-visible {
	outline: 2px solid var(--pe-brand);
	outline-offset: 4px;
}

.pe-services__orbit {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	color: inherit;
	border-radius: 50%;
	transition: background-color 180ms, box-shadow 180ms;
}

.pe-services__ring,
.pe-services__glyph {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pe-services__ring {
	position: absolute;
	inset: 0;
	width: 46px;
	height: 46px;
	stroke-width: 1;
}

.pe-services__glyph {
	position: relative;
	width: 18px;
	height: 18px;
	stroke-width: 1.15;
}

.pe-services__orbit--prev .pe-services__glyph {
	transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
	.pe-services__arrow:not(:disabled):hover .pe-services__orbit,
	.pe-services__arrow:not(:disabled):focus-visible .pe-services__orbit {
		background: var(--pe-brand);
		box-shadow: inset 0 0 0 1px var(--pe-brand);
	}

	.pe-services__arrow:not(:disabled):hover .pe-services__ring,
	.pe-services__arrow:not(:disabled):focus-visible .pe-services__ring {
		opacity: 0;
	}
}

.pe-services__rail {
	display: flex;
	align-items: stretch;
	gap: 20px;
	position: relative;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(139, 139, 141, 0.333) transparent;
}

.pe-services__rail.is-scrollable {
	scrollbar-width: none;
}

.pe-services__rail.is-scrollable::-webkit-scrollbar {
	display: none;
}

.pe-services__rail.is-dragging {
	scroll-snap-type: none;
}

.pe-services__card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex: 0 0 517px;
	flex-direction: column;
	align-items: stretch;
	min-height: 260px;
	height: auto;
	overflow: hidden;
	border: 1px solid rgba(145, 137, 151, 0.333);
	background: #474747;
	color: #fff;
	scroll-snap-align: start;
}

.pe-services__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(rgba(22, 22, 27, 0.6), rgba(22, 22, 27, 0.75) 45%, rgba(22, 22, 27, 0.94));
	pointer-events: none;
}

.pe-services__photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
}

.pe-services__copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	padding: 64px 24px 24px;
}

.pe-services h3 {
	margin-bottom: 20px;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.35px;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
	overflow-wrap: break-word;
	word-break: normal;
}

.pe-services__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 12px;
	margin-top: auto;
	color: #fff;
	font: 400 16px/1.3 Play, Arial, sans-serif;
	text-decoration: none;
}

.pe-services__more:focus-visible {
	outline: 2px solid var(--pe-brand);
	outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
	.pe-services__more:hover .pe-services__orbit,
	.pe-services__more:focus-visible .pe-services__orbit {
		background: var(--pe-brand);
		box-shadow: inset 0 0 0 1px var(--pe-brand);
	}

	.pe-services__more:hover .pe-services__ring,
	.pe-services__more:focus-visible .pe-services__ring {
		opacity: 0;
	}
}

.pe-services__rail-control {
	--rail-ink: #c9a9ff;
	--rail-line: rgba(185, 182, 197, 0.2);
	--rail-thumb: 64px;
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 28px;
	margin-top: 14px;
	color: var(--rail-ink);
}

.pe-services__rail-control[hidden] {
	display: none;
}

.pe-services__rail-control::before,
.pe-services__rail-control::after {
	content: "";
	position: absolute;
	top: 10px;
	width: 1px;
	height: 8px;
	background: var(--rail-ink);
	opacity: 0.45;
	pointer-events: none;
}

.pe-services__rail-control::before {
	left: 0;
}

.pe-services__rail-control::after {
	right: 0;
}

.pe-services__range {
	appearance: none;
	display: block;
	width: 100%;
	height: 28px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	cursor: ew-resize;
	touch-action: pan-y;
}

.pe-services__range::-webkit-slider-runnable-track {
	height: 1px;
	border: 0;
	background: var(--rail-line);
}

.pe-services__range::-webkit-slider-thumb {
	appearance: none;
	width: var(--rail-thumb);
	height: 9px;
	margin-top: -4px;
	border: 1px solid var(--rail-ink);
	border-radius: 0;
	background:
		linear-gradient(90deg, transparent calc(50% - 3px), rgba(41, 41, 47, 0.6) calc(50% - 3px), rgba(41, 41, 47, 0.6) calc(50% - 2px), transparent calc(50% - 2px), transparent calc(50% + 2px), rgba(41, 41, 47, 0.6) calc(50% + 2px), rgba(41, 41, 47, 0.6) calc(50% + 3px), transparent calc(50% + 3px)),
		var(--rail-ink);
}

.pe-services__range::-moz-range-track {
	height: 1px;
	border: 0;
	background: var(--rail-line);
}

.pe-services__range::-moz-range-thumb {
	width: var(--rail-thumb);
	height: 9px;
	border: 1px solid var(--rail-ink);
	border-radius: 0;
	background: var(--rail-ink);
}

.pe-services__range:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}

@media (min-width: 1921px) {
	.pe-services__card {
		flex-basis: 28.1%;
	}
}

@media (max-width: 1360px) {
	.pe-services h2 {
		font-size: 40px;
	}

	.pe-services__card {
		flex-basis: 420px;
	}
}

@media (max-width: 960px) {
	.pe-services {
		padding: 48px 24px;
	}

	.pe-services__head {
		gap: 24px;
		margin-bottom: 32px;
	}

	.pe-services h2 {
		font-size: 36px;
	}

	.pe-services__card {
		flex-basis: calc(50% - 10px);
		min-width: 320px;
	}

	.pe-services__rail-control {
		margin-top: 10px;
	}
}

@media (max-width: 600px) {
	.pe-services {
		padding: 40px 16px;
	}

	.pe-services__head {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 20px;
		margin-bottom: 28px;
	}

	.pe-services__head > div {
		flex-basis: 100%;
	}

	.pe-services h2 {
		font-size: 28px;
		line-height: 1.2;
		text-wrap: pretty;
	}

	.pe-services__card {
		flex-basis: calc(100% - 20px);
		min-width: 0;
		min-height: 240px;
	}

	.pe-services__copy {
		padding: 52px 20px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pe-services__orbit {
		transition: none;
	}
}

@media print {
	.pe-services__controls,
	.pe-services__rail-control {
		display: none;
	}

	.pe-services__rail {
		display: block;
		overflow: visible;
	}

	.pe-services__card {
		width: 100%;
		margin-bottom: 20px;
		break-inside: avoid;
	}
}

