.rootcase-hero {
	position: relative;
	width: 100%;
	background: #172019;
	color: #fff;
}

.rootcase-hero [hidden] {
	display: none !important;
}

.rootcase-hero__slide {
	position: relative;
	display: grid;
	align-items: end;
	isolation: isolate;
	min-height: clamp(20rem, 55vw, 39rem);
}

.rootcase-hero .rootcase-hero__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.rootcase-hero__slide::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgb(0 0 0 / 82%), rgb(0 0 0 / 25%) 75%);
	content: "";
}

.rootcase-hero__caption {
	max-width: 76rem;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 2rem clamp(1.25rem, 5vw, 4rem);
}

.rootcase-hero--with-controls .rootcase-hero__caption {
	padding-bottom: 5rem;
}

.rootcase-hero__caption h2,
.rootcase-hero__caption p {
	max-width: 40rem;
	margin: 0 0 .65rem;
	color: #fff;
	overflow-wrap: anywhere;
}

.rootcase-hero__caption h2 {
	font-size: clamp(1.875rem, 5vw, 3.75rem);
	line-height: 1.08;
}

.rootcase-hero__caption p {
	font-size: clamp(1rem, 2vw, 1.3rem);
	line-height: 1.4;
}

.rootcase-hero .rootcase-hero__reserve {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	margin-top: .35rem;
	padding: .55rem 1.15rem;
	border-radius: .2rem;
	background: #fff;
	color: #18251b;
	font-weight: 700;
	text-decoration: none;
}

.rootcase-hero .rootcase-hero__reserve:hover {
	background: #e9efe9;
	color: #18251b;
}

.rootcase-hero__controls {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .2rem;
	border-radius: .2rem;
	background: rgb(0 0 0 / 75%);
	color: #fff;
}

.rootcase-hero__controls button {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: .125rem;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.25rem;
	cursor: pointer;
}

.rootcase-hero__controls button:hover {
	background: rgb(255 255 255 / 20%);
}

.rootcase-hero :is(a, button):focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.rootcase-hero + div + div.main {
	top: 0 !important;
	margin-bottom: 0 !important;
}
