.uchems-tabs {
	--uchems-tabs-accent: #7255ae;
	--uchems-tabs-ease: cubic-bezier(.2, .75, .25, 1);
	container-type: inline-size;
	font-family: "Uchems Inter", "Uchems Vazirmatn", Arial, sans-serif;
	line-height: 1.6;
}

.uchems-tabs__rail {
	--uchems-tabs-height: 390px;
	--uchems-tabs-clip: 30px;
	--uchems-tabs-open-weight: 6;
	--uchems-tabs-closed-width: 46px;
	display: flex;
	gap: 5px;
	height: var(--uchems-tabs-height);
	overflow: hidden;
	overflow-anchor: none;
	scroll-behavior: auto;
}

.uchems-tabs__card {
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: var(--uchems-tabs-closed-width);
	height: calc(100% + var(--uchems-tabs-clip));
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 0 0 22px 22px;
	background: #35313b;
	transition: flex-grow .65s var(--uchems-tabs-ease);
}

.uchems-tabs__card.is-active {
	flex-grow: var(--uchems-tabs-open-weight);
	min-width: min(54%, 240px);
}

.uchems-tabs .uchems-tabs__image,
.uchems-tabs__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.uchems-tabs .uchems-tabs__image {
	max-width: none;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
	transition: transform 1s var(--uchems-tabs-ease);
}

.uchems-tabs [data-image="textile"] .uchems-tabs__image {
	object-position: 50% 60%;
}

.uchems-tabs__card.is-active .uchems-tabs__image {
	transform: scale(1.015);
}

@media (hover: hover) {
	.uchems-tabs__card:not(.is-active):hover .uchems-tabs__image {
		transform: scale(1.06);
	}
}

.uchems-tabs__shade {
	background-image: linear-gradient(0deg, #090914b8, transparent 80%);
}

.uchems-tabs .uchems-tabs__trigger {
	box-sizing: border-box;
	position: absolute;
	inset: 0 0 var(--uchems-tabs-clip);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	padding: 22px min(18px, 12%);
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.uchems-tabs .uchems-tabs__trigger:hover,
.uchems-tabs .uchems-tabs__trigger:focus {
	background: transparent;
	color: #fff;
}

.uchems-tabs .uchems-tabs__trigger:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.uchems-tabs__label {
	overflow: hidden;
	max-height: calc(100% - 40px);
	writing-mode: vertical-rl;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
}

.uchems-tabs__symbol {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	flex: none;
	width: min(35px, 100%);
	aspect-ratio: 1;
	border: 1px solid #ffffffa6;
	border-radius: 0 0 50% 50%;
	font-size: 25px;
	font-weight: 400;
	line-height: 1;
	transition: transform .4s, background-color .25s, border-color .25s;
}

.uchems-tabs .is-active .uchems-tabs__trigger {
	inset: auto 18px max(calc(var(--uchems-tabs-clip) + 2px), 18px) auto;
	width: 42px;
	height: 42px;
	padding: 0;
	align-items: center;
	justify-content: center;
}

.uchems-tabs__card.is-active .uchems-tabs__label {
	display: none;
}

.uchems-tabs__card.is-active .uchems-tabs__symbol {
	background: var(--uchems-tabs-accent);
	border-color: var(--uchems-tabs-accent);
	box-shadow: 0 3px 12px #24133b33;
	transform: rotate(45deg);
}

.uchems-tabs__panel {
	position: absolute;
	z-index: 1;
	left: clamp(22px, 4.4vw, 72px);
	right: 68px;
	bottom: max(calc(var(--uchems-tabs-clip) + 7px), 32px);
	max-height: calc(var(--uchems-tabs-height) - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
	color: #fff;
	overflow-wrap: anywhere;
	animation: uchems-tabs-panel-in .45s var(--uchems-tabs-ease);
}

.uchems-tabs__panel[hidden] {
	display: none;
}

.uchems-tabs__panel .uchems-tabs__title {
	margin: 0;
	color: inherit;
	font: 600 40px/1.12 "Uchems Inter", "Uchems Vazirmatn", Arial, sans-serif;
	letter-spacing: -.04em;
}

.uchems-tabs__panel .uchems-tabs__description {
	margin: 9px 0 10px;
	font-size: 15px;
	line-height: 1.6;
}

.uchems-tabs__panel .uchems-tabs__detail {
	max-width: 390px;
	color: #ece7ef;
	font-size: 12px;
}

.uchems-tabs__panel .uchems-tabs__link {
	display: inline-flex;
	gap: 14px;
	align-items: center;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.uchems-tabs__link svg {
	flex: none;
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .25s var(--uchems-tabs-ease);
}

.uchems-tabs__link:hover svg {
	transform: translateX(4px);
}

.uchems-tabs__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.uchems-tabs__controls {
	display: flex;
	align-items: center;
	gap: 25px;
	width: min(1440px, 100%);
	box-sizing: border-box;
	margin-inline: auto;
	padding: 14px clamp(22px, 4.4vw, 72px) 0;
}

.uchems-tabs__controls p {
	margin: 0;
	color: #766982;
	font-size: 10px;
	letter-spacing: .04em;
	white-space: nowrap;
}

.uchems-tabs__controls p span {
	margin-inline-start: 15px;
	color: var(--uchems-tabs-accent);
	font-size: 16px;
}

.uchems-tabs__meter {
	flex: 1;
	height: 2px;
	background: #e2dce9;
}

.uchems-tabs__meter i {
	display: block;
	height: 100%;
	width: var(--uchems-tabs-progress, 25%);
	background: var(--uchems-tabs-accent);
}

.uchems-tabs__arrows {
	display: flex;
	gap: 6px;
}

.uchems-tabs .uchems-tabs__arrows button {
	display: grid;
	place-items: center;
	width: 35px;
	height: 32px;
	padding: 0;
	border: 1px solid #d9d2e2;
	border-radius: 0 0 12px 12px;
	background: #fff;
	color: var(--uchems-tabs-accent);
	font: inherit;
	cursor: pointer;
}

.uchems-tabs .uchems-tabs__arrows button:disabled {
	opacity: .3;
	cursor: default;
}

.uchems-tabs .uchems-tabs__arrows button:hover:not(:disabled) {
	background: var(--uchems-tabs-accent);
	color: #fff;
}

@keyframes uchems-tabs-panel-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@container (max-width: 1100px) {
	.uchems-tabs__rail {
		--uchems-tabs-height: 350px;
		--uchems-tabs-clip: 10px;
		--uchems-tabs-open-weight: 7;
	}

	.uchems-tabs__panel .uchems-tabs__title {
		font-size: 34px;
	}

	.uchems-tabs__panel .uchems-tabs__detail {
		display: none;
	}
}

@container (max-width: 760px) {
	.uchems-tabs__rail {
		--uchems-tabs-height: 380px;
		--uchems-tabs-clip: 0px;
		--uchems-tabs-open-weight: 9;
		--uchems-tabs-closed-width: 24px;
		gap: 4px;
	}

	.uchems-tabs .uchems-tabs__trigger {
		padding: 16px min(8px, 11%);
		align-items: center;
	}

	.uchems-tabs__label {
		transform: rotate(180deg);
		font-size: 13px;
	}

	.uchems-tabs__symbol {
		width: min(29px, 100%);
		font-size: 23px;
	}

	.uchems-tabs .is-active .uchems-tabs__trigger {
		right: 13px;
		bottom: 40px;
		width: 29px;
		height: 29px;
	}

	.uchems-tabs__panel {
		left: min(23px, 8%);
		right: 22px;
		bottom: 28px;
		padding: 18px min(18px, 8%);
	}

	.uchems-tabs__panel .uchems-tabs__title {
		font-size: clamp(20px, 8.2cqi, 32px);
	}

	.uchems-tabs__panel .uchems-tabs__description {
		font-size: 12px;
		margin-bottom: 9px;
	}

	.uchems-tabs__panel .uchems-tabs__link {
		gap: 9px;
		font-size: 10px;
	}

	.uchems-tabs__link svg {
		width: 15px;
		height: 15px;
	}

	.uchems-tabs__controls {
		gap: 10px;
		padding-inline: 22px;
	}

	.uchems-tabs__controls p span {
		margin-inline-start: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.uchems-tabs__card,
	.uchems-tabs__card .uchems-tabs__image,
	.uchems-tabs__symbol,
	.uchems-tabs__link svg {
		transition: none;
	}

	.uchems-tabs__panel {
		animation: none;
	}
}
