/*
 * Style należące do wtyczki, nie do motywu.
 *
 * Znacznik DO POTWIERDZENIA ma pozostać widoczny nawet po zmianie motywu —
 * to zabezpieczenie treści przed publikacją niezatwierdzonej danej, a nie
 * element warstwy wizualnej. Kolory pochodzą z palety marki (deep green
 * #353C33, warm sand #EADECA), ale są tu zapisane wprost, bo wtyczka nie może
 * zakładać, że aktywny motyw dostarcza zmienne Trega.
 */

.trega-spec {
	margin-block: 2.5rem;
}

.trega-spec__title {
	margin: 0 0 0.75rem;
}

.trega-spec__notice {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid #8a6d3b;
	background: #eadeca;
	color: #4a3a1e;
	font-size: 0.875rem;
}

.trega-spec__list {
	margin: 0;
	display: grid;
	gap: 0;
}

.trega-spec__row {
	display: grid;
	grid-template-columns: minmax(10rem, 16rem) 1fr;
	gap: 1rem;
	padding-block: 0.75rem;
	border-top: 1px solid rgba(53, 60, 51, 0.15);
}

.trega-spec__row:last-child {
	border-bottom: 1px solid rgba(53, 60, 51, 0.15);
}

.trega-spec__label {
	margin: 0;
	font-weight: 600;
	color: #353c33;
}

.trega-spec__value {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
}

.trega-badge {
	display: inline-block;
	padding: 0.12em 0.45em;
	border-radius: 0.25rem;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	/* Plakietki bywaja dlugie - 'DO POTWIERDZENIA — BRAK DANEJ' nie miesci sie
	   na ekranie 390 px. nowrap rozpychal wtedy cala strone w bok. */
	white-space: nowrap;
	max-width: 100%;
	/* Kontrast tekstu do tła: 7.5:1 i 8.1:1 — powyżej progu WCAG AA dla małego tekstu. */
	border: 1px solid currentColor;
}

.trega-badge--pending {
	background: #eadeca;
	color: #6b4f1d;
}

.trega-badge--missing {
	background: #f4e3e3;
	color: #8a2b2b;
}

.trega-badge--evidence {
	background: #e4e4d5;
	color: #353c33;
}

.trega-spec__evidence {
	margin: 0 0 1rem;
}

.trega-cta {
	margin-block: 2rem;
}

.trega-spec__provenance {
	margin-top: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	font-size: 0.8125rem;
	color: #5c6459;
}

.trega-demo-disclosure {
	margin: 1.5rem 0;
	padding: 1rem 1.125rem;
	border-left: 4px solid #886e43;
	background: #f7f1e6;
	color: #26342c;
}

.trega-demo-disclosure__title {
	margin: 0 0 .375rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.35;
}

.trega-demo-disclosure p:last-child {
	margin-bottom: 0;
}

/* Na telefonie etykieta i wartość układają się jedna pod drugą. */
@media (max-width: 600px) {
	.trega-spec__row {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

/*
 * Style widoku artykułu wiedzy i etapu procesu (single/archive).
 * Kolory jak wyżej — wprost z palety marki, bez zmiennych motywu.
 */

.trega-archive-item {
	padding-block: 1.5rem;
	border-top: 1px solid rgba(53, 60, 51, 0.15);
}

.trega-archive-item:first-child {
	border-top: none;
}

.trega-meta--card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.25rem 0 0.5rem;
	font-size: 0.8125rem;
	color: #5c6459;
}

.trega-meta--full {
	margin-block: 1.5rem;
}

.trega-meta__title {
	margin: 0 0 0.75rem;
}

.trega-meta__notice {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid #8a6d3b;
	background: #eadeca;
	color: #4a3a1e;
	font-size: 0.875rem;
}

.trega-meta__conflict {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid #8a2b2b;
	background: #f4e3e3;
	color: #5c1a1a;
	font-size: 0.875rem;
}

.trega-entry {
	margin-block: 1.5rem;
}

.trega-entry__section + .trega-entry__section {
	margin-top: 1.25rem;
}

.trega-entry__heading {
	margin: 0 0 0.5rem;
}

.trega-entry__text {
	margin: 0;
}

.trega-entry__status {
	margin: 0.5rem 0 0;
}

.trega-links {
	margin-block: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(53, 60, 51, 0.15);
}

.trega-links__title {
	margin: 0 0 0.75rem;
}

.trega-links__previous {
	margin: 0 0 0.75rem;
}

/*
 * Pager poprzedni/nastepny etap - pod zdjeciem, nie nad nim (zgloszenie
 * uzytkownika, 2026-09-21). Pierwsza wersja stala nad zdjeciem, pokazywala
 * tylko "poprzedni" i byla tak duza/pelnozdaniowa, ze konkurowala z H1.
 * Teraz: oba kierunki naraz, maly i cichy tekst - to nawigacja pomocnicza,
 * nie tresc strony.
 */
.trega-links--pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-block: 0.85rem 0;
	padding: 0;
	border-top: 0;
	font-size: 0.8125rem;
	color: #5f5a50;
}

.trega-links__pager-link {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4em;
	max-width: 48%;
	color: inherit;
	text-decoration-color: #c9c9ab;
	text-underline-offset: 0.2em;
}

.trega-links__pager-link:hover,
.trega-links__pager-link:focus-visible {
	color: #353c33;
	text-decoration-color: #727a5d;
}

.trega-links__pager-link--next {
	margin-left: auto;
	text-align: right;
}

.trega-links__pager-strzalka {
	flex-shrink: 0;
	color: #727a5d;
}

@media (max-width: 480px) {
	.trega-links--pager {
		flex-direction: column;
		gap: 0.4rem;
	}

	.trega-links__pager-link {
		max-width: none;
	}

	.trega-links__pager-link--next {
		text-align: left;
	}
}

.trega-links__list {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

.trega-links__empty {
	margin: 0 0 1rem;
	color: #5c6459;
}

.trega-links__back {
	margin: 0;
}

.trega-concept-visual,
.trega-home-model-visuals figure {
	margin: 1.5rem 0 2rem;
	border-radius: 1rem;
	overflow: hidden;
	background: #f1ede5;
}

/* Ta sama ramka co wszedzie indziej - 16:9. Wczesniej byly tu trzy rozne
   proporcje (16:9, 4:3, 3:2) i zdjecia sprawialy wrazenie zlozonych z roznych
   zrodel, mimo ze pochodzily z jednej serii. */
.trega-home-model-visuals figure {
	aspect-ratio: 16 / 9;
}

.trega-concept-visual img,
.trega-home-model-visuals img {
	display: block;
	width: 100%;
	height: auto;
}

.trega-home-model-visuals figure img {
	height: 100%;
	object-fit: cover;
}

.trega-concept-visual figcaption {
	padding: 0.75rem 1rem;
	font-size: 0.82rem;
	color: #5f5a50;
	background: #f1ede5;
}

.trega-concept-note {
	padding: 0.85rem 1rem;
	border-left: 3px solid #8a6d3b;
	background: #f5efe5;
	color: #5f5a50;
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------
   Formularz kontaktowy — blok trega/kontakt-form
   Kolory z palety marki: #353C33 ciemna zielen, #727A5D oliwka,
   #E4E4D5 jasny neutralny, #FCF8F5 ciepla biel.
   --------------------------------------------------------------- */

.trega-kontakt__form {
	display: grid;
	gap: 1.1rem;
	max-width: 34rem;
}

.trega-kontakt__pole {
	display: grid;
	gap: 0.35rem;
	margin: 0;
}

.trega-kontakt__pole label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #353c33;
}

.trega-kontakt__pole input,
.trega-kontakt__pole select,
.trega-kontakt__pole textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #c9c9ab;
	border-radius: 2px;
	background: #fcf8f5;
	color: #353c33;
	font: inherit;
}

.trega-kontakt__pole select:focus-visible,
.trega-kontakt__pole input:focus-visible,
.trega-kontakt__pole textarea:focus-visible,
.trega-kontakt__zgoda input:focus-visible,
.trega-kontakt__wyslij:focus-visible {
	outline: 2px solid #353c33;
	outline-offset: 2px;
}

.trega-kontakt__pole textarea {
	resize: vertical;
	min-height: 8rem;
}

/* Honeypot: znika dla oka i dla czytnika, ale bot w DOM go widzi.
   Nie uzywamy display:none - czesc botow je pomija. */
.trega-kontakt__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.trega-kontakt__zgoda {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.6rem;
	align-items: start;
	font-size: 0.875rem;
	color: #5f5a50;
}

.trega-kontakt__zgoda strong {
	display: block;
	margin-top: 0.25rem;
	color: #8a6d3b;
	font-weight: 600;
}

.trega-kontakt__wymagane {
	margin: 0;
	font-size: 0.82rem;
	color: #5f5a50;
}

.trega-kontakt__status {
	padding: 0.85rem 1rem;
	border-left: 3px solid #727a5d;
	background: #e4e4d5;
	color: #353c33;
	font-size: 0.925rem;
}

.trega-kontakt__status--blad {
	border-left-color: #8a6d3b;
	background: #f5efe5;
}

@media (max-width: 480px) {
	.trega-kontakt__form {
		max-width: 100%;
	}
}

.trega-faq {
	padding: 1.25rem;
	background: #fcf8f5;
	color: #353c33;
}

.trega-faq__pozycja {
	border-bottom: 1px solid #c9c9ab;
}

.trega-faq__pozycja:first-child {
	border-top: 1px solid #c9c9ab;
}

.trega-faq__pytanie {
	padding: 1rem 2.25rem 1rem 0;
	color: #353c33;
	cursor: pointer;
	font-weight: 600;
}

.trega-faq__pytanie::marker {
	color: #727a5d;
}

.trega-faq__pytanie:focus-visible {
	outline: 3px solid #727a5d;
	outline-offset: 3px;
	background: #e4e4d5;
}

.trega-faq__odpowiedz {
	padding: 0 1rem 1rem 0;
	color: #353c33;
}

.trega-faq__link {
	margin: 0.75rem 0 0;
}

.trega-faq__link a {
	color: #353c33;
	font-weight: 600;
}

.trega-faq__link a:focus-visible {
	outline: 3px solid #727a5d;
	outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Etapy montażu — blok trega/etapy-modelu
   --------------------------------------------------------------- */

/*
 * Trzy modele na jednej stronie (archiwum etapow) renderuja sie jako trzy
 * osobne wystapienia tego bloku pod rzad - 24 pozycje razem sprawialy
 * wrazenie jednego dlugiego ciagu, nie trzy oddzielne instrukcje
 * (zgloszenie uzytkownika, 2026-09-19). Teraz to natywny <details>/<summary>,
 * domyslnie ZWINIETY: odwiedzajacy rozwija tylko model, ktory go interesuje,
 * zamiast przewijac/szukac wsrod wszystkich. Dziala bez JS, klawiatura
 * i czytniki ekranu obsluguja go od razu.
 */
.trega-etapy {
	margin-block: 1.25rem;
	background: var(--wp--preset--color--warm-sand);
	border-radius: 4px;
}

.trega-etapy__naglowek {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 1.1rem 1.75rem;
	color: #353c33;
	font-size: 1.25rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

/* Ukrywamy domyslny trojkat przegladarki, rysujemy wlasna strzalke. */
.trega-etapy__naglowek::-webkit-details-marker {
	display: none;
}

.trega-etapy__naglowek::after {
	content: "";
	flex-shrink: 0;
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2px solid var(--wp--preset--color--olive-green);
	border-bottom: 2px solid var(--wp--preset--color--olive-green);
	transform: rotate(45deg);
	transition: transform 0.18s ease;
}

.trega-etapy[open] > .trega-etapy__naglowek::after {
	transform: rotate(-135deg);
}

.trega-etapy__naglowek:hover,
.trega-etapy__naglowek:focus-visible {
	background: var(--wp--preset--color--pale-neutral);
	border-radius: 4px;
}

.trega-etapy__naglowek:focus-visible {
	outline: 2px solid var(--wp--preset--color--deep-green);
	outline-offset: -2px;
}

.trega-etapy__licznik {
	margin-left: auto;
	margin-right: 0.75rem;
	color: #5f5a50;
	font-size: 0.85rem;
	font-weight: 400;
	white-space: nowrap;
}

/* Miniatura modelu w zwinietym naglowku - widac od razu, o ktory dom
   chodzi, bez rozwijania listy (zgloszenie uzytkownika, 2026-09-19). */
.trega-etapy__miniatura-modelu {
	flex-shrink: 0;
	width: 8rem;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 3px;
	object-fit: cover;
}

/* Przewiniecie do otwartej sekcji zostawia oddech nad jej naglowkiem. */
.trega-etapy {
	scroll-margin-top: 1rem;
}

@media (max-width: 600px) {
	.trega-etapy__miniatura-modelu {
		width: 5.5rem;
	}
}

.trega-etapy__naglowek-tekst {
	flex-grow: 1;
}

.trega-etapy[open] > .trega-etapy__naglowek {
	border-bottom: 2px solid var(--wp--preset--color--olive-green);
}

.trega-etapy > .trega-etapy__lista {
	/* Lewy margines = 1.75rem odstepu karty + 1.4rem miejsca na cyfry listy. */
	padding: 1.5rem 1.75rem 1.75rem 3.15rem;
}

@media (max-width: 600px) {
	/*
	 * Na waskim ekranie flex-row gubil sie: dlugi dwuwierszowy tytul plus
	 * licznik "8 etapow" przypiety do prawej krawedzi (margin-left:auto)
	 * razem nie mieszcily sie w rzedzie i licznik wychodzil poza ekran,
	 * a miniatura zostawala mala wzgledem tekstu (zgloszenie uzytkownika,
	 * 2026-09-19). Siatka 2x2 daje miniaturze wiecej miejsca (pelna wysokosc
	 * naglowka) i przenosi licznik pod tytul, zamiast obok niego.
	 */
	.trega-etapy__naglowek {
		display: grid;
		grid-template-columns: 5.75rem 1fr 0.9rem;
		grid-template-rows: auto auto;
		column-gap: 0.9rem;
		row-gap: 0.15rem;
		padding: 0.9rem 1.1rem;
		font-size: 1.05rem;
	}

	.trega-etapy__miniatura-modelu {
		grid-row: 1 / 3;
		grid-column: 1;
		width: 100%;
		aspect-ratio: 4 / 3;
	}

	.trega-etapy__naglowek-tekst {
		grid-row: 1;
		grid-column: 2;
		align-self: end;
	}

	.trega-etapy__licznik {
		grid-row: 2;
		grid-column: 2;
		align-self: start;
		margin: 0;
		white-space: normal;
	}

	.trega-etapy__naglowek::after {
		grid-row: 1 / 3;
		grid-column: 3;
		align-self: center;
	}

	.trega-etapy > .trega-etapy__lista {
		padding: 1.25rem 1.1rem 1.5rem 2.5rem;
	}
}

.trega-etapy__lista {
	display: grid;
	gap: 1.1rem;
	margin: 0;
	padding-left: 1.4rem;
	list-style: decimal;
}

.trega-etapy__pozycja {
	padding-left: 0.35rem;
}

.trega-etapy__tytul {
	margin: 0 0 0.2rem;
	font-size: 1.05rem;
	line-height: 1.35;
}

.trega-etapy__tytul a {
	color: #353c33;
	text-decoration-color: #c9c9ab;
	text-underline-offset: 0.2em;
}

.trega-etapy__tytul a:hover,
.trega-etapy__tytul a:focus-visible {
	text-decoration-color: #727a5d;
}

.trega-etapy__tytul a:focus-visible {
	outline: 2px solid #353c33;
	outline-offset: 3px;
}

.trega-etapy__stan {
	display: inline-block;
	margin: 0 0 0.35rem;
	padding: 0.15rem 0.55rem;
	border-radius: 2px;
	background: #e4e4d5;
	color: #5f5a50;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
}

.trega-etapy__opis {
	margin: 0;
	color: #5f5a50;
	font-size: 0.925rem;
	line-height: 1.55;
}

.trega-faq__naglowek {
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #c9c9ab;
	color: #353c33;
}

.trega-etapy__miniatura {
	display: block;
	margin-bottom: 0.6rem;
	max-width: 22rem;
}

.trega-etapy__miniatura img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}

/* --- Wideo wpisu --- */

.trega-wideo {
	margin: 2rem 0;
}

.trega-wideo__kadr {
	position: relative;
}

.trega-wideo__plik {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 2px;
	background: #e4e4d5;
	object-fit: cover;
}

.trega-wideo__powtorz {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(252, 248, 245, 0.82);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	text-shadow: 0 1px 0.35rem rgba(0, 0, 0, 0.38);
}

.trega-wideo__powtorz:hover {
	color: rgba(252, 248, 245, 1);
}

.trega-wideo__powtorz:focus-visible {
	outline: 2px solid #353c33;
	outline-offset: 3px;
}

.trega-wideo__podpis {
	margin-top: 0.6rem;
	padding: 0.5rem 0.85rem;
	border-left: 3px solid #8a6d3b;
	background: #f5efe5;
	color: #5f5a50;
	font-size: 0.82rem;
}


/* Na waskich ekranach plakietka moze sie zlamac zamiast rozpychac strone. */
@media (max-width: 560px) {
	.trega-badge {
		white-space: normal;
		border-radius: 0.25rem;
		line-height: 1.35;
	}
}

/* --- Lista modeli (blok trega/modele-lista) ---
   Jeden model pod drugim, nie siatka. Wczesniej strona glowna miala dwie
   listy tych samych modeli - najpierw obrazki, nizej te same tytuly z
   przyciskiem - i nie bylo wiadomo, czy to ten sam dom, czy inny.
   Teraz jedna pozycja zawiera wszystko: wizualizacje, nazwe, haslo i przycisk. */

.trega-modele {
	margin-block: 3rem;
}

.trega-modele__naglowek {
	margin-bottom: 1.5rem;
	color: #353c33;
}

.trega-modele__lista {
	display: grid;
	gap: 3.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trega-modele__pozycja {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
}

.trega-modele__obraz {
	display: block;
}

.trega-modele__obraz img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 3px;
	object-fit: cover;
}

.trega-modele__tytul {
	margin: 0 0 0.5rem;
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.trega-modele__tytul a {
	color: #353c33;
	text-decoration: none;
}

.trega-modele__tytul a:hover,
.trega-modele__tytul a:focus-visible {
	text-decoration: underline;
	text-decoration-color: #727a5d;
	text-underline-offset: 0.2em;
}

.trega-modele__haslo {
	margin: 0 0 1.1rem;
	max-width: 42ch;
	color: #5f5a50;
	font-size: 0.98rem;
	line-height: 1.55;
}

/* Dok. 3 sekcja 3: karta ma pokazywac metraz, uklad modulow, kondygnacje,
   funkcje - nie tylko haslo i zdjecie. Osobna linia, cichsza niz haslo,
   bo to dane techniczne, nie komunikat marketingowy. */
.trega-modele__parametry {
	margin: 0 0 1.1rem;
	color: #353c33;
	font-size: 0.85rem;
	letter-spacing: 0.01em;
}

/* Odnosnik bez ikony - sam tekst z delikatnym podkresleniem.
   Strzalka byla za mocna i rozbijala spokojna typografie marki. */
.trega-modele__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: #353c33;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: #c9c9ab;
	text-underline-offset: 0.35em;
	transition: text-decoration-color 0.25s ease, color 0.25s ease;
}

.trega-modele__link:hover,
.trega-modele__link:focus-visible {
	color: #353c33;
	text-decoration-color: #727a5d;
}

.trega-modele__link:focus-visible {
	outline: 2px solid #353c33;
	outline-offset: 4px;
}

/* Na telefonie obraz nad tekstem. */
@media (max-width: 720px) {
	.trega-modele__pozycja {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.trega-modele__lista {
		gap: 2.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trega-modele__link {
		transition: none;
	}
}

/* Subtelne oddzielenie wariantow spoza podstawy oferty.
   Cienka linia i drobny, spokojny podpis - bez ramek i bez krzyku. */
.trega-modele__rozdzielnik {
	margin: 3rem 0 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid #c9c9ab;
	color: #5f5a50;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.trega-modele__lista--pozostale .trega-modele__tytul {
	font-size: clamp(1.15rem, 1.7vw, 1.4rem);
}

/* Wariant spoza podstawy ma TAK SAMO szeroki obraz jak reszta - inaczej
   pozycja wyglada na przypadkowo wciecie i psuje rytm kolumny.
   Roznice niesie sam rozdzielnik i nieco mniejszy tytul. */


/* ===============================================================
   JEDNA RAMKA DLA ZDJEC WPISOW
   Kazde zdjecie modelu, etapu i artykulu wypelnia identyczne pole 16:9.
   Wieksze zostaje przyciete, mniejsze przeskalowane w gore - nigdy
   rozciagniete. Kadrowanie od srodka, bo tam zwykle stoi bryla domu.
   =============================================================== */

.trega-modele__obraz img,
.trega-etapy__miniatura img,
.trega-concept-visual img,
.trega-home-model-visuals img,
.wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center;
}

/* Braki danych — jedna zwinięta pozycja zamiast kilkunastu plakietek.
   Zasada „mówimy, czego nie wiemy" zostaje; zmienia się tylko forma. */
.trega-spec__braki {
	margin-top: 1.25rem;
	padding: 0.85rem 1rem;
	border-left: 3px solid #c9c9ab;
	background: #faf7f2;
}

.trega-spec__braki summary {
	color: #5f5a50;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.trega-spec__braki summary:focus-visible {
	outline: 2px solid #353c33;
	outline-offset: 3px;
}

.trega-spec__braki-lista {
	margin: 0.75rem 0 0;
	color: #5f5a50;
	font-size: 0.85rem;
	line-height: 1.6;
}

.trega-spec__braki-opis {
	margin: 0.6rem 0 0;
	color: #5f5a50;
	font-size: 0.8rem;
	font-style: italic;
}

/* --- Macierz wykończenia (blok trega/wykonczenie) --- */
.trega-wykonczenie {
	margin-block: 2.5rem;
}

.trega-wykonczenie__title {
	margin: 0 0 1rem;
}

.trega-wykonczenie__table {
	border-top: 1px solid rgba(53, 60, 51, 0.2);
}

.trega-wykonczenie__row {
	display: grid;
	grid-template-columns: minmax(11rem, 1.1fr) minmax(12rem, 1fr) minmax(16rem, 1.5fr);
	gap: 1rem;
	align-items: start;
	padding: 0.9rem 0;
	border-bottom: 1px solid rgba(53, 60, 51, 0.15);
}

.trega-wykonczenie__row--head {
	padding-block: 0.65rem;
	color: #353c33;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.trega-wykonczenie__obszar {
	font-weight: 600;
	color: #353c33;
}

.trega-wykonczenie__status,
.trega-wykonczenie__zasada {
	font-size: 0.9375rem;
}

.trega-wykonczenie__zasada {
	color: #5c6459;
}

.trega-wykonczenie__badge {
	display: inline-block;
	padding: 0.25em 0.65em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.35;
	text-transform: uppercase;
}

.trega-wykonczenie__badge--koncepcyjne {
	background: #e4e4d5;
	color: #353c33;
}

.trega-wykonczenie__badge--produkcja {
	background: #eadeca;
	color: #6b4f1d;
}

.trega-wykonczenie__badge--brak-danych {
	background: #f4e3e3;
	color: #8a2b2b;
}

.trega-wykonczenie__cta {
	margin: 1.5rem 0 0;
}

@media (max-width: 700px) {
	.trega-wykonczenie__row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.trega-wykonczenie__row--head {
		display: none;
	}

	.trega-wykonczenie__status,
	.trega-wykonczenie__zasada {
		font-size: 0.875rem;
	}
}

/* ---------------------------------------------------------------
   Rzut i uklad modulow - blok trega/model-spec
   Arkusz rysunku jest poziomy i gesty; na telefonie klikniecie otwiera
   pelna rozdzielczosc do powiekszenia palcami.
   --------------------------------------------------------------- */
.trega-rzut {
	margin-block: 2.5rem;
}

.trega-rzut__title {
	margin: 0 0 1rem;
}

.trega-rzut__figura {
	margin: 0;
}

.trega-rzut__link {
	display: block;
	border: 1px solid rgba(53, 60, 51, 0.18);
	background: #fcf8f5;
	cursor: zoom-in;
}

.trega-rzut__link img {
	display: block;
	width: 100%;
	height: auto;
}

.trega-rzut__podpis {
	margin-top: 0.6rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #353c33;
}

/* Trzy kroki "co dalej" nad formularzem: klient wie, czego sie spodziewac,
   zanim zostawi dane (krytyka impeccable 2026-09-19). */
.trega-kontakt__kroki {
	display: grid;
	gap: 0.6rem;
	max-width: 34rem;
	margin: 0 0 1.75rem;
	padding-left: 1.3rem;
	color: #353c33;
	font-size: 0.95rem;
	line-height: 1.5;
}

.trega-kontakt__kroki strong {
	font-weight: 600;
}

/* ---------------------------------------------------------------
   Przejscie do etapow montazu - blok trega/etapy-cta
   Bylo zwyklym podkreslonym linkiem w akapicie, wiec najciekawsza czesc
   strony wygladala jak przypis (uwaga uzytkownika, 2026-09-19).
   --------------------------------------------------------------- */
.trega-etapy-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	margin-block: var(--wp--preset--spacing--50, 3rem);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: 3px;
	background: var(--wp--preset--color--warm-sand);
}

.trega-etapy-cta__tytul {
	margin: 0 0 0.6rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.trega-etapy-cta__opis {
	margin: 0 0 1.4rem;
	max-width: 34ch;
	line-height: 1.55;
}

.trega-etapy-cta__akcja {
	margin: 0;
}

.trega-etapy-cta__button {
	display: inline-flex;
	align-items: center;
	min-height: 2.9rem;
	padding: 0.8rem 1.4rem;
	border-radius: 2px;
	background: var(--wp--preset--color--deep-green);
	color: var(--wp--preset--color--warm-white);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.trega-etapy-cta__button:hover,
.trega-etapy-cta__button:focus-visible {
	background: var(--wp--preset--color--olive-green);
	color: var(--wp--preset--color--warm-white);
}

/* Pokaz slajdow: jedno duze pole zamiast siatki malych kadrow, wypelnia
   cala dostepna kolumne po prawej (zgloszenie uzytkownika, 2026-09-21).
   Wysokosc liczona z proporcji zdjec (4:3, tak jak w karcie modelu),
   nie ze sztywnej liczby px - dopasowuje sie do szerokosci kolumny. */
.trega-etapy-cta__pokaz {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 3px;
	background: var(--wp--preset--color--natural-beige, #e4ded0);
}

.trega-etapy-cta__klatka {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.9s ease;
}

.trega-etapy-cta__klatka.jest-widoczna {
	opacity: 1;
}

.trega-etapy-cta__klatka img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
	.trega-etapy-cta__klatka {
		transition: none;
	}
}

.trega-etapy-cta__kadr {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	aspect-ratio: 4 / 3;
}

.trega-etapy-cta__kadr img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 782px) {
	.trega-etapy-cta {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------
   Okruszki - blok trega/okruszki
   Na telefonie zaznaczenie sekcji w menu widac dopiero po jego otwarciu,
   wiec sciezka stoi wprost nad trescia (uwaga uzytkownika, 2026-09-19).
   --------------------------------------------------------------- */
.trega-okruszki {
	margin-bottom: 1.25rem;
}

.trega-okruszki__lista {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
	line-height: 1.4;
	color: #353c33;
}

.trega-okruszki__krok + .trega-okruszki__krok::before {
	content: "›";
	margin-right: 0.5rem;
	color: #727a5d;
}

.trega-okruszki__krok a {
	color: #353c33;
	text-decoration-color: #c9c9ab;
	text-underline-offset: 0.2em;
}

.trega-okruszki__krok a:hover,
.trega-okruszki__krok a:focus-visible {
	text-decoration-color: #727a5d;
	text-decoration-thickness: 2px;
}

.trega-okruszki__krok [aria-current="page"] {
	font-weight: 600;
}

/* ---------------------------------------------------------------
   Doświadczenie Eurodom — blok trega/eurodom
   Relacja z Trega pozostaje jawnie oznaczona do potwierdzenia.
   --------------------------------------------------------------- */
.trega-eurodom {
	margin-block: 2.5rem;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border-top: 3px solid #727a5d;
	background: #f5efe5;
	color: #353c33;
}

.trega-eurodom__title {
	margin-top: 0;
	color: #353c33;
}

.trega-eurodom__intro {
	max-width: 48rem;
}

.trega-eurodom__list {
	display: grid;
	gap: 0.9rem;
	margin: 1.5rem 0;
}

.trega-eurodom__row {
	display: grid;
	grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
	gap: 0.5rem 1.25rem;
	padding-block: 0.9rem;
	border-bottom: 1px solid #c9c9ab;
}

.trega-eurodom__label {
	font-weight: 700;
}

.trega-eurodom__value {
	margin: 0;
}

.trega-eurodom__value .trega-badge {
	display: inline-block;
	margin-top: 0.35rem;
}

.trega-eurodom__disclaimer {
	margin: 1.5rem 0 0;
	padding: 0.85rem 1rem;
	border-left: 3px solid #8a6d3b;
	background: #fcf8f5;
}

/* Filtry archiwum bazy wiedzy. */
.trega-wiedza-filtry {
	margin-block: 1.5rem;
	padding: 1rem;
	border: 1px solid #c9c9ab;
	background: #fcf8f5;
}

.trega-wiedza-filtry__etykieta {
	margin: 0 0 .65rem;
	font-size: .85rem;
	font-weight: 700;
	color: #353c33;
}

.trega-wiedza-filtry__lista {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trega-wiedza-filtry__link {
	display: inline-block;
	padding: .45rem .75rem;
	border: 1px solid #727a5d;
	border-radius: 999px;
	color: #353c33;
	font-size: .875rem;
	text-decoration: none;
}

.trega-wiedza-filtry__link:hover,
.trega-wiedza-filtry__link:focus-visible,
.trega-wiedza-filtry__link.is-active {
	background: #353c33;
	color: #fcf8f5;
}

.trega-wiedza-filtry__link:focus-visible {
	outline: 2px solid #353c33;
	outline-offset: 3px;
}

/* Minimalny profil eksperta. */
.trega-expert-profile {
	margin-block: 2rem;
	padding: 1.5rem;
	border: 1px solid #c9c9ab;
	background: #fcf8f5;
}

.trega-expert-profile__title,
.trega-expert-profile__related h3 {
	color: #353c33;
}

.trega-expert-profile__title {
	margin-bottom: 0.15rem;
}

/* Rola jako podtytul tuz pod nazwiskiem - oliwka, nie ciemna ziele,
   zeby wizualnie byla drugorzedna wobec imienia i nazwiska. */
.trega-expert-profile__rola {
	margin: 0 0 0.85rem;
	color: #727a5d;
	font-weight: 600;
}

.trega-expert-profile__kompetencje {
	margin: 0;
}

.trega-expert-profile__related ul {
	margin-bottom: 0;
}

/* Zespół: rozwijane profile oparte na natywnym details/summary. */
.trega-zespol__pozycja {
	margin-block: 0.75rem;
	border: 1px solid #c9c9ab;
	background: #fcf8f5;
}

.trega-zespol__osoba {
	padding: 1rem 1.25rem;
	color: #353c33;
	font-weight: 600;
	cursor: pointer;
}

.trega-zespol__osoba:focus-visible {
	outline: 2px solid #353c33;
	outline-offset: 3px;
}

.trega-zespol__profil {
	padding-inline: 1.25rem;
}

.trega-zespol__profil .trega-expert-profile {
	margin-block: 0;
	padding: 0 0 1.25rem;
	border: 0;
	background: transparent;
}

@media (max-width: 600px) {
	.trega-expert-profile__row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.trega-eurodom__row {
		grid-template-columns: 1fr;
	}
}

.trega-spec__provenance,
.trega-spec__provenance a {
	color: #FCF8F5 !important;
}

.trega-spec__provenance,
.trega-spec__provenance a {
	color: #FCF8F5 !important;
}
