/* =====================================================================
   Abakon OpenDays — kierunek „Twój dom za rok”
   Granat marki + krem + terakota, Fraunces (display) + Manrope (tekst).
   Jeden cel strony: zapis na Dzień Otwarty.
   ================================================================== */

:root {
	--navy: #002B63;
	--navy-deep: #001B3F;
	--navy-2: #003B83;
	--gold: #C6B083;
	--terra: #B04A2C;
	--terra-dark: #953C22;
	--cream: #FBF7F0;
	--sand: #F0E7D9;
	--ink: #22201E;
	--muted: #6B645C;
	--line: #E2D8C8;
	--line-sand: #DCCFBA;
	--white: #fff;
	--na-granacie: #CEDAE9;
	--na-granacie-slaby: #8FA4C0;

	/*--display: "Fraunces", Georgia, "Times New Roman", serif;*/
	--display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--tekst: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

	--kontener: 1248px;
	--margines: 96px;
	--r: 4px;
	--rytm: 120px;

	--cien-karta: 0 24px 56px -8px rgba(0, 13, 41, .28);
	--cien-pasek: 0 20px 50px -6px rgba(0, 10, 36, .34);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--tekst);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }

.ab-skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--terra); color: #fff; padding: 12px 20px;
}
.ab-skip:focus { left: 0; }

:where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--terra);
	outline-offset: 3px;
}

/* --- Układ ---------------------------------------------------------- */
.ab-container {
	width: 100%;
	max-width: calc(var(--kontener) + var(--margines) * 2);
	margin-inline: auto;
	padding-inline: var(--margines);
}
.ab-container--narrow { max-width: 860px; }

.ab-section { padding-block: var(--rytm); }

.ab-grid--naglowek-lista {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 96px;
	align-items: start;
}

/* --- Typografia ----------------------------------------------------- */
.ab-h2 {
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(1.9rem, 3.1vw, 2.75rem);
	line-height: 1.18;
	letter-spacing: -.02em;
	color: var(--navy);
	text-wrap: balance;
}
.ab-h2--jasny { color: var(--white); }

.ab-proza { color: var(--muted); line-height: 1.7; margin-top: 20px; }
.ab-proza--duza { font-size: 1.18rem; }
.ab-proza--jasna { color: var(--na-granacie); }
.ab-proza p + p { margin-top: 1em; }

.ab-puenta {
	font-family: var(--display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.2rem, 2vw, 1.72rem);
	line-height: 1.45;
	color: var(--ink);
}

.ab-kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin: 0;
}
.ab-kicker--zlota { color: var(--gold); }
.ab-kicker--terakota { color: var(--terra); }
.ab-kicker__kreska { width: 44px; height: 2px; background: currentColor; flex: none; }

.ab-kreska { display: block; width: 72px; height: 3px; background: var(--terra); margin: 36px 0 28px; }
.ab-kreska--zlota { width: 44px; height: 2px; background: var(--gold); margin: 26px 0 18px; }

/* --- Przyciski ------------------------------------------------------ */
.ab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 30px;
	border: 0;
	border-radius: var(--r);
	font-weight: 800;
	font-size: .95rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, transform .18s ease, color .18s ease;
}
.ab-btn--primary { background: var(--terra); color: #fff; }
.ab-btn--primary:hover { background: var(--terra-dark); }
.ab-btn--granat { background: var(--navy); color: #fff; letter-spacing: .02em; text-transform: none; font-size: 1rem; }
.ab-btn--granat:hover { background: var(--navy-2); }
.ab-btn--obrys { background: transparent; color: var(--navy); border: 1px solid #C3BAAD; letter-spacing: .02em; text-transform: none; font-size: 1rem; font-weight: 700; }
.ab-btn--obrys:hover { border-color: var(--navy); }
.ab-btn--blok { width: 100%; padding-block: 21px; }
.ab-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* --- Pasek górny ---------------------------------------------------- */
.ab-topbar {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 10;
	height: 88px;
	display: flex;
	align-items: center;
}
.ab-topbar__inner {
	width: 100%;
	max-width: calc(var(--kontener) + var(--margines) * 2);
	margin-inline: auto;
	padding-inline: var(--margines);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.ab-logo { text-decoration: none; display: inline-flex; align-items: center; }
.ab-logo { display: inline-flex; align-items: center; }
.ab-logo img, .ab-logo .custom-logo { max-height: 40px; width: auto; }
.ab-logo .custom-logo-link { display: inline-flex; }
.ab-logo__text {
	font-weight: 800; font-size: 1.25rem; letter-spacing: .12em; color: #fff;
}
.ab-logo__text--gold { color: var(--gold); font-size: 1.12rem; }
.ab-topbar__contact { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .9rem; }
.ab-topbar__tel { color: var(--gold); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.ab-topbar__tel:hover { text-decoration: underline; }

body:not(.single-open_day):not(.single-landing) .ab-topbar { position: static; background: var(--navy); }

/* --- HERO ----------------------------------------------------------- */
.ab-hero {
	position: relative;
	background: var(--navy);
	min-height: 880px;
	display: flex;
	padding-block: 0;
	overflow: hidden;
}
.ab-hero__panel {
	position: absolute;
	inset: 0 50% 0 0;
	background: var(--navy);
	border-right: 3px solid var(--gold);
	z-index: 1;
}
.ab-hero__media { position: absolute; inset: 0 0 0 50%; z-index: 0; overflow: hidden; }
.ab-hero__img { width: 100%; height: 100%; object-fit: cover; }
.ab-hero__scrim {
	position: absolute; inset: 0 0 auto 0; height: 190px; z-index: 3;
	background: linear-gradient(to bottom, rgba(0, 43, 99, .72), rgba(0, 43, 99, 0));
}

/* Film w tle hero — wchodzi dopiero, gdy naprawdę zacznie grać */
.ab-hero__wideo {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .7s ease;
	pointer-events: none;
}
.ab-hero__media.is-wideo .ab-hero__wideo { opacity: 1; }

.ab-hero__pauza {
	position: absolute;
	z-index: 4;
	top: 112px;
	right: 24px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	background: rgba(0, 27, 63, .55);
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}
.ab-hero__pauza:hover { background: rgba(0, 27, 63, .8); border-color: #fff; }
.ab-hero__pauza-ikona {
	display: block;
	width: 12px;
	height: 14px;
	border-left: 4px solid #fff;
	border-right: 4px solid #fff;
}
/* stan „zatrzymany” — ikona zmienia się w trójkąt odtwarzania */
.ab-hero__pauza[aria-pressed="true"] .ab-hero__pauza-ikona {
	width: 0;
	height: 0;
	border-left: 13px solid #fff;
	border-right: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	margin-left: 3px;
}

.ab-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ab-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 48px;
	width: 100%;
	max-width: calc(var(--kontener) + var(--margines) * 2);
	margin-inline: auto;
	padding: 152px var(--margines) 60px;
}
.ab-hero__tresc { max-width: 560px; align-self: start; }
.ab-hero__h1 {
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(2.1rem, 3.9vw, 3.375rem);
	line-height: 1.13;
	letter-spacing: -.025em;
	color: #fff;
	margin-top: 26px;
	text-wrap: balance;
}
.ab-hero__lead { color: var(--na-granacie); font-size: 1.16rem; line-height: 1.6; margin-top: 24px; }
.ab-hero__projekt { color: var(--na-granacie-slaby); font-size: .95rem; margin-top: 22px; }
.ab-hero__projekt strong { color: #fff; font-weight: 600; }

/* Data w skali plakatu */
.ab-data { display: flex; align-items: center; gap: 22px; margin-top: 36px; }
.ab-data__liczba {
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(3rem, 5.6vw, 5.125rem);
	line-height: .96;
	letter-spacing: -.05em;
	color: #fff;
}
.ab-data__pion { width: 2px; align-self: stretch; background: var(--gold); flex: none; }
.ab-data__dzien { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.ab-data__miasto {
	font-family: var(--display); font-weight: 600;
	font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; color: #fff; letter-spacing: -.01em;
}
.ab-data__meta { font-size: .9rem; font-weight: 500; color: var(--na-granacie-slaby); }
.ab-data--mniejsza .ab-data__liczba { font-size: clamp(2.6rem, 4.4vw, 4.5rem); }

/* --- Formularz „wejściówka” ----------------------------------------- */
.ab-form { background: var(--cream); border-radius: var(--r); position: relative; }
.ab-form::before {
	content: "";
	position: absolute; inset: 0 0 auto 0; height: 5px;
	background: var(--terra);
	border-radius: var(--r) var(--r) 0 0;
}
.ab-form--pasek { box-shadow: var(--cien-pasek); padding: 30px 40px 24px; }
.ab-form--karta { box-shadow: var(--cien-karta); padding: 36px 40px 32px; width: 100%; max-width: 464px; }

.ab-form__kicker {
	font-size: .68rem; font-weight: 700; letter-spacing: .16em;
	text-transform: uppercase; color: var(--terra);
}
.ab-form__title {
	font-family: var(--display); font-weight: 600;
	font-size: 1.72rem; line-height: 1.2; letter-spacing: -.02em;
	color: var(--navy); margin-top: 10px;
}
.ab-form__desc { font-size: .92rem; color: var(--muted); line-height: 1.6; margin-top: 10px; }

.ab-form--pasek .ab-form__form { display: flex; flex-direction: column; gap: 20px; }
.ab-form--pasek .ab-form__head { flex: none; width: 186px; }
.ab-form--pasek .ab-form__title { font-size: 1.5rem; margin-top: 4px; }

/* Pasek: etykieta + pola + CTA w jednym rzędzie */
.ab-form--pasek .ab-form__form {
	display: grid;
	grid-template-columns: 186px 1fr auto;
	grid-template-areas:
		"head pola cta"
		"zgody zgody zgody";
	align-items: end;
	column-gap: 28px;
	row-gap: 20px;
}
.ab-form--pasek .ab-form__head { grid-area: head; }
.ab-form--pasek .ab-form__pola { grid-area: pola; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ab-form--pasek .ab-form__stopka { grid-area: cta; }
.ab-form--pasek .ab-form__zgody { grid-area: zgody; display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.ab-form--pasek .ab-form__micro { display: none; }
.ab-form--pasek .ab-btn--blok { width: auto; padding-inline: 34px; }
.ab-form--pasek .ab-form__alert { grid-column: 1 / -1; }

.ab-form--karta .ab-form__pola { margin-top: 26px; display: grid; gap: 18px; }
.ab-form--karta .ab-form__zgody { margin-top: 20px; display: grid; gap: 12px; }
.ab-form--karta .ab-form__stopka { margin-top: 22px; }

.ab-pole { display: grid; gap: 7px; }
.ab-pole__label {
	font-size: .64rem; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--muted);
}
.ab-pole__input {
	appearance: none;
	width: 100%;
	border: 0;
	border-bottom: 1px solid #CFC5B6;
	background: transparent;
	padding: 4px 0 9px;
	font-family: var(--tekst);
	font-size: 1.06rem;
	font-weight: 500;
	color: var(--ink);
	border-radius: 0;
	transition: border-color .15s ease;
}
.ab-pole__input::placeholder { color: #A9A198; font-weight: 500; }
.ab-pole__input:focus { border-bottom-color: var(--terra); outline: none; }
.ab-pole__input:focus-visible { outline: none; }
.ab-pole__blad { font-size: .78rem; color: var(--terra-dark); font-weight: 600; }
.ab-pole--blad .ab-pole__input { border-bottom-color: var(--terra-dark); border-bottom-width: 2px; }

/*
 * Stany pola: podkreślenie „dorasta” od lewej wraz z fokusem, etykieta na nie
 * reaguje. Kreska jest tłem inputa, więc leży dokładnie na krawędzi pola
 * i nie wymaga ani jednego dodatkowego znacznika w HTML-u.
 */
.ab-pole__input {
	background-image: linear-gradient(var(--terra), var(--terra));
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 0 2px;
	transition: border-color .2s ease, background-size .28s cubic-bezier(.22, .61, .36, 1);
}
.ab-pole__input:focus { background-size: 100% 2px; }
.ab-pole__label { transition: color .2s ease; }
.ab-pole:focus-within .ab-pole__label { color: var(--terra); }
.ab-pole--blad .ab-pole__input {
	background-image: linear-gradient(var(--terra-dark), var(--terra-dark));
	background-size: 100% 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.ab-pole--blad .ab-pole__blad { animation: ab-blad-wejscie .26s ease both; }
}
@keyframes ab-blad-wejscie {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

/* Potwierdzenie zapisu — okrąg i ptaszek rysowane kreską */
.ab-form__ptaszek { display: block; width: 46px; height: 46px; margin-bottom: 4px; }
.ab-form__ptaszek svg { display: block; width: 100%; height: 100%; }
.ab-form__ptaszek circle,
.ab-form__ptaszek path {
	fill: none;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ab-form__ptaszek circle { stroke: var(--gold); stroke-dasharray: 151; stroke-dashoffset: 151; }
.ab-form__ptaszek path { stroke: var(--terra); stroke-dasharray: 40; stroke-dashoffset: 40; }
@media (prefers-reduced-motion: no-preference) {
	.ab-form__ptaszek circle { animation: ab-rysuj .6s cubic-bezier(.22, .61, .36, 1) forwards; }
	.ab-form__ptaszek path { animation: ab-rysuj .35s cubic-bezier(.22, .61, .36, 1) .45s forwards; }
}
@media (prefers-reduced-motion: reduce) {
	.ab-form__ptaszek circle,
	.ab-form__ptaszek path { stroke-dashoffset: 0; }
}
@keyframes ab-rysuj {
	to { stroke-dashoffset: 0; }
}

.ab-zgoda { display: grid; grid-template-columns: 17px 1fr; gap: 11px; align-items: start; }
.ab-zgoda input {
	appearance: none;
	width: 17px; height: 17px; margin: 3px 0 0;
	border: 1px solid #B3AA9E; border-radius: 2px; background: #fff; cursor: pointer;
}
.ab-zgoda input:checked { background: var(--terra); border-color: var(--terra); }
.ab-zgoda input:checked::after {
	content: ""; display: block; width: 5px; height: 9px; margin: 1px auto 0;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ab-zgoda label { font-size: .72rem; line-height: 1.55; color: var(--muted); }
.ab-zgoda.condensed label { font-size: .6rem; line-height: 1.15; color: var(--muted); }
.ab-zgoda a { color: var(--muted); }
.ab-zgoda .ab-pole__blad { grid-column: 2; }
.ab-zgoda .ab-pole__blad:empty { display: none; }
.ab-zgoda.ab-pole--blad input { border: 2px solid var(--terra-dark); }
.ab-zgoda.ab-pole--blad label { color: var(--terra-dark); }

.ab-form__micro { text-align: center; font-size: .75rem; font-weight: 500; color: #A9A198; margin-top: 14px; }
.ab-form__alert {
	background: #F6E4DE; color: var(--terra-dark);
	border-left: 3px solid var(--terra);
	padding: 12px 16px; font-size: .88rem; font-weight: 600; margin-top: 18px;
}
.ab-form__sukces, .ab-form__closed { padding: 8px 0 4px; }
.ab-form__sukces .ab-form__title, .ab-form__closed .ab-form__title { margin-top: 10px; }
.ab-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pasek ustawia formularzowi display: grid, co nadpisywało atrybut hidden po zapisie */
.ab-form__form[hidden], .ab-form__sukces[hidden] { display: none; }

/* --- Krok 2: pytania kwalifikujące ---------------------------------- */
.ab-krok2[hidden] { display: none; }
.ab-krok2__head .ab-form__title:focus { outline: none; }
.ab-krok2__pytania { display: grid; gap: 22px; margin-top: 24px; }

.ab-pytanie { border: 0; margin: 0; padding: 0; min-width: 0; }
.ab-pytanie__tytul {
	padding: 0; margin-bottom: 10px;
	font-size: .95rem; font-weight: 700; line-height: 1.4; color: var(--navy);
	transition: color .2s ease;
}
.ab-pytanie__opcje { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-pytanie .ab-pole__blad { display: block; margin-top: 8px; }
.ab-pytanie.ab-pole--blad .ab-pytanie__tytul { color: var(--terra-dark); }

/* Odpowiedzi jako „pigułki” — natywne radio zostaje dla klawiatury i czytników */
.ab-opcja { position: relative; display: inline-flex; }
.ab-opcja input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ab-opcja span {
	display: inline-block; padding: 8px 14px;
	border: 1px solid #CFC5B6; border-radius: 999px; background: #fff;
	font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--ink);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ab-opcja:hover span { border-color: var(--navy); }
.ab-opcja input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.ab-opcja input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.ab-pytanie.ab-pole--blad .ab-opcja span { border-color: var(--terra); }

.ab-krok2__stopka { margin-top: 24px; display: grid; gap: 14px; justify-items: center; }
.ab-krok2__link {
	background: none; border: 0; padding: 4px 0; cursor: pointer;
	font-size: .85rem; font-weight: 600; color: var(--muted);
	text-decoration: underline; text-underline-offset: 3px;
}
.ab-krok2__link:hover { color: var(--navy); }

/* Pasek w hero: pytania w jednym rzędzie, przyciski po prawej */
.ab-form--pasek .ab-form__form > .ab-krok2 { grid-column: 1 / -1; }
.ab-form--pasek .ab-krok2__head { max-width: 760px; }
.ab-form--pasek .ab-krok2__pytania { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ab-form--pasek .ab-krok2__stopka { grid-auto-flow: column; justify-content: end; align-items: center; gap: 28px; }
.ab-form--pasek .ab-krok2__stopka .ab-btn--blok { width: auto; padding-inline: 34px; }

/*
 * Tryb „wymagany”: z JS-em krok 2 czeka ukryty, a po przejściu chowa krok 1.
 * Bez JS-a (brak klasy .ab-js) widać wszystko naraz i jeden przycisk wysyłki.
 */
.ab-js .ab-form--wymagany:not(.is-krok2) .ab-krok2 { display: none; }
.ab-form--wymagany.is-krok2 .ab-form__head,
.ab-form--wymagany.is-krok2 .ab-form__pola,
.ab-form--wymagany.is-krok2 .ab-form__zgody,
.ab-form--wymagany.is-krok2 .ab-form__stopka { display: none; }
html:not(.ab-js) .ab-form--wymagany .ab-krok2__stopka { display: none; }
html:not(.ab-js) .ab-form--pasek.ab-form--wymagany .ab-form__form {
	grid-template-areas:
		"head pola pola"
		"zgody zgody zgody"
		"krok2 krok2 krok2"
		"cta cta cta";
}
html:not(.ab-js) .ab-form--pasek.ab-form--wymagany .ab-form__form > .ab-krok2 { grid-area: krok2; }

/* --- 02 Lustro ------------------------------------------------------ */
.ab-lustro { background: var(--cream); }
.ab-lustro__kolumna { max-width: 800px; margin-left: clamp(0px, 8vw, 104px); }
.ab-lustro .ab-h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }

/* Wariant ze zdjęciem: treść 2/3, zdjęcie 1/3 po prawej */
.ab-lustro__inner {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: clamp(32px, 4.5vw, 72px);
	align-items: start;
}
.ab-lustro__inner .ab-lustro__kolumna { max-width: none; margin-left: 0; }
.ab-lustro__foto { margin: 0; }
.ab-lustro__img { display: block; width: 100%; height: auto; }

/* --- 03 Przebieg ---------------------------------------------------- */
.ab-przebieg { background: var(--sand); }
.ab-kroki { display: grid; }
.ab-krok {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 32px;
	align-items: start;
	padding-block: 34px;
	border-bottom: 1px solid var(--line-sand);
}
.ab-krok:first-child { padding-top: 0; }
.ab-krok:last-child { border-bottom: 0; padding-bottom: 0; }
.ab-krok__nr {
	font-family: var(--display); font-weight: 300; font-size: 2.875rem;
	line-height: 1; color: var(--gold); letter-spacing: -.02em;
}
.ab-krok__tytul {
	font-family: var(--display); font-weight: 600; font-size: 1.56rem;
	line-height: 1.25; color: var(--navy); letter-spacing: -.015em;
}
.ab-krok__opis { color: var(--muted); line-height: 1.7; margin-top: 10px; font-size: 1.03rem; }

/* --- 04 Porównanie -------------------------------------------------- */
.ab-porownanie { background: var(--navy); }
.ab-porownanie__naglowek { max-width: 780px; }
.ab-kadry { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.ab-kadry--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ab-kadr__media { aspect-ratio: 3 / 2; background: #0A2A55; overflow: hidden; }
.ab-kadr__img { width: 100%; height: 100%; object-fit: cover; }
.ab-kadr__opis { margin-top: 22px; }
.ab-kadr__tytul {
	font-family: var(--display); font-weight: 600; font-size: 1.62rem;
	line-height: 1.25; color: #fff; margin-top: 8px; letter-spacing: -.015em;
}
.ab-kadr__podpis { font-size: .9rem; color: var(--na-granacie-slaby); margin-top: 6px; }

/* --- 05 Doradca ----------------------------------------------------- */
.ab-doradca { background: var(--cream); }
.ab-doradca__inner { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.ab-doradca__foto { background: transparent; aspect-ratio: 42 / 50; display: grid; place-items: center; overflow: hidden; }
.ab-doradca__img { width: 100%; height: 100%; object-fit: contain; }
.ab-doradca__imie {
	font-family: var(--display); font-weight: 600;
	font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.15;
	color: var(--navy); letter-spacing: -.025em; margin-top: 16px;
}
.ab-doradca__rola { font-size: 1rem; font-weight: 500; color: var(--muted); margin-top: 8px; }
.ab-doradca__cytat {
	font-family: var(--display); font-style: italic; font-weight: 400;
	font-size: 1.44rem; line-height: 1.55; color: var(--ink); margin-top: 30px;
}
.ab-doradca__kontakt { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* --- 06 Realizacje -------------------------------------------------- */
.ab-realizacje { background: var(--cream); padding-top: 0; }
.ab-realizacje__naglowek { max-width: 720px; }
.ab-galeria {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 28px 28px;
	margin-top: 48px;
}
.ab-realizacja { grid-column: span 2; }
.ab-realizacja--szeroka { grid-column: span 3; }
.ab-realizacja__media { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.ab-realizacja--szeroka .ab-realizacja__media { aspect-ratio: 16 / 10; }
.ab-realizacja__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ab-realizacja:hover .ab-realizacja__img { transform: scale(1.03); }
.ab-realizacja__opis { margin-top: 16px; }
.ab-realizacja__tytul { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--navy); }
.ab-realizacja__miejsce { font-size: .82rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }

/* --- 07 Opinie ------------------------------------------------------ */
.ab-opinie { background: var(--sand); }
/* Rezerwa wysokości pod widżet — ogranicza skok układu, zanim Trustindex się doładuje */
.ab-opinie__widget { margin-top: 40px; min-height: 240px; }
.ab-opinie__podglad {
	display: grid; place-items: center; min-height: 160px; padding: 24px;
	border: 1px dashed var(--line-sand); color: var(--muted); font-size: .95rem; text-align: center;
}
.ab-cytaty { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; margin-top: 48px; }
.ab-cytat__tresc {
	font-family: var(--display); font-style: italic; font-weight: 400;
	font-size: clamp(1.25rem, 2vw, 1.69rem); line-height: 1.5; color: var(--navy);
}
.ab-cytat__autor { display: grid; gap: 3px; }
.ab-cytat__imie { font-weight: 700; font-size: .97rem; color: var(--ink); }
.ab-cytat__miejsce { font-size: .88rem; color: var(--muted); }

/* --- 08 FAQ --------------------------------------------------------- */
.ab-faq { background: var(--cream); }
.ab-faq__poz { border-bottom: 1px solid var(--line); padding-block: 28px; }
.ab-faq__poz:first-child { padding-top: 0; }
.ab-faq__pytanie {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	cursor: pointer; list-style: none;
	font-family: var(--display); font-weight: 600; font-size: 1.44rem;
	line-height: 1.35; color: var(--navy); letter-spacing: -.015em;
}
.ab-faq__pytanie::-webkit-details-marker { display: none; }
.ab-faq__znak { position: relative; width: 18px; height: 18px; flex: none; }
.ab-faq__znak::before, .ab-faq__znak::after {
	content: ""; position: absolute; inset: 50% 0 auto 0;
	height: 2px; background: var(--terra); transform: translateY(-50%);
	transition: transform .2s ease;
}
.ab-faq__znak::after { transform: translateY(-50%) rotate(90deg); }
.ab-faq__poz[open] .ab-faq__znak::after { transform: translateY(-50%) rotate(0); }
.ab-faq__odpowiedz { color: var(--muted); line-height: 1.72; margin-top: 14px; max-width: 62ch; }
.ab-faq__odpowiedz p + p { margin-top: 1em; }

/* --- 09 Domknięcie -------------------------------------------------- */
.ab-domkniecie { background: var(--navy); }
.ab-domkniecie__inner { display: grid; grid-template-columns: 1fr auto; gap: 88px; align-items: center; }
.ab-domkniecie .ab-h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); margin-top: 20px; }

/* --- Landingi: Hero z formularzem ----------------------------------- */
.ab-lhero {
	position: relative;
	overflow: hidden;
	background: var(--navy);
	padding-block: 152px 96px; /* góra: miejsce na pasek nad hero */
}
.ab-lhero__tlo { position: absolute; inset: 0; z-index: 0; }
.ab-lhero__img { width: 100%; height: 100%; object-fit: cover; }
/* Granat od strony tekstu — zdjęcie nigdy nie zabiera czytelności */
.ab-lhero__tlo::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0, 43, 99, .97) 0%, rgba(0, 43, 99, .9) 48%, rgba(0, 43, 99, .72) 100%);
}
.ab-lhero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 464px;
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}
.ab-lhero__tresc { max-width: 620px; }
.ab-lhero__h1 {
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(2.1rem, 3.9vw, 3.375rem);
	line-height: 1.13;
	letter-spacing: -.025em;
	color: #fff;
	margin-top: 26px;
	text-wrap: balance;
}
.ab-lhero__tresc > .ab-lhero__h1:first-child { margin-top: 0; }
.ab-lhero__proza { margin-top: 28px; }
.ab-form--landing { justify-self: end; }

/* Pole „Wiadomość” — ta sama linia co inputy, tylko wyższa */
.ab-pole__input--tekst { resize: vertical; min-height: 84px; line-height: 1.5; font-size: 1rem; }

/* --- Landingi: Osoby do kontaktu ------------------------------------ */
.ab-kontakt { background: var(--cream); }
.ab-kontakt__naglowek { max-width: 720px; }
.ab-kontakt .ab-h2 { margin-top: 18px; }
.ab-osoby { display: grid; gap: 28px; margin-top: 48px; }
.ab-osoby--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-osoby--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-osoba {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: center;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
}
.ab-osoba__foto { width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sand); }
.ab-osoba__img { width: 100%; height: 100%; object-fit: cover; }
.ab-osoba__dane { min-width: 0; }
/* Bez zdjęcia dane zajmują całą szerokość karty */
.ab-osoba__dane:first-child { grid-column: 1 / -1; }
.ab-osoba__imie {
	font-family: var(--display); font-weight: 600; font-size: 1.5rem;
	line-height: 1.2; color: var(--navy); letter-spacing: -.015em;
}
.ab-osoba__rola { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.ab-osoba__kontakt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ab-osoba__kontakt .ab-btn { padding: 13px 18px; overflow-wrap: anywhere; }

/* --- Landingi: Przycisk / link -------------------------------------- */
.ab-lcta { background: var(--sand); }
.ab-lcta--granat { background: var(--navy); }
.ab-lcta__inner { display: grid; justify-items: center; text-align: center; gap: 0; }
.ab-lcta__inner .ab-h2 { max-width: 760px; }
.ab-lcta__inner .ab-proza { max-width: 620px; margin-top: 16px; }
.ab-lcta__btn { margin-top: 32px; }
.ab-lcta__inner > .ab-lcta__btn:first-child { margin-top: 0; }
.ab-lcta__strzalka { transition: transform .2s ease; }
.ab-lcta__btn:hover .ab-lcta__strzalka { transform: translateX(4px); }

/* Pusty blok w edytorze */
.ab-blok-pusty {
	margin: 0; padding: 32px; text-align: center;
	border: 1px dashed var(--line-sand); color: var(--muted); background: var(--cream);
}

/* --- Stopka --------------------------------------------------------- */
.ab-footer { background: var(--navy-deep); color: #5E7391; padding-block: 52px; }
.ab-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ab-footer__links ul { display: flex; gap: 30px; flex-wrap: wrap; }
.ab-footer__links a { color: #7E93B0; font-size: .88rem; font-weight: 500; text-decoration: none; }
.ab-footer__links a:hover { color: var(--gold); }
.ab-footer__rule { border: 0; border-top: 1px solid #0A2A55; margin: 26px 0 22px; }
.ab-footer__legal { font-size: .8rem; line-height: 1.6; }
.ab-footer__legal a { color: #7E93B0; }
.ab-footer__legal a:hover { color: var(--gold); }
.ab-footer__www { text-decoration: none; }

/* --- Pływający przycisk (mobile) ------------------------------------ */
.ab-sticky {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: none;
	align-items: center;
	gap: 10px;
	padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
	background: var(--cream);
	box-shadow: 0 -6px 22px rgba(0, 10, 36, .22);
	transform: translateY(110%);
	transition: transform .26s cubic-bezier(.4, 0, .2, 1);
}
.ab-sticky[hidden] { display: none; }
.ab-sticky.is-widoczny { transform: translateY(0); }
.ab-sticky__info { flex: 1 1 auto; min-width: 0; }
.ab-sticky__when {
	display: block; font-size: .64rem; font-weight: 700; letter-spacing: .1em;
	text-transform: uppercase; color: var(--terra);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ab-sticky__note { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); }
.ab-sticky__cta { flex: none; padding: 16px 26px; font-size: .85rem; }

/* --- Strony dokumentowe --------------------------------------------- */
.ab-main--doc { padding-block: 80px; }
.ab-doc__title { font-family: var(--display); font-weight: 600; font-size: 2.2rem; color: var(--navy); }
.ab-doc__body { margin-top: 24px; line-height: 1.75; color: var(--muted); }
.ab-doc__body h2, .ab-doc__body h3 { font-family: var(--display); color: var(--navy); margin-top: 1.6em; }
.ab-doc__body p + p { margin-top: 1em; }
.ab-main--bare { padding-block: 120px; }
.ab-bare__msg { color: var(--muted); }

.ab-img-placeholder {
	display: grid; place-items: center; min-height: 160px; height: 100%;
	background: repeating-linear-gradient(45deg, #EAE2D6, #EAE2D6 10px, #E2D8C8 10px, #E2D8C8 20px);
	color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center; padding: 20px;
}

/* =====================================================================
   RESPONSYWNOŚĆ
   ================================================================== */

@media (max-width: 1200px) {
	:root { --margines: 48px; --rytm: 96px; }
	.ab-grid--naglowek-lista { grid-template-columns: 320px 1fr; gap: 56px; }
	.ab-doradca__inner { grid-template-columns: 340px 1fr; gap: 48px; }
	.ab-cytaty { gap: 48px; }
	.ab-domkniecie__inner { gap: 48px; }
}

@media (max-width: 1024px) {
	.ab-form--pasek .ab-form__form {
		grid-template-columns: 1fr;
		grid-template-areas: "head" "pola" "zgody" "cta";
		align-items: stretch;
	}
	.ab-form--pasek .ab-form__head { width: auto; }
	.ab-form--pasek .ab-form__pola { grid-template-columns: repeat(3, 1fr); }
	.ab-form--pasek .ab-btn--blok { width: 100%; }
	.ab-form--pasek .ab-form__zgody { grid-template-columns: 1fr; gap: 12px; }
	.ab-form--pasek .ab-krok2__pytania { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html:not(.ab-js) .ab-form--pasek.ab-form--wymagany .ab-form__form {
		grid-template-areas: "head" "pola" "zgody" "krok2" "cta";
	}
	.ab-domkniecie__inner { grid-template-columns: 1fr; }
	.ab-form--karta { max-width: none; }
}

@media (max-width: 900px) {
	:root { --margines: 22px; --rytm: 64px; }

	body { font-size: 16px; }

	.ab-topbar { position: static; background: var(--navy); height: 64px; }
	.ab-topbar__label { display: none; }
	.ab-logo__text { font-size: 1.05rem; }

	/* HERO: zdjęcie → treść → formularz */
	.ab-hero { display: block; min-height: 0; }
	.ab-hero__panel { display: none; }
	.ab-hero__media { position: relative; inset: auto; height: 280px; }
	.ab-hero__scrim { display: none; }
	.ab-hero__pauza { top: auto; bottom: 14px; right: 14px; width: 38px; height: 38px; }
	.ab-hero__inner { display: block; padding: 34px var(--margines); }
	.ab-hero__tresc { max-width: none; }
	.ab-hero__h1 { font-size: clamp(1.85rem, 8.6vw, 2.35rem); margin-top: 20px; }
	.ab-hero__lead { font-size: 1.03rem; margin-top: 18px; }
	.ab-data { margin-top: 28px; gap: 18px; }
	.ab-data__liczba { font-size: 3.5rem; }

	.ab-form--pasek { margin-top: 30px; padding: 30px 24px 26px; }
	.ab-form--pasek .ab-form__pola { grid-template-columns: 1fr; gap: 18px; }
	.ab-form--pasek .ab-form__micro { display: block; }
	.ab-form--karta { padding: 30px 24px 26px; }
	.ab-form--pasek .ab-krok2__pytania { grid-template-columns: 1fr; gap: 22px; }
	.ab-form--pasek .ab-krok2__stopka { grid-auto-flow: row; justify-content: stretch; justify-items: center; gap: 14px; }
	.ab-form--pasek .ab-krok2__stopka .ab-btn--blok { width: 100%; }

	.ab-grid--naglowek-lista { grid-template-columns: 1fr; gap: 30px; }
	.ab-lustro__kolumna { margin-left: 0; }
	/* Zdjęcie ląduje pod tekstem — kolejność wynika z układu w HTML-u */
	.ab-lustro__inner { grid-template-columns: 1fr; gap: 28px; }

	.ab-krok { gap: 18px; padding-block: 22px; }
	.ab-krok__nr { font-size: 2rem; }
	.ab-krok__tytul { font-size: 1.25rem; }
	.ab-krok__opis { font-size: .96rem; }

	.ab-kadry,
	.ab-kadry--3 { grid-template-columns: 1fr; gap: 28px; margin-top: 30px; }

	.ab-doradca__inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
	.ab-doradca__foto { max-width: 280px; margin-inline: auto; aspect-ratio: 1 / 1; }
	.ab-doradca .ab-kicker { justify-content: center; }
	.ab-doradca__kontakt { flex-direction: column; }
	.ab-doradca__kontakt .ab-btn { width: 100%; }

	.ab-galeria { grid-template-columns: 1fr 1fr; gap: 14px 14px; }
	.ab-realizacja, .ab-realizacja--szeroka { grid-column: span 1; }
	.ab-realizacja--szeroka .ab-realizacja__media { aspect-ratio: 4 / 3; }

	.ab-cytaty { grid-template-columns: 1fr; gap: 34px; }

	.ab-faq__pytanie { font-size: 1.12rem; }

	.ab-footer { text-align: center; }
	.ab-footer__top { flex-direction: column; gap: 16px; }
	.ab-footer__links ul { justify-content: center; }

	/* Pływający przycisk — wyłącznie mobile */
	.ab-sticky { display: flex; }
	body.single-open_day { padding-bottom: 0; }
}

@media (max-width: 420px) {
	.ab-sticky__cta { padding-inline: 20px; font-size: .8rem; }
}

/* --- Efekty wejścia ------------------------------------------------- */
/*
 * Klasę „ab-anim” dokłada JS. Bez skryptu (i przy prefers-reduced-motion)
 * treść jest po prostu widoczna — nic nie chowamy na stałe.
 * Hero jest świadomie pominięte: to element LCP, nie animujemy go.
 */
@media (prefers-reduced-motion: no-preference) {
	html.ab-anim .ab-odslon {
		opacity: 0;
		transform: translateY(14px);
		transition:
			opacity .55s cubic-bezier(.22, .61, .36, 1),
			transform .55s cubic-bezier(.22, .61, .36, 1);
		transition-delay: var(--ab-zwloka, 0ms);
		will-change: opacity, transform;
	}
	html.ab-anim .ab-odslon.is-widoczne {
		opacity: 1;
		transform: none;
		will-change: auto;
	}

	/* Kreski rysują się od lewej do prawej */
	html.ab-anim .ab-odslon--kreska {
		opacity: 1;
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform .6s cubic-bezier(.22, .61, .36, 1);
		transition-delay: var(--ab-zwloka, 0ms);
	}
	html.ab-anim .ab-odslon--kreska.is-widoczne { transform: scaleX(1); }
}

/* Linia postępu przy krokach — wypełnia się wraz z przewijaniem sekcji.
   Siedzi w odstępie siatki, więc nie przesuwa ani piksela treści. */
.ab-kroki { position: relative; }
@media (min-width: 901px) {
	.ab-kroki::before,
	.ab-kroki::after {
		content: '';
		position: absolute;
		top: 6px; bottom: 6px; left: -48px;
		width: 2px;
	}
	.ab-kroki::before { background: var(--line-sand); }
	.ab-kroki::after {
		background: var(--gold);
		transform: scaleY(var(--ab-postep, 1));
		transform-origin: top center;
	}
}
@media (min-width: 901px) and (max-width: 1024px) {
	.ab-kroki::before,
	.ab-kroki::after { left: -28px; }
}

/* Akordeon FAQ — płynna wysokość tam, gdzie przeglądarka to potrafi.
   Gdzie nie potrafi, rozwija się skokowo jak dotąd. */
@media (prefers-reduced-motion: no-preference) {
	.ab-faq__poz { interpolate-size: allow-keywords; }
	.ab-faq__poz::details-content {
		block-size: 0;
		overflow: hidden;
		opacity: 0;
		transition:
			block-size .34s cubic-bezier(.22, .61, .36, 1),
			opacity .28s ease,
			content-visibility .34s allow-discrete;
		transition-behavior: allow-discrete;
	}
	.ab-faq__poz[open]::details-content { block-size: auto; opacity: 1; }
}

/* Kafelki realizacji — przyciemnienie kadru i złota kreska pod tytułem */
@media (hover: hover) {
	.ab-realizacja .ab-lupa::before {
		content: '';
		position: absolute; inset: 0;
		background: linear-gradient(to top, rgba(0, 27, 63, .5), rgba(0, 27, 63, 0) 58%);
		opacity: 0;
		transition: opacity .35s ease;
		pointer-events: none;
	}
	.ab-realizacja:hover .ab-lupa::before { opacity: 1; }
	.ab-realizacja__opis { transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
	.ab-realizacja:hover .ab-realizacja__opis { transform: translateY(-4px); }
	.ab-realizacja__tytul { position: relative; display: inline-block; }
	.ab-realizacja__tytul::after {
		content: '';
		position: absolute; left: 0; right: 0; bottom: -5px;
		height: 2px; background: var(--gold);
		transform: scaleX(0); transform-origin: left center;
		transition: transform .35s cubic-bezier(.22, .61, .36, 1);
	}
	.ab-realizacja:hover .ab-realizacja__tytul::after { transform: scaleX(1); }
}

/* --- Lightbox (Dziś / za rok, Realizacje) --------------------------- */
.ab-lupa { display: block; position: relative; width: 100%; height: 100%; cursor: zoom-in; }
.ab-lupa__ikona {
	position: absolute;
	right: 14px; bottom: 14px;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(0, 27, 63, .55);
	border: 1px solid rgba(255, 255, 255, .45);
	opacity: 0;
	transition: opacity .18s ease;
	pointer-events: none;
}
.ab-lupa__ikona::before {
	content: ''; position: absolute; left: 11px; top: 10px;
	width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%;
}
.ab-lupa__ikona::after {
	content: ''; position: absolute; left: 22px; top: 21px;
	width: 8px; height: 2px; background: #fff; transform: rotate(45deg);
}
.ab-lupa:hover .ab-lupa__ikona,
.ab-lupa:focus-visible .ab-lupa__ikona { opacity: 1; }
/* Na dotyku nie ma hoveru — podpowiedź musi być widoczna od razu */
@media (hover: none) {
	.ab-lupa__ikona { opacity: .85; }
}

html.ab-lb-otwarty { overflow: hidden; }

.ab-lb {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(0, 13, 41, .97);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(8px, 2vw, 28px);
	padding: clamp(16px, 4vw, 48px);
}
.ab-lb[hidden] { display: none; }
.ab-lb__kadr {
	grid-column: 2;
	margin: 0;
	display: grid;
	justify-items: center;
	gap: 18px;
	min-width: 0;
}
.ab-lb__ramka { overflow: hidden; max-width: 100%; line-height: 0; }
.ab-lb__img {
	display: block;
	max-width: 100%;
	max-height: 78vh;
	width: auto; height: auto;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform .35s ease;
}
.ab-lb__img.is-powiekszone { transform: scale(2.2); cursor: zoom-out; }
.ab-lb__podpis {
	color: var(--na-granacie);
	font-size: .95rem;
	text-align: center;
	max-width: 62ch;
}
.ab-lb__licznik {
	color: var(--na-granacie-slaby);
	font-size: .8rem; font-weight: 600; letter-spacing: .08em;
}

.ab-lb__btn {
	display: grid; place-items: center;
	width: 48px; height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	background: rgba(0, 27, 63, .55);
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}
.ab-lb__btn:hover { background: rgba(0, 27, 63, .9); border-color: #fff; }
.ab-lb__btn[hidden] { display: none; }
.ab-lb__zamknij { position: absolute; top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.ab-lb__nav--wstecz { grid-column: 1; }
.ab-lb__nav--dalej { grid-column: 3; }
/* Strzałki i krzyżyk rysowane w CSS — zero dodatkowych plików */
.ab-lb__ikona { display: block; width: 13px; height: 13px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.ab-lb__nav--wstecz .ab-lb__ikona { transform: rotate(-135deg); margin-left: 4px; }
.ab-lb__nav--dalej .ab-lb__ikona { transform: rotate(45deg); margin-right: 4px; }
.ab-lb__zamknij .ab-lb__ikona { border: 0; position: relative; width: 16px; height: 16px; }
.ab-lb__zamknij .ab-lb__ikona::before,
.ab-lb__zamknij .ab-lb__ikona::after {
	content: ''; position: absolute; top: 7px; left: 0;
	width: 16px; height: 2px; background: #fff;
}
.ab-lb__zamknij .ab-lb__ikona::before { transform: rotate(45deg); }
.ab-lb__zamknij .ab-lb__ikona::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
	.ab-lb { grid-template-columns: 1fr; padding: 56px 16px 20px; }
	.ab-lb__kadr { grid-column: 1; align-content: center; }
	.ab-lb__img { max-height: 62vh; }
	.ab-lb__nav {
		position: absolute; bottom: 22px;
		width: 44px; height: 44px;
	}
	.ab-lb__nav--wstecz { left: 22px; }
	.ab-lb__nav--dalej { right: 22px; }
	.ab-lb__podpis { font-size: .88rem; padding-bottom: 46px; }
}

/* --- Landingi: responsywność ---------------------------------------- */
@media (max-width: 1024px) {
	.ab-lhero__inner { grid-template-columns: minmax(0, 1fr) 420px; }
	.ab-osoby--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	/* Pasek górny jest tu statyczny, więc hero nie musi robić na niego miejsca */
	.ab-lhero { padding-block: 40px 56px; }
	.ab-lhero__inner { grid-template-columns: 1fr; gap: 34px; }
	.ab-lhero__h1 { font-size: clamp(1.85rem, 8.6vw, 2.35rem); margin-top: 20px; }
	.ab-lhero__proza { margin-top: 20px; }
	.ab-form--landing { justify-self: stretch; max-width: none; }

	.ab-osoby,
	.ab-osoby--2,
	.ab-osoby--3 { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
	/* Zdjęcie nad danymi — przyciski z adresem e-mail potrzebują całej szerokości */
	.ab-osoba { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
	.ab-osoba__foto { width: 72px; }
	.ab-osoba__kontakt { flex-direction: column; }
	.ab-osoba__kontakt .ab-btn { width: 100%; }
}

/* --- Podgląd w edytorze --------------------------------------------- */
/*
 * Motyw nie ma theme.json, więc WordPress dokłada edit-post/classic.css,
 * które zwęża każdy blok do 840 px i rozsuwa je marginesami 28 px.
 * Nasze sekcje są pełnej szerokości i stykają się ze sobą, jak na stronie.
 * Tytuł wpisu zostaje wąski, bo zawężamy regułę do bloków motywu.
 */
.editor-styles-wrapper .wp-block[data-type^="acf/ab-"] {
	max-width: none;
	margin-top: 0;
	margin-bottom: 0;
}
.editor-styles-wrapper .ab-hero { min-height: 620px; }
.editor-styles-wrapper .ab-sticky { display: none !important; }
