/* Puenta: strona główna (prototyp). Tokeny z packages/brand, układ na wzór deskfirst.com. */

@font-face { font-family: 'Bricolage Grotesque'; src: url(fonty/BricolageGrotesque_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonty/BricolageGrotesque_500Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonty/BricolageGrotesque_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonty/BricolageGrotesque_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonty/BricolageGrotesque_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Literata'; src: url(fonty/Literata_400Regular.ttf) format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Literata'; src: url(fonty/Literata_400Regular_Italic.ttf) format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Literata'; src: url(fonty/Literata_600SemiBold_Italic.ttf) format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }

:root {
	--paper: #f7f8fc; --paper-raised: #ffffff; --paper-sunken: #eceff7;
	--ink: #121a33; --ink-muted: #4a5372; --line: #d6dbea; --line-strong: #7c86a8;
	--atrament: #1d6fb8; --on-atrament: #ffffff; --atrament-soft: #e1f1fb; --atrament-cien: #155a96;
	--zakreslacz: #ffd23f; --on-zakreslacz: #121a33;
	--pamietam: #15803d; --nie-pamietam: #b42318; --on-stan: #ffffff;
	--focus: #1d6fb8; --marka: #121a33;
	--niebo-gora: #c9e2f6; --niebo-srodek: #e4f0fa; --niebo-dol: #f7f8fc;
	--gwiazdy: 0;
	--cien-nav: 0 10px 30px -10px rgba(18, 26, 51, 0.16), 0 1px 0 rgba(18, 26, 51, 0.04);
	--cien-telefon: 0 40px 80px -30px rgba(18, 26, 51, 0.45);
	--font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
	--font-reading: 'Literata', Georgia, serif;
	--gutter: 20px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0e1326; --paper-raised: #171d35; --paper-sunken: #0a0e1d;
		--ink: #eef1fa; --ink-muted: #a9b1cc; --line: #2a3253; --line-strong: #66709a;
		--atrament: #4db0e7; --on-atrament: #0e1326; --atrament-soft: #173450; --atrament-cien: #2b8cc4;
		--pamietam: #4ade80; --nie-pamietam: #ff8a7a; --on-stan: #0e1326;
		--focus: #ffd23f; --marka: #ffffff;
		--niebo-gora: #173450; --niebo-srodek: #111a35; --niebo-dol: #0e1326;
		--gwiazdy: 1;
		--cien-nav: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
		--cien-telefon: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
	}
}

/* ---------- Podstawy ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.55 var(--font-display);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--atrament); text-underline-offset: 3px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
sup { font-size: 0.6em; line-height: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: var(--paper-raised); color: var(--ink); }
.skip:focus { left: 16px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ikona { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ikona.pelna, .pelna { fill: currentColor; stroke: none; }

.kontener { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.kontener-waski { width: min(780px, 100% - 2 * var(--gutter)); }
.srodek { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Typografia ---------- */

.h1 {
	font-weight: 800;
	font-size: clamp(56px, 9vw, 104px);
	line-height: 0.95;
	letter-spacing: -0.04em;
}
.h1 > span, .h2 > span, .h3-duzy > span { display: block; }
.h1 em, .h2 em, .h3-duzy em {
	display: block;
	font-family: var(--font-reading);
	font-style: italic;
	font-weight: 600;
	font-size: 0.9em;
	letter-spacing: -0.015em;
	line-height: 1.12;
}
.h2 {
	font-weight: 700;
	font-size: clamp(38px, 5.6vw, 68px);
	line-height: 1;
	letter-spacing: -0.035em;
}
.h2 em, .h3-duzy em { color: var(--atrament); }
.h3 { font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.h3-duzy { font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-muted); max-width: 40em; }
.etykieta { font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.e-atrament { color: var(--atrament); }
.drobny { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.przypis { margin-top: 28px; font-size: 13px; color: var(--ink-muted); text-align: center; }

/* Żółte zakreślenie (pisak). Bez JS od razu pełne. */
.zakreslenie {
	color: var(--on-zakreslacz);
	background: linear-gradient(var(--zakreslacz), var(--zakreslacz)) no-repeat 0 55% / 100% 86%;
	border-radius: 4px;
	padding: 0 0.12em;
	margin: 0 -0.06em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size 420ms cubic-bezier(0.2, 0.7, 0.2, 1), color 160ms 120ms;
}
.js [data-pisak]:not(.narysowane) { background-size: 0% 86%; color: var(--ink); }

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

.btn {
	--h: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--h);
	padding: 0 30px;
	border: 0;
	border-radius: 999px;
	font: 600 17px/1 var(--font-display);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 120ms ease, background-color 160ms ease;
}
.btn-primary { background: var(--atrament); color: var(--on-atrament); box-shadow: 0 3px 0 var(--atrament-cien); }
.btn-primary:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--atrament-cien); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 0 0 var(--atrament-cien); }
.btn-secondary { background: var(--paper-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), 0 3px 0 var(--line); }
.btn-secondary:hover { transform: translateY(1px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 2px 0 var(--line); }
.btn-secondary:active { transform: translateY(3px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 0 var(--line); }
.btn-s { --h: 44px; padding: 0 18px; font-size: 15px; }

/* Plakietki sklepów (zaślepki do czasu oficjalnych plików) */
.sklepy { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sklep {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 18px 0 14px;
	border-radius: 12px;
	background: #000;
	color: #fff;
	box-shadow: inset 0 0 0 1px #a6a6a6;
	text-decoration: none;
	font-family: var(--font-display);
}
.sklep .ikona { width: 26px; height: 26px; }
.sklep-tekst { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.sklep-tekst small { font-size: 11px; font-weight: 500; }
.sklep-tekst strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.sklep[aria-disabled='true'] { cursor: default; }
.sklep[aria-disabled='true'] > :not(.wkrotce) { opacity: 0.55; }
.wkrotce {
	position: absolute;
	top: -9px;
	right: -8px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--paper-raised);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ---------- Nawigacja ---------- */

.nav {
	position: fixed;
	top: 16px;
	left: 50%;
	z-index: 50;
	transform: translateX(-50%);
	width: min(960px, 100% - 32px);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 10px 10px 10px 26px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: color-mix(in srgb, var(--paper-raised) 88%, transparent);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: var(--cien-nav);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--atrament); }
.logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--marka);
	text-decoration: none;
	font-weight: 800;
	font-size: 25px;
	letter-spacing: -0.03em;
	line-height: 1;
}
.logo img { width: auto; height: 31px; }
.nav-cta { display: flex; justify-content: flex-end; gap: 8px; }

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

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 100svh;
	padding: 136px 0 120px;
	background: linear-gradient(180deg, var(--niebo-gora) 0%, var(--niebo-srodek) 52%, var(--paper) 100%);
}
/* Chmury: plik SVG z szumem jako tło, rysowany raz (nie przy każdej klatce animacji) */
.chmury { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url(obrazy/chmury-dzien.svg) center / cover no-repeat; }
@media (prefers-color-scheme: dark) { .chmury { background-image: url(obrazy/chmury-noc.svg); } }
.chmury-hero {
	-webkit-mask-image: radial-gradient(ellipse 46% 40% at 50% 42%, transparent 20%, #000 88%);
	mask-image: radial-gradient(ellipse 46% 40% at 50% 42%, transparent 20%, #000 88%);
}
.hero::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	z-index: -1;
	height: 220px;
	background: linear-gradient(transparent, var(--paper) 85%);
}
.gwiazdy {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: var(--gwiazdy);
	pointer-events: none;
	background-image:
		radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent),
		radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent),
		radial-gradient(1.4px 1.4px at 41% 26%, #fff 50%, transparent),
		radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent),
		radial-gradient(1.3px 1.3px at 78% 22%, #fff 50%, transparent),
		radial-gradient(1px 1px at 88% 6%, #fff 50%, transparent),
		radial-gradient(1.2px 1.2px at 55% 4%, #fff 50%, transparent),
		radial-gradient(1px 1px at 6% 36%, #fff 50%, transparent),
		radial-gradient(1px 1px at 94% 34%, #fff 50%, transparent),
		radial-gradient(1.1px 1.1px at 34% 40%, #fff 50%, transparent);
	background-size: 100% 70%;
	background-repeat: no-repeat;
}
.gwiazdy-zawsze { opacity: 0.9; }

.hero-tresc {
	position: relative;
	width: min(680px, 100% - 2 * var(--gutter));
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hero-sowa { width: auto; height: 120px; margin-bottom: 22px; }
.przekreslone {
	margin-bottom: 20px;
	padding: 6px 14px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--paper-raised) 65%, transparent);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--ink-muted);
	font-weight: 500;
	font-size: 15px;
}
.przekreslone s { text-decoration-thickness: 1.5px; }
.hero .h1 { margin-bottom: 24px; }
.hero .h1 em { margin-top: 4px; }
.hero .lead { max-width: 34em; margin-bottom: 32px; }

.pisane {
	position: relative;
	width: min(560px, 100%);
	min-height: 140px;
	padding: 18px 22px 22px;
	border-radius: 22px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -24px rgba(18, 26, 51, 0.25);
	text-align: left;
}
.pisane .etykieta { color: var(--atrament); margin-bottom: 8px; }
.pisane-tekst {
	padding-right: 52px;
	font-family: var(--font-reading);
	font-size: 22px;
	line-height: 1.4;
	color: var(--ink);
	min-height: 2.8em;
}
.kursor {
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 2px;
	vertical-align: -0.18em;
	background: var(--atrament);
	animation: mrug 1s steps(1) infinite;
}
@keyframes mrug { 50% { opacity: 0; } }
.pisane-dalej {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--atrament);
	color: var(--on-atrament);
	box-shadow: 0 3px 0 var(--atrament-cien);
	transition: transform 120ms ease, box-shadow 120ms ease;
}
.pisane-dalej:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--atrament-cien); }
.pisane-dalej .ikona { width: 20px; height: 20px; stroke-width: 2.25; }
.pod-polem { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }

.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.cta-nota { font-size: 14px; color: var(--ink-muted); margin-bottom: 14px; }
.cta .btn + .sklepy { margin-top: 18px; }

/* Unoszące się kartki wokół hero (tylko szeroki ekran) */
.unosza { display: none; }
@media (min-width: 1240px) {
	.unosza { display: block; position: absolute; inset: 0; pointer-events: none; }
	.unos {
		position: absolute;
		width: clamp(230px, 18.5vw, 280px);
		transform: translateY(var(--p, 0px));
		animation: unos 7s ease-in-out infinite;
		will-change: transform;
	}
	.unos-a { left: calc(50% - 680px); top: 170px; rotate: -5deg; animation-delay: -1s; }
	.unos-b { left: calc(50% - 560px); top: 520px; rotate: 4deg; width: clamp(170px, 13vw, 200px); animation-delay: -3s; }
	.unos-c { right: calc(50% - 670px); top: 560px; rotate: -3deg; animation-delay: -5s; }
	.unos-d { right: calc(50% - 690px); top: 150px; rotate: 4.5deg; animation-delay: -2s; }
}
@keyframes unos { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.kartka {
	padding: 18px 20px 20px;
	border-radius: 8px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -28px rgba(18, 26, 51, 0.35);
	text-align: left;
}
.kartka-etykiety {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--ink);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.kartka-tytul { font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 10px; }
.kartka-tekst { font-family: var(--font-reading); font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.kartka-cytat {
	font-family: var(--font-reading);
	font-size: 15px;
	line-height: 1.55;
	padding-left: 14px;
	border-left: 2px solid var(--atrament);
}

.mini-film {
	position: relative;
	aspect-ratio: 9 / 14;
	border-radius: 14px;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 38%, rgba(77, 176, 231, 0.22), transparent 55%),
		linear-gradient(180deg, #121a33, #0a0e1d);
	box-shadow: 0 24px 50px -24px rgba(10, 14, 29, 0.6);
}
.mini-play {
	position: absolute;
	left: 50%;
	top: 40%;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: rgba(238, 241, 250, 0.16);
	color: #eef1fa;
	box-shadow: inset 0 0 0 1px rgba(238, 241, 250, 0.3);
}
.mini-play .ikona { width: 20px; height: 20px; margin-left: 3px; }
.mini-napis {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(18, 26, 51, 0.82);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
}
.mini-podpis { margin: 10px 4px 0; padding: 0; border: 0; }

.matryca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.matryca > span {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--ink);
}
.matryca svg { width: 72%; height: 72%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.matryca svg .pelna { fill: currentColor; stroke: none; }
.matryca .matryca-pytanie {
	box-shadow: none;
	outline: 1.5px dashed var(--atrament);
	outline-offset: -1.5px;
	color: var(--atrament);
	font-weight: 800;
	font-size: 22px;
}

/* ---------- Taśma tematów ---------- */

.tematy { padding: 8px 0 24px; overflow: hidden; }
.tematy-tytul {
	width: min(760px, 100% - 2 * var(--gutter));
	margin: 0 auto 32px;
	font-family: var(--font-reading);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(21px, 2.2vw, 26px);
	line-height: 1.35;
	color: var(--atrament);
	text-align: center;
}
.tasma {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tasma + .tasma { margin-top: 12px; }
.tasma-tor { display: flex; width: max-content; animation: przesun 48s linear infinite; }
.tasma-wstecz .tasma-tor { animation-direction: reverse; animation-duration: 54s; }
.tasma:hover .tasma-tor { animation-play-state: paused; }
.tasma ul { display: flex; gap: 12px; padding-right: 12px; }
.tasma li {
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line);
	font-weight: 600;
	font-size: 16px;
	white-space: nowrap;
}
@keyframes przesun { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */

.sekcja { padding: clamp(88px, 11vw, 150px) 0 0; }
.naglowek { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.naglowek .lead { max-width: 36em; }
.wstazka {
	padding: 7px 24px;
	background: var(--atrament-soft);
	color: var(--atrament);
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}

/* Problem */
.karty-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.karta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 330px;
	padding: 30px 28px 130px;
	border-radius: 28px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line);
}
.karta::before {
	content: '';
	position: absolute;
	inset: auto 0 0;
	z-index: -2;
	height: 150px;
	background: linear-gradient(transparent, var(--atrament-soft) 70%);
}
.chmury-karta { inset: auto 0 0; height: 150px; z-index: -1; opacity: 0.95; background-size: 1100px auto; background-position: center bottom; -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); }
.karta-ikona {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 22px;
	border-radius: 16px;
	background: var(--atrament-soft);
	color: var(--atrament);
}
.karta-ikona .ikona { width: 28px; height: 28px; }
.karta .h3 { margin-bottom: 10px; }
.karta p { color: var(--ink-muted); }

/* Jak to działa: opowieść z telefonem */
.opowiesc { display: grid; grid-template-columns: 1fr; gap: 0; }
.kroki { display: flex; flex-direction: column; gap: 72px; }
.krok { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.krok-tekst { max-width: 30em; text-align: center; display: flex; flex-direction: column; align-items: center; }
.krok-tekst p { color: var(--ink-muted); font-size: 18px; }
.plakietka {
	margin-bottom: 16px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--atrament-soft);
	color: var(--atrament);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.krok .h3-duzy { margin-bottom: 16px; }
.opowiesc-boczna { display: none; }

@media (min-width: 1024px) {
	.opowiesc.przyklejona { grid-template-columns: 1fr 1fr; gap: 64px; }
	.opowiesc.przyklejona .kroki { gap: 0; }
	.opowiesc.przyklejona .krok { min-height: 78vh; justify-content: center; align-items: flex-start; }
	.opowiesc.przyklejona .krok-tekst { text-align: left; align-items: flex-start; opacity: 0.32; transition: opacity 300ms ease; }
	.opowiesc.przyklejona .krok.aktywny .krok-tekst { opacity: 1; }
	.opowiesc.przyklejona .krok > .telefon { display: none; }
	.opowiesc.przyklejona .opowiesc-boczna {
		display: flex;
		justify-content: center;
		align-items: center;
		position: sticky;
		top: 0;
		height: 100vh;
		align-self: start;
	}
}

.telefon {
	position: relative;
	flex: none;
	width: 300px;
	height: 620px;
	padding: 10px;
	border-radius: 48px;
	background: #121a33;
	box-shadow: inset 0 0 0 1px #2a3253, var(--cien-telefon);
}
.telefon::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 50%;
	z-index: 3;
	width: 92px;
	height: 26px;
	border-radius: 14px;
	background: #121a33;
	transform: translateX(-50%);
}
.ekran {
	position: absolute;
	inset: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 64px 20px 22px;
	border-radius: 38px;
	background: var(--paper);
	text-align: left;
	font-size: 15px;
}
.telefon-staly .ekran { opacity: 0; transition: opacity 320ms ease; }
.telefon-staly .ekran.aktywny { opacity: 1; }
.ekran-tytul { font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 16px; }
.ekran-tytul-duzy { font-size: 25px; margin-bottom: 22px; }
.ekran-podtytul { font-weight: 700; font-size: 17px; margin: 20px 0 10px; }
.chipy { display: flex; flex-wrap: wrap; gap: 8px; }
.chipy li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	font-weight: 600;
	font-size: 14px;
}
.chipy li.wybrany { background: var(--atrament-soft); box-shadow: inset 0 0 0 1.5px var(--atrament); color: var(--ink); }
.chipy .ikona { width: 16px; height: 16px; color: var(--atrament); stroke-width: 2.4; }
.minuty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.minuty span {
	display: grid;
	place-items: center;
	height: 52px;
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	font-weight: 700;
	font-size: 15px;
}
.minuty .wybrany { background: var(--atrament-soft); box-shadow: inset 0 0 0 1.5px var(--atrament); }
.ekran-przycisk {
	display: grid;
	place-items: center;
	height: 52px;
	margin-top: auto;
	border-radius: 999px;
	background: var(--atrament);
	color: var(--on-atrament);
	font-weight: 600;
}

.ekran-film { background: linear-gradient(180deg, #121a33, #0a0e1d); color: #eef1fa; padding-top: 58px; }
.film-pasek { position: absolute; top: 52px; left: 20px; right: 20px; height: 3px; border-radius: 3px; background: rgba(238, 241, 250, 0.2); }
.film-pasek span { display: block; width: 38%; height: 100%; border-radius: inherit; background: #4db0e7; }
.film-etykieta { color: rgba(238, 241, 250, 0.75); margin-top: 10px; }
.film-rysunek { margin: 40px auto 0; width: 88%; }
.film-rysunek .kreska { fill: none; stroke: #eef1fa; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.film-rysunek .akcent { stroke: #4db0e7; }
.film-rysunek .cyfry { fill: #eef1fa; font: 700 22px var(--font-display); text-anchor: middle; }
.film-napis {
	margin-top: auto;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(18, 26, 51, 0.85);
	box-shadow: inset 0 0 0 1px rgba(238, 241, 250, 0.12);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	text-align: center;
}

.ekran-puenta .kartka-etykiety { margin-bottom: 12px; font-size: 10px; }
.ekran-puenta .ekran-tytul { margin: 0 0 22px; font-size: 21px; }
.etykieta-puenta { display: flex; align-items: center; gap: 6px; color: var(--ink); margin-bottom: 10px; }
.znacznik { width: 12px; height: 12px; border-radius: 3px; background: var(--zakreslacz); }
.moral { font-family: var(--font-reading); font-style: italic; font-weight: 600; font-size: 20px; line-height: 1.5; margin-bottom: 24px; }
.na-dzis { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--atrament); font-family: var(--font-reading); font-size: 15px; line-height: 1.55; }

.powtorka-karta { padding: 16px; border-radius: 8px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); }
.powtorka-karta .kartka-etykiety { font-size: 10px; margin-bottom: 10px; }
.powtorka-karta p { font-weight: 700; font-size: 18px; line-height: 1.25; }
.powtorka-przyciski { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.powtorka-przyciski span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 52px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
}
.ukryta {
	display: grid;
	place-items: center;
	min-height: 110px;
	margin-top: 14px;
	padding: 16px;
	border-radius: 8px;
	outline: 1.5px dashed var(--line-strong);
	outline-offset: -1.5px;
	font-family: var(--font-reading);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-muted);
	text-align: center;
}
.zapisano {
	display: flex;
	align-items: center;
	gap: 8px;
	align-self: center;
	margin-top: auto;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	font-size: 14px;
}
.zapisano .ikona { width: 18px; height: 18px; stroke-width: 2.2; }
.powtorka-przyciski .ikona { width: 18px; height: 18px; stroke-width: 2.2; }
.p-nie { box-shadow: inset 0 0 0 1px var(--line-strong); }
.p-tak { background: var(--pamietam); color: var(--on-stan); }

/* Co znajdziesz: bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.kafel {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: 28px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line);
}
.kafel .h3 { margin-bottom: 10px; }
.kafel p { color: var(--ink-muted); }
.kafel .drobny { margin-top: 10px; font-size: 13px; }
.kafel-ilustracja {
	display: grid;
	place-items: center;
	min-height: 200px;
	margin-bottom: 24px;
	border-radius: 18px;
	background: linear-gradient(180deg, var(--paper-sunken), color-mix(in srgb, var(--atrament-soft) 70%, var(--paper-sunken)));
	overflow: hidden;
}
.kafel-historie { grid-column: span 4; }
.kafel-animacje { grid-column: span 2; grid-row: span 2; }
.kafel-animacje .kafel-ilustracja { flex: 1; min-height: 340px; }
.kafel-iq { grid-column: span 2; }
.kafel-idee { grid-column: span 2; }
.kafel-powtorki { grid-column: span 3; }
.kafel-seria { grid-column: span 3; }

.rodzaje { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 24px; }
.rodzaje li {
	padding: 9px 16px;
	border-radius: 8px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.rodzaje li:nth-child(1) { rotate: -3deg; }
.rodzaje li:nth-child(2) { rotate: 2deg; }
.rodzaje li:nth-child(3) { rotate: -1deg; }
.rodzaje li:nth-child(4) { rotate: 3deg; }
.mini-film-maly { width: min(200px, 70%); }
.matryca-mala { width: 168px; }
.lista-idei { width: min(300px, 82%); background: var(--paper-raised); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); padding: 4px 16px; }
.lista-idei li { display: flex; align-items: center; gap: 14px; height: 48px; border-bottom: 1px solid var(--line); position: relative; }
.lista-idei li:last-child { border-bottom: 0; }
.lista-idei li.biezacy::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 2px; background: var(--atrament); }
.lista-idei span { font-weight: 700; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.lista-idei i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.os { position: relative; display: flex; justify-content: space-between; width: min(360px, 84%); }
.os::before { content: ''; position: absolute; left: 10px; right: 10px; top: 9px; height: 2px; background: var(--atrament); opacity: 0.35; }
.os span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.os b { width: 20px; height: 20px; border-radius: 50%; background: var(--paper-raised); box-shadow: inset 0 0 0 2px var(--atrament); }
.os span:last-child b { background: var(--atrament); }
.seria { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; width: min(360px, 88%); }
.seria span {
	display: grid;
	place-items: end center;
	height: 64px;
	padding-bottom: 8px;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	font-weight: 700;
	font-size: 12px;
	color: var(--ink-muted);
}
.seria span.z { background: var(--zakreslacz); box-shadow: none; color: var(--on-zakreslacz); }

.atuty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.atuty li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 16px; font-weight: 600; font-size: 15px; text-align: left; }
.atuty .ikona { color: var(--atrament); }

/* Wieczór (zawsze ciemny) */
.wieczor { padding: clamp(88px, 11vw, 150px) 16px 0; }
.wieczor-panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	max-width: 1408px;
	margin-inline: auto;
	padding: clamp(80px, 10vw, 130px) var(--gutter);
	border-radius: 40px;
	background: linear-gradient(180deg, #173450 0%, #101a36 55%, #0e1326 100%);
	color: #eef1fa;
	--ink: #eef1fa; --ink-muted: #a9b1cc; --atrament: #4db0e7; --on-atrament: #0e1326; --atrament-cien: #2b8cc4;
	--line: #2a3253; --paper-raised: #171d35; --atrament-soft: #173450;
}
.chmury-wieczor { top: auto; height: 60%; opacity: 0.9; background-image: url(obrazy/chmury-noc.svg); -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
.wstazka-noc { background: rgba(77, 176, 231, 0.16); }
.koniec-dnia {
	width: min(520px, 100%);
	margin: 0 auto;
	padding: 32px;
	border-radius: 28px;
	background: #171d35;
	box-shadow: inset 0 0 0 1px #2a3253, 0 40px 80px -30px rgba(0, 0, 0, 0.6);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.koniec-dnia .etykieta { color: #a9b1cc; margin-bottom: 14px; }
.koniec-tytul { font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; }
.koniec-podtytul { font-family: var(--font-reading); font-style: italic; font-weight: 600; font-size: 26px; color: #4db0e7; margin: 6px 0 26px; }
.seria-noc span { box-shadow: inset 0 0 0 1px #66709a; color: #a9b1cc; }
.koniec-nota { margin-top: 22px; font-size: 15px; color: #a9b1cc; }

/* Za darmo i Premium */
.plany { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; }
.plan {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 36px 32px;
	border-radius: 28px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line);
}
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan-premium { background: var(--atrament-soft); box-shadow: inset 0 0 0 2px var(--atrament); }
.lista-check { display: flex; flex-direction: column; gap: 12px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.lista-check .ikona { width: 20px; height: 20px; margin-top: 3px; color: var(--atrament); stroke-width: 2.4; }

/* Pytania */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 72px;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 19px;
	line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ikona { color: var(--atrament); transition: rotate 200ms ease; }
.faq details[open] summary .ikona { rotate: 45deg; }
.faq details p { padding: 0 48px 24px 0; font-size: 17px; color: var(--ink-muted); }

/* Końcowe wezwanie */
.final { padding: clamp(88px, 11vw, 150px) 16px 0; }
.final-panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	max-width: 1408px;
	margin-inline: auto;
	padding: clamp(72px, 9vw, 120px) var(--gutter);
	border-radius: 40px;
	background: linear-gradient(180deg, var(--niebo-gora), var(--niebo-srodek));
}
.chmury-final { -webkit-mask-image: radial-gradient(ellipse 42% 46% at 50% 46%, transparent 25%, #000 90%); mask-image: radial-gradient(ellipse 42% 46% at 50% 46%, transparent 25%, #000 90%); }
.final-tresc { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final-sowa { width: auto; height: 140px; margin-bottom: 24px; }
.h2-final { font-size: clamp(44px, 7vw, 88px); line-height: 0.98; margin-bottom: 20px; letter-spacing: -0.04em; }
.h2-final em { color: inherit; }

/* Stopka */
.stopka { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px var(--gutter) 48px; text-align: center; }
.stopka-haslo { font-family: var(--font-reading); font-style: italic; font-size: 18px; color: var(--ink-muted); margin-bottom: 10px; }
.stopka-linki { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.stopka-linki a, .stopka-dane a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.stopka-linki a:hover, .stopka-dane a:hover { color: var(--atrament); text-decoration: underline; }
.stopka-dane { font-size: 14px; color: var(--ink-muted); line-height: 1.7; }
.stopka-prawa { font-size: 13px; color: var(--ink-muted); }

/* ---------- Wejście przy przewijaniu ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease-out, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.widoczne { opacity: 1; transform: none; }

/* ---------- Szerokości ---------- */

@media (max-width: 1023px) {
	.bento { grid-template-columns: repeat(2, 1fr); }
	.kafel-historie, .kafel-iq, .kafel-idee, .kafel-powtorki, .kafel-seria { grid-column: span 1; }
	.kafel-historie { grid-column: span 2; }
	.kafel-animacje { grid-column: span 1; grid-row: span 2; }
	.atuty { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.karty-3 { grid-template-columns: 1fr; }
	.karta { min-height: 0; padding-bottom: 120px; }
	.plany { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	.nav { grid-template-columns: auto 1fr; padding: 8px 8px 8px 16px; top: 12px; width: calc(100% - 24px); border-radius: 20px; }
	.nav-links, .nav-cta .btn-secondary { display: none; }
	.logo { font-size: 22px; }
	.logo img { height: 27px; }
	.hero { padding: 104px 0 80px; min-height: 0; }
	.hero-sowa { height: 72px; margin-bottom: 16px; }
	.hero .h1 { margin-bottom: 18px; }
	.hero .lead { margin-bottom: 0; }
	/* Na telefonie przycisk przed polem z pytaniem, żeby był na pierwszym ekranie */
	.hero .cta { order: 1; margin-top: 28px; }
	.hero .pisane { order: 2; margin-top: 44px; }
	.hero .pod-polem { order: 3; }
	.przekreslone { font-size: 14px; }
	.pisane { min-height: 132px; padding: 16px 18px 18px; }
	.pisane-tekst { font-size: 19px; }
	.cta { width: 100%; }
	.sklepy { gap: 10px; }
	.sklep { height: 48px; gap: 8px; padding: 0 14px 0 11px; }
	.sklep .ikona { width: 22px; height: 22px; }
	.sklep-tekst strong { font-size: 17px; }
	.cta .btn-primary { width: 100%; max-width: 400px; }
	.bento { grid-template-columns: 1fr; }
	.kafel-historie, .kafel-animacje, .kafel-iq, .kafel-idee, .kafel-powtorki, .kafel-seria { grid-column: auto; grid-row: auto; }
	.kafel-animacje .kafel-ilustracja { min-height: 300px; }
	.kafel { padding: 22px; }
	.atuty { gap: 4px; }
	.atuty li { justify-content: flex-start; padding: 12px 8px; font-size: 14px; }
	.telefon { width: 280px; height: 580px; }
	.wieczor, .final { padding-left: 10px; padding-right: 10px; }
	.wieczor-panel, .final-panel { border-radius: 30px; }
	.koniec-dnia { padding: 26px 20px; }
	.plan { padding: 28px 22px; }
	.plan .btn { align-self: stretch; }
	.faq summary { font-size: 17px; }
	.faq details p { padding-right: 0; }
	.final-sowa { height: 100px; }
}

@media (max-width: 380px) {
	:root { --gutter: 16px; }
	.btn-s { padding: 0 14px; font-size: 14px; }
}

/* ---------- Ograniczenie ruchu ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.js [data-pisak]:not(.narysowane) { background-size: 100% 86%; color: var(--on-zakreslacz); }
	.zakreslenie { transition: none; }
	.unos { animation: none; transform: none; }
	.kursor { animation: none; }
	.tasma { -webkit-mask-image: none; mask-image: none; }
	.tasma-tor { animation: none; width: auto; justify-content: center; }
	.tasma ul { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
	.tasma ul[aria-hidden='true'] { display: none; }
	.telefon-staly .ekran, .opowiesc.przyklejona .krok-tekst { transition: none; }
	.btn, .pisane-dalej { transition: none; }
}
