/* =========================================================================
   Widoki: STRONA TREŚCI (Figma 17:2 / 17:7), KONTAKT (17:12 / 17:17), 404 (18:2 / 18:6).
   Szablony: page.php, page-kontakt.php, 404.php. Komputer = @media (min-width: 1024px), telefon = (max-width: 1023.98px).
   ========================================================================= */

/* --- WoodMart owija szablon w .container + siatkę z paskiem bocznym; nasze widoki są pełnej szerokości --- */
.main-page-wrapper:has(.pf-ct, .pf-404) { padding: 0 !important; margin: 0 !important; }
.wd-content-layout:has(.pf-ct, .pf-404) { display: block !important; max-width: none !important; padding: 0 !important; }
.wd-content-area:has(.pf-ct, .pf-404) { width: 100% !important; max-width: none !important; padding: 0 !important; }

/* Przycisk otwierający pasek boczny WoodMart (nie ma go w Figmie, a na tych stronach paska bocznego nie ma). */
body:has(.pf-ct, .pf-404) .wd-sidebar-opener { display: none !important; }

.pf-ct, .pf-404 { font-family: var(--pf-font); }
.pf-ct p, .pf-ct ul, .pf-ct ol, .pf-ct li, .pf-ct h1, .pf-ct h2, .pf-ct h3 { margin: 0; padding: 0; }

.pf-ct-wrap { box-sizing: border-box; width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 24px; }

/* --- Pas z tytułem (17:4) --- */
.pf-ct-hero { background: var(--pf-ink); color: var(--pf-cream); }
.pf-ct-hero .pf-ct-wrap { display: flex; flex-direction: column; gap: 24px; padding-block: 48px; }
.pf-ct .pf-ct-crumbs { font: 400 13px/1.5 var(--pf-font); color: var(--pf-muted); }
.pf-ct-crumbs a { color: inherit; text-decoration: none; }
.pf-ct-crumbs a:hover { color: var(--pf-lime); }
.pf-ct-crumbs span:not([aria-current]) { margin-inline: 6px; }
.pf-ct .pf-ct-kicker { font: 600 12px/1.5 var(--pf-font); color: var(--pf-lime); }
.pf-ct .pf-ct-h1 { font: italic 700 64px/1.08 var(--pf-display); text-transform: uppercase; color: var(--pf-cream); letter-spacing: 0; }
.pf-ct .pf-ct-lead { font: 400 18px/1.5 var(--pf-font); color: var(--pf-muted); }

/* --- Treść: spis + artykuł (17:5) --- */
.pf-ct-body { background: var(--pf-sand); padding-block: 56px; }
.pf-ct-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); column-gap: 80px; align-items: start; justify-content: start; }

.pf-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.pf-toc__toggle { display: none; }
.pf-ct .pf-toc__label { font: 500 14px/1.5 var(--pf-font); color: var(--pf-text-2); }
.pf-toc__list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.pf-toc__list a { display: flex; gap: 12px; padding: 12px; font: 400 14px/1.5 var(--pf-font); color: var(--pf-ink); text-decoration: none; }
.pf-toc__list a:hover .pf-toc__t { color: var(--pf-purple); }
.pf-toc__n { flex: none; font-weight: 500; color: var(--pf-text-2); }
.pf-toc--roman .pf-toc__n { min-width: 30px; }
.pf-toc__list a.is-active { background: var(--pf-cream); color: var(--pf-purple); font-weight: 500; }
.pf-toc__list a.is-active .pf-toc__n { color: var(--pf-purple); }
.pf-toc__tip { display: flex; flex-direction: column; gap: 8px; padding: 24px 20px 20px; background: var(--pf-cream); }
.pf-ct .pf-toc__tip-t { font: 600 20px/1.15 var(--pf-display); color: var(--pf-ink); }
.pf-toc__tip--hours { padding-bottom: 16px; }
.pf-ct .pf-toc__tip--hours .pf-toc__tip-t { font-size: 22px; }
.pf-ct .pf-toc__tip-d { font: 400 14px/1.5 var(--pf-font); color: var(--pf-text-2); }

.pf-ct-article { min-width: 0; }

/* Najważniejsze w skrócie (17:262) */
.pf-summary { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; padding: 28px; background: var(--pf-cream); border: 1px solid var(--pf-muted); border-left-width: 4px; }
.pf-ct .pf-summary__t { font: 600 26px/1.15 var(--pf-display); text-transform: uppercase; color: var(--pf-ink); }
.pf-summary ol { display: flex; flex-direction: column; gap: 16px; list-style: none; }
.pf-summary li { display: flex; gap: 12px; line-height: 1.5; }
.pf-summary li span { flex: none; min-width: 16px; font: 500 14px/1.5 var(--pf-font); color: var(--pf-purple); }
.pf-ct .pf-summary li p { font: 400 16px/1.5 var(--pf-font); color: var(--pf-ink); }

/* Typografia treści (the_content) */
.pf-prose { color: var(--pf-ink); overflow-wrap: break-word; }
.pf-ct .pf-prose > * + * { margin-top: 16px; }
.pf-ct .pf-prose > .pf-prose__h { margin-top: 40px; }
.pf-ct .pf-prose > .pf-prose__h:first-child { margin-top: 0; }
.pf-ct .pf-prose__h { display: flex; align-items: flex-start; gap: 14px; font: 600 32px/1.15 var(--pf-display); text-transform: uppercase; color: var(--pf-ink); scroll-margin-top: 24px; }
.pf-prose__num { flex: none; margin-top: 6.5px; font: 500 16px/1.5 var(--pf-font); text-transform: none; color: var(--pf-purple); }
.pf-prose__num--r { min-width: 38px; }
.pf-ct .pf-prose p { font: 400 18px/1.5 var(--pf-font); }
.pf-ct .pf-prose h3 { font: 600 24px/1.15 var(--pf-display); text-transform: uppercase; }
.pf-ct .pf-prose ul, .pf-ct .pf-prose ol { font: 400 16px/1.5 var(--pf-font); }
.pf-ct .pf-prose ul { list-style: none; }
.pf-ct .pf-prose ul > li { position: relative; padding-left: 13px; }
.pf-ct .pf-prose ul > li::before { content: "•"; position: absolute; left: 0; }
.pf-ct .pf-prose ol { padding-left: 28px; list-style: decimal; }
.pf-ct .pf-prose ol > li + li { margin-top: 6px; }
.pf-ct .pf-prose li > ul, .pf-ct .pf-prose li > ol { margin-top: 6px; }
.pf-prose strong { font-weight: 500; }
.pf-prose a { color: var(--pf-purple); text-decoration: underline; text-underline-offset: 2px; }
.pf-prose a:hover { text-decoration-thickness: 2px; }

/* Przycisk z Figmy: tekst + strzałka → */
.pf-ct-btn { justify-content: center; gap: 16px; box-sizing: border-box; padding: 13px 20px; font: 500 16px/1.5 var(--pf-font); white-space: nowrap; }
.pf-ct-btn__a { font: 400 18px/1.5 var(--pf-font); }
.pf-ct-btn--outline { background: var(--pf-cream); border-width: 1px; border-color: var(--pf-purple); box-shadow: none; color: var(--pf-purple) !important; padding-inline: 12px; }
.pf-ct-btn--outline:hover, .pf-ct-btn--outline:active { transform: none; box-shadow: none; }

/* Potrzebujesz informacji? (17:308) */
.pf-help { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; padding: 24px; background: var(--pf-cream); border: 1px solid var(--pf-muted); }
.pf-ct .pf-help__t { font: 600 24px/1.15 var(--pf-display); text-transform: uppercase; color: var(--pf-ink); }
.pf-ct .pf-help p { font: 400 16px/1.5 var(--pf-font); color: var(--pf-ink); }
.pf-help p a { color: inherit; text-decoration: none; }

/* --- Kontakt --- */
.pf-sec { display: flex; flex-direction: column; gap: 16px; }
.pf-sec + .pf-sec { margin-top: 40px; }
.pf-ct .pf-sec__p { font: 400 18px/1.5 var(--pf-font); color: var(--pf-ink); }
.pf-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pf-channel { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--pf-cream); border: 1.5px solid var(--pf-ink); border-radius: 4px; }
.pf-ct .pf-channel__t { font: 600 28px/1.15 var(--pf-display); text-transform: uppercase; color: var(--pf-ink); }
.pf-ct .pf-channel__v { font: 500 23px/35px var(--pf-font); color: var(--pf-ink); }
.pf-ct .pf-channel__d { font: 400 14px/1.5 var(--pf-font); color: var(--pf-text-2); }
.pf-channel .pf-btn { align-self: stretch; }
.pf-ct .pf-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--pf-cream); border: 1px solid var(--pf-muted); }
.pf-ct .pf-card p { font: 400 16px/1.5 var(--pf-font); color: var(--pf-text-2); }
.pf-ct .pf-card .pf-card__name { font: 500 22px/1.5 var(--pf-font); color: var(--pf-ink); }
.pf-ct .pf-card--return { gap: 20px; }
.pf-ct .pf-card .pf-card__addr { font: 500 18px/1.5 var(--pf-font); color: var(--pf-ink); }
.pf-note { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--pf-sand); }
.pf-ct .pf-note p { font: 400 16px/1.5 var(--pf-font); color: var(--pf-text-2); }
.pf-ct .pf-note .pf-note__t { font-weight: 500; color: var(--pf-ink); }
.pf-note a { color: inherit; text-decoration: none; }
.pf-sec a.pf-sec__link { font: 500 16px/1.5 var(--pf-font); color: var(--pf-purple); text-decoration: none; }
.pf-age { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--pf-muted); }
.pf-ct .pf-age__t { font: 600 18px/1.15 var(--pf-display); text-transform: uppercase; color: var(--pf-ink); }
.pf-ct .pf-age__d { font: 400 14px/1.5 var(--pf-font); color: var(--pf-text-2); }

/* --- 404 (18:4) --- */
.pf-404 { background: var(--pf-ink); color: var(--pf-cream); }
.pf-404__in { position: relative; box-sizing: border-box; max-width: 1440px; height: 700px; margin-inline: auto; }
.pf-404__in::after { content: ""; position: absolute; left: 48px; right: 48px; bottom: 0; height: 1px; background: var(--pf-ink-2); }
.pf-404 p, .pf-404 h1 { margin-top: 0; margin-bottom: 0; }
.pf-404__kicker { position: absolute; top: 32px; left: 0; right: 0; font: 500 11px/15.4px var(--pf-font); text-align: center; color: var(--pf-muted); }
.pf-404__num { position: absolute; top: 40px; left: 50%; width: 572px; margin-left: -286px; font: italic 700 284px/284px var(--pf-display); text-align: center; }
.pf-404__num span { background: linear-gradient(180deg, #fff 0%, #c9ccd1 35%, #fff 48%, #c9ccd1 50%, #fff 72%, #c9ccd1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-404__num i { position: absolute; left: 500px; top: 252px; width: 48px; height: 10px; background: var(--pf-lime); }
.pf-404__title { position: absolute; top: 340px; left: 50%; width: 720px; margin-left: -360px; font: italic 700 52px/57.2px var(--pf-display) !important; text-align: center; color: var(--pf-cream) !important; text-transform: none !important; }
.pf-404__lead { position: absolute; top: 407px; left: 50%; width: 568px; margin-left: -284px; font: 400 17px/23.8px var(--pf-font); text-align: center; color: var(--pf-muted); }
.pf-404__search { position: absolute; top: 472px; left: 50%; width: 568px; margin: 0 0 0 -284px; }
.pf-404__label { display: block; margin: 0 0 10px; font: 500 14px/19.6px var(--pf-font); color: var(--pf-cream); }
.pf-404__field { position: relative; display: flex; align-items: stretch; height: 56px; border-radius: 4px; background: var(--pf-cream); overflow: hidden; }
.pf-404__field .pf-icon { position: absolute; left: 16px; top: 16px; }
.pf-404__field input[type="search"] { flex: 1; min-width: 0; height: 56px; padding: 0 16px 0 52px; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--pf-ink); font: 400 15px/21px var(--pf-font); }
.pf-404__field input::placeholder { color: var(--pf-text-2); opacity: 1; }
.pf-404__field button { flex: none; width: 104px; padding: 0; border: 0; border-radius: 0; background: var(--pf-purple); color: var(--pf-cream); font: 600 15px/21px var(--pf-font); text-transform: none; cursor: pointer; }
.pf-404__field button:hover { background: #5a1cc4; }
.pf-404__links { position: absolute; top: 578px; left: 50%; display: flex; gap: 12px; width: 568px; margin-left: -284px; }
.pf-404__link { box-sizing: border-box; height: 56px; padding: 0 18px; font: 600 15px/21px var(--pf-font); text-decoration: none; }
.pf-404__link:first-child { width: 282px; }
.pf-404__link--alt { display: flex; align-items: center; justify-content: space-between; flex: 0 0 274px; width: 274px; padding: 0 19px; border: 1px solid var(--pf-text-2); border-radius: 4px; background: var(--pf-ink-2); color: var(--pf-cream); }
.pf-404__link--alt:hover { border-color: var(--pf-muted); color: var(--pf-cream); }
.pf-404__link .pf-icon { width: 24px; height: 24px; }

/* =========================== TELEFON =========================== */
@media (max-width: 1023.98px) {
	.pf-ct-wrap { padding-inline: 20px; }
	.pf-ct-hero .pf-ct-wrap { gap: 20px; padding-block: 28px 27px; }
	.pf-ct .pf-ct-crumbs { font-size: 12px; }
	.pf-ct .pf-ct-h1 { margin-top: 4px; font-size: 44px; }
	.pf-ct .pf-ct-lead { margin-top: -4px; font-size: 16px; }

	.pf-ct-body { padding-block: 24px; }
	.pf-ct-grid { display: block; }

	/* Spis treści = rozwijana lista; kafel „18+/Polska” tylko na komputerze */
	.pf-toc { position: static; margin-bottom: 24px; padding: 0; gap: 0; }
	.pf-toc--empty { display: none; }
	.pf-toc__tip, .pf-ct .pf-toc__label { display: none; }
	.pf-toc__toggle { display: flex; align-items: flex-start; justify-content: space-between; box-sizing: border-box; width: 100%; height: 55px; padding: 12px 16px 0; border: 1px solid var(--pf-muted); border-radius: 0; background: transparent; color: var(--pf-ink); font: 500 16px/24px var(--pf-font); text-transform: none; text-align: left; cursor: pointer; }
	.pf-toc__toggle .pf-icon { margin-top: 11px; }
	.pf-toc.is-open .pf-toc__toggle .pf-icon { transform: rotate(180deg); }
	.pf-toc__list { display: none; gap: 0; border: 1px solid var(--pf-muted); border-top: 0; background: var(--pf-cream); }
	.pf-toc.is-open .pf-toc__list { display: flex; }
	.pf-toc__list a { padding: 12px 16px; font-size: 15px; }

	.pf-summary { margin-bottom: 32px; padding: 24px 20px; border: 1.5px solid var(--pf-ink); border-radius: 4px; }
	.pf-ct .pf-summary__t { font-size: 24px; }

	.pf-ct .pf-prose > .pf-prose__h { margin-top: 32px; }
	.pf-ct .pf-prose > .pf-prose__h:first-child { margin-top: 0; }
	.pf-ct .pf-prose__h { gap: 14px; font-size: 28px; scroll-margin-top: 16px; }
	.pf-sec + .pf-sec, .pf-age { margin-top: 32px; }
	.pf-prose__num { margin-top: 4px; }
	.pf-ct .pf-prose p { font-size: 16px; }
	.pf-ct .pf-prose h3 { font-size: 22px; }

	.pf-help { align-items: stretch; margin-top: 32px; padding: 24px 20px; border: 1.5px solid var(--pf-ink); border-radius: 4px; }
	.pf-help .pf-btn { align-self: stretch; }

	.pf-ct .pf-sec__p { font-size: 16px; }
	.pf-channels { grid-template-columns: 1fr; }
	.pf-ct .pf-channel__v { font-size: 22px; line-height: 33px; }
	.pf-ct .pf-card { border: 1.5px solid var(--pf-ink); border-radius: 4px; }
	.pf-ct .pf-card .pf-card__name { font-size: 20px; }
	.pf-ct .pf-card .pf-card__addr { font-size: 18px; }

	/* 404 */
	.pf-404__in { height: auto; min-height: 688px; padding: 0 24px 0; display: flex; flex-direction: column; align-items: stretch; }
	.pf-404__in::after { left: 24px; right: 24px; }
	.pf-404__in > * { position: static !important; width: auto !important; margin-left: 0 !important; }
	.pf-404__kicker { margin-top: 28px !important; font-size: 11px; }
	.pf-404__num { position: relative !important; left: auto; top: auto; align-self: center; width: 254px !important; margin: 0 !important; font-size: 186px; line-height: 186px; letter-spacing: 4px; text-indent: 4px; }
	.pf-404__num i { left: 215px; top: 164px; width: 32px; height: 7px; }
	.pf-404__title { margin-top: 30px !important; font-size: 36px !important; line-height: 40px !important; }
	.pf-404__lead { margin-top: 13px !important; font-size: 16px; line-height: 22px; }
	.pf-404__search { margin-top: 42px !important; }
	.pf-404__label { margin-bottom: 8px; }
	.pf-404__links { flex-direction: column; margin-top: 20px !important; }
	.pf-404__link:first-child, .pf-404__link--alt { width: 100% !important; flex: none; }
	.pf-404__link--alt { padding: 0 18px; }
}

/* Dostawa (17:2): ramka notki na kremowym tle i odstęp między metodami w karcie — decyzje Michała 14.11.2026. */
.pf-ct .pf-prose .pf-note { background: var(--pf-cream); padding: 16px 20px; }
.pf-ct .pf-prose .pf-card p + .pf-card__name { margin-top: 24px; }

/* Ulubione: pas tytułu na tej samej krawędzi co siatka kart (QA 14.11 Q24). */
.pf-fav .pf-ct-hero .pf-ct-wrap { max-width: calc(var(--pf-container) + 2 * var(--pf-gutter)); padding-inline: var(--pf-gutter); }
/* 1024–1295: wąski ekran — treść stron informacyjnych na krawędzi nagłówka (48 px), nie 24 px (QA 14.11 Q20). */
@media (min-width: 1024px) and (max-width: 1295.98px) {
	.pf-ct-wrap { padding-inline: calc(var(--pf-gutter) - max(0px, (100vw - 1248px) / 2)); }
}
