/* =========================================================================
   ICF Karting — v17 (Parallax Apple-style + Registration page)
   - Parallax na obrazach hero/page-hero/big quote
   - Registration page (rejestracja.html) styles
   - Photo upload zone (drag & drop)
   - Step progress indicator
   ========================================================================= */

/* ===========================================================
   PARALLAX containers
   =========================================================== */
.parallax-bg {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.parallax-bg__media {
	position: absolute;
	inset: -10% 0;
	z-index: -1;
	will-change: transform;
}
.parallax-bg__media img,
.parallax-bg__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translate3d(0, var(--parallax-y, 0), 0);
	transition: transform .15s linear;
}

/* Page-hero parallax — subtle */
.page-hero {
	overflow: hidden;
}
.page-hero__bg {
	position: absolute;
	inset: -15% 0;
	height: 130% !important;
	will-change: transform;
	transform: translate3d(0, var(--parallax-y, 0), 0);
}

/* Hero video parallax */
.hero-mega__media {
	will-change: transform;
}
.hero-mega__media video,
.hero-mega__media img {
	transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.05);
	transition: transform .1s linear;
}

/* Big quote parallax */
.big-quote { overflow: hidden; }
.big-quote__inner {
	transform: translate3d(0, var(--parallax-y, 0), 0);
	transition: transform .1s linear;
}

/* Voucher hero media parallax */
.voucher-hero__media img {
	transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.06);
	transition: transform .1s linear;
}

/* Split media parallax */
.split__media img {
	transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.04);
	transition: transform .15s linear;
}

/* Bento large feature parallax */
.bento-cell--feature .bento-cell__media img {
	transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.08);
	transition: transform .15s linear;
}

/* Article hero parallax */
.article-hero__bg img {
	transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.05);
	transition: transform .15s linear;
}

/* Disable parallax on touch / reduced motion */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
	.page-hero__bg,
	.hero-mega__media video,
	.hero-mega__media img,
	.big-quote__inner,
	.voucher-hero__media img,
	.split__media img,
	.bento-cell--feature .bento-cell__media img,
	.article-hero__bg img {
		transform: none !important;
	}
}

/* ===========================================================
   REGISTRATION PAGE — premium online form
   =========================================================== */
.reg-hero {
	background: linear-gradient(180deg, var(--c-bg-deep) 0%, #0a0a0c 100%);
	padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.reg-hero::before {
	content: '';
	position: absolute;
	top: 0; left: 50%;
	transform: translateX(-50%);
	width: 80vmax; height: 80vmax;
	background: radial-gradient(circle, rgba(255,45,32,.1) 0%, transparent 50%);
	pointer-events: none;
}
.reg-hero__inner {
	position: relative; z-index: 1;
	max-width: 760px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.reg-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 5.5vw, 4.4rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.0;
	margin: 0 0 24px;
	color: #fff;
}
.reg-hero h1 em { color: var(--c-accent); font-style: normal; }
.reg-hero__lead {
	font-size: clamp(1.1rem, 1.6vw, 1.4rem);
	color: var(--c-text-2);
	line-height: 1.5;
	max-width: 56ch;
	margin: 0 auto 32px;
}

/* Steps progress — 3 step layout */
.reg-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	max-width: 720px;
	margin: 40px auto 0;
	padding: 24px;
	background: rgba(255,255,255,.04);
	border: 1px solid var(--c-glass-line);
	border-radius: 24px;
	position: relative;
}
.reg-steps::before {
	content: '';
	position: absolute;
	top: 56px;
	left: 18%; right: 18%;
	height: 2px;
	background: linear-gradient(90deg, var(--c-accent) 0%, rgba(255,45,32,.3) 100%);
	z-index: 0;
}
@media (max-width: 540px) {
	.reg-steps { grid-template-columns: 1fr; padding: 20px; }
	.reg-steps::before { display: none; }
}
.reg-step {
	display: flex; flex-direction: column; align-items: center;
	text-align: center;
	gap: 10px;
	position: relative;
	z-index: 1;
	padding: 0 8px;
}
@media (max-width: 540px) {
	.reg-step { flex-direction: row; align-items: center; text-align: left; }
}
.reg-step__num {
	width: 64px; height: 64px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	box-shadow: 0 10px 30px -8px var(--c-accent);
	flex-shrink: 0;
}
.reg-step--done .reg-step__num { background: var(--c-live); box-shadow: 0 10px 30px -8px var(--c-live); }
.reg-step--done .reg-step__num::after { content: '✓'; }
.reg-step--done .reg-step__num span { display: none; }
.reg-step__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.98rem;
	color: #fff;
	margin: 0;
}
.reg-step__desc {
	color: var(--c-text-3);
	font-size: 0.82rem;
	margin: 0;
}

/* Form section */
.reg-form-section {
	padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
	background: #0a0a0c;
}
.reg-form {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.reg-form__step {
	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: 28px;
	padding: clamp(32px, 4vw, 56px);
	margin-bottom: 24px;
}
.reg-form__step-head {
	display: flex; align-items: center; gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.reg-form__step-num {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(255,45,32,.15);
	border: 1px solid rgba(255,45,32,.4);
	color: var(--c-accent);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	flex-shrink: 0;
}
.reg-form__step-title {
	font-family: var(--font-display);
	font-size: clamp(1.3rem, 2vw, 1.7rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	margin: 0;
	color: #fff;
}

.reg-form__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
@media (max-width: 540px) { .reg-form__grid { grid-template-columns: 1fr; } }
.reg-form__field { display: flex; flex-direction: column; gap: 8px; }
.reg-form__field--full { grid-column: 1 / -1; }
.reg-form__field label {
	font-size: 0.78rem;
	color: var(--c-text-2);
	font-weight: 600;
	letter-spacing: 0.02em;
}
.reg-form__field input,
.reg-form__field select,
.reg-form__field textarea {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 12px;
	color: #fff;
	padding: 14px 18px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color .25s var(--ease-soft), background .2s;
}
.reg-form__field input:focus,
.reg-form__field select:focus,
.reg-form__field textarea:focus {
	outline: 0;
	border-color: var(--c-accent);
	background: rgba(255,45,32,.04);
}
.reg-form__field-help {
	font-size: 0.78rem;
	color: var(--c-text-3);
	font-style: italic;
}

/* Photo upload zone */
.photo-upload {
	display: flex; gap: 24px;
	align-items: center;
	padding: 28px;
	background: rgba(255,255,255,.04);
	border: 2px dashed rgba(255,255,255,.18);
	border-radius: 20px;
	transition: border-color .25s var(--ease-soft), background .2s;
}
.photo-upload:hover { border-color: var(--c-accent); background: rgba(255,45,32,.04); }
@media (max-width: 540px) { .photo-upload { flex-direction: column; text-align: center; } }

.photo-upload__avatar {
	width: 120px; height: 120px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--c-bg-3) 0%, var(--c-bg-2) 100%);
	border: 2px solid rgba(255,255,255,.1);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	color: var(--c-text-3);
	position: relative;
}
.photo-upload__avatar::after {
	content: '';
	position: absolute;
	width: 60px; height: 60px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606060' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>") center/contain no-repeat;
}

.photo-upload__body { flex: 1; }
.photo-upload__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	color: #fff;
	margin: 0 0 6px;
}
.photo-upload__desc {
	color: var(--c-text-2);
	font-size: 0.92rem;
	margin: 0 0 14px;
}
.photo-upload__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-upload__btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.15);
	color: #fff;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.photo-upload__btn:hover { background: rgba(255,45,32,.15); border-color: var(--c-accent); }
.photo-upload__btn--primary { background: var(--c-accent); border-color: var(--c-accent); }
.photo-upload__btn--primary:hover { background: var(--c-accent-2); border-color: var(--c-accent-2); }
.photo-upload__rules {
	margin-top: 14px;
	display: flex; gap: 12px; flex-wrap: wrap;
	font-size: 0.78rem; color: var(--c-text-3);
}
.photo-upload__rules span::before {
	content: '✓';
	color: var(--c-live);
	font-weight: 700;
	margin-right: 4px;
}

/* Consent block */
.reg-consent {
	display: flex; flex-direction: column; gap: 14px;
	padding-top: 14px;
}
.reg-consent label {
	display: grid; grid-template-columns: 24px 1fr; gap: 12px;
	align-items: flex-start;
	font-size: 0.92rem;
	color: var(--c-text-2);
	cursor: pointer;
	line-height: 1.5;
}
.reg-consent label input { width: 22px; height: 22px; margin-top: 2px; cursor: pointer; }
.reg-consent label a { color: var(--c-accent); text-decoration: underline; }

/* Submit button */
.reg-submit {
	display: flex; gap: 16px; flex-wrap: wrap;
	margin-top: 24px;
	justify-content: center;
}

/* Why online section */
.reg-why {
	background: var(--c-bg-deep);
	padding: clamp(60px, 8vw, 120px) 0;
}
.reg-why__head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 48px;
	padding: 0 var(--gutter);
}
.reg-why__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
@media (max-width: 880px) { .reg-why__grid { grid-template-columns: 1fr; } }
.reg-why__card {
	padding: 28px;
	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-align: left;
}
.reg-why__icon {
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 14px;
	background: rgba(255,45,32,.1);
	border: 1px solid rgba(255,45,32,.3);
	color: var(--c-accent);
	margin-bottom: 18px;
}
.reg-why__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.reg-why__card h3 {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 8px;
	color: #fff;
}
.reg-why__card p {
	color: var(--c-text-2);
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0;
}

/* Hero CTA banner — link na rejestrację z FP */
.reg-cta-banner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
	padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 40px);
	background: linear-gradient(135deg, rgba(46,224,107,.08) 0%, rgba(255,255,255,.02) 100%);
	border: 1px solid rgba(46,224,107,.3);
	border-radius: var(--radius-card);
	max-width: 1240px;
	margin: 32px auto 0;
}
@media (max-width: 720px) {
	.reg-cta-banner { grid-template-columns: 1fr; text-align: left; }
}
.reg-cta-banner__icon {
	width: 56px; height: 56px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--c-live) 0%, #1ea954 100%);
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 10px 30px -10px rgba(46,224,107,.5);
}
.reg-cta-banner__icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }
.reg-cta-banner__text {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.reg-cta-banner__title {
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.8vw, 1.4rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0;
}
.reg-cta-banner__title em { color: var(--c-live); font-style: normal; }
.reg-cta-banner__cta {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 24px;
	border-radius: 999px;
	background: var(--c-live);
	color: #0a0a0c;
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
	transition: background-color .25s var(--ease-soft), color .25s var(--ease-soft), transform .25s var(--ease-soft);
}
.reg-cta-banner__cta:hover { background: #1ea954; color: #0a0a0c; transform: translateY(-2px); }
