/* Kejmilweb — układ zbliżony do dpalomeras.dev */

:root {
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	/* Zgodne z tailwind theme referencji (dpalomeras.dev) */
	--color-dark-1: #31333b;
	--color-dark-2: #2d2e32;
	--color-dark-4: #1e1f24;
	--color-bg: #25262a;
	--color-text: #e4e4e7;
	--color-muted: rgba(255, 255, 255, 0.55);
	--color-teal: #20c997;
	--color-teal-glow: rgba(32, 201, 151, 0.35);
	--font-display: "Shadows Into Light", cursive;
	--font-body: "Geist Sans", "Raleway", system-ui, sans-serif;
	--bprogress-color: #20c997;
	--bprogress-height: 2px;
	--header-pad: 64px;
}

html.topbar--scrolled {
	--header-pad: 52px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

	.marquee__track {
		animation: none !important;
	}

	.splash {
		display: none !important;
	}

	.bprogress__bar {
		transition: none !important;
	}

	html.has-js .hero:not(.hero--ready) .hero__content--fx > * {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		animation: none !important;
	}

	html.has-js .reveal-section:not(.is-inview) * {
		animation: none !important;
	}
}

body {
	margin: 0;
	padding-top: var(--header-pad);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-dark-2);
	transition: padding-top 0.35s var(--ease-out-expo);
}

body.is-topbar-nav-open {
	overflow: hidden;
	touch-action: none;
}

#home,
section[id].reveal-section {
	scroll-margin-top: calc(var(--header-pad) + 12px);
}

a {
	color: var(--color-teal);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.screen-reader-text {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--color-teal);
	color: #111;
	font-weight: 700;
}

/* ——— NProgress (jak bprogress) ——— */
.bprogress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	z-index: 100001;
	pointer-events: none;
}

.bprogress.is-active {
	height: var(--bprogress-height);
}

.bprogress__bar {
	width: 0;
	height: var(--bprogress-height);
	background: var(--bprogress-color);
	box-shadow: 0 0 10px var(--bprogress-color), 0 0 5px var(--bprogress-color);
	transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
	will-change: width;
}

/* ——— Splash / canvas ——— */
.splash {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	background: var(--color-dark-2);
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.splash.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.splash__inner {
	display: grid;
	place-items: center;
}

/* ——— Top bar ——— */
.topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99990;
	isolation: isolate;
	background: rgba(45, 46, 50, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition:
		background 0.35s var(--ease-out-expo),
		backdrop-filter 0.35s ease,
		box-shadow 0.35s ease,
		border-color 0.35s ease;
}

html.topbar--scrolled .topbar {
	background: rgba(28, 29, 33, 0.76);
	backdrop-filter: blur(16px);
	border-bottom-color: rgba(255, 255, 255, 0.05);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.38);
}

/* Otwarte menu mobilne: bez blur na pasku — tekst był „rozmazany” (backdrop + warstwy) */
.topbar.is-nav-open {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	background: rgba(18, 19, 22, 0.98);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.topbar__backdrop {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: var(--header-pad);
	/* Musi być niżej niż .topbar__inner — inaczej „mgła” przykrywa menu i nic nie da się kliknąć */
	z-index: 0;
	background: rgba(5, 6, 10, 0.58);
	backdrop-filter: blur(5px);
	opacity: 0;
	animation: kejmil-backdrop-in 0.35s var(--ease-out-expo) forwards;
}

.topbar.is-nav-open .topbar__backdrop {
	display: block;
	opacity: 1;
}

@keyframes kejmil-backdrop-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.topbar__inner {
	position: relative;
	z-index: 10;
	max-width: 1400px;
	margin: 0 auto;
	padding: 1rem 1.35rem;
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 0.65rem 1.15rem;
	min-height: 56px;
	transition:
		padding 0.35s var(--ease-out-expo),
		min-height 0.35s var(--ease-out-expo);
}

html.topbar--scrolled .topbar__inner {
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
	min-height: 48px;
}

.topbar__logo {
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	font-family: var(--font-display);
	font-size: 1.42rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	text-decoration: none;
	transition: font-size 0.35s var(--ease-out-expo);
}

html.topbar--scrolled .topbar__logo {
	font-size: 1.22rem;
}

.topbar__toggle {
	display: none;
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	background: linear-gradient(145deg, rgba(40, 42, 48, 0.95) 0%, rgba(22, 23, 27, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		background 0.25s ease;
}

.topbar__toggle:hover {
	border-color: rgba(32, 201, 151, 0.45);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(32, 201, 151, 0.12);
}

.topbar.is-nav-open .topbar__toggle {
	border-color: rgba(32, 201, 151, 0.5);
	background: linear-gradient(145deg, rgba(32, 201, 151, 0.12) 0%, rgba(22, 23, 27, 0.98) 100%);
}

.topbar__burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 22px;
	height: 16px;
	pointer-events: none;
}

.topbar__burger-line {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition:
		transform 0.38s var(--ease-out-expo),
		opacity 0.28s ease,
		background 0.25s ease;
	transform-origin: center;
}

.topbar.is-nav-open .topbar__burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
	background: var(--color-teal);
}

.topbar.is-nav-open .topbar__burger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.2);
}

.topbar.is-nav-open .topbar__burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
	background: var(--color-teal);
}

.topbar__nav {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	width: 100%;
	min-width: 0;
}

.topbar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem 0.85rem;
}

.topbar__list > li {
	margin: 0;
}

.topbar__mail-drawer {
	display: none;
}

.topbar__list a {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	padding: 0.38rem 0.45rem;
	border-radius: 8px;
	transition:
		color 0.2s ease,
		background 0.2s ease;
	white-space: nowrap;
}

.topbar__list a:hover {
	color: var(--color-teal);
	background: rgba(32, 201, 151, 0.08);
	text-decoration: none;
}

.topbar__mail {
	font-size: 0.78rem !important;
	letter-spacing: 0.03em !important;
	text-transform: none !important;
	font-weight: 600 !important;
	color: var(--color-teal) !important;
}

.topbar__mail:hover {
	color: #fff !important;
}

.topbar__mail--bar {
	grid-column: 4;
	grid-row: 1;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 0.42rem 0.85rem;
	border-radius: 999px;
	font-size: 0.76rem !important;
	letter-spacing: 0.02em !important;
	font-weight: 600 !important;
	text-transform: none !important;
	color: var(--color-teal) !important;
	text-decoration: none !important;
	background: rgba(32, 201, 151, 0.1);
	border: 1px solid rgba(32, 201, 151, 0.28);
	box-shadow: 0 0 20px rgba(32, 201, 151, 0.08);
	transition:
		background 0.25s ease,
		border-color 0.25s ease,
		color 0.2s ease,
		box-shadow 0.25s ease;
}

.topbar__mail--bar:hover {
	color: #fff !important;
	background: rgba(32, 201, 151, 0.22);
	border-color: rgba(32, 201, 151, 0.45);
	box-shadow: 0 4px 24px rgba(32, 201, 151, 0.18);
}

.topbar__lang {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	align-self: center;
	font-size: 0.9rem;
	font-weight: 700;
}

.topbar__logo-accent {
	color: var(--color-teal);
}

.topbar__lang-link {
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
}

.topbar__lang-link.is-active,
.topbar__lang-link:hover {
	color: var(--color-teal);
	text-decoration: none;
}

.topbar__lang-sep {
	color: #52525b;
	margin: 0 0.2rem;
}

/* Desktop: „sheet” jest przezroczysty w layoucie — tylko lista jak wcześniej */
@media (min-width: 1101px) {
	.topbar__sheet {
		display: contents;
	}

	.topbar__sheet-kicker,
	.topbar__sheet-hint {
		display: none !important;
	}

	.topbar__link-meta {
		display: none !important;
	}
}

@media (max-width: 1100px) {
	.topbar__inner {
		grid-template-columns: 1fr auto auto;
		grid-template-rows: auto auto;
		align-items: center;
	}

	.topbar__logo {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.topbar__toggle {
		display: flex;
		grid-column: 2;
		grid-row: 1;
	}

	.topbar__lang {
		grid-column: 3;
		grid-row: 1;
	}

	.topbar__mail--bar {
		display: none !important;
	}

	.topbar__nav {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: stretch;
		padding-top: 0.25rem;
	}

	/* Panel jak „sheet” — animacja zamiast display:none na liście */
	.topbar__sheet {
		grid-column: 1 / -1;
		width: 100%;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		pointer-events: none;
		transform: translateY(-6px);
		transition:
			max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
			opacity 0.32s ease,
			transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	.topbar.is-nav-open .topbar__sheet {
		max-height: min(88vh, 680px);
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.topbar__sheet-kicker {
		margin: 0.15rem 0 0.35rem;
		font-size: 0.62rem;
		font-weight: 800;
		letter-spacing: 0.24em;
		text-transform: uppercase;
		color: rgba(32, 201, 151, 0.95);
	}

	.topbar__sheet-hint {
		margin: 0 0 1rem;
		font-size: 0.78rem;
		line-height: 1.45;
		font-weight: 500;
		color: rgba(255, 255, 255, 0.48);
		max-width: 26rem;
	}

	.topbar__mail-drawer {
		display: list-item;
		margin-top: 0.35rem;
		padding-top: 0.65rem;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.topbar__mail-drawer .topbar__mail {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0.75rem 0.85rem;
		font-size: 0.9rem !important;
		text-align: center;
		border-radius: 14px;
		background: linear-gradient(135deg, rgba(32, 201, 151, 0.2) 0%, rgba(22, 23, 27, 0.55) 100%);
		border: 1px solid rgba(32, 201, 151, 0.38);
		word-break: break-all;
		box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
		min-height: 48px;
	}

	.topbar__list {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
		margin: 0;
		padding: 0.85rem 0.95rem 1rem;
		border-radius: 18px;
		background: linear-gradient(168deg, rgba(34, 36, 44, 0.99) 0%, rgba(16, 17, 21, 0.99) 100%);
		border: 1px solid rgba(255, 255, 255, 0.12);
		box-shadow:
			0 24px 56px rgba(0, 0, 0, 0.58),
			inset 0 1px 0 rgba(255, 255, 255, 0.07);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		filter: none;
		transform: translateZ(0);
		-webkit-font-smoothing: antialiased;
		position: relative;
		z-index: 2;
	}

	.topbar__list > li:not(.topbar__mail-drawer) a {
		position: relative;
		z-index: 1;
		display: flex;
		align-items: center;
		gap: 0.75rem;
		min-height: 52px;
		padding: 0.65rem 0.75rem 0.65rem 0.65rem;
		font-size: 0.95rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: none;
		border-radius: 12px;
		color: rgba(255, 255, 255, 0.96);
		background: rgba(255, 255, 255, 0.03);
		border: 1px solid transparent;
		touch-action: manipulation;
		-webkit-tap-highlight-color: rgba(32, 201, 151, 0.28);
		transition:
			background 0.2s ease,
			border-color 0.2s ease,
			color 0.2s ease,
			transform 0.15s ease;
	}

	.topbar__list > li:not(.topbar__mail-drawer) a:hover,
	.topbar__list > li:not(.topbar__mail-drawer) a:focus-visible {
		background: rgba(32, 201, 151, 0.12);
		border-color: rgba(32, 201, 151, 0.28);
		color: #fff;
		outline: none;
	}

	.topbar__list > li:not(.topbar__mail-drawer) a:active {
		transform: scale(0.99);
	}

	.topbar__list > li:not(.topbar__mail-drawer) a.is-active {
		background: rgba(32, 201, 151, 0.16);
		border-color: rgba(32, 201, 151, 0.4);
		color: #fff;
	}

	.topbar__link-meta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 1.85rem;
		font-size: 0.62rem;
		font-weight: 800;
		font-variant-numeric: tabular-nums;
		letter-spacing: 0.06em;
		color: rgba(32, 201, 151, 0.75);
	}

	.topbar__link-label {
		flex: 1;
		text-align: left;
		line-height: 1.2;
	}

	.topbar__list > li:not(.topbar__mail-drawer) a::after {
		content: "";
		width: 0.5rem;
		height: 0.5rem;
		margin-left: auto;
		border-right: 2px solid rgba(255, 255, 255, 0.28);
		border-bottom: 2px solid rgba(255, 255, 255, 0.28);
		transform: rotate(-45deg);
		flex-shrink: 0;
		opacity: 0.85;
	}

	.topbar__mail {
		font-size: 0.9rem !important;
	}

	.topbar__backdrop {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: rgba(8, 9, 12, 0.88);
	}
}

@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
	.topbar__sheet {
		transition: opacity 0.2s ease;
		transform: none;
	}

	.topbar.is-nav-open .topbar__sheet {
		transform: none;
	}

	.topbar__list > li:not(.topbar__mail-drawer) a:active {
		transform: none;
	}
}

/* ——— Scroll arrows (lewy dół) ——— */
.scroll-arrows {
	position: fixed;
	bottom: 2.5rem;
	right: 0.75rem;
	left: auto;
	z-index: 99980;
	display: flex;
	flex-direction: column;
	gap: 0;
	pointer-events: none;
	opacity: 0.9;
	transition: opacity 0.4s ease;
}

.scroll-arrows.is-hidden {
	opacity: 0;
}

.scroll-arrows__chev {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--color-teal);
	border-bottom: 2px solid var(--color-teal);
	transform: rotate(45deg);
	animation: arrow-bounce 1.4s ease-in-out infinite;
	will-change: transform;
}

.scroll-arrows__chev:nth-child(1) {
	animation-delay: 0s;
}

.scroll-arrows__chev:nth-child(2) {
	animation-delay: -0.2s;
	margin-top: -4px;
}

.scroll-arrows__chev:nth-child(3) {
	animation-delay: -0.4s;
	margin-top: -4px;
}

@keyframes arrow-bounce {
	0%,
	100% {
		transform: rotate(45deg) translate(0, 0);
		opacity: 0.35;
	}

	50% {
		transform: rotate(45deg) translate(4px, 4px);
		opacity: 1;
	}
}

/* ——— Notice ——— */
.notice {
	position: fixed;
	top: calc(var(--header-pad) + 8px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 99998;
	padding: 0.85rem 1.25rem;
	border-radius: 12px;
	font-weight: 600;
	max-width: min(92vw, 480px);
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.notice--success {
	background: #14532d;
	color: #ecfccb;
	border: 1px solid #22c55e;
}

.notice--error {
	background: #450a0a;
	color: #fecaca;
	border: 1px solid #ef4444;
}

/* ——— Hero ——— */
.hero {
	position: relative;
	min-height: min(100svh, 880px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem 5rem;
	overflow: hidden;
	background: linear-gradient(165deg, #1a1b1f 0%, var(--color-bg) 50%, var(--color-dark-2) 100%);
}

.hero__vignette {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 28%;
	max-width: 420px;
	pointer-events: none;
	z-index: 1;
}

.hero__vignette--left {
	left: 0;
	background: linear-gradient(to right, var(--color-dark-2), transparent);
}

.hero__vignette--right {
	right: 0;
	background: linear-gradient(to left, var(--color-dark-2), transparent);
}

/* Litery KC — bardzo duże (~połowa sekcji), za treścią; K wyżej w lewo, C niżej w prawo względem środka hero */
.hero__letters {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.hero__letter {
	position: absolute;
	left: 50%;
	/* ~środek pionowy kolumny z avatarem przy wycentrowanym hero */
	top: clamp(30%, 38vh, 44%);
	font-family: "Geist Sans", var(--font-body);
	font-weight: 700;
	line-height: 0.82;
	color: transparent;
	-webkit-text-stroke: clamp(1.5px, 0.2vw, 3px) rgba(255, 255, 255, 0.11);
	user-select: none;
	/* jedna litera ~ jak połowa szerokości widoku */
	font-size: clamp(10rem, 48vw, 32rem);
	letter-spacing: -0.07em;
	opacity: 1;
}

.hero__letter--k {
	transform: translate(calc(-50% - min(16vw, 7.5rem)), calc(-50% - min(5vh, 3.5rem))) rotate(-9deg);
}

.hero__letter--c {
	transform: translate(calc(-50% + min(16vw, 7.5rem)), calc(-50% + min(5vh, 3.5rem))) rotate(7deg);
}

.hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 20rem;
	margin: 0 auto;
	text-align: center;
}

.hero__avatar-wrap {
	position: relative;
	z-index: 1;
	width: 132px;
	height: 132px;
	flex-shrink: 0;
	margin: 0 auto 1rem;
}

.hero__avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid rgba(32, 201, 151, 0.45);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero__badge {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: rgba(32, 201, 151, 0.12);
	color: var(--color-teal);
	font-size: 0.72rem;
	font-weight: 700;
	font-family: var(--font-body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.65rem, 5.2vw, 2.25rem);
	font-weight: 300;
	line-height: 1.18;
	color: #fff;
	font-family: var(--font-body);
	letter-spacing: -0.025em;
}

.hero__sub {
	margin: 0;
	max-width: 20rem;
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.65;
	letter-spacing: 0.02em;
	color: var(--color-muted);
}

.hero__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	justify-content: center;
	justify-items: stretch;
	width: 100%;
	max-width: 22rem;
	margin: 3.5rem auto 0;
	position: relative;
	z-index: 3;
}

.hero__cta-full {
	grid-column: 1 / -1;
}

.hero__actions .btn {
	font-size: 0.98rem;
	letter-spacing: 0.04em;
	text-align: center;
}

/* ——— Buttons ——— */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 1.5rem;
	border-radius: 999px;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.btn--solid {
	background: #fff;
	color: #111;
	border-color: transparent;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.btn--solid:hover {
	background: #d4d4d8;
	color: #111;
}

.btn--outline {
	background: rgba(45, 46, 50, 0.35);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
}

.btn--outline:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.btn--wide {
	width: 100%;
	max-width: 320px;
}

/* ——— Marquee ——— */
.marquee-wrap {
	background: var(--color-dark-2);
	padding: 1rem 0 1.5rem;
	border-block: 1px solid rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.marquee {
	max-width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
	/* Domyślnie animacja CSS (fallback); po JS dodawana jest .marquee__track--raf — ciągły ruch rAF bez skoku pętli */
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 3rem;
	padding: 0.5rem 0;
	animation: marquee-x 38s linear infinite;
	width: max-content;
	will-change: transform;
	backface-visibility: hidden;
}

.marquee__track.marquee__track--raf {
	animation: none;
}

.marquee__group {
	display: flex;
	align-items: center;
	gap: 3rem;
	flex-shrink: 0;
}

@keyframes marquee-x {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(var(--marquee-shift, -50%), 0, 0);
	}
}

.marquee__item {
	flex-shrink: 0;
	opacity: 0.85;
	filter: grayscale(0.15);
	transition: opacity 0.2s ease;
}

.marquee__item:hover {
	opacity: 1;
}

/* ——— Section title (underline jak referencja) ——— */
.title-underline {
	margin: 0 auto 2.5rem;
	text-align: center;
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
	position: relative;
	padding-bottom: 0.85rem;
}

.title-underline::after {
	content: "";
	display: block;
	width: 120px;
	height: 4px;
	margin: 0.75rem auto 0;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
	transform-origin: center;
	transition: transform 0.9s var(--ease-out-expo);
}

.title-underline--tight {
	margin-bottom: 0.75rem;
}

.block-lead {
	text-align: center;
	max-width: 560px;
	margin: 0 auto 2rem;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.text-teal {
	color: var(--color-teal);
}

.kicker {
	display: block;
	margin: 0 0 0.75rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(161, 161, 170, 0.55);
}

.kicker--spaced {
	margin-top: 2rem;
}

/* ——— About block ——— */
.block-about {
	padding: 3.5rem 1.25rem 4.5rem;
	background: var(--color-dark-2);
}

.block-about__grid {
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

@media (min-width: 900px) {
	.block-about__grid {
		flex-direction: row;
		align-items: flex-start;
		gap: 3.5rem;
		padding: 0 1.25rem;
	}

	.block-about__col {
		flex: 1;
		min-width: 0;
	}

	.block-about__col--tech {
		flex: 0 0 42%;
	}
}

.intro-head {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.intro-head__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(32, 201, 151, 0.35);
	box-shadow: 0 8px 28px rgba(32, 201, 151, 0.15);
	flex-shrink: 0;
}

.intro-head__title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 300;
	line-height: 1.2;
	color: #fff;
}

.intro-head__tag {
	margin: 0.5rem 0 0;
	font-size: 1.1rem;
	font-style: italic;
	font-weight: 300;
	color: #fff;
	line-height: 1.45;
}

.body-quiet {
	margin: 0 0 0.85rem;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.75;
	letter-spacing: 0.03em;
	color: var(--color-muted);
}

.body-quiet--small {
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}

.skill-cards {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.skill-card {
	position: relative;
	display: flex;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: var(--color-dark-1);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
	transform: scale(1.02);
	z-index: 2;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.skill-card__glyph {
	position: absolute;
	top: 1.1rem;
	right: 1.25rem;
	width: 22px;
	height: 22px;
	color: var(--color-teal);
	flex-shrink: 0;
}

.skill-card__body {
	padding-right: 2rem;
}

.skill-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--color-teal);
}

.skill-card__text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.about-certs {
	margin: 0.35rem 0 0;
	padding: 0;
}

.about-certs__card {
	position: relative;
	margin: 0;
	padding: 1.2rem 1.3rem 1.25rem 1.4rem;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(148deg, rgba(32, 201, 151, 0.14) 0%, rgba(38, 40, 48, 0.92) 38%, rgba(20, 21, 25, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 22px 50px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.about-certs__card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 4px;
	border-radius: 18px 0 0 18px;
	background: linear-gradient(180deg, var(--color-teal), rgba(99, 102, 241, 0.65), rgba(32, 201, 151, 0.35));
	pointer-events: none;
}

.about-certs__card-glow {
	position: absolute;
	top: -45%;
	right: -18%;
	width: 70%;
	height: 130%;
	background: radial-gradient(circle at 35% 35%, rgba(32, 201, 151, 0.38), transparent 58%);
	pointer-events: none;
	opacity: 0.9;
}

.about-certs__badge {
	position: relative;
	z-index: 1;
	display: inline-block;
	margin: 0 0 0.55rem;
	padding: 0.28rem 0.65rem;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(32, 201, 151, 0.16);
	border: 1px solid rgba(32, 201, 151, 0.35);
	border-radius: 999px;
	box-shadow: 0 0 24px rgba(32, 201, 151, 0.12);
}

.about-certs__title {
	position: relative;
	z-index: 1;
	margin: 0 0 0.45rem;
	font-size: 1.08rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.32;
	color: #fff;
	font-family: var(--font-body);
}

.about-certs__meta {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.58;
	font-weight: 300;
	color: rgba(228, 228, 232, 0.88);
	max-width: 26rem;
}

.mini-timeline {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	border-left: 2px solid rgba(32, 201, 151, 0.35);
	padding-left: 1rem;
}

.mini-timeline__item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin-bottom: 1rem;
	font-size: 0.88rem;
	color: var(--color-muted);
}

.mini-timeline__item strong {
	color: #fff;
	font-size: 1rem;
}

.mini-timeline__meta {
	font-size: 0.8rem;
	color: var(--color-teal);
}

.mini-timeline__desc {
	font-size: 0.82rem;
	line-height: 1.5;
}

.tech-bubbles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
}

@media (min-width: 520px) {
	.tech-bubbles {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tech-bubbles__item {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.55rem;
	background: var(--color-dark-1);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 0.78rem;
	font-weight: 600;
}

.tech-bubbles__item span {
	line-height: 1.25;
	hyphens: auto;
}

/* ——— Projects + deszcz + efekty (wspólne tło) ——— */
.projects-results-shell {
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		180deg,
		var(--color-dark-4) 0%,
		#262830 18%,
		#21232b 40%,
		#1d1f27 62%,
		#1a1c24 82%,
		var(--color-dark-2) 100%
	);
}

.projects-results-shell .block-projects {
	background: transparent;
}

/* ——— Projects section ——— */
.block-projects {
	position: relative;
	min-height: auto;
	padding: 2rem 1rem 4.5rem;
	background: transparent;
	overflow: hidden;
}

@media (min-width: 768px) {
	.block-projects {
		min-height: 100svh;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-bottom: 5.5rem;
	}
}

.block-projects__pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.55;
	mask-image: radial-gradient(ellipse 800px 500px at 50% 40%, #000 0%, transparent 70%);
}

.block-projects__grid-svg {
	width: 100%;
	height: 100%;
}

.block-projects__wave-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	line-height: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.block-projects__wave-top svg {
	display: block;
	width: 100%;
	height: clamp(80px, 14vw, 160px);
}

.block-projects__inner {
	position: relative;
	z-index: 5;
	max-width: 960px;
	margin: 0 auto;
	padding-top: clamp(3rem, 10vw, 6rem);
}

/* ——— Fireworks (klasy animate-* w dpalomeras-ref.css) ——— */
.fireworks {
	position: relative;
	z-index: 3;
	width: 100%;
	margin-top: -2rem;
	padding: 0 0.5rem 2rem;
	pointer-events: none;
}

.fireworks__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, minmax(64px, auto));
	gap: 0;
	max-width: 900px;
	margin: 0 auto;
	min-height: 220px;
}

.fireworks__cell {
	position: relative;
	overflow: visible;
}

.fireworks__burst {
	position: absolute;
	inset: 0;
	pointer-events: none;
	will-change: transform;
}

.fireworks__fall-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3px;
	height: 100px;
	transform: translate(-50%, -100%);
	pointer-events: none;
}

.fireworks__fall-line {
	width: 100%;
	height: 100%;
	background: #fff;
	border-radius: 1px;
}

.fireworks__sparks {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 56px;
}

.fireworks__spark {
	position: absolute;
	background: #fff;
	pointer-events: none;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.fireworks__burst .animate-fall,
	.fireworks__burst .animate-jump-left,
	.fireworks__burst .animate-jump-right {
		animation: none !important;
		opacity: 0.85 !important;
		transform: none !important;
	}

	.fireworks__fall-line {
		opacity: 0.7;
	}
}

/* ——— Carousel (projekty) ——— */
.carousel--projects {
	position: relative;
}

.carousel--projects {
	max-width: min(1040px, 100%);
	margin: 2.25rem auto 0;
	padding: 0 0.25rem;
}

.carousel--projects .carousel__viewport {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	background: linear-gradient(155deg, #2f3138 0%, #1e1f24 55%, #18191d 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.45),
		0 32px 80px rgba(0, 0, 0, 0.58),
		inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.carousel--projects .carousel__viewport::before {
	content: "";
	position: absolute;
	top: 0;
	left: 8%;
	right: 8%;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
	opacity: 0.65;
	z-index: 4;
	pointer-events: none;
}

.carousel__track {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel--projects .carousel__track {
	align-items: flex-start;
}

.carousel__slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.carousel--projects .carousel__slide {
	height: auto;
}

.carousel--projects .project-card {
	display: grid;
	grid-template-columns: 1.12fr 1fr;
	gap: 0;
	align-items: stretch;
	min-height: 0;
}

@media (max-width: 820px) {
	.carousel--projects .project-card {
		grid-template-columns: 1fr;
		min-height: 0;
	}
}

.carousel--projects .project-card__media {
	position: relative;
	overflow: hidden;
	background: var(--color-dark-4);
	min-height: clamp(220px, 34vw, 360px);
}

.carousel--projects .project-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, transparent 55%, rgba(30, 31, 36, 0.45) 100%);
	pointer-events: none;
}

@media (max-width: 820px) {
	.carousel--projects .project-card__media::after {
		background: linear-gradient(180deg, transparent 40%, rgba(30, 31, 36, 0.5) 100%);
	}
}

.carousel--projects .project-card__media img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
}

/* Karta bez zdjęcia: case + kontekst + monogram + metryka + ikony stacku */
.carousel--projects .project-card__media--abstract {
	display: flex;
	align-items: stretch;
	justify-content: center;
	min-height: 220px;
}

@media (prefers-reduced-motion: no-preference) {
	.carousel--projects .project-card__media--abstract {
		transition:
			filter 0.5s ease,
			transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.carousel--projects .project-card:hover .project-card__media--abstract {
		filter: brightness(1.07) saturate(1.06);
	}
}

@media (prefers-reduced-motion: reduce) {
	.carousel--projects .project-card__media--abstract {
		transition: none;
	}

	.carousel--projects .project-card:hover .project-card__media--abstract {
		filter: none;
	}
}

.carousel--projects .project-card__media--abstract::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.45;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 22px 22px;
	pointer-events: none;
	mask-image: radial-gradient(ellipse 96% 86% at 50% 48%, #000 12%, transparent 74%);
}

.project-card__abstract {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	gap: 0.65rem;
	text-align: center;
	padding: clamp(0.85rem, 2.8vw, 1.5rem) clamp(0.85rem, 2.5vw, 1.35rem);
	width: 100%;
	min-height: min(280px, 42svh);
	flex: 1;
}

.project-card__abstract-top {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	width: 100%;
	gap: 0.75rem;
}

.project-card__abstract-case {
	font-size: 0.72rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.5);
}

.project-card__abstract-period {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.42);
	white-space: nowrap;
}

.project-card__abstract-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	gap: 0.45rem;
	min-height: 0;
}

.project-card__abstract-kicker {
	margin: 0;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
}

.project-card__abstract-context {
	margin: 0;
	max-width: 16rem;
	font-size: clamp(0.72rem, 1.8vw, 0.8rem);
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.72);
}

.project-card__abstract-mono {
	margin: 0;
	padding: 0.15rem 0 0;
	font-size: clamp(2.35rem, 9.5vw, 3.65rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.95;
	color: rgba(255, 255, 255, 0.94);
	text-shadow:
		0 2px 28px rgba(0, 0, 0, 0.55),
		0 0 52px rgba(255, 255, 255, 0.07);
}

.project-card__abstract-spotlight {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.28rem;
	padding: 0.55rem 0.35rem 0;
	margin-top: 0.1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.project-card__abstract-pct {
	font-size: clamp(1.35rem, 4vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--color-teal);
	text-shadow: 0 0 28px rgba(32, 201, 151, 0.28);
}

.project-card__abstract-spot-label {
	max-width: 14rem;
	font-size: 0.62rem;
	font-weight: 600;
	line-height: 1.35;
	color: rgba(228, 228, 232, 0.78);
}

.project-card__abstract-stack {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.15rem 0 0;
}

.project-card__abstract-stack-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
	min-width: 42px;
	min-height: 42px;
	padding: 7px 8px;
	border-radius: 11px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Globalne img { max-width:100%; height:auto } rozciągało ikony w flex — tu pełna kontrola proporcji */
.carousel--projects .project-card__abstract-stack-item img {
	display: block;
	max-width: none;
	width: auto;
	height: auto;
	max-height: 26px;
	max-width: 34px;
	min-width: 0;
	object-fit: contain;
	object-position: center center;
	opacity: 0.94;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.project-card__abstract-stack-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.75);
}

.carousel--projects .project-card--accent-2 .project-card__abstract-pct {
	color: #a5b4fc;
	text-shadow: 0 0 28px rgba(129, 140, 248, 0.32);
}

.carousel--projects .project-card--accent-3 .project-card__abstract-pct {
	color: #fbbf24;
	text-shadow: 0 0 28px rgba(251, 191, 36, 0.26);
}

.carousel--projects .project-card--accent-1 .project-card__media--abstract {
	background:
		radial-gradient(ellipse 90% 72% at 16% 20%, rgba(32, 201, 151, 0.38) 0%, transparent 54%),
		radial-gradient(ellipse 64% 52% at 88% 80%, rgba(32, 201, 151, 0.15) 0%, transparent 50%),
		linear-gradient(158deg, #1a2220 0%, #232b2a 44%, #1b1f22 100%);
}

.carousel--projects .project-card--accent-2 .project-card__media--abstract {
	background:
		radial-gradient(ellipse 88% 70% at 20% 18%, rgba(129, 140, 248, 0.34) 0%, transparent 52%),
		radial-gradient(ellipse 62% 50% at 86% 78%, rgba(99, 102, 241, 0.17) 0%, transparent 52%),
		linear-gradient(152deg, #1b1c2a 0%, #262843 46%, #1a1b28 100%);
}

.carousel--projects .project-card--accent-3 .project-card__media--abstract {
	background:
		radial-gradient(ellipse 86% 68% at 18% 24%, rgba(251, 191, 36, 0.24) 0%, transparent 54%),
		radial-gradient(ellipse 60% 48% at 84% 76%, rgba(251, 191, 36, 0.11) 0%, transparent 50%),
		linear-gradient(155deg, #242220 0%, #2d2924 45%, #1f1d1b 100%);
}

.carousel--projects .project-card__body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.65rem;
	padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.35rem, 4vw, 2.25rem);
	background: linear-gradient(180deg, rgba(37, 38, 42, 0.4) 0%, rgba(30, 31, 36, 0.95) 100%);
	border-left: 1px solid rgba(255, 255, 255, 0.05);
	overflow: visible;
}

.carousel--projects .project-card__title {
	margin: 0 0 0.55rem;
	font-size: clamp(1.28rem, 2.8vw, 1.55rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: #fff;
	font-family: var(--font-body);
}

.carousel--projects .project-card__case {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0 0 0.35rem;
}

.carousel--projects .project-card__block {
	margin: 0;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.carousel--projects .project-card__label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-teal);
}

.carousel--projects .project-card__text {
	margin: 0;
	font-size: clamp(0.8rem, 1.45vw, 0.88rem);
	line-height: 1.55;
	font-weight: 400;
	color: rgba(228, 228, 231, 0.9);
}

.carousel--projects .project-card__metrics {
	list-style: none;
	margin: 0.15rem 0 0.35rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.carousel--projects .project-card__metric {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	min-width: 0;
	padding: 0.45rem 0.65rem;
	border-radius: 10px;
	background: rgba(32, 201, 151, 0.1);
	border: 1px solid rgba(32, 201, 151, 0.22);
}

.carousel--projects .project-card__metric-pct {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-teal);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.carousel--projects .project-card__metric-label {
	font-size: 0.68rem;
	line-height: 1.35;
	font-weight: 600;
	color: rgba(228, 228, 232, 0.82);
	max-width: 11rem;
}

.carousel--projects .project-card__stack {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.carousel--projects .project-card__stack li {
	font-size: 0.74rem;
	font-weight: 700;
	padding: 0.28rem 0.6rem;
	border-radius: 8px;
	background: rgba(32, 201, 151, 0.14);
	color: var(--color-teal);
	border: 1px solid rgba(32, 201, 151, 0.2);
}

.carousel--projects .project-card--accent-1 .project-card__body {
	background: linear-gradient(165deg, rgba(32, 201, 151, 0.16) 0%, rgba(32, 201, 151, 0.04) 38%, rgba(28, 29, 34, 0.97) 100%);
	border-left: 1px solid rgba(32, 201, 151, 0.22);
	box-shadow: inset 0 0 48px rgba(32, 201, 151, 0.06);
}

.carousel--projects .project-card--accent-1 .project-card__media::after {
	background: linear-gradient(118deg, transparent 38%, rgba(32, 201, 151, 0.18) 72%, rgba(24, 25, 30, 0.62) 100%);
}

.carousel--projects .project-card--accent-2 .project-card__body {
	background: linear-gradient(168deg, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0.05) 40%, rgba(26, 27, 36, 0.97) 100%);
	border-left: 1px solid rgba(129, 140, 248, 0.28);
	box-shadow: inset 0 0 52px rgba(99, 102, 241, 0.07);
}

.carousel--projects .project-card--accent-2 .project-card__media::after {
	background: linear-gradient(105deg, transparent 42%, rgba(129, 140, 248, 0.2) 75%, rgba(26, 27, 34, 0.65) 100%);
}

.carousel--projects .project-card--accent-3 .project-card__body {
	background: linear-gradient(162deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.04) 36%, rgba(32, 28, 24, 0.96) 100%);
	border-left: 1px solid rgba(251, 191, 36, 0.22);
	box-shadow: inset 0 0 48px rgba(251, 191, 36, 0.05);
}

.carousel--projects .project-card--accent-3 .project-card__media::after {
	background: linear-gradient(112deg, transparent 40%, rgba(251, 191, 36, 0.12) 68%, rgba(30, 29, 28, 0.62) 100%);
}

/* Projekty na mobile: mniej wysokości — krótszy scroll */
@media (max-width: 820px) {
	.block-projects {
		padding: 1.15rem 0.65rem 2.25rem;
	}

	.block-projects__inner {
		padding-top: 1.5rem;
	}

	.fireworks {
		margin-top: -0.75rem;
		padding: 0 0.35rem 1.1rem;
	}

	.fireworks__grid {
		min-height: 120px;
		grid-template-rows: repeat(3, minmax(40px, auto));
	}

	.carousel--projects .project-card__media--abstract {
		min-height: 0;
	}

	.carousel--projects .project-card__media img {
		min-height: 0;
		max-height: 200px;
	}

	.project-card__abstract {
		min-height: auto;
		gap: 0.35rem;
		padding: 0.55rem 0.55rem 0.65rem;
	}

	.project-card__abstract-top {
		margin-bottom: -0.1rem;
	}

	.project-card__abstract-kicker {
		font-size: 0.55rem;
		letter-spacing: 0.18em;
	}

	.project-card__abstract-context {
		font-size: 0.68rem;
		line-height: 1.3;
	}

	.project-card__abstract-mono {
		font-size: clamp(1.65rem, 7.5vw, 2.35rem);
		padding: 0;
	}

	.project-card__abstract-spotlight {
		padding: 0.35rem 0.2rem 0;
		margin-top: 0;
		gap: 0.2rem;
	}

	.project-card__abstract-pct {
		font-size: clamp(1.05rem, 3.4vw, 1.35rem);
	}

	.project-card__abstract-spot-label {
		font-size: 0.55rem;
		line-height: 1.3;
		max-width: 11rem;
	}

	.project-card__abstract-stack {
		gap: 0.22rem;
		padding-top: 0;
	}

	.project-card__abstract-stack-item {
		min-width: 34px;
		min-height: 34px;
		padding: 4px 5px;
	}

	.carousel--projects .project-card__body {
		padding: 0.75rem 0.85rem 0.95rem;
		gap: 0.45rem;
		max-height: none;
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.06);
	}

	.carousel--projects .project-card__title {
		font-size: 1.12rem;
		margin-bottom: 0.35rem;
	}

	.carousel--projects .project-card__case {
		gap: 0.4rem;
		margin-bottom: 0.15rem;
	}

	.carousel--projects .project-card__block {
		padding: 0.4rem 0.5rem;
		border-radius: 9px;
	}

	.carousel--projects .project-card__label {
		font-size: 0.58rem;
		margin-bottom: 0.22rem;
	}

	.carousel--projects .project-card__text {
		font-size: 0.78rem;
		line-height: 1.45;
	}

	.carousel--projects .project-card__metrics {
		gap: 0.3rem;
		margin: 0.05rem 0 0.2rem;
	}

	.carousel--projects .project-card__metric {
		padding: 0.32rem 0.48rem;
		border-radius: 9px;
	}

	.carousel--projects .project-card__metric-pct {
		font-size: 1rem;
	}

	.carousel--projects .project-card__metric-label {
		font-size: 0.62rem;
	}

	.carousel--projects .project-card__stack {
		gap: 0.3rem;
	}

	.carousel--projects .project-card__stack li {
		font-size: 0.66rem;
		padding: 0.2rem 0.45rem;
	}

	.carousel--projects {
		margin-bottom: 0.25rem;
	}
}

.carousel__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(22, 23, 27, 0.92);
	backdrop-filter: blur(10px);
	color: #fff;
	cursor: pointer;
	z-index: 12;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
	transition:
		border-color 0.25s ease,
		background 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.2s ease;
}

.carousel__btn:hover {
	border-color: rgba(32, 201, 151, 0.55);
	background: rgba(32, 201, 151, 0.12);
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(32, 201, 151, 0.15);
}

.carousel__btn:active {
	transform: translateY(-50%) scale(0.96);
}

.carousel__btn--prev {
	left: clamp(-6px, -1vw, 12px);
}

.carousel__btn--next {
	right: clamp(-6px, -1vw, 12px);
}

.carousel__btn--prev::after,
.carousel__btn--next::after {
	content: "";
	width: 11px;
	height: 11px;
	border-left: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
}

.carousel__btn--prev::after {
	transform: rotate(45deg);
	margin-left: 5px;
}

.carousel__btn--next::after {
	transform: rotate(-135deg);
	margin-right: 5px;
}

@media (max-width: 640px) {
	.carousel__btn--prev {
		left: 8px;
	}

	.carousel__btn--next {
		right: 8px;
	}

	.carousel__btn {
		width: 44px;
		height: 44px;
		opacity: 0.92;
	}
}

.carousel__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.35rem;
}

.carousel__dots button {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	cursor: pointer;
	padding: 0;
	transition: width 0.3s ease, background 0.25s ease, opacity 0.25s ease;
	opacity: 0.7;
}

.carousel__dots button.is-active {
	width: 26px;
	background: var(--color-teal);
	opacity: 1;
	box-shadow: 0 0 16px rgba(32, 201, 151, 0.45);
}

/* ——— Spadające białe linie (jak projekty / fireworks) — cała sekcja efektów ——— */
.results-fall {
	position: absolute;
	left: 0;
	right: 0;
	top: clamp(-14rem, -28vh, -7rem);
	bottom: 0;
	margin: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}

.results-fall__grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.results-fall__cell {
	position: relative;
	min-height: 0;
	overflow: visible;
}

.results-fall .fireworks__burst {
	will-change: transform;
}

.results-fall .fireworks__fall-wrap {
	height: clamp(72px, 12vh, 120px);
}

.results-fall__line {
	opacity: 0.88;
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
}

@media (max-width: 560px) {
	.results-fall__grid {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(6, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.results-fall .animate-fall {
		animation: none !important;
		opacity: 0.65 !important;
		transform: none !important;
	}

	.results-fall__line {
		opacity: 0.45;
	}
}

.block-results {
	position: relative;
	padding: 0.25rem 1.25rem 4rem;
	overflow: visible;
	background: transparent;
}

.block-results::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: 0.5;
	pointer-events: none;
	mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, #000 18%, transparent 78%);
}

.block-results__inner {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
}

.block-results__lead {
	text-align: center;
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
}

.results-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.5rem;
	margin: 2rem auto 0;
	max-width: 640px;
}

@media (max-width: 560px) {
	.results-stats {
		grid-template-columns: 1fr;
	}
}

.results-stat {
	padding: 1.15rem 1.2rem;
	border-radius: 16px;
	background: linear-gradient(155deg, rgba(32, 201, 151, 0.11) 0%, rgba(20, 21, 26, 0.96) 100%);
	border: 1px solid rgba(32, 201, 151, 0.2);
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
	text-align: center;
}

.results-stat__value {
	margin: 0 0 0.35rem;
	font-size: clamp(1.85rem, 5vw, 2.35rem);
	font-weight: 700;
	color: var(--color-teal);
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.results-stat__title {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
}

.results-stat__hint {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: rgba(180, 182, 192, 0.88);
}

.results-copy {
	margin: 2rem auto 0;
	max-width: 40rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.results-cta {
	margin: 2rem 0 0;
	text-align: center;
}

.results-cta__btn {
	min-width: 220px;
}

.results-cta-sub {
	margin: 0.75rem auto 0;
	text-align: center;
	max-width: 28rem;
	font-size: 0.88rem;
}

/* ——— Contact ——— */
.block-contact {
	position: relative;
	padding: 3.25rem 1.25rem 5.25rem;
	background:
		radial-gradient(ellipse 90% 55% at 50% -15%, rgba(32, 201, 151, 0.07), transparent 52%),
		radial-gradient(ellipse 70% 40% at 100% 80%, rgba(32, 201, 151, 0.04), transparent 45%),
		linear-gradient(180deg, #15161a 0%, var(--color-dark-2) 32%, #1a1b20 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.block-contact__divider {
	height: 4px;
	margin: 0 auto 2.5rem;
	max-width: min(720px, 92%);
	border-radius: 999px;
	background: linear-gradient(90deg, transparent 5%, rgba(32, 201, 151, 0.5) 50%, transparent 95%);
	box-shadow: 0 0 32px rgba(32, 201, 151, 0.22);
	opacity: 0.95;
}

.block-contact__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding-top: 0.25rem;
}

.block-contact__shell {
	margin-top: 0.65rem;
}

.block-contact__lead {
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	line-height: 1.65;
	color: rgba(228, 228, 232, 0.88);
}

.block-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
	align-items: stretch;
	margin-top: 2.5rem;
}

@media (max-width: 900px) {
	.block-contact__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.contact-aside {
		order: 2;
	}

	.contact-form-wrap {
		order: 1;
	}
}

.contact-aside {
	position: relative;
	padding: 1.65rem 1.4rem 1.5rem;
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(160deg, rgba(32, 201, 151, 0.09) 0%, rgba(28, 29, 34, 0.92) 42%, rgba(20, 21, 25, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow:
		0 22px 50px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-aside::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	border-radius: 20px 0 0 20px;
	background: linear-gradient(180deg, var(--color-teal), rgba(32, 201, 151, 0.25));
	opacity: 0.85;
	pointer-events: none;
}

.contact-aside__title {
	margin: 0 0 1.2rem;
	padding-left: 0.15rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
}

.contact-aside__mail-hint {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	margin-top: 1.35rem;
	padding: 1rem 1.05rem 1.05rem 1.1rem;
	border-radius: 14px;
	background: linear-gradient(132deg, rgba(32, 201, 151, 0.12) 0%, rgba(26, 27, 32, 0.94) 55%, rgba(22, 23, 27, 0.98) 100%);
	border: 1px solid rgba(32, 201, 151, 0.22);
	box-shadow:
		0 14px 36px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-aside__mail-icon {
	position: relative;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(32, 201, 151, 0.28), rgba(32, 201, 151, 0.06));
	border: 1px solid rgba(32, 201, 151, 0.38);
	box-shadow: 0 0 20px rgba(32, 201, 151, 0.12);
}

.contact-aside__mail-icon::after {
	content: "\2709";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 1.1rem;
	line-height: 1;
	color: var(--color-teal);
}

.contact-aside__mail-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.58;
	color: rgba(228, 228, 232, 0.9);
}

.contact-aside__mail-text a {
	font-weight: 600;
	word-break: break-word;
	text-decoration: none;
	color: var(--color-teal);
}

.contact-aside__mail-text a:hover {
	text-decoration: underline;
}

.contact-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.05rem;
}

.contact-benefits__item {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	font-size: 0.93rem;
	line-height: 1.58;
	color: rgba(238, 239, 243, 0.92);
}

.contact-benefits__icon {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-top: 0.12rem;
	border-radius: 8px;
	background: rgba(32, 201, 151, 0.12);
	border: 1px solid rgba(32, 201, 151, 0.28);
	box-shadow: 0 0 16px rgba(32, 201, 151, 0.12);
}

.contact-benefits__icon::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 5px;
	width: 5px;
	height: 9px;
	border: solid var(--color-teal);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0.95;
}

.contact-trust {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-top: 1.6rem;
	padding: 1.15rem 1rem 1.1rem;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-trust__badge {
	flex: 0 0 auto;
	min-width: 3.35rem;
	padding: 0.45rem 0.5rem;
	border-radius: 12px;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--color-teal);
	background: rgba(32, 201, 151, 0.12);
	border: 1px solid rgba(32, 201, 151, 0.35);
	box-shadow: 0 0 20px rgba(32, 201, 151, 0.15);
	line-height: 1.2;
}

.contact-trust__body {
	min-width: 0;
}

.contact-trust__label {
	margin: 0 0 0.3rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.contact-trust__text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.52;
	color: var(--color-muted);
}

.contact-form-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0;
	border-radius: 20px;
	background: linear-gradient(165deg, #23252c 0%, #1a1c21 55%, #16171b 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.4),
		0 28px 64px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-form-wrap__head {
	padding: 1.45rem 1.5rem 1.15rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	background: linear-gradient(180deg, rgba(32, 201, 151, 0.06) 0%, transparent 100%);
}

.contact-form-wrap__title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	font-family: var(--font-body);
}

.contact-form-wrap__sub {
	margin: 0 auto;
	max-width: 36rem;
	padding: 0.7rem 0.95rem;
	font-size: 0.84rem;
	line-height: 1.62;
	text-align: center;
	color: rgba(210, 212, 220, 0.95);
	background: rgba(0, 0, 0, 0.2);
	border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-form {
	position: relative;
	max-width: none;
	margin: 0;
	padding: 1.35rem 1.5rem 1.5rem;
}

.contact-form__row {
	display: grid;
	gap: 0.85rem 1rem;
}

.contact-form__row--2 {
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

.contact-form__row--phone-city {
	align-items: start;
}

@media (max-width: 520px) {
	.contact-form__row--2 {
		grid-template-columns: 1fr;
	}
}

.contact-form__field {
	margin: 0 0 0.95rem;
}

.contact-form__field:last-of-type {
	margin-bottom: 0;
}

.contact-form label.contact-form__label {
	display: block;
	margin-bottom: 0.42rem;
	font-weight: 600;
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.86);
}

.contact-form__label-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	width: 100%;
}

.contact-form__label-inner .contact-form__label-text {
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.contact-form__label--req > .contact-form__label-text {
	display: inline;
	line-height: 1.4;
}

.contact-form__req-star {
	display: inline;
	margin-left: 0.16em;
	font-size: 1.38em;
	font-weight: 800;
	line-height: 0;
	color: #f87171;
	letter-spacing: 0;
	text-transform: none;
	vertical-align: 0.04em;
}

.contact-form__opt {
	flex: 0 0 auto;
	display: inline-block;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form__hint-box {
	margin: 0.55rem 0 0;
	padding: 0.65rem 0.75rem 0.65rem 0.85rem;
	border-radius: 10px;
	background: rgba(32, 201, 151, 0.07);
	border: 1px solid rgba(32, 201, 151, 0.18);
	border-left: 3px solid rgba(32, 201, 151, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-form__stack--phone {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 0;
}

.contact-form__field--phone {
	margin-bottom: 0;
}

.contact-form__hint-box--phone {
	margin: 0.4rem 0 0.85rem;
	max-width: 100%;
	padding: 0.38rem 0.55rem 0.42rem 0.65rem;
	border-style: dashed;
	border-color: rgba(32, 201, 151, 0.22);
	background: rgba(32, 201, 151, 0.04);
}

.contact-form__hint-copy {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.5;
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: none;
	color: rgba(200, 202, 212, 0.98);
}

.contact-form__hint-box--phone .contact-form__hint-copy {
	font-size: 0.58rem;
	line-height: 1.42;
	color: rgba(148, 152, 168, 0.98);
}

.contact-form__row--phone-city + .contact-form__field {
	margin-top: 0.35rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.82rem 1.05rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	background: rgba(18, 19, 23, 0.75);
	color: var(--color-text);
	font-family: inherit;
	font-size: 1rem;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: rgba(180, 182, 192, 0.55);
	opacity: 1;
}

.contact-form input:hover,
.contact-form textarea:hover {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(22, 23, 28, 0.88);
}

.contact-form textarea {
	min-height: 8.5rem;
	resize: vertical;
	line-height: 1.58;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: rgba(32, 201, 151, 0.5);
	box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.16);
	background: rgba(20, 22, 26, 0.95);
}

.contact-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form__submit {
	display: flex;
	justify-content: center;
	margin-top: 1.45rem;
	margin-bottom: 0;
}

.contact-form__submit .btn {
	width: 100%;
	max-width: none;
	min-height: 52px;
	padding: 0.95rem 1.5rem;
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	justify-content: center;
	border: 1px solid rgba(32, 201, 151, 0.35);
	color: #0b1210;
	background: linear-gradient(145deg, #5eead4 0%, #20c997 38%, #14b8a6 72%, #0d9488 100%);
	box-shadow:
		0 4px 20px rgba(32, 201, 151, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.contact-form__submit .btn:hover {
	color: #050807;
	background: linear-gradient(145deg, #6ff5df 0%, #2dd4bf 45%, #20c997 100%);
	box-shadow:
		0 8px 32px rgba(32, 201, 151, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-form__submit .btn:active {
	transform: translateY(0);
}

.contact-form__note {
	margin: 1rem 0 0;
	padding-top: 0.05rem;
	font-size: 0.78rem;
	line-height: 1.55;
	text-align: center;
	color: rgba(148, 150, 162, 0.95);
	max-width: 26rem;
	margin-left: auto;
	margin-right: auto;
}

/* ——— Modal podziękowania (formularz) ——— */
body.contact-modal-open {
	overflow: hidden;
}

.contact-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.contact-modal.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.contact-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 7, 10, 0.78);
	backdrop-filter: blur(10px);
	cursor: pointer;
}

.contact-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	padding: 0;
	border-radius: 20px;
	background: linear-gradient(165deg, #2e3038 0%, #1e1f24 48%, #18191d 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.5),
		0 32px 90px rgba(0, 0, 0, 0.58),
		0 0 48px rgba(32, 201, 151, 0.1);
	transform: translate3d(0, 14px, 0) scale(0.98);
	transition:
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.3s ease,
		opacity 0.3s ease;
	opacity: 0;
}

.contact-modal--error .contact-modal__dialog {
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.5),
		0 32px 90px rgba(0, 0, 0, 0.58),
		0 0 36px rgba(248, 113, 113, 0.12);
	border-color: rgba(248, 113, 113, 0.2);
}

.contact-modal.is-open .contact-modal__dialog {
	transform: translate3d(0, 0, 0) scale(1);
	opacity: 1;
}

.contact-modal__body {
	padding: 2.35rem 1.75rem 1.65rem;
	text-align: center;
}

.contact-modal__close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.15s ease;
}

.contact-modal__close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.contact-modal__close:active {
	transform: scale(0.96);
}

.contact-modal__close-icon {
	display: block;
	width: 14px;
	height: 14px;
	position: relative;
}

.contact-modal__close-icon::before,
.contact-modal__close-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}

.contact-modal__close-icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.contact-modal__close-icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-modal__icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 1.15rem;
	border-radius: 50%;
	position: relative;
	background: rgba(32, 201, 151, 0.12);
	border: 2px solid rgba(32, 201, 151, 0.45);
	box-shadow: 0 0 28px rgba(32, 201, 151, 0.2);
}

.contact-modal__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 48%;
	width: 10px;
	height: 18px;
	border: solid var(--color-teal);
	border-width: 0 3px 3px 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

.contact-modal--error .contact-modal__icon {
	background: rgba(248, 113, 113, 0.1);
	border-color: rgba(248, 113, 113, 0.45);
	box-shadow: 0 0 24px rgba(248, 113, 113, 0.15);
}

.contact-modal--error .contact-modal__icon::after {
	content: "!";
	width: auto;
	height: auto;
	border: none;
	font-size: 1.65rem;
	font-weight: 800;
	line-height: 1;
	color: #fb923c;
	transform: translate(-50%, -50%);
	top: 50%;
}

.contact-modal__title {
	margin: 0 0 0.65rem;
	padding: 0 0.5rem;
	font-size: 1.28rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	letter-spacing: -0.02em;
	font-family: var(--font-body);
}

.contact-modal__text {
	margin: 0 0 1.5rem;
	padding: 0 0.25rem;
	font-size: 0.92rem;
	line-height: 1.65;
	color: rgba(210, 212, 220, 0.94);
}

.contact-modal__actions {
	display: flex;
	justify-content: center;
}

.contact-modal__actions .contact-modal__ok {
	min-width: 200px;
	padding-left: 2rem;
	padding-right: 2rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.contact-modal--error .contact-modal__actions .contact-modal__ok {
	background: linear-gradient(180deg, #fafafa 0%, #e4e4e7 100%);
	color: #18181b;
}

@media (prefers-reduced-motion: reduce) {
	.contact-modal,
	.contact-modal__dialog {
		transition: none;
	}

	.contact-modal__dialog {
		transform: none;
	}
}

/* ——— Footer ——— */
.site-footer {
	position: relative;
	padding: 0;
	background: linear-gradient(180deg, #141518 0%, #0e0f12 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	overflow: hidden;
}

.site-footer__glow {
	position: absolute;
	top: 0;
	left: 50%;
	width: min(900px, 100%);
	height: 120px;
	transform: translate(-50%, -45%);
	background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(32, 201, 151, 0.18), transparent 70%);
	pointer-events: none;
	opacity: 0.85;
}

.site-footer__inner {
	position: relative;
	z-index: 1;
	max-width: 1120px;
	margin: 0 auto;
	padding: 2.75rem 1.35rem 2rem;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 2.5rem;
	align-items: start;
}

@media (max-width: 820px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 1.15rem;
		padding: 2rem 1rem 1.5rem;
	}

	.site-footer__brand {
		padding-bottom: 0.25rem;
	}

	.site-footer__nav,
	.site-footer__contact {
		padding: 1.05rem 1.15rem 1.15rem;
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.03);
		border: 1px solid rgba(255, 255, 255, 0.07);
		box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
	}

	.site-footer__heading {
		margin-bottom: 0.65rem;
		font-size: 0.64rem;
		letter-spacing: 0.18em;
	}

	.site-footer__links {
		gap: 0.15rem;
	}

	.site-footer__links a {
		display: flex;
		align-items: center;
		min-height: 46px;
		padding: 0.35rem 0.15rem;
		font-size: 0.92rem;
		font-weight: 600;
		border-radius: 10px;
		transition: background 0.2s ease, color 0.2s ease;
	}

	.site-footer__links a:active {
		background: rgba(32, 201, 151, 0.1);
	}

	.site-footer__mail {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 0.72rem 1rem;
		font-size: 0.92rem;
		text-align: center;
		border-radius: 12px;
		background: rgba(32, 201, 151, 0.1);
		border: 1px solid rgba(32, 201, 151, 0.28);
		box-sizing: border-box;
	}

	.site-footer__fine {
		margin-top: 0.65rem;
		font-size: 0.78rem;
	}

	.site-footer__bar {
		padding: 1rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0));
	}
}

.site-footer__brand {
	min-width: 0;
}

.site-footer__logo {
	font-family: var(--font-display);
	font-size: 1.65rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	letter-spacing: -0.02em;
}

.site-footer__logo-accent {
	color: var(--color-teal);
}

.site-footer__tagline {
	margin: 0.65rem 0 0;
	max-width: 22rem;
	font-size: 0.88rem;
	line-height: 1.6;
	font-weight: 300;
	color: rgba(228, 228, 232, 0.72);
}

.site-footer__heading {
	margin: 0 0 0.85rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.site-footer__links a {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(228, 228, 232, 0.88);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__links a:hover {
	color: var(--color-teal);
}

.site-footer__contact {
	min-width: 0;
}

.site-footer__mail {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-teal);
	text-decoration: none;
	word-break: break-all;
	transition: color 0.2s ease;
}

.site-footer__mail:hover {
	color: #fff;
}

.site-footer__fine {
	margin: 0.55rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.42);
}

.site-footer__bar {
	position: relative;
	z-index: 1;
	padding: 1.1rem 1.35rem 1.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.25);
}

.site-footer__copy {
	margin: 0;
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	font-size: 0.8rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.38);
}

/* ——— Simple pages ——— */
.site-main--simple {
	max-width: 720px;
	margin: 0 auto;
	padding: 3rem 1.25rem 4rem;
}

.simple-post__title {
	font-family: var(--font-display);
	font-size: 2rem;
	color: #fff;
}

.simple-post__content {
	color: var(--color-muted);
}

/* ========= Animacje (zbliżenie do Framer Motion / referencji) ========= */

.splash__inner {
	transition: transform 0.45s var(--ease-out-expo), opacity 0.4s ease;
}

.splash.is-done .splash__inner {
	transform: scale(1.06);
	opacity: 0;
}

/* Hero — wejście po splashu (wymaga klasy .hero--ready z JS) */
@keyframes kejmil-pop {
	0% {
		opacity: 0;
		transform: translate3d(0, 40px, 0) scale(0.92);
		filter: blur(14px);
	}

	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
		filter: blur(0);
	}
}

html.has-js .hero:not(.hero--ready) .hero__content--fx > .hero__avatar-wrap,
html.has-js .hero:not(.hero--ready) .hero__content--fx > .hero__badge,
html.has-js .hero:not(.hero--ready) .hero__content--fx > .hero__title,
html.has-js .hero:not(.hero--ready) .hero__content--fx > .hero__sub,
html.has-js .hero:not(.hero--ready) .hero__content--fx > .hero__actions {
	opacity: 0;
	transform: translate3d(0, 44px, 0) scale(0.94);
	filter: blur(12px);
	pointer-events: none;
}

html.has-js .hero.hero--ready .hero__avatar-wrap {
	animation: kejmil-pop 0.95s var(--ease-out-expo) 0.05s forwards;
	pointer-events: auto;
}

html.has-js .hero.hero--ready .hero__badge {
	animation: kejmil-pop 0.98s var(--ease-out-expo) 0.1s forwards;
}

html.has-js .hero.hero--ready .hero__title {
	animation: kejmil-pop 1s var(--ease-out-expo) 0.16s forwards;
}

html.has-js .hero.hero--ready .hero__sub {
	animation: kejmil-pop 1s var(--ease-out-expo) 0.26s forwards;
}

html.has-js .hero.hero--ready .hero__actions {
	animation: kejmil-pop 1.05s var(--ease-out-expo) 0.38s forwards;
	pointer-events: auto;
}

html.has-js .hero.hero--ready .hero__actions .btn {
	pointer-events: auto;
}

/* Scroll reveal — sekcje */
html.has-js .reveal-section:not(.is-inview) .title-underline {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	filter: blur(8px);
	transition: opacity 0.01s;
}

html.has-js .reveal-section.is-inview .title-underline {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	filter: none;
	transition:
		opacity 0.85s var(--ease-out-expo),
		transform 0.85s var(--ease-out-expo),
		filter 0.65s ease;
}

html.has-js .reveal-section:not(.is-inview) .title-underline::after {
	transform: scaleX(0);
}

html.has-js .reveal-section.is-inview .title-underline::after,
html:not(.has-js) .title-underline::after {
	transform: scaleX(1);
}

html.has-js .reveal-section:not(.is-inview) .block-about__grid,
html.has-js .reveal-section:not(.is-inview) .block-projects__inner,
html.has-js .reveal-section:not(.is-inview) .block-results__inner,
html.has-js .reveal-section:not(.is-inview) .block-contact__shell {
	opacity: 0;
	transform: translate3d(0, 36px, 0);
	filter: blur(10px);
}

html.has-js .reveal-section.is-inview .block-about__grid,
html.has-js .reveal-section.is-inview .block-projects__inner,
html.has-js .reveal-section.is-inview .block-results__inner,
html.has-js .reveal-section.is-inview .block-contact__shell {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	filter: none;
	transition:
		opacity 0.9s var(--ease-out-expo),
		transform 0.9s var(--ease-out-expo),
		filter 0.65s ease;
	transition-delay: 0.06s;
}

html.has-js .reveal-section.is-inview .skill-card {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	filter: none;
	transition:
		opacity 0.75s var(--ease-out-expo),
		transform 0.75s var(--ease-out-expo),
		filter 0.55s ease;
}

html.has-js .reveal-section:not(.is-inview) .skill-card {
	opacity: 0;
	transform: translate3d(0, 24px, 0);
	filter: blur(6px);
	transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

html.has-js .reveal-section.is-inview .skill-card:nth-child(1) {
	transition-delay: 0.12s;
}

html.has-js .reveal-section.is-inview .skill-card:nth-child(2) {
	transition-delay: 0.22s;
}

html.has-js .reveal-section:not(.is-inview) .tech-bubbles__item {
	opacity: 0;
	transform: scale(0.92);
}

html.has-js .reveal-section.is-inview .tech-bubbles__item {
	opacity: 1;
	transform: scale(1);
	transition:
		opacity 0.45s var(--ease-out-expo),
		transform 0.55s var(--ease-spring);
}

html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(1) {
	transition-delay: 0.05s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(2) {
	transition-delay: 0.09s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(3) {
	transition-delay: 0.13s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(4) {
	transition-delay: 0.17s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(5) {
	transition-delay: 0.21s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(6) {
	transition-delay: 0.25s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(7) {
	transition-delay: 0.29s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(8) {
	transition-delay: 0.33s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(9) {
	transition-delay: 0.37s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(10) {
	transition-delay: 0.41s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(11) {
	transition-delay: 0.45s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(12) {
	transition-delay: 0.49s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(13) {
	transition-delay: 0.53s;
}
html.has-js .reveal-section.is-inview .tech-bubbles__item:nth-child(14) {
	transition-delay: 0.57s;
}

/* Siatka w tle projektów — subtelny „oddech” */
@keyframes kejmil-pattern-pulse {
	0%,
	100% {
		opacity: 0.5;
	}
	50% {
		opacity: 0.72;
	}
}

.block-projects__pattern {
	animation: kejmil-pattern-pulse 8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.block-projects__pattern {
		animation: none;
		opacity: 0.55;
	}
}

/* Topbar — aktywna sekcja */
.topbar__list a.is-active:not(.topbar__mail) {
	color: var(--color-teal) !important;
	background: rgba(32, 201, 151, 0.14) !important;
	text-shadow: none;
	box-shadow: inset 0 0 0 1px rgba(32, 201, 151, 0.25);
}

/* Karuzela — płynniejszy cień przy slajdzie */
.carousel__viewport {
	transition: box-shadow 0.4s ease;
}

.carousel.is-sliding .carousel__viewport {
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Delikatniejszy efekt spadania w sekcji efektów */
.results-fall {
	opacity: 0.26; /* było dużo mocniej */
}

.results-fall .fireworks__fall-wrap {
	height: clamp(40px, 7vh, 72px); /* krótsze kreski */
}

.results-fall__line {
	opacity: 0.38; /* mniej widoczne */
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.12);
}

/* mniej „gęsto” na mobile */
@media (max-width: 820px) {
	.results-fall {
		opacity: 0.18;
	}
}
@media (max-width: 820px) {
	/* same strzałki mniejsze */
	.carousel--projects .carousel__btn {
		width: 35px;
		height: 35px;
	}
	/* mocniej na boki */
	.carousel--projects .carousel__btn--prev {
		left: -0.35rem;
	}
	.carousel--projects .carousel__btn--next {
		right: -0.35rem;
	}
}