/* Hero - MGI-style (soft gradient + marker highlight + badges + aktywna realizacja card).
   Layout: lewa 45% content (biale tlo), prawa 55% viewport zdjecie z soft fade po lewej krawedzi.
   Height rozsadny (720px) zeby zdjecie nie bylo za mocno przyblizone. */

.hero {
	position: relative;
	min-height: 720px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--c-surface);
	padding: var(--s-12) 0;
}

/* Photo - prawa 65% viewport, real <img> zeby zachowac proporcje.
   Szerszy container = subject fizycznie bardziej w lewo w viewport. */
.hero__photo {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 65%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* object-position: right center = pokazujemy prawa strone obrazu (Artur + prawy landscape).
	   Kombinacja z szerszym container (65%) daje subject widocznego bardziej w lewo w viewport. */
	object-position: right center;
	display: block;
}

/* Soft fade po lewej krawedzi photo - miekkie przejscie w biel */
.hero__photo-fade {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: linear-gradient(
		90deg,
		#FFFFFF 0%,
		rgba(255, 255, 255, 0.95) 20%,
		rgba(255, 255, 255, 0.7) 45%,
		rgba(255, 255, 255, 0.3) 70%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* Tablet + Mobile: stack layout - photo na gorze, tekst pod */
@media (max-width: 899px) {
	.hero {
		min-height: 0 !important;
		padding: 0 !important;
		display: block !important;
	}
	.hero__photo {
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 16 / 10;
		max-height: 420px;
	}
	.hero__photo-fade {
		display: block !important;
		top: auto !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		height: 50% !important;
		background: linear-gradient(
			180deg,
			transparent 0%,
			rgba(255, 255, 255, 0.15) 20%,
			rgba(255, 255, 255, 0.55) 55%,
			rgba(255, 255, 255, 0.9) 85%,
			#FFFFFF 100%
		) !important;
	}
	.hero__img { object-position: center center !important; }
}

/* Content grid */
.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--s-12);
	align-items: center;
}
@media (max-width: 899px) {
	.hero__inner {
		grid-template-columns: 1fr !important;
		padding-top: var(--s-8);
		padding-bottom: var(--s-12);
		gap: var(--s-6);
	}
	.hero__content { max-width: 100%; }
	.hero__title { font-size: clamp(1.75rem, 6vw + 0.5rem, 2.5rem); margin-bottom: var(--s-5); }
	.hero__lead { font-size: 1rem; margin-bottom: var(--s-6); max-width: 100%; }
	.hero__actions { margin-bottom: var(--s-6); }
	.hero__actions .btn { width: 100%; justify-content: center; }
	.hero__badges { gap: var(--s-3); padding-top: var(--s-5); }
	.hero__badge { font-size: var(--fs-xs); }
	.hero__floating { display: none !important; }
}

.hero__content { max-width: 620px; }

/* MGI-style eyebrow: pomaranczowa kreska + text */
.hero__pretitle {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	margin-bottom: var(--s-6);
	font-family: var(--f-body);
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: var(--ls-widest);
	color: var(--c-primary);
}
.hero__pretitle-line {
	display: inline-block;
	width: 32px;
	height: 2px;
	background: var(--c-primary);
	border-radius: 2px;
	flex-shrink: 0;
}

/* Big H1 with marker highlight */
.hero__title {
	color: var(--c-neutral-800);
	font-family: var(--f-headline);
	font-size: clamp(2.25rem, 4vw + 0.5rem, 3.75rem);
	font-weight: var(--fw-black);
	line-height: 1.05;
	letter-spacing: var(--ls-tightest);
	margin-bottom: var(--s-8);
}

/* MGI-style marker highlight - zolty pas pod slowem "inwestycji" */
.hero__mark {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}
.hero__mark::before {
	content: '';
	position: absolute;
	left: -4px;
	right: -4px;
	bottom: 4px;
	height: 32%;
	background: rgba(255, 182, 39, 0.5);
	border-radius: 6px;
	z-index: -1;
	transform: skew(-4deg, -1deg);
}

.hero__lead {
	font-family: var(--f-body);
	font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
	line-height: var(--lh-relaxed);
	color: var(--c-neutral-600);
	margin-bottom: var(--s-10);
	max-width: 540px;
}

.hero__actions {
	display: flex;
	gap: var(--s-4);
	flex-wrap: wrap;
	margin-bottom: var(--s-10);
}

/* MGI badges row - 3 elementy z pomaranczowa ikona */
.hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-6) var(--s-8);
	padding-top: var(--s-8);
	border-top: 1px solid var(--c-neutral-100);
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	font-family: var(--f-body);
	font-size: var(--fs-sm);
	font-weight: var(--fw-medium);
	color: var(--c-neutral-600);
}

.hero__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(242, 124, 31, 0.12);
	color: var(--c-primary);
	flex-shrink: 0;
}

/* Prawa kolumna - kontener dla floating card nad zdjeciem */
.hero__floating {
	position: relative;
	height: 100%;
	min-height: 480px;
}
@media (max-width: 767px) {
	.hero__floating {
		min-height: 0;
		display: none;
	}
}

/* MGI-style "aktywna realizacja" card - prawy dolny rog */
.hero__glass-card {
	position: absolute;
	bottom: 0;
	right: 0;
	max-width: 320px;
	background: #FFFFFF;
	padding: var(--s-5) var(--s-6);
	border-radius: var(--r-xl);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(232, 229, 223, 0.6);
}

.hero__glass-card-status {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	font-family: var(--f-body);
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	color: var(--c-neutral-600);
	text-transform: uppercase;
	letter-spacing: var(--ls-widest);
	margin-bottom: var(--s-2);
}
.hero__glass-card-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-success);
	position: relative;
	flex-shrink: 0;
}
.hero__glass-card-dot::before {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: var(--c-success);
	opacity: 0.3;
	animation: heroDotPulse 2s ease-in-out infinite;
}
@keyframes heroDotPulse {
	0%, 100% { transform: scale(1); opacity: 0.3; }
	50% { transform: scale(1.5); opacity: 0; }
}

.hero__glass-card-title {
	font-family: var(--f-headline);
	font-size: var(--fs-base);
	font-weight: var(--fw-bold);
	color: var(--c-neutral-800);
	line-height: 1.3;
	margin: 0;
}

/* Backward compat - jesli gdzies uzywany stary markup */
.hero__bg { display: none; }
.hero__overlay { display: none; }
.hero__overlay--mobile { display: none; }
.hero__trust { display: none; }

@media (max-width: 767px) {
	.hero__badges { gap: var(--s-3); }
	.hero__badge { font-size: var(--fs-xs); }
}
