.thms-slider {
	position: relative;
	overflow: hidden;
	min-height: var(--thms-height, 520px);
	background: #111827;
	color: #fff;
}

.thms-slider,
.thms-slider * {
	box-sizing: border-box;
}

.thms-slider__viewport,
.thms-slide {
	min-height: var(--thms-height, 520px);
}

.thms-slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-position: center;
	background-size: cover;
	opacity: 0;
	pointer-events: none;
	transform: translateX(0);
	transition: opacity 520ms ease, transform 520ms ease;
}

.thms-slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.thms-transition-slide .thms-slide {
	transform: translateX(5%);
}

.thms-transition-slide .thms-slide.is-active {
	transform: translateX(0);
}

.thms-slide__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
}

.thms-slide__layers {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.thms-layer {
	position: absolute;
	left: var(--thms-x, 8%);
	top: var(--thms-y, 20%);
	width: min(var(--thms-width, 60%), calc(100% - var(--thms-x, 8%) - 24px));
	opacity: 0;
	transform: translateY(10px);
	transition-delay: var(--thms-delay, 0ms);
	transition-duration: var(--thms-duration, 620ms);
	transition-property: opacity, transform;
	transition-timing-function: var(--thms-easing, ease-out);
}

.thms-slide.is-active .thms-layer {
	opacity: 1;
	transform: translateY(0);
}

.thms-anim-none,
.thms-slide.is-active .thms-anim-none {
	opacity: 1;
	transform: none;
	transition: none;
}

.thms-anim-fade {
	transform: none;
}

.thms-anim-fade-down {
	transform: translateY(-14px);
}

.thms-anim-slide-left {
	transform: translateX(-24px);
}

.thms-anim-slide-right {
	transform: translateX(24px);
}

.thms-anim-zoom {
	transform: scale(0.94);
}

.thms-layer h2 {
	max-width: 12em;
	margin: 0;
	font-size: clamp(32px, 6vw, 72px);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: 0;
}

.thms-layer p {
	max-width: 38em;
	margin: 0;
	font-size: clamp(16px, 2vw, 22px);
	line-height: 1.55;
}

.thms-layer img {
	display: block;
	max-width: 100%;
	height: auto;
}

.thms-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 6px;
	background: #f8fafc;
	color: #111827;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.thms-button:hover,
.thms-button:focus {
	color: #111827;
	text-decoration: none;
}

.thms-nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	color: #111827;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.thms-nav--prev {
	left: 18px;
}

.thms-nav--next {
	right: 18px;
}

.thms-dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 5;
	display: flex;
	gap: 8px;
	transform: translateX(-50%);
}

.thms-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.48);
	cursor: pointer;
}

.thms-dot.is-active {
	background: #fff;
}

@media (max-width: 720px) {
	.thms-slider,
	.thms-slider__viewport,
	.thms-slide {
		min-height: min(var(--thms-height, 520px), 620px);
	}

	.thms-layer {
		left: var(--thms-mobile-x, 6%);
		top: var(--thms-mobile-y, 20%);
		width: min(var(--thms-mobile-width, 88%), calc(100% - var(--thms-mobile-x, 6%) - 24px));
	}

	.thms-layer h2 {
		font-size: 34px;
	}

	.thms-layer p {
		font-size: 16px;
	}
}

@media (min-width: 721px) and (max-width: 1024px) {
	.thms-layer {
		left: var(--thms-tablet-x, var(--thms-x, 8%));
		top: var(--thms-tablet-y, var(--thms-y, 20%));
		width: min(var(--thms-tablet-width, var(--thms-width, 60%)), calc(100% - var(--thms-tablet-x, 8%) - 24px));
	}
}
