.baristo-hero,
.baristo-hero * {
	box-sizing: border-box;
}

.baristo-hero {
	--baristo-yellow: #f3d530;
	--baristo-black: #100904;
	--baristo-title-color: #fff;
	--baristo-text-color: #fff;
	position: relative;
	width: 100%;
	height: clamp(560px, 45vw, 750px);
	overflow: hidden;
	isolation: isolate;
	background: var(--baristo-black);
	color: var(--baristo-text-color);
	font-family: "Inter", Arial, sans-serif;
	letter-spacing: 0;
	touch-action: pan-y;
}

.baristo-hero__track,
.baristo-hero__slide {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

.baristo-hero__slide {
	visibility: hidden;
	opacity: 0;
	background-color: var(--baristo-black);
	background-image: var(--baristo-desktop-image);
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: cover !important;
	transition: opacity 500ms ease, visibility 500ms ease;
}

.baristo-hero__slide.is-active {
	visibility: visible;
	opacity: 1;
}

.baristo-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.baristo-hero__slide--1::after {
	background: linear-gradient(90deg, rgba(50, 26, 0, 0.62) 0%, rgba(50, 26, 0, 0.26) 38%, rgba(50, 26, 0, 0) 68%);
}

.baristo-hero__slide--2::after {
	background: linear-gradient(90deg, rgba(70, 0, 7, 0.68) 0%, rgba(70, 0, 7, 0.34) 42%, rgba(70, 0, 7, 0.04) 72%);
}

.baristo-hero__slide--3::after {
	background: linear-gradient(90deg, rgba(16, 9, 4, 0.7) 0%, rgba(16, 9, 4, 0.42) 42%, rgba(16, 9, 4, 0.06) 72%);
}

.baristo-hero__container {
	position: relative;
	z-index: 2;
	height: 100%;
	margin-inline: auto;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.baristo-hero__content {
	width: min(54%, 620px);
	min-width: 0;
	padding-block: 44px;
	pointer-events: auto;
}

.baristo-hero h1 {
	margin: 0;
	color: var(--baristo-title-color);
	font-family: inherit;
	font-size: clamp(42px, 3.35vw, 64px);
	font-weight: 700;
	line-height: clamp(1.08, 1.04 + 0.18vw, 1.18);
	letter-spacing: 0;
}

.baristo-hero__rule {
	display: block;
	width: min(100%, 400px);
	height: 8px;
	margin: 24px 0 30px;
	background: var(--baristo-yellow);
}

.baristo-hero__content > p {
	max-width: 600px;
	margin: 0;
	color: var(--baristo-text-color);
	font-size: clamp(15px, 1.05vw, 20px);
	font-weight: 400;
	line-height: clamp(1.4, 1.35 + 0.12vw, 1.5);
}

.baristo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 40px;
}

.baristo-btn {
	min-height: 52px;
	padding: 0 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	border: 1px solid transparent;
	border-radius: 7px;
	color: inherit;
	font-size: clamp(13px, 0.82vw, 14px);
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.baristo-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
}

.baristo-btn:focus-visible,
.baristo-hero__dots button:focus-visible,
.baristo-hero__nav:focus-visible {
	outline: 3px solid var(--baristo-yellow);
	outline-offset: 3px;
}

.baristo-btn--primary {
	background: var(--baristo-black);
	color: var(--baristo-yellow) !important;
	box-shadow: 0 5px 14px rgba(16, 9, 4, 0.22);
}

.baristo-btn--secondary {
	background: #fff;
	color: var(--baristo-black) !important;
	box-shadow: 0 5px 14px rgba(16, 9, 4, 0.16);
}

.baristo-btn__icon {
	width: 22px;
	height: 22px;
	display: block;
	flex: 0 0 22px;
	object-fit: contain;
}

.baristo-hero__note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 60px;
	color: var(--baristo-text-color);
	font-size: clamp(12px, 0.82vw, 14px);
	line-height: 1.35;
}

.baristo-hero__note img {
	width: 20px;
	height: 25px;
	flex: 0 0 auto;
	object-fit: contain;
}

.baristo-hero__nav,
.baristo-hero__nav:hover,
.baristo-hero__nav:focus,
.baristo-hero__nav:active {
	position: absolute;
	z-index: 5;
	top: 50%;
	width: 48px;
	height: 48px;
	padding: 0 !important;
	display: grid;
	place-items: center;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
	transform: translateY(-50%) !important;
	filter: none !important;
	opacity: 1 !important;
	appearance: none;
	-webkit-appearance: none;
}

.baristo-hero__nav::before,
.baristo-hero__nav::after,
.baristo-hero__nav:hover::before,
.baristo-hero__nav:hover::after {
	content: none !important;
	display: none !important;
}

.baristo-hero__nav--prev {
	left: 22px;
}

.baristo-hero__nav--next {
	right: 22px;
}

.baristo-chevron {
	width: 12px;
	height: 12px;
	display: block;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.baristo-chevron--left {
	transform: translateX(2px) rotate(-135deg);
}

.baristo-chevron--right {
	transform: translateX(-2px) rotate(45deg);
}

.baristo-hero__dots {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 9px;
	transform: translateX(-50%);
}

.baristo-hero__dots button {
	width: 10px;
	height: 10px;
	margin: 0;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease;
}

.baristo-hero__dots button.is-active {
	background: #fff;
	transform: scale(1.15);
}

.baristo-hero-empty {
	padding: 24px;
	border: 1px dashed #c3c4c7;
	background: #f6f7f7;
	text-align: center;
}

@media (min-width: 1367px) {
	.baristo-hero__container {
		width: 1280px;
		max-width: calc(100vw - 64px);
		padding-inline: 0;
	}
}

@media (min-width: 1201px) and (max-width: 1366px) {
	.baristo-hero__container {
		width: 1100px;
		max-width: calc(100vw - 48px);
		padding-inline: 0;
	}
}

@media (max-width: 1200px) {
	.baristo-hero__slide {
		background-image: var(--baristo-mobile-image);
	}

	.baristo-hero__slide--1 {
		background-position: 66% center !important;
	}

	.baristo-hero__slide--2,
	.baristo-hero__slide--3 {
		background-position: 68% center !important;
	}
}

@media (min-width: 768px) and (max-width: 1200px) {
	.baristo-hero {
		height: clamp(620px, 72vw, 760px);
	}

	.baristo-hero__container {
		width: 100%;
		max-width: none;
		padding-inline: 4vw;
		justify-content: center;
	}

	.baristo-hero__content {
		width: min(100%, 680px);
		margin-inline: auto;
		text-align: center;
	}

	.baristo-hero h1 {
		font-size: clamp(34px, 4.3vw, 52px);
		line-height: clamp(1.06, 1.02 + 0.18vw, 1.14);
	}

	.baristo-hero__content > p {
		margin-inline: auto;
		font-size: clamp(14px, 1.7vw, 18px);
		line-height: clamp(1.4, 1.32 + 0.18vw, 1.5);
	}

	.baristo-btn {
		font-size: clamp(13px, 1.35vw, 14px);
	}

	.baristo-hero__note {
		font-size: clamp(12px, 1.25vw, 14px);
	}

	.baristo-hero__rule {
		margin-left: auto;
		margin-right: auto;
	}

	.baristo-hero__actions,
	.baristo-hero__note {
		justify-content: center;
	}

	.baristo-hero__slide::after {
		background: rgba(16, 9, 4, 0.48);
	}

	.baristo-hero__slide--2::after {
		background: rgba(70, 0, 7, 0.68);
	}
}

@media (max-width: 767px) {
	.baristo-hero {
		height: min(760px, calc(100svh - 64px));
		min-height: 650px;
	}

	.baristo-hero__slide--1::after {
		background: rgba(50, 26, 0, 0.64);
	}

	.baristo-hero__slide--2::after {
		background: rgba(70, 0, 7, 0.74);
	}

	.baristo-hero__slide--3::after {
		background: rgba(16, 9, 4, 0.64);
	}

	.baristo-hero__container {
		width: 100%;
		max-width: none;
		padding-inline: 4vw;
		align-items: center;
		justify-content: center;
	}

	.baristo-hero__content {
		width: 100%;
		margin-inline: auto;
		padding-block: 0;
		text-align: center;
		transform: translateY(clamp(16px, 2.5vh, 28px));
	}

	.baristo-hero h1 {
		font-size: clamp(26px, 7.4vw, 36px);
		line-height: clamp(1.04, 1 + 0.25vw, 1.1);
		letter-spacing: -0.015em;
		text-wrap: balance;
	}

	.baristo-hero__rule {
		height: 6px;
		margin: 20px auto 24px;
	}

	.baristo-hero__content > p {
		max-width: 540px;
		margin-inline: auto;
		font-size: clamp(13px, 3.65vw, 16px);
		line-height: clamp(1.4, 1.34 + 0.2vw, 1.5);
		text-wrap: pretty;
	}

	.baristo-hero__actions {
		justify-content: center;
		margin-top: 28px;
	}

	.baristo-btn {
		width: 100%;
		font-size: clamp(12px, 3.7vw, 14px);
	}

	.baristo-hero__note {
		justify-content: center;
		margin-top: 30px;
		font-size: clamp(11px, 3.2vw, 13px);
		line-height: 1.35;
	}

	.baristo-hero__nav {
		display: none;
	}

	.baristo-hero__dots {
		bottom: 16px;
	}
}

@media (max-width: 359px) {
	.baristo-hero h1 {
		font-size: clamp(25px, 8vw, 27px);
	}

	.baristo-hero__content > p {
		font-size: clamp(13px, 4.1vw, 14px);
	}

	.baristo-btn {
		font-size: 12px;
	}

	.baristo-hero__note {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.baristo-hero__slide,
	.baristo-btn,
	.baristo-hero__dots button {
		transition-duration: 0.01ms !important;
	}
}
