/**
 * CLS Parent Category Slider 2.2.0
 * Compact premium cards with 6 desktop / 4 laptop / 3 tablet / 2 mobile.
 */

.cls-pcs-section {
	--cls-pcs-accent: #008aa4;
	--cls-pcs-accent-dark: #006f84;
	--cls-pcs-gold: #f2c200;
	--cls-pcs-text: #081227;
	--cls-pcs-muted: #66758b;
	--cls-pcs-border: #e2e8f0;
	--cls-pcs-gap: 16px;
	position: relative;
	overflow: hidden;
	padding: 54px 0 58px;
	background:
		radial-gradient(circle at 8% 12%, rgba(0, 138, 164, .06), transparent 28%),
		linear-gradient(180deg, #f8fafc 0%, #f3f6f9 100%);
}

.cls-pcs-shell {
	box-sizing: border-box;
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 16px;
}

.cls-pcs-heading-wrap {
	max-width: 1040px;
	margin: 0 auto 30px;
	text-align: center;
}

.cls-pcs-kicker {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--cls-pcs-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.cls-pcs-heading {
	margin: 0;
	color: var(--cls-pcs-text);
	font-size: clamp(30px, 3.8vw, 50px);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: .012em;
	text-transform: uppercase;
	text-wrap: balance;
}

.cls-pcs-slider {
	position: relative;
}

.cls-pcs-track {
	display: flex;
	gap: var(--cls-pcs-gap);
	overflow-x: auto;
	padding: 4px 2px 14px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.cls-pcs-track::-webkit-scrollbar {
	display: none;
}

.cls-pcs-item {
	flex: 0 0 calc((100% - (5 * var(--cls-pcs-gap))) / 6);
	min-width: 0;
	scroll-snap-align: start;
}

.cls-pcs-card {
	position: relative;
	display: flex;
	height: 100%;
	min-height: 268px;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--cls-pcs-border);
	border-radius: 18px;
	background: #fff;
	color: var(--cls-pcs-text);
	text-align: left;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
	transition:
		transform .28s ease,
		box-shadow .28s ease,
		border-color .28s ease;
	-webkit-tap-highlight-color: transparent;
}

.cls-pcs-card:hover,
.cls-pcs-card:focus-visible {
	transform: translateY(-5px);
	border-color: rgba(0, 138, 164, .48);
	box-shadow: 0 18px 38px rgba(15, 23, 42, .13);
	outline: none;
}

.cls-pcs-card:focus-visible {
	box-shadow:
		0 0 0 4px rgba(0, 138, 164, .17),
		0 18px 38px rgba(15, 23, 42, .13);
}

.cls-pcs-card-accent {
	position: absolute;
	inset: auto 0 0;
	z-index: 3;
	height: 4px;
	background: linear-gradient(90deg, var(--cls-pcs-accent), #22c1dc, var(--cls-pcs-gold));
	transform: scaleX(.34);
	transform-origin: left;
	transition: transform .32s ease;
}

.cls-pcs-card:hover .cls-pcs-card-accent,
.cls-pcs-card:focus-visible .cls-pcs-card-accent {
	transform: scaleX(1);
}

.cls-pcs-image-wrap {
	position: relative;
	display: block;
	height: 158px;
	overflow: hidden;
	background: linear-gradient(145deg, #f8fafc, #eef3f7);
}

.cls-pcs-image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .42s ease;
}

.cls-pcs-card:hover .cls-pcs-image,
.cls-pcs-card:focus-visible .cls-pcs-image {
	transform: scale(1.055);
}

.cls-pcs-corner-arrow {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 4;
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255,255,255,.72);
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	color: var(--cls-pcs-accent-dark);
	font-size: 16px;
	font-weight: 900;
	box-shadow: 0 6px 18px rgba(15,23,42,.14);
	backdrop-filter: blur(8px);
	transition: transform .25s ease, background .25s ease, color .25s ease;
}

.cls-pcs-card:hover .cls-pcs-corner-arrow,
.cls-pcs-card:focus-visible .cls-pcs-corner-arrow {
	transform: translate(2px,-2px);
	background: var(--cls-pcs-accent);
	color: #fff;
}

.cls-pcs-image-fallback {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	color: #9badbd;
}

.cls-pcs-image-fallback svg {
	width: 58px;
	height: 58px;
	fill: currentColor;
}

.cls-pcs-image-wrap.is-broken .cls-pcs-image {
	display: none;
}

.cls-pcs-image-wrap.is-broken .cls-pcs-image-fallback {
	display: flex;
}

.cls-pcs-card-body {
	display: flex;
	min-height: 108px;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	padding: 18px 17px 17px;
}

.cls-pcs-title {
	display: flex;
	min-height: 48px;
	align-items: flex-start;
	margin: 0;
	color: var(--cls-pcs-accent);
	font-size: clamp(17px, 1.2vw, 21px);
	font-weight: 900;
	line-height: 1.18;
	transition: color .24s ease;
	text-wrap: balance;
}

.cls-pcs-card:hover .cls-pcs-title,
.cls-pcs-card:focus-visible .cls-pcs-title {
	color: var(--cls-pcs-accent-dark);
}

.cls-pcs-link-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	color: var(--cls-pcs-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .075em;
	text-transform: uppercase;
	transition: color .24s ease, gap .24s ease;
}

.cls-pcs-card:hover .cls-pcs-link-label,
.cls-pcs-card:focus-visible .cls-pcs-link-label {
	gap: 9px;
	color: var(--cls-pcs-accent-dark);
}

.cls-pcs-controls {
	display: grid;
	grid-template-columns: 42px minmax(90px, 150px) 42px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 14px;
}

.cls-pcs-arrow {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: var(--cls-pcs-accent);
	color: #fff;
	font-size: 29px;
	line-height: 1;
	box-shadow: 0 9px 20px rgba(0, 138, 164, .22);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.cls-pcs-arrow:hover,
.cls-pcs-arrow:focus-visible {
	background: var(--cls-pcs-accent-dark);
	transform: translateY(-2px);
	outline: none;
}

.cls-pcs-arrow:focus-visible {
	box-shadow: 0 0 0 4px rgba(0, 138, 164, .19);
}

.cls-pcs-arrow:disabled {
	opacity: .3;
	cursor: not-allowed;
	transform: none;
}

.cls-pcs-progress {
	position: relative;
	height: 4px;
	overflow: hidden;
	border-radius: 999px;
	background: #dce7ec;
}

.cls-pcs-progress-bar {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--cls-pcs-accent), #22c1dc);
	transition: width .2s ease;
}


@media (min-width: 640px) {
	.cls-pcs-shell {
		padding-inline: 24px;
	}
}

@media (min-width: 1024px) {
	.cls-pcs-shell {
		padding-inline: 32px;
	}
}

@media (max-width: 1279px) {
	.cls-pcs-item {
		flex-basis: calc((100% - (3 * var(--cls-pcs-gap))) / 4);
	}
}

@media (max-width: 1023px) {
	.cls-pcs-section {
		padding: 46px 0 50px;
	}

	.cls-pcs-item {
		flex-basis: calc((100% - (2 * var(--cls-pcs-gap))) / 3);
	}
}

@media (max-width: 767px) {
	.cls-pcs-heading-wrap {
		margin-bottom: 22px;
	}

	.cls-pcs-heading {
		font-size: clamp(27px, 7.6vw, 36px);
	}

	.cls-pcs-track {
		gap: 12px;
	}

	.cls-pcs-item {
		flex-basis: calc((100% - 12px) / 2);
	}

	.cls-pcs-card {
		min-height: 238px;
		border-radius: 16px;
	}

	.cls-pcs-image-wrap {
		height: 132px;
	}

	.cls-pcs-card-body {
		min-height: 96px;
		padding: 14px 13px 14px;
	}

	.cls-pcs-title {
		min-height: 42px;
		font-size: 17px;
		line-height: 1.16;
	}

	.cls-pcs-link-label {
		margin-top: 9px;
		font-size: 9px;
		letter-spacing: .06em;
	}

	.cls-pcs-corner-arrow {
		top: 9px;
		right: 9px;
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
}

@media (max-width: 419px) {
	.cls-pcs-section {
		padding: 36px 0 42px;
	}

	.cls-pcs-kicker {
		font-size: 10px;
	}

	.cls-pcs-heading {
		font-size: clamp(25px, 8vw, 31px);
	}

	.cls-pcs-item {
		flex: 0 0 100%;
		max-width: none;
	}

	.cls-pcs-card {
		min-height: 250px;
	}

	.cls-pcs-image-wrap {
		height: 142px;
	}

	.cls-pcs-title {
		font-size: 18px;
	}

	.cls-pcs-controls {
		grid-template-columns: 40px minmax(80px, 130px) 40px;
		margin-top: 10px;
	}

	.cls-pcs-arrow {
		width: 40px;
		height: 40px;
		font-size: 27px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cls-pcs-track {
		scroll-behavior: auto;
	}

	.cls-pcs-card,
	.cls-pcs-image,
	.cls-pcs-card-accent,
	.cls-pcs-link-label,
	.cls-pcs-corner-arrow,
	.cls-pcs-arrow,
	.cls-pcs-progress-bar {
		transition: none;
	}
}
