.hcs-catalog-hero {
	--hcs-catalog-hero-overlay: .46;
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	overflow: hidden;
	background: #07161d;
	color: #fff;
	isolation: isolate;
}

.hcs-catalog-hero.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.hcs-catalog-hero__picture,
.hcs-catalog-hero__image {
	display: block;
	width: 100%;
}

.hcs-catalog-hero__image {
	height: auto !important;
	max-width: none !important;
	object-fit: contain !important;
	object-position: center center;
}

.hcs-catalog-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg,
			rgb(3 16 22 / var(--hcs-catalog-hero-overlay)) 0%,
			rgb(3 16 22 / calc(var(--hcs-catalog-hero-overlay) * .88)) 35%,
			rgb(3 16 22 / calc(var(--hcs-catalog-hero-overlay) * .35)) 70%,
			rgb(3 16 22 / calc(var(--hcs-catalog-hero-overlay) * .10)) 100%);
}

.hcs-catalog-hero__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	padding: clamp(72px, 8vw, 132px) clamp(28px, 6.5vw, 112px) clamp(34px, 5vw, 80px);
	pointer-events: none;
}

.hcs-catalog-hero__copy {
	width: min(48%, 720px);
	pointer-events: auto;
}

.hcs-catalog-hero__title {
	margin: 0 0 clamp(12px, 1.5vw, 24px) !important;
	color: #fff !important;
	font-size: clamp(54px, 8.5vw, 132px) !important;
	line-height: .88 !important;
	letter-spacing: -.035em;
	font-weight: 800;
	text-transform: uppercase;
	text-wrap: balance;
}

.hcs-catalog-hero__description {
	max-width: 640px;
	color: rgb(255 255 255 / .94) !important;
	font-size: clamp(15px, 1.45vw, 22px);
	line-height: 1.55;
}

.hcs-catalog-hero__description p {
	margin: 0;
	color: inherit !important;
}

.hcs-catalog-hero__stat {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: clamp(24px, 3.5vw, 52px);
	font-size: clamp(17px, 1.7vw, 27px);
	line-height: 1.2;
	color: #fff;
}

.hcs-catalog-hero__stat-icon {
	display: grid;
	place-items: center;
	width: clamp(38px, 4.5vw, 64px);
	height: clamp(44px, 5vw, 72px);
	flex: 0 0 auto;
}

.hcs-catalog-hero__stat-icon img,
.hcs-catalog-hero__stat-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hcs-catalog-hero__stat-icon svg {
	fill: none;
	stroke: #c79a42;
	stroke-width: 3;
}

.hcs-catalog-hero--missing {
	padding: 32px;
	background: #f3f4f5;
	color: #1e1e1e;
	border: 1px dashed #949494;
}

/* Edytor Gutenberga */
.hcs-catalog-hero--editor {
	min-height: 320px;
}

.hcs-catalog-hero--editor .hcs-catalog-hero__image {
	min-height: 320px;
	object-fit: cover !important;
	opacity: .92;
}

.hcs-catalog-hero--editor .hcs-catalog-hero__content {
	padding-top: 52px;
}

.hcs-catalog-hero--editor .hcs-catalog-hero__title,
.hcs-catalog-hero--editor .hcs-catalog-hero__description {
	cursor: text;
}

.hcs-catalog-hero-editor__empty {
	min-height: 320px;
	display: grid;
	place-items: center;
	padding: 30px;
	background: #10232b;
	color: #fff;
}

.hcs-catalog-hero-editor__media-control {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 14px;
}

.hcs-catalog-hero-editor__thumb {
	width: 100%;
	max-height: 140px;
	object-fit: contain;
	background: #f0f0f0;
}

.hcs-catalog-hero-editor__shield {
	display: block;
	width: 34px;
	height: 40px;
	border: 3px solid #c79a42;
	border-radius: 6px 6px 18px 18px;
}

@media (max-width: 900px) {
	.hcs-catalog-hero__content {
		padding: 70px 28px 34px;
	}
	.hcs-catalog-hero__copy {
		width: min(62%, 620px);
	}
	.hcs-catalog-hero__title {
		font-size: clamp(44px, 11vw, 90px) !important;
	}
}

@media (max-width: 767px) {
	.hcs-catalog-hero__copy {
		width: 76%;
	}
	.hcs-catalog-hero__content {
		padding: 54px 22px 24px;
		align-items: flex-end;
	}
	.hcs-catalog-hero__title {
		font-size: clamp(36px, 13vw, 64px) !important;
	}
	.hcs-catalog-hero__description {
		font-size: 14px;
		line-height: 1.45;
	}
	.hcs-catalog-hero__stat {
		margin-top: 18px;
		font-size: 16px;
		gap: 10px;
	}
	.hcs-catalog-hero__stat-icon {
		width: 32px;
		height: 38px;
	}
}

/*
 * Menu motywu Authentic nad Hero katalogu.
 *
 * Transparent oznacza tu faktycznie brak jakiegokolwiek tla. HCS nie dodaje
 * koloru, gradientu ani warstwy przyciemniajacej pod menu. Obraz Hero jest
 * podciagany przez JS o RZECZYWISTY dystans do paska, zamiast o zalozone 50 px.
 * Po rozpoczeciu przewijania klasa hcs-catalog-nav-at-top znika i Authentic
 * ponownie odpowiada za wyglad paska.
 */
body.hcs-catalog-hero-page {
	--hcs-catalog-nav-height: 50px;
	--hcs-catalog-hero-pullup: 0px;
}

body.hcs-catalog-hero-page #masthead {
	position: relative;
	z-index: 1000;
}

/* JS ustawia rzeczywista wartosc inline po pomiarze DOM. */
body.hcs-catalog-hero-page .hcs-catalog-hero {
	margin-top: 0;
}

/* Tylko pozycja startowa: absolutnie zadnego tla pod menu. */
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary > .cs-container,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .navbar {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead::before,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead::after,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary::before,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary::after,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary > .cs-container::before,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary > .cs-container::after,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .navbar::before,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .navbar::after {
	content: none !important;
	background: none !important;
	box-shadow: none !important;
}

body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .navbar {
	border-top-color: transparent !important;
	border-bottom-color: transparent !important;
}

/* Jasny wariant elementow nad fotografia. */
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary a,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary button,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .navbar-nav > li > a,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .navbar-scheme-toggle,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .navbar-search,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .navbar-brand,
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary [class*="cs-icon"],
body.hcs-catalog-hero-page.hcs-catalog-nav-at-top #masthead .navbar-primary .fa-solid {
	color: #fff !important;
}

/* Fotografia Hero nie jest galerią ani odnośnikiem. */
.hcs-catalog-hero__picture,
.hcs-catalog-hero__image {
	pointer-events: none !important;
	user-select: none;
	-webkit-user-drag: none;
}

@media (max-width: 782px) {
	body.hcs-catalog-hero-page {
		--hcs-catalog-nav-height: 50px;
	}
}
