.can-hero {
	container-type: inline-size;
	position: relative;
	margin: 0;
	color: #fff;
}

.can-hero--fullwidth {
	width: var(--can-hero-vw, 100vw);
	max-width: none;
	margin-left: calc(50% - var(--can-hero-vw, 100vw) / 2);
}

.can-hero__stage {
	--cw: var(--can-hero-w-desktop);
	--ch: var(--can-hero-h-desktop);
	--u: min(1px, 100cqw / var(--cw));
	position: relative;
	height: calc(var(--ch) * var(--u));
	overflow: hidden;
}

@media (max-width: 778px) {
	.can-hero__stage {
		--cw: var(--can-hero-w-tablet);
		--ch: var(--can-hero-h-tablet);
	}
}

@media (max-width: 480px) {
	.can-hero__stage {
		--cw: var(--can-hero-w-mobile);
		--ch: var(--can-hero-h-mobile);
	}
}

.can-hero__slides,
.can-hero__slide {
	position: absolute;
	inset: 0;
}

.can-hero__slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}

.can-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 1s ease-in-out, visibility 0s linear 0s;
}

.can-hero .can-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
}

.can-hero__grid {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: calc(var(--cw) * var(--u));
	transform: translateX(-50%);
}

.can-hero .can-hero__frame,
.can-hero .can-hero__image {
	position: absolute;
	max-width: none;
	pointer-events: none;
}

.can-hero .can-hero__image {
	object-fit: contain;
}

.can-hero .can-hero__line {
	position: absolute;
	margin: 0;
	padding: 0;
	color: #fff;
	font-weight: 400;
	text-transform: none;
}

.can-hero .can-hero__button {
	position: absolute;
	display: inline-block;
	box-sizing: border-box;
	border-radius: 3px;
	color: #fff;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	font-family: var(--can-hero-button-font, "Gotham-Bold", sans-serif);
	transition: background-color 0.1s ease-in-out;
}

.can-hero .can-hero__button:hover,
.can-hero .can-hero__button:focus {
	color: #fff;
	text-decoration: none;
}

.can-hero .can-hero__button:focus-visible,
.can-hero__arrow:focus-visible,
.can-hero__pause:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #1b1b1b;
}

/* Hero layout */

.can-hero--hero .can-hero__line--1,
.can-hero--hero .can-hero__line--2 {
	left: calc(740 * var(--u));
	width: calc(660 * var(--u));
	text-align: center;
}

.can-hero--hero .can-hero__line--1 {
	top: calc(186 * var(--u));
	font-size: calc(30 * var(--u));
	line-height: calc(45 * var(--u));
}

.can-hero--hero .can-hero__line--2 {
	top: calc(238 * var(--u));
	font-size: calc(60 * var(--u));
	line-height: calc(62 * var(--u));
	letter-spacing: calc(5 * var(--u));
}

.can-hero--hero .can-hero__line--3 {
	left: calc(780 * var(--u));
	width: calc(580 * var(--u));
	top: calc(352 * var(--u));
	font-size: calc(20 * var(--u));
	line-height: calc(25 * var(--u));
	text-align: center;
}

.can-hero--hero .can-hero__button {
	left: calc(1070 * var(--u));
	top: calc(431 * var(--u));
	transform: translateX(-50%);
	min-width: calc(293 * var(--u));
	padding: 0 calc(40 * var(--u));
	font-size: calc(24 * var(--u));
	line-height: calc(50 * var(--u));
	font-weight: 700;
	background-color: #0096a3;
}

.can-hero--hero .can-hero__button:hover,
.can-hero--hero .can-hero__button:focus-visible {
	background-color: #3d454a;
}

.can-hero--hero .can-hero__frame {
	left: calc(777 * var(--u));
	top: calc(141 * var(--u));
	width: calc(587 * var(--u));
	height: calc(268 * var(--u));
}

@media (max-width: 778px) {
	.can-hero--hero .can-hero__slide--has-text::after {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.3);
	}

	.can-hero--hero .can-hero__grid {
		z-index: 1;
	}

	.can-hero--hero .can-hero__line--1,
	.can-hero--hero .can-hero__line--2,
	.can-hero--hero .can-hero__line--3 {
		left: calc(30 * var(--u));
		width: calc((var(--cw) - 60) * var(--u));
	}

	.can-hero--hero .can-hero__line--1 {
		top: calc(160 * var(--u));
		font-size: calc(18 * var(--u));
		line-height: calc(24 * var(--u));
	}

	.can-hero--hero .can-hero__line--2 {
		top: calc(217 * var(--u));
		transform: translateY(-50%);
		font-size: calc(32 * var(--u));
		line-height: calc(35 * var(--u));
	}

	.can-hero--hero .can-hero__line--3 {
		top: calc(268 * var(--u));
		transform: translateY(-50%);
		font-size: calc(16 * var(--u));
		line-height: calc(20 * var(--u));
	}

	.can-hero--hero .can-hero__arrow {
		top: calc(321 * var(--u));
	}

	.can-hero--hero .can-hero__arrow--prev {
		left: 12px;
	}

	.can-hero--hero .can-hero__arrow--next {
		right: 12px;
	}

	.can-hero--hero .can-hero__button {
		left: 50%;
		top: calc(305 * var(--u));
		min-width: calc(200 * var(--u));
		padding: 0 calc(20 * var(--u));
		font-size: calc(16 * var(--u));
		line-height: calc(32 * var(--u));
	}

	.can-hero--hero .can-hero__frame {
		left: calc(170.5 * var(--u));
		top: calc(120 * var(--u));
		width: calc(437 * var(--u));
		height: calc(200 * var(--u));
	}
}

@media (max-width: 480px) {
	.can-hero--hero .can-hero__line--1 {
		top: calc(149 * var(--u));
		font-size: calc(18 * var(--u));
		line-height: calc(18 * var(--u));
	}

	.can-hero--hero .can-hero__line--2 {
		top: calc(203 * var(--u));
		font-size: calc(38 * var(--u));
		line-height: calc(47 * var(--u));
	}

	.can-hero--hero .can-hero__line--3 {
		top: calc(262 * var(--u));
		left: calc(15 * var(--u));
		width: calc((var(--cw) - 30) * var(--u));
	}

	.can-hero--hero .can-hero__arrow {
		top: calc(375 * var(--u));
	}

	.can-hero--hero .can-hero__button {
		top: calc(358 * var(--u));
		min-width: calc(232 * var(--u));
		padding: 0 calc(28 * var(--u));
		font-size: calc(19 * var(--u));
		line-height: calc(34 * var(--u));
	}

	.can-hero--hero .can-hero__frame {
		left: calc(29 * var(--u));
		top: calc(119.5 * var(--u));
		width: calc(422 * var(--u));
		height: calc(193 * var(--u));
	}
}

/* Phone layout */

.can-hero--phone .can-hero__frame {
	left: calc(326.5 * var(--u));
	top: calc(114 * var(--u));
	width: calc(667 * var(--u));
	height: calc(372 * var(--u));
}

.can-hero--phone .can-hero__image {
	left: calc(485 * var(--u));
	top: calc(15 * var(--u));
	width: calc(350 * var(--u));
	height: calc(570 * var(--u));
}

.can-hero--phone .can-hero__line--1 {
	left: calc(297 * var(--u));
	top: calc(300 * var(--u));
	transform: translateY(-50%);
	font-size: calc(38 * var(--u));
	line-height: calc(45 * var(--u));
	white-space: nowrap;
}

.can-hero--phone .can-hero__line--2 {
	right: calc(205 * var(--u));
	top: calc(272 * var(--u));
	transform: translateY(-50%);
	font-size: calc(18 * var(--u));
	line-height: calc(24 * var(--u));
	text-align: center;
	white-space: nowrap;
}

.can-hero--phone .can-hero__line--3 {
	display: none;
}

.can-hero--phone .can-hero__button {
	right: calc(229 * var(--u));
	top: calc(327 * var(--u));
	padding: calc(10 * var(--u)) calc(30 * var(--u));
	font-size: calc(18 * var(--u));
	line-height: calc(26 * var(--u));
	font-weight: 500;
	background-color: #0f7f86;
}

.can-hero--phone .can-hero__button:hover,
.can-hero--phone .can-hero__button:focus-visible {
	background-color: #94c640;
}

@media (max-width: 778px) {
	.can-hero--phone .can-hero__frame {
		left: calc(174.5 * var(--u));
		top: calc(155.5 * var(--u));
		width: calc(429 * var(--u));
		height: calc(239 * var(--u));
	}

	.can-hero--phone .can-hero__image {
		left: calc(264 * var(--u));
		top: calc(66.5 * var(--u));
		width: calc(250 * var(--u));
		height: calc(407 * var(--u));
	}

	.can-hero--phone .can-hero__line--1,
	.can-hero--phone .can-hero__line--2,
	.can-hero--phone .can-hero__button {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
	}

	.can-hero--phone .can-hero__line--1 {
		top: calc(27 * var(--u));
		font-size: calc(24 * var(--u));
		line-height: calc(28 * var(--u));
	}

	.can-hero--phone .can-hero__line--2 {
		top: auto;
		bottom: calc(94 * var(--u));
		font-size: calc(18 * var(--u));
		line-height: calc(22 * var(--u));
	}

	.can-hero--phone .can-hero__button {
		top: auto;
		bottom: calc(30 * var(--u));
		padding: calc(12 * var(--u)) calc(20 * var(--u));
		font-size: calc(18 * var(--u));
		line-height: calc(24 * var(--u));
	}
}

@media (max-width: 480px) {
	.can-hero--phone .can-hero__frame {
		left: calc(48 * var(--u));
		top: calc(184 * var(--u));
		width: calc(384 * var(--u));
		height: calc(214 * var(--u));
	}

	.can-hero--phone .can-hero__image {
		left: calc(110 * var(--u));
		top: calc(78.5 * var(--u));
		width: calc(260 * var(--u));
		height: calc(423 * var(--u));
	}

	.can-hero--phone .can-hero__line--1 {
		top: calc(28 * var(--u));
		font-size: calc(26 * var(--u));
		line-height: calc(28 * var(--u));
	}

	.can-hero--phone .can-hero__line--2 {
		bottom: calc(107 * var(--u));
		line-height: calc(24 * var(--u));
	}

	.can-hero--phone .can-hero__button {
		bottom: calc(40 * var(--u));
	}
}

/* Controls */

.can-hero__arrow,
.can-hero__pause {
	position: absolute;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease-in-out, background-color 0.2s ease-in-out;
}

.can-hero__arrow {
	top: 50%;
	width: 40px;
	height: 40px;
	margin-top: -20px;
}

.can-hero__arrow--prev {
	left: clamp(10px, 4cqw - 21px, 24px);
}

.can-hero__arrow--next {
	right: clamp(10px, 4cqw - 21px, 24px);
}

.can-hero__pause {
	right: 12px;
	bottom: 12px;
	width: 32px;
	height: 32px;
}

.can-hero__pause[hidden] {
	display: none;
}

.can-hero__arrow:hover,
.can-hero__pause:hover {
	background: #000;
}

.can-hero:hover .can-hero__arrow,
.can-hero:hover .can-hero__pause,
.can-hero:focus-within .can-hero__arrow,
.can-hero:focus-within .can-hero__pause,
.can-hero.is-paused-by-user .can-hero__pause {
	opacity: 1;
}

@media (hover: none) {
	.can-hero__arrow,
	.can-hero__pause {
		opacity: 1;
	}
}

.can-hero__pause .can-hero__icon-play,
.can-hero.is-paused-by-user .can-hero__icon-pause {
	display: none;
}

.can-hero.is-paused-by-user .can-hero__icon-play {
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.can-hero__slide,
	.can-hero__slide.is-active,
	.can-hero__arrow,
	.can-hero__pause,
	.can-hero .can-hero__button {
		transition: none;
	}
}

.can-hero-notice {
	padding: 8px 12px;
	border-left: 4px solid #d63638;
	background: #fff;
	color: #1d2327;
}
