/* LEVEL Centrum Sportu - strona startowa. System designu: level-kameralny-premium. */

:root {
	--bg: #17191C;
	--surface: #1E2124;
	--ink: #F4F4F2;
	--muted: #9B948C;
	--line: #2E3134;
	--accent: #B47F48;
	--accent-hover: #C99259;

	--font-display: 'Archivo', system-ui, sans-serif;
	--font-body: 'Manrope', system-ui, sans-serif;

	--wrap: 1280px;
	--pad: clamp(20px, 4vw, 48px);
	--gutter: max(var(--pad), calc((100vw - var(--wrap)) / 2));
	--radius: 2px;
	--section: clamp(88px, 13vh, 168px);
	--diag: 11%;
}

/* Reset o zerowej specyficznosci - nie przykrywa regul komponentow. */
:where(.level-landing) *,
:where(.level-landing) *::before,
:where(.level-landing) *::after {
	box-sizing: border-box;
}

:where(.level-landing) h1,
:where(.level-landing) h2,
:where(.level-landing) h3,
:where(.level-landing) p,
:where(.level-landing) ul,
:where(.level-landing) figure {
	margin: 0;
	padding: 0;
}

:where(.level-landing) ul {
	list-style: none;
}

:where(.level-landing) img {
	max-width: 100%;
	height: auto;
	display: block;
}

html {
	scroll-behavior: smooth;
	background: var(--bg);
}

body.level-landing {
	position: relative;
	margin: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Zywe tlo: dwie miedziane poswiaty dryfujace pod trescia + siatka ukosnych linii. */
body.level-landing::before {
	content: '';
	position: fixed;
	inset: -25%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(38rem 38rem at 24% 16%, rgba(180, 127, 72, 0.14), transparent 62%),
		radial-gradient(34rem 34rem at 84% 74%, rgba(180, 127, 72, 0.10), transparent 60%),
		radial-gradient(30rem 30rem at 58% 46%, rgba(180, 127, 72, 0.06), transparent 64%);
	animation: l-drift 52s ease-in-out infinite alternate;
	will-change: transform;
}

body.level-landing::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: repeating-linear-gradient( 24deg, rgba(244, 244, 242, 0.022) 0 1px, transparent 1px 10px );
}

@keyframes l-drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}

	to {
		transform: translate3d(-3.5%, 2.5%, 0) scale(1.06);
	}
}

.l-main {
	position: relative;
	z-index: 1;
}

.l-wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--pad);
}

.l-h2 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 4.2vw, 3.5rem);
	line-height: 1.0;
	letter-spacing: -0.02em;
	color: var(--ink);
}

/* ---------- Hero ---------- */

.l-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46vw;
	align-items: center;
	min-height: 100svh;
}

.l-hero__body {
	position: relative;
	z-index: 2;
	padding-block: clamp(56px, 9vh, 104px);
	padding-inline: var(--pad) clamp(24px, 3vw, 48px);
	padding-inline-start: var(--gutter);
	max-width: 800px;
}

.l-logo {
	width: clamp(220px, 22vw, 320px);
	height: auto;
}

.l-hero__brand {
	margin-bottom: clamp(40px, 7vh, 80px);
}

.l-hero__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.6rem, 5.1vw, 4.6rem);
	line-height: 0.96;
	letter-spacing: -0.028em;
}

.l-hero__sub {
	display: block;
	margin-top: clamp(18px, 2.6vh, 28px);
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.l-hero__lead {
	margin-top: clamp(24px, 3.4vh, 36px);
	max-width: 45ch;
	color: var(--muted);
}

.l-hero__actions {
	margin-top: clamp(28px, 4vh, 44px);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.l-hero__media {
	position: relative;
	height: 100svh;
	overflow: hidden;
}

.l-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	clip-path: polygon(var(--diag) 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Miedziana krawedz wzdluz ukosu. */
.l-hero__media::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, var(--accent), rgba(180, 127, 72, 0.25));
	clip-path: polygon(var(--diag) 0%, calc(var(--diag) + 0.16%) 0%, 0.16% 100%, 0% 100%);
	pointer-events: none;
}

.l-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(96deg, rgba(23, 25, 28, 0.95) 0%, rgba(23, 25, 28, 0.35) 18%, rgba(23, 25, 28, 0) 42%);
	clip-path: polygon(var(--diag) 0%, 100% 0%, 100% 100%, 0% 100%);
	pointer-events: none;
}

/* ---------- Przyciski ---------- */

.l-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 17px 28px;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	background: var(--accent);
	color: #17191C;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s ease, transform 0.15s ease, color 0.25s ease, border-color 0.25s ease;
}

.l-btn:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

.l-btn:active {
	transform: translateY(1px);
}

.l-btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.l-btn--ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
}

.l-btn--ghost:hover {
	background: transparent;
	border-color: var(--accent);
	color: var(--accent);
}

/* ---------- Co jest w srodku ---------- */

.l-inside {
	padding-block: var(--section);
}

.l-inside__grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(32px, 5vw, 88px);
}

.l-inside__head {
	position: sticky;
	top: clamp(40px, 12vh, 96px);
	align-self: start;
}

.l-list__item {
	display: grid;
	grid-template-columns: 1fr 1.35fr;
	gap: clamp(16px, 3vw, 48px);
	padding-block: clamp(26px, 3.4vh, 38px);
	border-top: 1px solid var(--line);
}

.l-list__item:last-child {
	border-bottom: 1px solid var(--line);
}

.l-list__item h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.l-list__item p {
	color: var(--muted);
	font-size: 0.9375rem;
	max-width: 60ch;
}

/* ---------- Mozaika zdjec ---------- */

.l-mosaic {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(12px, 1.6vw, 22px);
	padding-inline-end: var(--pad);
	padding-bottom: var(--section);
}

.l-mosaic figure {
	overflow: hidden;
}

.l-mosaic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.l-mosaic figure:hover img {
	transform: scale(1.04);
}

.l-mosaic__a {
	grid-column: 1 / span 7;
	aspect-ratio: 16 / 10;
}

.l-mosaic__b {
	grid-column: 8 / span 5;
	aspect-ratio: 4 / 5;
	align-self: end;
	margin-bottom: clamp(0px, 5vh, 56px);
}

.l-mosaic__c {
	grid-column: 2 / span 4;
	aspect-ratio: 4 / 5;
	margin-top: clamp(0px, 4vh, 48px);
}

.l-mosaic__d {
	grid-column: 6 / span 7;
	aspect-ratio: 3 / 2;
	align-self: center;
}

/* ---------- Hyrox ---------- */

.l-hyrox {
	position: relative;
	min-height: min(78svh, 720px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.l-hyrox__media {
	position: absolute;
	inset: 0;
}

.l-hyrox__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.l-hyrox::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(23, 25, 28, 0.94) 0%, rgba(23, 25, 28, 0.55) 42%, rgba(23, 25, 28, 0.1) 78%);
	z-index: 1;
}

.l-hyrox__copy {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: clamp(44px, 7vh, 88px);
}

.l-hyrox__copy p {
	margin-top: 20px;
	max-width: 44ch;
	color: var(--ink);
	opacity: 0.86;
}

/* ---------- Przewijany pas zdjec ---------- */
.l-strip {
	padding-block: var(--section);
	width: 100%;
	overflow: hidden;
}

.l-strip__track {
	display: flex;
	gap: clamp(12px, 1.6vw, 22px);
	padding-inline: var(--gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
}

.l-strip__track::-webkit-scrollbar {
	display: none;
}

.l-strip__track:active {
	cursor: grabbing;
}

.l-strip figure {
	flex: 0 0 clamp(230px, 24vw, 400px);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	scroll-snap-align: center;
	border-radius: var(--radius);
	cursor: pointer;
	user-select: none;
}

.l-strip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.l-strip figure:hover img {
	transform: scale(1.04);
}

/* ---------- Lightbox (Powiększenie) ---------- */
.l-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(23, 25, 28, 0.96);
	backdrop-filter: blur(8px);
	display: none;
	z-index: 9999;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.l-lightbox.is-open {
	display: flex;
	opacity: 1;
}

.l-lightbox__close {
	position: absolute;
	top: clamp(16px, 3vw, 32px);
	right: clamp(16px, 3vw, 32px);
	background: transparent;
	border: none;
	color: var(--ink);
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
	z-index: 10000;
	transition: color 0.25s ease;
}

.l-lightbox__close:hover {
	color: var(--accent);
}

.l-lightbox__track {
	display: flex;
	width: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: grab;
}

.l-lightbox__track::-webkit-scrollbar {
	display: none;
}

.l-lightbox__track figure {
	flex: 0 0 100vw;
	height: 100vh;
	padding: clamp(20px, 5vw, 60px);
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: center;
	margin: 0;
}

.l-lightbox__track img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* ---------- Kamienica ---------- */

.l-house {
	padding-block: 0 var(--section);
}

.l-house__lead {
	margin-top: clamp(20px, 3vh, 28px);
	max-width: 56ch;
	color: var(--muted);
}

.l-floors {
	margin-top: clamp(40px, 6vh, 72px);
}

.l-floor {
	display: grid;
	grid-template-columns: clamp(72px, 8vw, 120px) 1fr auto;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	padding-block: clamp(22px, 3vh, 34px);
	padding-inline: 0;
	border-top: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.3s ease, padding-inline 0.35s ease, background 0.35s ease;
}

.l-floors .l-floor:last-child {
	border-bottom: 1px solid var(--line);
}

.l-floor__level {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.9rem, 3.2vw, 2.9rem);
	line-height: 1;
	color: var(--line);
	transition: color 0.3s ease;
}

.l-floor--own .l-floor__level {
	color: var(--accent);
}

.l-floor__text h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.1rem, 1.8vw, 1.45rem);
	line-height: 1.15;
}

.l-floor__text p {
	margin-top: 4px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.l-floor__tag {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
	transition: color 0.3s ease;
}

.l-floor--own .l-floor__tag {
	color: var(--accent);
}

a.l-floor:hover {
	border-color: var(--accent);
	padding-inline: clamp(8px, 1.4vw, 20px);
	background: rgba(180, 127, 72, 0.05);
}

a.l-floor:hover .l-floor__level,
a.l-floor:hover .l-floor__tag {
	color: var(--accent);
}

a.l-floor:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}

/* ---------- Zapis ---------- */

.l-signup {
	background: rgba(30, 33, 36, 0.82);
	border-block: 1px solid var(--line);
	padding-block: var(--section);
}

.l-signup__grid {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: clamp(36px, 5vw, 88px);
	align-items: start;
}

.l-signup__copy p {
	margin-top: clamp(20px, 3vh, 28px);
	max-width: 46ch;
	color: var(--muted);
}

/* Forminator - dopasowanie do systemu designu. */

.l-signup .forminator-ui,
.l-signup .forminator-ui * {
	font-family: var(--font-body);
}

.l-signup .forminator-row {
	margin-bottom: 28px;
}

.l-signup .forminator-label {
	display: block;
	margin-bottom: 10px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.l-signup .forminator-input,
.l-signup input[type="email"],
.l-signup input[type="text"] {
	width: 100%;
	padding: 14px 2px;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-size: 1.0625rem;
	line-height: 1.4;
	transition: border-color 0.25s ease;
}

.l-signup .forminator-input::placeholder,
.l-signup input[type="email"]::placeholder {
	color: #6E6862;
}

.l-signup .forminator-input:focus,
.l-signup input[type="email"]:focus {
	outline: none;
	border-bottom-color: var(--accent);
}

.l-signup .forminator-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--muted);
	cursor: pointer;
}

.l-signup .forminator-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 3px 0 0;
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
}

.l-signup .forminator-checkbox-box {
	display: none;
}

.l-signup .forminator-checkbox-label {
	flex: 1 1 auto;
}

/* Pusty kontener, ktory Forminator drukuje przed formularzem. */
.l-signup div.forminator-custom-form {
	display: none;
}

/* Bez JS formularz i tak ma byc widoczny. */
html.no-js .l-signup form.forminator-ui {
	display: block !important;
}

.l-signup .forminator-required {
	color: var(--accent);
}

.l-signup .forminator-button-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 17px 32px;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	background: var(--accent);
	color: #17191C;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.l-signup .forminator-button-submit:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

.l-signup .forminator-error-message,
.l-signup .forminator-response-message.forminator-error {
	color: #D98B6A;
	font-size: 0.8125rem;
}

.l-signup .forminator-response-message.forminator-success {
	color: var(--accent);
	font-size: 0.9375rem;
	border: 0;
	background: transparent;
	padding: 0;
}

/* ---------- Stopka ---------- */

.l-footer {
	border-top: 1px solid var(--line);
	padding-block: clamp(36px, 5vh, 56px);
}

.l-footer__grid {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(20px, 4vw, 48px);
}

.l-logo--small {
	width: 240px;
}

.l-footer__addr {
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.l-footer__note {
	color: var(--muted);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-align: right;
}

.l-footer__by {
	display: block;
	margin-top: 6px;
	color: #6E6862;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.25s ease;
}

.l-footer__by:hover {
	color: var(--accent);
}

.l-footer__by:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ---------- Ruch ---------- */

.js .l-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .l-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Wejscie hero po zaladowaniu. */
.js .l-hero__body > * {
	opacity: 0;
	transform: translateY(20px);
	animation: l-enter 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.js .l-hero__brand {
	animation-delay: 0.05s;
}

.js .l-hero__title {
	animation-delay: 0.16s;
}

.js .l-hero__lead {
	animation-delay: 0.28s;
}

.js .l-hero__actions {
	animation-delay: 0.4s;
}

.js .l-hero__media img {
	animation: l-hero-zoom 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes l-enter {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes l-hero-zoom {
	from {
		transform: scale(1.07);
	}

	to {
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	body.level-landing::before {
		animation: none;
	}

	.js .l-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.js .l-hero__body > *,
	.js .l-hero__media img {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.l-strip {
		overflow-x: auto;
	}

	.l-strip__track {
		animation: none;
	}

	.l-mosaic img {
		transition: none;
	}
}

/* ---------- Tablet ---------- */

@media (max-width: 1180px) {
	.l-hero {
		grid-template-columns: minmax(0, 1fr) 42vw;
	}

	.l-inside__grid {
		grid-template-columns: 0.8fr 1.2fr;
	}

	.l-mosaic__c {
		grid-column: 1 / span 5;
	}

	.l-mosaic__d {
		grid-column: 6 / span 7;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
	:root {
		--section: clamp(64px, 9vh, 104px);
	}

	.l-hero {
		grid-template-columns: 1fr;
		min-height: 100svh;
		align-items: end;
	}

	.l-hero__media {
		position: absolute;
		inset: 0;
		height: 100%;
		z-index: 0;
	}

	.l-hero__media img {
		clip-path: none;
	}

	.l-hero__media::before {
		display: none;
	}

	.l-hero__media::after {
		clip-path: none;
		background: linear-gradient(180deg, rgba(23, 25, 28, 0.9) 0%, rgba(23, 25, 28, 0.62) 34%, rgba(23, 25, 28, 0.93) 78%, #17191C 100%);
	}

	.l-hero__body {
		padding-block: clamp(72px, 12vh, 120px) clamp(48px, 8vh, 88px);
		padding-inline: var(--pad);
		max-width: none;
	}

	.l-hero__brand {
		margin-bottom: clamp(28px, 5vh, 48px);
	}

	.l-hero__title {
		font-size: clamp(2.5rem, 11vw, 3.6rem);
	}

	.l-hero__lead {
		color: #C4BDB5;
		font-size: 1rem;
	}

	.l-inside__grid,
	.l-list__item,
	.l-signup__grid {
		grid-template-columns: 1fr;
	}

	.l-inside__head {
		position: static;
		margin-bottom: 8px;
	}

	.l-list__item {
		gap: 10px;
	}

	.l-mosaic {
		grid-template-columns: repeat(6, 1fr);
		padding-inline: 0;
	}

	.l-mosaic__a {
		grid-column: 1 / span 6;
		aspect-ratio: 16 / 10;
	}

	.l-mosaic__b {
		grid-column: 2 / span 5;
		margin-bottom: 0;
	}

	.l-mosaic__c {
		grid-column: 1 / span 4;
		margin-top: 0;
	}

	.l-mosaic__d {
		grid-column: 1 / span 6;
	}

	.l-strip figure {
		flex: 0 0 62vw;
	}

	.l-floor {
		grid-template-columns: 54px 1fr;
		align-items: start;
	}

	a.l-floor:hover {
		padding-inline: 0;
	}

	.l-floor__tag {
		grid-column: 2;
		margin-top: 8px;
	}

	.l-footer__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.l-footer__note {
		text-align: left;
	}
}

@media (max-width: 520px) {
	.l-hero__actions {
		gap: 10px;
	}

	.l-hero__actions .l-btn {
		flex: 1 1 100%;
	}

	.l-mosaic {
		gap: 10px;
	}
}
