/* =========================================================================
   ICF Karting — v15 (Apple Newsroom + Sticky Storytelling)
   - Blog Featured section na FP (Apple Newsroom style)
   - Sticky scroll storytelling (revive story-pin)
   - Apple-grade breathing space
   - Premium section transitions
   ========================================================================= */

/* ===========================================================
   STORY-PIN — przywrócić! (override v7 hide)
   =========================================================== */
.story-pin,
section[data-chapter="Trzy gokarty"] {
	display: block !important;
}

/* ===========================================================
   STORY PIN refinement (Apple-style sticky scroll)
   =========================================================== */
.story-pin {
	background: linear-gradient(180deg, var(--c-bg-deep) 0%, #0a0a0c 50%, var(--c-bg-deep) 100%);
	padding: clamp(80px, 12vw, 160px) 0 !important;
}

.story-pin__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(60px, 8vw, 120px);
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.story-pin__sticky {
	position: sticky;
	top: 18vh;
	height: 64vh;
	align-self: start;
}
.story-pin__media {
	position: relative;
	width: 100%; height: 100%;
	border-radius: 28px;
	overflow: hidden;
	background: var(--c-bg-3);
	box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
}
.story-pin__media img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .9s var(--ease-fluid), transform 1.5s var(--ease-fluid);
	transform: scale(1.08);
}
.story-pin__media img.is-active {
	opacity: 1;
	transform: scale(1);
}

.story-pin__steps {
	display: flex; flex-direction: column;
	padding-top: 8vh;
}
.story-pin__step {
	min-height: 92vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
}
.story-pin__step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px;
	border-radius: 50%;
	background: rgba(255,45,32,.12);
	border: 1px solid rgba(255,45,32,.4);
	color: var(--c-accent);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.2rem;
	margin-bottom: 12px;
	font-variant-numeric: tabular-nums;
}
.story-pin__step h3 {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.04em !important;
	line-height: 1.0 !important;
	margin: 0 !important;
	color: #fff;
}
.story-pin__step p {
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	color: var(--c-text-2);
	line-height: 1.55;
	max-width: 48ch;
	margin: 0;
}
.story-pin__step-meta {
	display: flex; gap: 32px; flex-wrap: wrap;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,.1);
}
.story-pin__step-meta span {
	display: flex; flex-direction: column; gap: 4px;
	color: var(--c-text-3);
	font-size: 0.85rem;
}
.story-pin__step-meta strong {
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	font-family: var(--font-display);
	letter-spacing: -0.01em;
}

@media (max-width: 880px) {
	.story-pin__inner { grid-template-columns: 1fr; gap: 40px; }
	.story-pin__sticky { position: relative; top: auto; height: 70vh; max-height: 500px; }
	.story-pin__steps { padding-top: 0; gap: 24px; }
	.story-pin__step {
		min-height: auto !important;
		padding: 32px !important;
		background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
		border: 1px solid var(--c-glass-line);
		border-radius: 24px;
	}
	.story-pin__step h3 { font-size: 1.8rem !important; }
	.story-pin__media img:first-child { opacity: 1; transform: scale(1); }
	.story-pin__media img:not(:first-child) { display: none; }
}

/* ===========================================================
   BLOG FEATURED — Apple Newsroom style
   =========================================================== */
.blog-featured {
	padding: clamp(80px, 12vw, 160px) 0;
	background: var(--c-bg-deep);
	position: relative;
}

.blog-featured__head {
	display: flex; justify-content: space-between; align-items: end;
	gap: 32px; flex-wrap: wrap;
	max-width: 1320px;
	margin: 0 auto 60px;
	padding: 0 var(--gutter);
}
.blog-featured__head h2 {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.0;
	margin: 0;
	color: #fff;
}
.blog-featured__link {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--c-accent);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: gap .25s var(--ease-apple);
}
.blog-featured__link:hover { gap: 14px; color: var(--c-accent-2); }

/* Layout: featured + 3 cards */
.blog-featured__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
@media (max-width: 880px) { .blog-featured__grid { grid-template-columns: 1fr; } }

/* Hero featured article — duża karta po lewej */
.blog-feat-hero {
	position: relative;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 540px;
	border-radius: 32px;
	overflow: hidden;
	padding: clamp(36px, 4vw, 56px);
	color: #fff;
	background: var(--c-bg-3);
	transition: transform .4s var(--ease-fluid);
	text-decoration: none;
	isolation: isolate;
}
.blog-feat-hero:hover { transform: translateY(-6px); color: #fff; }
.blog-feat-hero::before {
	content: '';
	position: absolute; inset: 0;
	background-image: var(--bg-img);
	background-size: cover;
	background-position: center;
	z-index: -2;
	transition: transform 1s var(--ease-fluid);
	filter: contrast(1.05) saturate(1.05) brightness(0.95);
}
.blog-feat-hero:hover::before { transform: scale(1.04); }
.blog-feat-hero::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(6,6,8,.85) 100%);
	z-index: -1;
}
.blog-feat-hero__cat {
	display: inline-block;
	padding: 6px 14px;
	background: var(--c-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 6px;
	margin-bottom: 18px;
	width: max-content;
}
.blog-feat-hero__title {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
	margin: 0 0 12px;
	max-width: 22ch;
}
.blog-feat-hero__lead {
	font-size: 1.05rem;
	color: rgba(255,255,255,.85);
	line-height: 1.55;
	margin: 0 0 20px;
	max-width: 50ch;
}
.blog-feat-hero__meta {
	display: flex; gap: 16px; align-items: center;
	font-size: 0.82rem;
	color: rgba(255,255,255,.7);
}
.blog-feat-hero__cta {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 24px;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	transition: gap .25s var(--ease-apple);
}
.blog-feat-hero:hover .blog-feat-hero__cta { gap: 14px; color: var(--c-accent); }
.blog-feat-hero__cta::after { content: '→'; }

/* Side stack — 3 mniejsze karty */
.blog-feat-side {
	display: grid;
	grid-template-rows: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 880px) { .blog-feat-side { grid-template-rows: none; grid-template-columns: 1fr; } }

.blog-feat-side__card {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 20px;
	padding: 18px;
	background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
	border: 1px solid var(--c-glass-line);
	border-radius: 20px;
	text-decoration: none;
	transition: transform .35s var(--ease-fluid), border-color .25s;
	min-height: 0;
	overflow: hidden;
}
.blog-feat-side__card:hover { transform: translateX(4px); border-color: rgba(255,45,32,.35); }
.blog-feat-side__media {
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1;
}
.blog-feat-side__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-fluid); }
.blog-feat-side__card:hover .blog-feat-side__media img { transform: scale(1.06); }
.blog-feat-side__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.blog-feat-side__cat {
	color: var(--c-accent);
	font-size: 0.65rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
}
.blog-feat-side__title {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: #fff;
	margin: 0;
}
.blog-feat-side__meta {
	color: var(--c-text-3);
	font-size: 0.78rem;
}

@media (max-width: 480px) {
	.blog-feat-side__card { grid-template-columns: 100px 1fr; gap: 14px; padding: 14px; }
	.blog-feat-side__title { font-size: 0.95rem; }
}

/* ===========================================================
   APPLE-grade section breathing
   =========================================================== */
.section--xl { padding: clamp(80px, 11vw, 160px) 0 !important; }

/* ===========================================================
   Better section eyebrow — Apple-style minimal
   =========================================================== */
.section-eyebrow {
	font-size: 0.72rem !important;
	letter-spacing: 0.18em !important;
}

/* ===========================================================
   Section titles — bigger Apple-grade
   =========================================================== */
.section-title-xl {
	font-size: clamp(2.4rem, 6vw, 4.4rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.04em !important;
	line-height: 1.0 !important;
	color: #fff;
}

/* ===========================================================
   Hero refinement — bigger paddings
   =========================================================== */
.hero-mega {
	min-height: 100vh !important;
	padding-bottom: clamp(80px, 12vh, 160px) !important;
}
