/* GeoScanners localized homepage hero. Scope every rule to this component. */
.gsc-home-hero {
	position: relative;
	isolation: isolate;
	width: min(1620px, calc(100% - clamp(40px, 6.4vw, 110px)));
	margin: clamp(16px, 1.6vw, 27px) auto 0;
	aspect-ratio: 2.525 / 1;
	min-height: clamp(520px, calc(24.5vw + 219px), 637px);
	overflow: hidden;
	border-radius: clamp(18px, 2vw, 30px);
	background: #15191d;
	color: #fff;
}

.gsc-home-hero__background,
.gsc-home-hero__background img,
.gsc-home-hero__shade {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.gsc-home-hero__background {
	z-index: 0;
}

.gsc-home-hero__background img {
	object-fit: cover;
	object-position: center;
}

.gsc-home-hero__shade {
	z-index: 1;
	background: linear-gradient(90deg, rgba(7, 12, 17, .97) 0%, rgba(7, 12, 17, .93) 26%, rgba(7, 12, 17, .62) 48%, rgba(7, 12, 17, .18) 66%, rgba(7, 12, 17, 0) 100%);
}

.gsc-home-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: min(42%, 650px);
	height: 100%;
	padding: clamp(36px, 2.85vw, 49px);
	box-sizing: border-box;
}

.gsc-home-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: clamp(16px, 1.5vw, 25px);
	margin: 0 0 clamp(12px, 1vw, 16px);
	font-size: clamp(15px, 1.05vw, 18px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: rgba(255, 255, 255, .9);
}

.gsc-home-hero__eyebrow span {
	width: clamp(44px, 3.5vw, 61px);
	height: clamp(5px, .4vw, 7px);
	border-radius: 99px;
	background: #ffd400;
}

.gsc-home-hero__visual-title {
	margin: 0;
	font-size: clamp(42px, 3.25vw, 54px);
	font-weight: 800;
	line-height: .92;
	letter-spacing: -.035em;
	color: #fff;
}

.gsc-home-hero__visual-title span {
	display: block;
}

.gsc-home-hero__visual-title .is-accent {
	color: #ffd400;
}

.gsc-home-hero__subtitle {
	width: max-content;
	max-width: min(620px, 45vw);
	margin: clamp(12px, 1vw, 16px) 0 0;
	font-size: clamp(15px, 1.12vw, 18px);
	line-height: 1.4;
	color: rgba(255, 255, 255, .9);
}

.gsc-home-hero__categories {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	width: calc(100% + 16px);
	min-height: clamp(142px, 10vw, 165px);
	margin: clamp(7px, .6vw, 10px) 0 0 -16px;
	padding: clamp(8px, .7vw, 12px) 8px;
	box-sizing: border-box;
	background: transparent;
}

.gsc-home-hero__categories::before {
	position: absolute;
	inset: -12px -86px -12px -24px;
	z-index: -1;
	background: radial-gradient(ellipse at 34% 50%, rgba(3, 11, 14, .48) 0%, rgba(3, 11, 14, .35) 48%, rgba(3, 11, 14, .14) 72%, rgba(3, 11, 14, 0) 100%);
	content: '';
	pointer-events: none;
}

.gsc-home-hero__category {
	position: relative;
	display: grid;
	grid-template-rows: minmax(96px, 1fr) auto;
	min-width: 0;
	min-height: 132px;
	padding: 0 clamp(12px, 1vw, 17px) 7px;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	background: transparent;
	box-shadow: none;
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: transform .18s ease;
}

.gsc-home-hero__category:hover {
	transform: translateY(-2px);
	color: #fff;
}

.gsc-home-hero__category:not(:last-child)::after {
	position: absolute;
	top: 18%;
	right: 0;
	width: 1px;
	height: 66%;
	background: rgba(255, 255, 255, .3);
	content: '';
}

.gsc-home-hero__category:focus-visible,
.gsc-home-hero__cta:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.gsc-home-hero__category img {
	align-self: center;
	justify-self: center;
	width: 100%;
	height: clamp(80px, 6vw, 100px);
	object-fit: contain;
}

.gsc-home-hero__category > span {
	display: block;
	overflow-wrap: anywhere;
	font-size: clamp(12px, .88vw, 15px);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.gsc-home-hero__category > span::after {
	display: block;
	width: clamp(30px, 2.3vw, 38px);
	height: clamp(4px, .35vw, 6px);
	margin: clamp(9px, .75vw, 12px) auto 0;
	border-radius: 99px;
	background: #ffd400;
	content: '';
}

.gsc-home-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: min(100%, 320px);
	min-height: 64px;
	margin-top: clamp(20px, 1.65vw, 28px);
	padding: 13px 25px 13px 32px;
	border: 1px solid #ffd400;
	border-radius: 9px;
	box-sizing: border-box;
	background: #ffd400;
	color: #111;
	font-size: clamp(16px, 1.15vw, 20px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease;
}

.gsc-home-hero__cta:hover {
	transform: translateY(-1px);
	background: #ffdc2b;
	color: #111;
}

.gsc-home-hero__cta span {
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.gsc-home-hero__badge {
	position: absolute;
	top: auto;
	bottom: clamp(128px, 9vw, 150px);
	right: clamp(22px, 2.2vw, 36px);
	z-index: 3;
	display: flex;
	flex-direction: row;
	align-items: center;
	max-width: 520px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	text-decoration: none;
}

.gsc-home-hero__badge > img {
	flex: 0 0 auto;
	width: clamp(255px, 17vw, 290px);
	height: auto;
}

.gsc-home-hero__badge-label {
	margin: 0 0 0 14px;
	padding: 4px 0 4px 14px;
	border-left: 1px solid rgba(7, 12, 17, .64);
	font-size: clamp(10px, .78vw, 13px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0;
	color: #071014;
}

.gsc-home-hero__partners {
	position: absolute;
	top: auto;
	bottom: clamp(48px, 4.2vw, 70px);
	right: clamp(32px, 2.5vw, 42px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 340px;
	height: 58px;
}

.gsc-home-hero__partners a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 44px;
}

.gsc-home-hero__partners > span {
	flex: 0 0 1px;
	height: 34px;
	background: rgba(7, 12, 17, .48);
}

.gsc-home-hero__partners img {
	display: block;
	max-width: 100%;
	height: auto;
}

.gsc-home-hero__partners .gsc-home-hero__hexagon {
	width: 180px;
}

.gsc-home-hero__partners .gsc-home-hero__ids {
	width: 102px;
}

@media (min-width: 1024px) and (max-width: 1230px) {
	.gsc-home-hero {
		width: calc(100% - 40px);
		aspect-ratio: 2 / 1;
		min-height: 500px;
	}

	.gsc-home-hero__content {
		width: 52%;
		padding: 32px;
	}

	.gsc-home-hero__visual-title {
		font-size: clamp(40px, 4.2vw, 48px);
	}

	.gsc-home-hero__categories {
		margin-top: 14px;
	}

	.gsc-home-hero__category {
		min-height: 120px;
		grid-template-rows: minmax(82px, 1fr) auto;
	}

	.gsc-home-hero__category img {
		height: 84px;
	}

	.gsc-home-hero__cta {
		min-height: 56px;
		margin-top: 16px;
	}
}

@media (min-width: 690px) and (max-width: 1023px) {
	.gsc-home-hero {
		aspect-ratio: 1.55 / 1;
		min-height: 560px;
	}

	.gsc-home-hero__content {
		width: 60%;
		padding: 30px;
	}

	.gsc-home-hero__visual-title {
		font-size: clamp(36px, 4.8vw, 44px);
	}

	.gsc-home-hero__shade {
		background: linear-gradient(90deg, rgba(10, 13, 16, .91) 0%, rgba(10, 13, 16, .7) 45%, rgba(10, 13, 16, .12) 78%, rgba(10, 13, 16, .03) 100%);
	}
}

@media (max-width: 689px) {
	.gsc-home-hero {
		width: calc(100% - 20px);
		min-height: clamp(590px, 158vw, 630px);
		margin-top: 10px;
		aspect-ratio: auto;
		border-radius: 20px;
	}

	.gsc-home-hero__background img {
		object-position: 58% center;
	}

	.gsc-home-hero__shade {
		background:
			linear-gradient(0deg, rgba(7, 12, 17, .96) 0%, rgba(7, 12, 17, .64) 38%, rgba(7, 12, 17, .13) 72%, rgba(7, 12, 17, .05) 100%),
			linear-gradient(90deg, rgba(7, 12, 17, .72) 0%, rgba(7, 12, 17, .15) 75%, rgba(7, 12, 17, .03) 100%);
	}

	.gsc-home-hero__content {
		justify-content: flex-start;
		width: 100%;
		height: 100%;
		min-height: inherit;
		padding: 72px 18px 18px;
	}

	.gsc-home-hero__eyebrow {
		max-width: 190px;
		margin-bottom: 14px;
		font-size: 11px;
		line-height: 1.45;
	}

	.gsc-home-hero__visual-title {
		font-size: clamp(28px, 7.7vw, 34px);
		line-height: .94;
	}

	.gsc-home-hero__subtitle {
		margin-top: 12px;
		max-width: 300px;
		font-size: 13px;
		line-height: 1.35;
	}

	.gsc-home-hero__categories {
		width: calc(100% + 20px);
		min-height: 132px;
		gap: 0;
		margin: auto -10px 0;
		padding: 8px 3px 9px;
		background: transparent;
	}

	.gsc-home-hero__categories::before {
		inset: -8px -10px -8px;
		background: linear-gradient(180deg, rgba(3, 11, 14, .28) 0%, rgba(3, 11, 14, .72) 24%, rgba(3, 11, 14, .82) 82%, rgba(3, 11, 14, .62) 100%);
	}

	.gsc-home-hero__category {
		grid-template-rows: 78px auto;
		min-height: 114px;
		padding: 4px 7px 7px;
	}

	.gsc-home-hero__category img {
		height: 78px;
	}

	.gsc-home-hero__category > span {
		font-size: 11px;
	}

	.gsc-home-hero__category > span::after {
		margin-top: 6px;
	}

	.gsc-home-hero__cta {
		width: 100%;
		max-width: none;
		min-height: 56px;
		margin-top: 10px;
		padding-inline: 24px;
		font-size: 15px;
		box-shadow: 7px 8px 0 -3px #ffd400;
	}

	.gsc-home-hero__badge {
		top: 18px;
		bottom: auto;
		right: 14px;
		max-width: 186px;
		padding: 0;
		background: transparent;
	}

	.gsc-home-hero__badge > img {
		width: 112px;
	}

	.gsc-home-hero__badge-label {
		border-left-color: rgba(255, 255, 255, .72);
		color: #fff;
	}

	.gsc-home-hero__partners {
		top: 17px;
		bottom: auto;
		left: 13px;
		right: auto;
		gap: 6px;
		width: 124px;
		height: 38px;
	}

	.gsc-home-hero__partners a {
		min-height: 38px;
	}

	.gsc-home-hero__partners > span {
		height: 27px;
	}

	.gsc-home-hero__partners .gsc-home-hero__hexagon {
		width: 71px;
	}

	.gsc-home-hero__partners .gsc-home-hero__ids {
		width: 40px;
	}

	.gsc-home-hero__badge-label {
		margin-left: 8px;
		padding-left: 8px;
		font-size: 7px;
	}

	/* Ukrainian words are longer than the PL/EN hero copy. Keep the same
	 * composition without allowing the indexed H1 or partner marks to clip. */
	html[lang="uk"] .gsc-home-hero__visual-title {
		font-size: clamp(25px, 6.8vw, 30px);
		letter-spacing: -.04em;
	}

	html[lang="uk"] .gsc-home-hero__visual-title span {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	html[lang="uk"] .gsc-home-hero__badge {
		right: 10px;
		width: 172px;
		max-width: 172px;
	}

	html[lang="uk"] .gsc-home-hero__badge > img {
		width: 98px;
	}

	html[lang="uk"] .gsc-home-hero__badge-label {
		min-width: 0;
		margin-left: 6px;
		padding-left: 6px;
		font-size: 6.5px;
		overflow-wrap: anywhere;
	}

}

@media (max-width: 359px) {
	.gsc-home-hero__content {
		padding-inline: 14px;
	}

	.gsc-home-hero__visual-title {
		font-size: 27px;
	}

	.gsc-home-hero__category > span {
		font-size: 9px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gsc-home-hero__category,
	.gsc-home-hero__cta {
		transition: none;
	}
}
