/* =====================================================
   PODSTRONY PRZENIESIONE ZE STAREJ STRONY (v2.page.show)
   =====================================================
   Treść 1:1 ze starej strony WordPress, forma mockupu v4. Klasy pg-* to klasy BEM
   motywu „rekurencja-theme" z prefiksem (ekstraktor _scan/extract_site.php) — tu dostają
   wygląd nowego projektu. Tokeny kolorów, fonty i rytm z main.css. */

.pgc-page { background: var(--color-bg); }

/* === OKRUSZKI === */
.pgc-breadcrumbs { padding: 18px var(--gutter) 0; max-width: var(--max-width); margin: 0 auto; }
.pgc-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--color-label); }
.pgc-breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--color-line-soft); }
.pgc-breadcrumbs a { color: var(--color-text-2); text-decoration: none; }
.pgc-breadcrumbs a:hover { color: var(--color-accent); }
.pgc-breadcrumbs [aria-current] { color: var(--color-text); }

/* === BLOK — wspólne === */
.pgc { padding: calc(var(--section-y) * .55) var(--gutter); }
.pgc > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.pgc:nth-of-type(even):not(.pgc--title-section-realization):not(.pgc--title-section-archive):not(.pgc--title-section-about):not(.pgc--title-section-contact):not(.pgc--hero) { background: var(--color-bg-alt); }
.pgc .pg-content--white { /* jasny wariant starej strony → naprzemienne tło przez :nth-of-type */ }

.pgc h1, .pgc h2, .pgc h3, .pgc h4 { color: var(--color-text); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
.pgc h1 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.01em; }
/* H1 w kolumnie obok zdjęcia/filmu (połowa albo trzecia część szerokości) — mniejszy, inaczej łamie się co słowo
   i najdłuższe słowo wychodzi poza kolumnę (Mistrz świata, Autofan). */
.pg-image-text__row h1, .pg-text-image__row h1, .pgc--text-image .pg-content--white h1, .pgc--text-image .pg-content--black h1 { font-size: clamp(28px, 2.6vw, 40px); }
.pgc h2 { font-size: clamp(24px, 2.6vw, 36px); }
.pgc h3 { font-size: clamp(19px, 1.7vw, 24px); margin-top: 1.4em; }
.pgc h4 { font-size: 18px; margin-top: 1.2em; }
.pgc h1 strong, .pgc h2 strong, .pgc h3 strong { color: var(--color-accent); font-weight: inherit; }
.pgc p, .pgc li { color: var(--color-text-2); font-size: 16px; line-height: 1.75; }
.pgc p { margin: 0 0 1em; }
.pgc p strong, .pgc li strong { color: var(--color-text); }
.pgc ul, .pgc ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.pgc li { margin: .25em 0; }
.pgc ul li::marker { color: var(--color-accent); }
.pgc a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.pgc a:hover { color: var(--color-accent-hover); }
.pgc img { display: block; max-width: 100%; height: auto; }
.pgc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.pgc th, .pgc td { border: 1px solid var(--color-line); padding: 10px 12px; text-align: left; color: var(--color-text-2); vertical-align: top; }
/* Tabela szersza niż ekran telefonu przewija się w swoim pudełku, zamiast ucinać ostatnią kolumnę (Szkolenia: ceny). */
.pgc div:has(> table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 599.98px) { .pgc th, .pgc td { padding: 8px 9px; font-size: 14px; } }
/* Długie słowa i adresy (https://…) łamią się w kolumnie zamiast wystawać za ekran. */
.pgc :is(h1, h2, h3, h4, p, li, td, th, a) { overflow-wrap: break-word; }
.pgc th { color: var(--color-text); background: var(--color-bg-deep); }
/* Ramka informacyjna w treści (np. „Powłoka tytanowa jest obecnie niedostępna”). */
.pgc .pg-notice { padding: 18px 22px; border: 1px solid var(--color-accent); border-left-width: 4px; border-radius: var(--radius); background: var(--color-bg-deep); }
.pgc .pg-notice p { margin: 0; color: var(--color-text); }
/* Karty pakietów z wyraźnym „Zobacz…” (np. /uslugi/folie-ppf/) — cała karta klikalna. */
.pgc .pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 8px; }
/* Kilka grup kart pod sobą (np. /obszar-dzialania/: PPF, powłoki, polerowanie) — nagłówek grupy odsunięty od kart wyżej. */
.pgc .pg-cards + h2 { margin-top: 48px; }
.pgc .pg-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-bg-deep); color: var(--color-text); text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
.pgc .pg-card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.pgc .pg-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pg-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 18px 20px; }
.pg-card__name { font-size: 20px; font-weight: 600; }
.pg-card__desc { font-size: 14px; line-height: 1.5; color: var(--color-text-2); flex: 1; }
.pg-card__price { font-weight: 600; color: var(--color-accent); }
.pg-card__more { align-self: flex-start; margin-top: 6px; padding: 10px 16px; border-radius: var(--radius); background: var(--color-accent); color: var(--color-on-accent); font-size: 14px; font-weight: 600; }
.pgc .pg-card:hover .pg-card__more { filter: brightness(1.08); }
.pgc iframe { width: 100%; border: 0; }

/* Przyciski starej strony (button, …__button) → przycisk w akcencie mockupu. */
.pgc [class*="__button"], .pgc .pg-title-section__button {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    padding: 14px 26px; background: var(--color-accent); color: var(--color-on-accent);
    font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
    text-decoration: none; border-radius: var(--radius);
}
.pgc [class*="__button"]:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }

/* === NAGŁÓWKI SEKCJI TYTUŁOWYCH (realizacja / archiwum / o nas / kontakt / hero) === */
.pgc--title-section-realization, .pgc--title-section-archive, .pgc--title-section-about,
.pgc--title-section-contact, .pgc--hero { position: relative; padding: 0; overflow: hidden; background: var(--color-bg-deep); }
.pgc--title-section-realization > *, .pgc--title-section-archive > *, .pgc--title-section-about > *,
.pgc--title-section-contact > *, .pgc--hero > * { max-width: none; }
.pg-title-section-realization__row, .pg-title-section-archive, .pg-title-section-about,
.pg-title-section-contact, .pg-hero__slider > div { position: relative; min-height: clamp(320px, 42vw, 560px); display: flex; align-items: flex-end; }
.pg-title-section-realization__row > picture, .pg-title-section-archive > picture, .pg-title-section-about > picture,
.pg-title-section-contact > picture, .pg-hero__bg {
    position: absolute; inset: 0; z-index: 0;
}
.pg-title-section-realization__row > picture img, .pg-title-section-archive > picture img, .pg-title-section-about > picture img,
.pg-title-section-contact > picture img, .pg-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pg-title-section-realization__row::after, .pg-title-section-archive::after, .pg-title-section-about::after,
.pg-title-section-contact::after, .pg-hero__slider > div::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(18,18,18,.25) 0%, rgba(18,18,18,.65) 55%, rgba(18,18,18,.94) 100%);
}
.pg-title-section-realization__content, .pg-title-section-archive__row, .pg-title-section-about__row,
.pg-hero__slider > div > div:last-child {
    position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto;
    padding: clamp(32px, 5vw, 72px) var(--gutter);
}
.pg-title-section-archive > div, .pg-title-section-about > div, .pg-title-section-contact > div { position: relative; z-index: 2; width: 100%; }
.pg-title-section-realization__heading, .pg-title-section-archive__heading, .pg-title-section-about__heading, .pg-hero__heading {
    font-size: clamp(32px, 4vw, 54px); font-weight: 600; color: var(--color-text); line-height: 1.1; margin-bottom: 14px;
}
.pg-title-section-realization__heading h1, .pg-title-section-archive__heading h1,
.pg-title-section-about__heading h1, .pg-hero__heading h1 { margin: 0; text-transform: none; }
.pg-hero__heading h1 { text-transform: uppercase; }
.pg-title-section-realization__description, .pg-title-section-archive__description,
.pg-title-section-about__description, .pg-hero__description { max-width: 820px; }
.pg-title-section-realization__description, .pg-title-section-realization__description p,
.pg-title-section-archive__description p, .pg-title-section-about__description p, .pg-hero__description p {
    color: var(--color-text-hero); font-size: 17px; line-height: 1.7;
}

/* Tekst POD zdjęciem, nie na nim (właściciel/klient 2026-10-14 — „problem globalny”, jak hero na stronie
   głównej): zdjęcie to pas u góry, dołem wtapia się w tło, tytuł i opis stoją na jednolitym tle pod nim.
   Dotyczy nagłówków ze zdjęciem; bez zdjęcia (wydarzenia, tagi) układ bez zmian. */
.pg-title-section-realization__row:has(> picture), .pg-title-section-archive:has(> picture),
.pg-title-section-about:has(> picture), .pg-title-section-contact:has(> picture),
.pg-hero__slider > div:has(> .pg-hero__bg) { display: block; min-height: 0; }
.pg-title-section-realization__row:has(> picture)::after, .pg-title-section-archive:has(> picture)::after,
.pg-title-section-about:has(> picture)::after, .pg-title-section-contact:has(> picture)::after,
.pg-hero__slider > div:has(> .pg-hero__bg)::after { content: none; }
.pg-title-section-realization__row > picture, .pg-title-section-archive > picture, .pg-title-section-about > picture,
.pg-title-section-contact > picture, .pg-hero__bg {
    position: relative; inset: auto; display: block; height: clamp(200px, 32vw, 460px); overflow: hidden;
}
.pg-title-section-realization__row > picture::after, .pg-title-section-archive > picture::after,
.pg-title-section-about > picture::after, .pg-title-section-contact > picture::after, .pg-hero__bg::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, var(--color-bg-deep) 0%, rgba(18, 18, 18, 0) 30%);
}
.pg-title-section-realization__row:has(> picture) .pg-title-section-realization__content,
.pg-title-section-archive:has(> picture) .pg-title-section-archive__row,
.pg-title-section-about:has(> picture) .pg-title-section-about__row,
.pg-title-section-contact:has(> picture) .pg-title-section-archive__row,
.pg-hero__slider > div:has(> .pg-hero__bg) > div:last-child { padding-top: clamp(8px, 2vw, 24px); }

/* === KAFLE TYPÓW NADWOZIA (cennik) === */
.pg-title-section__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 auto 32px; }
.pg-title-section__tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; border: 1px solid var(--color-line); background: var(--color-bg-deep); text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text); }
@media (max-width: 560px) { .pg-title-section__tiles { gap: 8px; } .pg-title-section__tile { padding: 14px 6px; font-size: 11px; } }
/* Komplet ikon SVG w jednym stylu (images/icons/cars) — jedna wysokość, bez rozjazdu jak przy starych PNG różnej wielkości. */
.pg-title-section__tile img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .85; }

/* === TEKST + MEDIA (text-image, con-vid, cs) === */
.pg-text-image__row, .pg-image-text__row, .pg-con-vid__grid, .pg-cs__g { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) {
    .pgc--text-image .pg-content--white > div > div, .pgc--text-image .pg-content--black > div > div,
    .pg-con-vid__grid, .pg-cs__g { grid-template-columns: 1fr 1fr; display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
}
.pgc--text-image picture img, .pg-cs__img img, .pg-fi__image img { width: 100%; object-fit: cover; border-radius: var(--radius); }

/* === GALERIA (slider starej strony → siatka) === */
.pg-gallery__heading, .pg-partners__heading { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; color: var(--color-text); margin-bottom: 24px; }
.pg-gallery__heading h1, .pg-gallery__heading h2 { margin: 0; }
.pg-gallery__slider > div > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr)); gap: 12px; }
.pg-gallery__single a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--color-bg-deep); }
.pg-gallery__single img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.pg-gallery__single a:hover img { transform: scale(1.04); }

/* === KORZYŚCI (benefits) === */
.pg-benefits__heading { display: flex; align-items: center; gap: 14px; }
.pg-benefits__heading::before { content: ''; width: 6px; align-self: stretch; min-height: 1.1em; background: var(--color-accent); }
.pg-benefits__g { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 760px) { .pg-benefits__g--two { grid-template-columns: 1fr 1fr; } }
.pg-benefits__item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--color-line); background: var(--color-bg-deep); }
.pg-benefits__icon img { width: 34px; height: 34px; object-fit: contain; }
.pg-benefits__content { margin: 0; }
.pg-cs__stars { display: none; }

/* === KARTY ARCHIWUM (realizacje, obszar działania, wpisy) === */
.pg-archive__loop { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.pg-archive__single { display: flex; flex-direction: column; background: var(--color-bg-deep); border: 1px solid var(--color-line); }
.pg-archive__thumbnail { position: relative; display: block; overflow: hidden; text-decoration: none; }
.pg-archive__thumbnail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.pg-archive__thumbnail:hover img { transform: scale(1.04); }
.pg-archive__title { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 40px 18px 14px; font-size: 18px !important; background: linear-gradient(180deg, transparent, rgba(18,18,18,.92)); }
.pg-archive__content { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.pg-archive__date { font-size: 12px; color: var(--color-label); text-transform: uppercase; letter-spacing: .06em; }
.pg-archive__excerpt { font-size: 14px; line-height: 1.65; color: var(--color-text-2); flex: 1; }
.pgc .pg-archive__button { align-self: flex-start; padding: 0; margin: 4px 0 0; background: none; color: var(--color-accent); text-transform: none; letter-spacing: 0; font-size: 14px; text-decoration: underline; }
.pgc .pg-archive__button:hover { background: none; color: var(--color-accent-hover); }

/* === CENNIK (price-list) === */
/* 2026-10-09: każda pozycja to osobna karta (wcześniej pozycje dzieliła tylko cienka linia i zlewały się),
   nad każdą ceną etykieta rozmiaru auta (PriceList::withSizes), gratisy jako lista z „+”. */
.pg-price-list__services { margin-top: 28px; }
.pg-price-list__heading { display: flex; align-items: center; gap: 14px; margin: 56px 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--color-accent); }
.pg-price-list__services:first-of-type .pg-price-list__heading { margin-top: 36px; }
.pg-price-list__heading img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
.pg-price-list__heading h2 { margin: 0; }
.pg-price-list__id { display: block; position: relative; top: calc(-1 * var(--header-h) - 16px); visibility: hidden; }
.pg-price-list__category { position: relative; margin: 0 0 14px; padding: 22px 24px; background: rgba(255, 255, 255, .035); border: 1px solid var(--color-line-soft); border-radius: var(--radius); }
.pg-price-list__version { display: grid; gap: 18px; }
@media (min-width: 900px) { .pg-price-list__version { grid-template-columns: minmax(0, 1fr) minmax(320px, 42%); gap: 32px; align-items: start; } }
.pg-price-list__category-name { margin: 0 0 10px !important; font-size: 20px !important; line-height: 1.3; }
.pgc .pg-price-list__url { color: var(--color-text); text-decoration: none; }
/* Strzałka mówi, że nazwa prowadzi do podstrony usługi (wcześniej link wyglądał jak zwykły tekst). */
.pgc .pg-price-list__url::after { content: '→'; display: inline-block; margin-left: .45em; color: var(--color-accent); text-decoration: none; transition: transform .2s ease; }
.pgc .pg-price-list__url:hover { color: var(--color-accent); }
.pgc .pg-price-list__url:hover::after { transform: translateX(3px); }
.pg-price-list__description p { font-size: 14px; line-height: 1.65; margin: 0 0 .5em; color: var(--color-text-2); }
.pg-price-list__additional { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--color-text-2); }
.pg-price-list__additional::before { content: '+'; flex: none; width: 1em; color: var(--color-accent); font-weight: 700; }
.pg-price-list__additional-price { flex: none; white-space: nowrap; color: var(--color-accent); font-weight: 600; }
/* 3 rozmiary auta (Hatchback, Sedan/Combi, SUV) w jednym rzędzie, także na telefonie (van usunięty 2026-10-29). */
.pg-price-list__price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-price-list__tile { display: flex; align-items: center; justify-content: center; padding: 14px 6px; background: var(--color-bg-deep); border: 1px solid var(--color-line); text-decoration: none; }
.pg-price-list__tile--single { grid-column: 1 / -1; }
/* Dwie ceny z podpisem w samej pozycji (ochrona szyb: przednia szyba / wszystkie szyby). */
.pg-price-list__price:has(.pg-price-list__tile--variant) { grid-template-columns: repeat(2, 1fr); }
.pg-price-list__tile--wr { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; justify-content: center; text-align: center; }
.pg-price-list__size { flex-basis: 100%; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-3); }
.pg-price-list__name { font-size: 20px; font-weight: 600; color: var(--color-text); }
.pg-price-list__name--text { font-size: 13px; line-height: 1.35; }
.pg-price-list__currency { font-size: 13px; color: var(--color-text-3); }
/* Cena przed promocją (X-SHIELD, klient 2026-10-28) — przekreślona nad aktualną. */
.pg-price-list__old { flex-basis: 100%; font-size: 13px; color: var(--color-text-3); }
/* Druga kwota (netto pod brutto) i dopisek brutto/netto (App\Support\Pages\PriceList::withVat) — price-order.js czyta tylko dopisek, nie drugą kwotę. */
.pg-price-list__vat { font-size: 12px; color: var(--color-text-3); }
.pg-price-list__second { flex-basis: 100%; font-size: 12px; color: var(--color-text-2); }
/* Pozycje netto (config/price_vat.php) — „wycena indywidualna” pod nazwą. */
.pgc .pg-price-list__quote { margin: -.2em 0 .6em; font-size: 13px; color: var(--color-accent); }
.pg-price-list__tile--wr p { margin: 0; font-size: 13px; color: var(--color-text); }
.pg-price-list__category--best { border-color: var(--color-accent); background: rgba(242, 122, 35, .05); }
.pg-price-list__best { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pg-price-list__best img { width: 22px; height: 22px; }
.pg-price-list__best--content { display: flex; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
@media (max-width: 599px) {
    .pg-price-list__category { padding: 18px 16px; }
    .pg-price-list__category-name { font-size: 18px !important; }
    .pg-price-list__heading { margin-top: 44px; }
    .pg-price-list__name { font-size: 17px; }
    .pg-price-list__name--text { font-size: 13px; }
    .pg-price-list__price { gap: 6px; }
    .pg-price-list__tile { align-items: flex-start; padding: 12px 4px; }
    /* „Sedan / kombi” łamie się na dwie linie — ta sama wysokość etykiet trzyma ceny w jednym rzędzie. */
    .pg-price-list__size { display: flex; align-items: center; justify-content: center; min-height: 2.6em; line-height: 1.3; margin-bottom: 2px; }
}
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* === OPINIE (testimonials, opinions) === */
.pg-testimonials__social-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.pg-opinions__social { display: flex; flex-wrap: wrap; gap: 18px; }
.pg-opinions__social-line { display: flex; align-items: center; gap: 10px; }
.pg-opinions__social-line p { margin: 0; font-size: 14px; }
.pg-opinions__social-line img { height: 28px; width: auto; }
/* Siatka na kontenerze WSZYSTKICH opinii (s > div > div), nie na pojedynczym opakowaniu kafla — o poziom głębiej
   każda opinia była osobną siatką z jednym kaflem, czyli wąska kolumna (tests/Feature/TestimonialsGridTest). */
.pg-testimonials__s > div > div, .pg-opinions__row > div:last-child > div > div {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px;
}
.pg-tes__tile { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--color-bg-deep); border: 1px solid var(--color-line); }
.pg-tes__icon img { width: 26px; height: 26px; opacity: .8; }
.pg-tes__desc { font-family: var(--font-quote); font-style: italic; font-size: 16px; color: var(--color-text-soft); flex: 1; margin: 0; }
.pgc .pg-tes__name { color: var(--color-text); font-weight: 600; text-decoration: none; }
.pg-tes__cat { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-label); }

/* === PARTNERZY === */
.pg-partners__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; align-items: center; }
.pg-partners__gallery img { max-height: 60px; width: auto; margin: 0 auto; filter: grayscale(1) brightness(1.6); opacity: .75; }
/* Loga marek aut (O nas, klient 2026-10-28): białe SVG, bez filtrów zdjęciowych. */
.pg-partners__gallery--brands { grid-template-columns: repeat(6, 1fr); gap: 32px 16px; }
.pg-partners__gallery--brands img { height: 48px; filter: none; opacity: .8; }
@media (max-width: 600px) { .pg-partners__gallery--brands { grid-template-columns: repeat(3, 1fr); gap: 24px 12px; } .pg-partners__gallery--brands img { height: 40px; } }

/* === O NAS: ramka + diament, social === */
.pg-border__content-border { display: grid; gap: 24px; padding: 28px; border: 1px solid var(--color-accent); }
.pg-border__content-diamond { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 900px) { .pg-border__content-border, .pg-border__content-diamond { grid-template-columns: 1fr 1fr; } }
.pg-cta_social { position: relative; }
.pg-cta_social > picture { display: none; }
.pg-cta_social__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pg-cta_social__heading { font-size: clamp(20px, 2vw, 28px); font-weight: 600; color: var(--color-text); }
/* Kontener pasuje do [class*="__button"] (styl przycisku) — zdejmujemy go, przyciskami są same linki. */
.pgc .pg-cta_social__buttons { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; background: none; }

/* === KONTAKT: jak nas znaleźć === */
.pg-find-us > div { display: grid; gap: 28px; }
.pg-find-us__adderss, .pg-find-us__tile { display: flex; align-items: center; gap: 12px; }
.pg-find-us__adderss img, .pg-find-us__tile img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; }
.pg-find-us__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pg-find-us__tile { flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--color-line); background: var(--color-bg-deep); }
.pg-find-us__name { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-label); }
.pg-find-us__data, .pg-find-us__address-line { color: var(--color-text); font-weight: 500; }
.pgc--map { padding: 0; }
.pgc--map > * { max-width: none; }

/* === OSADZENIA (fasada YouTube / Vimeo / Mapy) === */
.pg-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--color-bg-deep); overflow: hidden; border-radius: var(--radius); }
.pgc--map .pg-embed { aspect-ratio: auto; height: clamp(320px, 40vw, 480px); border-radius: 0; }
.pg-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-embed .pg-embed-poster, .pg-embed .pg-embed-poster picture, .pg-embed .pg-embed-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-embed.has-poster::after { content: ''; position: absolute; inset: 0; background: rgba(18,18,18,.35); }
.pg-con-vid__vid > .pg-embed-poster { display: none; } /* przenoszony do fasady przez page.js */
.pg-embed__play {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    width: 100%; border: 0; background: transparent; color: var(--color-text); font: 600 14px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.pg-embed__icon { width: 74px; height: 74px; border-radius: 50%; background: var(--color-accent); position: relative; transition: transform .2s ease; }
.pg-embed__icon::after { content: ''; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--color-on-accent); }
.pg-embed__play--map .pg-embed__icon::after { left: 50%; top: 50%; width: 18px; height: 18px; border: 4px solid var(--color-on-accent); border-radius: 50% 50% 50% 0; transform: translate(-50%, -60%) rotate(-45deg); }
.pg-embed__play:hover .pg-embed__icon { transform: scale(1.06); }
.pg-embed__play:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -6px; }

/* === FORMULARZ w miejscu Contact Form 7 === */
.pgc__form { max-width: 760px; margin-top: 24px; }

/* === PODGLĄD ZDJĘĆ === — style .pg-lightbox w main.css (używa go też galeria na stronie głównej). */

/* Sekcja tytułowa bez zdjęcia (np. cennik — stara strona miała tu pusty obraz) — bez wysokiego pasa. */
.pg-title-section-realization__row:not(:has(> picture)), .pg-title-section-archive:not(:has(> picture)),
.pg-title-section-about:not(:has(> picture)), .pg-title-section-contact:not(:has(> picture)) { min-height: 0; }
.pgc a.pg-price-list__tile, .pgc a.pg-custom-pricelist-item { text-decoration: none; color: var(--color-text); }

/* === FAQ — pytania ze starej strony jako rozwijana lista (dane FAQPage w <head>) === */
.pg-faq { display: grid; gap: 10px; margin: 18px 0 8px; }
.pg-faq__item { border: 1px solid var(--color-line); background: var(--color-bg-deep); }
.pg-faq__item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; }
.pg-faq__item > summary::-webkit-details-marker { display: none; }
.pg-faq__item > summary::after { content: '+'; flex: none; font-size: 24px; line-height: 1; color: var(--color-accent); transition: transform .2s ease; }
.pg-faq__item[open] > summary::after { transform: rotate(45deg); }
.pg-faq__item > summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.pgc .pg-faq__q { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.pg-faq__a { padding: 0 20px 18px; }
.pg-faq__a > :last-child { margin-bottom: 0; }

/* === MAPA STRONY === */
.pgc-sitemap h2 { margin-top: 1.6em; }
.pgc-sitemap__list { columns: 3 260px; column-gap: 32px; padding-left: 1.1em; }
.pgc-sitemap__list li { break-inside: avoid; font-size: 15px; }

/* =====================================================
   POPRAWKI UKŁADU PO SKANIE (2026-10-02) — puste przestrzenie obok zdjęć i pod nagłówkami
   ===================================================== */

/* Tekst obok zdjęcia: do góry, nie na środku — przy krótkim tekście i pionowym zdjęciu
   wyśrodkowanie zostawiało pustkę nad i pod tekstem. Zdjęcie przycięte do rozsądnej wysokości. */
.pg-text-image__row, .pg-image-text__row, .pg-con-vid__grid, .pg-cs__g { align-items: start; }
@media (min-width: 900px) {
    .pgc--text-image .pg-content--white > div > div, .pgc--text-image .pg-content--black > div > div,
    .pg-con-vid__grid, .pg-cs__g { align-items: start; }
    .pgc--text-image picture img, .pgc--image-text picture img { max-height: min(600px, 75vh); }
}

/* Nagłówek dokładany wpisom bez <h1> (wydarzenia) — tytuł + data na zdjęciu wpisu. */
.pgc--auto-head .pg-title-section-realization__row { min-height: clamp(280px, 30vw, 440px); }
.pgc--auto-head .pg-title-section-realization__heading { font-size: clamp(28px, 3.4vw, 46px); max-width: 980px; }
.pgc-head__date { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }

/* Nagłówek usługi z kilkoma zdjęciami (stary slider) — zdjęcia przenikają się w tle,
   zamiast leżeć jedno pod drugim obok tekstu. Bez animacji: tylko pierwsze zdjęcie. */
.pg-title-section-realization__gallery { position: absolute; inset: 0; z-index: 0; }
.pg-title-section-realization__gallery > div, .pg-title-section-realization__gallery > div > div { position: relative; height: 100%; }
.pg-title-section-realization__gallery > div > div > div { position: absolute; inset: 0; opacity: 0; animation: pg-hero-fade 24s infinite; }
.pg-title-section-realization__gallery > div > div > div:nth-child(1) { animation-delay: -1s; }
.pg-title-section-realization__gallery > div > div > div:nth-child(2) { animation-delay: 5s; }
.pg-title-section-realization__gallery > div > div > div:nth-child(3) { animation-delay: 11s; }
.pg-title-section-realization__gallery > div > div > div:nth-child(4) { animation-delay: 17s; }
.pg-title-section-realization__gallery > div > div > div:nth-child(n+5) { display: none; }
.pg-title-section-realization__gallery > div > div > div > div,
.pg-title-section-realization__gallery picture { display: block; height: 100%; }
.pg-title-section-realization__gallery img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pg-hero-fade { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .pg-title-section-realization__gallery > div > div > div { animation: none; }
    .pg-title-section-realization__gallery > div > div > div:first-child { opacity: 1; }
}

/* Zdjęcia „przed / po" (stary suwak porównania) — obok siebie, nie jedno pod drugim. */
/* Blok „cs” z jedną kolumną (same zdjęcia/plakaty, bez tekstu obok) — na całą szerokość, bez pustej połowy. */
.pg-cs__g:has(> :only-child) { grid-template-columns: 1fr; }
.pg-ba__slider { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Plakaty cennika (pionowe 1280×1810) — w całości, bez przycinania do 4:3; klik powiększa (js/v2/page.js). */
.pg-ba__slider { align-items: start; }
.pg-ba__slider img { width: 100%; height: auto; border-radius: var(--radius); }
.pg-zoomable { cursor: zoom-in; transition: opacity .2s ease; }
.pg-zoomable:hover { opacity: .88; }
.pg-zoomable:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Listy wklejone z edytora jako <li><p>…</p></li> — bez akapitowych odstępów w każdym punkcie. */
.pgc li > p { margin: 0; }

/* Realizacje: „Wykonane usługi" jako kafle zamiast krótkiej listy przy lewej krawędzi. */
.pgc-page[data-page-path^="/realizacje/"] .pgc--text-realization ul {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; padding: 0; list-style: none;
}
.pgc-page[data-page-path^="/realizacje/"] .pgc--text-realization li {
    display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px;
    border: 1px solid var(--color-line); background: var(--color-bg-deep); color: var(--color-text); font-size: 15px; line-height: 1.4;
}
.pgc-page[data-page-path^="/realizacje/"] .pgc--text-realization li::before {
    content: ''; flex: none; width: 8px; height: 8px; transform: rotate(45deg); background: var(--color-accent);
}

/* Krótki tekst obok zdjęcia (pgc--short, liczone w show.blade.php) — tekst jako lead, zdjęcie węższe. */
@media (min-width: 900px) {
    .pgc--short.pgc--text-image .pg-content--white > div > div, .pgc--short.pgc--text-image .pg-content--black > div > div {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center;
    }
    .pgc--short.pgc--text-image .pg-content--white > div > div > div:has(> picture):first-child,
    .pgc--short.pgc--text-image .pg-content--black > div > div > div:has(> picture):first-child { order: 2; }
    .pgc--short.pgc--text-image picture img { max-height: 520px; }
}
.pgc--short.pgc--text-image :is(p, div, li) { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.7; }
.pgc--short.pgc--text-image .pg-content--white > div > div > div:not(:has(> picture)),
.pgc--short.pgc--text-image .pg-content--black > div > div > div:not(:has(> picture)) {
    padding-left: clamp(18px, 2vw, 28px); border-left: 3px solid var(--color-accent);
}

/* Długi tekst obok zdjęcia — zdjęcie przyklejone przy przewijaniu, zamiast zostawiać pustą kolumnę pod sobą. */
@media (min-width: 900px) {
    .pgc--text-image:not(.pgc--short) .pg-content--white > div > div > div:has(> picture),
    .pgc--text-image:not(.pgc--short) .pg-content--black > div > div > div:has(> picture),
    .pg-image-text__row > div:has(> picture), .pg-text-image__row > div:has(> picture) {
        position: sticky; top: calc(var(--header-h, 84px) + 24px);
    }
}
/* Telefon: tekst i zdjęcie jedno pod drugim — z odstępem (bez niego tekst stykał się ze zdjęciem). */
@media (max-width: 899.98px) {
    .pgc--text-image .pg-content--white > div > div, .pgc--text-image .pg-content--black > div > div { display: grid; gap: 24px; }
}

/* Kafle podstron (pg-child: lista usług, pakiety myjni, rodzaje powłok) — siatka kart ze zdjęciem
   i tytułem na zdjęciu, jak karty archiwum. Wcześniej bez stylu: każde zdjęcie na pełną szerokość. */
.pg-child__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.pg-child__heading { grid-column: 1 / -1; }
.pg-child__heading h2 { margin: 0; }
/* Grupa ze stroną ogólną (2026-10-09): nagłówek jest linkiem, obok przycisk — zamiast kafla o tej samej nazwie. */
.pg-child__heading--hub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.pgc .pg-child__heading--hub h2 a { color: inherit; text-decoration: none; }
.pgc .pg-child__heading--hub h2 a:hover { color: var(--color-accent); }
.pgc .pg-child__overview { padding: 8px 16px; border: 1px solid var(--color-accent); border-radius: var(--radius); color: var(--color-accent); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pgc .pg-child__overview:hover { background: var(--color-accent); color: var(--color-on-accent); }
.pgc a.pg-child__single { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--color-bg-deep); border: 1px solid var(--color-line); }
.pg-child__single img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.pg-child__single picture { display: block; overflow: hidden; } /* powiększenie przy najechaniu nie wchodzi na nazwę pod zdjęciem */
.pg-child__single:hover img { transform: scale(1.04); }
/* Nazwa pod zdjęciem, nie na nim (2026-10-14, tekst na zdjęciach — problem globalny). */
.pg-child__single .pg-ph, .pg-gallery__single .pg-ph { aspect-ratio: 4 / 3; }
/* Nagłówek ma wysokość z reguły pasa (wyżej) — proporcje zdjęcia zwęziłyby kafel. */
.pg-title-section-realization__row > .pg-ph { aspect-ratio: auto; }
.pgc .pg-child__single h3 { position: static; margin: 0; padding: 14px 18px 16px; font-size: 18px; color: var(--color-text); background: none; }
.pg-child__single:hover h3 { color: var(--color-accent); }

/* Nagłówek usługi z filmem (pakiety myjni) — film miał zerową wysokość i znikał. Tekst | film obok siebie,
   na telefonie film pod tekstem. Odtwarzanie przez fasadę z page.js (YouTube dopiero po kliknięciu). */
.pg-title-section-realization__row:has(> .pg-title-section-realization__video) { display: grid; align-items: center; min-height: 0; }
.pg-title-section-realization__video { position: relative; z-index: 2; order: 2; width: 100%; padding: 0 var(--gutter) clamp(32px, 5vw, 56px); }
.pg-title-section-realization__row:has(> .pg-title-section-realization__video) > .pg-title-section-realization__content { order: 1; }
@media (min-width: 1000px) {
    .pg-title-section-realization__row:has(> .pg-title-section-realization__video) {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto;
    }
    .pg-title-section-realization__video { padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(32px, 5vw, 72px) 0; }
}
.pg-title-section-realization__video .pg-embed { background: var(--color-bg-alt); border: 1px solid var(--color-line); }
/* Opis w nagłówku wklejony jako <h3> (stara strona) — wygląda jak zwykły opis, znacznik zostaje. */
.pg-title-section-realization__description h3 { margin: 0 0 .6em; font-size: 17px; font-weight: 400; line-height: 1.7; color: var(--color-text-hero); }
.pg-title-section-realization__description h3 strong { font-weight: 600; }
/* Film bez okładki (okładki z YouTube nie pobieramy przed kliknięciem) — węższy i z tłem, zamiast pustego czarnego pola na całą szerokość. */
.pgc:not(.pgc--map) .pg-embed:not(.has-poster) {
    max-width: 960px; margin-inline: auto; border: 1px solid var(--color-line);
    background: radial-gradient(circle at 50% 45%, #2c2c2c 0%, var(--color-bg-deep) 70%);
}
/* Kontakt: formularz pod nagłówkiem dotykał następnej sekcji — odstęp pod nim. */
.pgc--title-section-contact:has(> .pgc__form) { padding-bottom: clamp(40px, 5vw, 72px); }
.pgc--auto-head .pg-title-section-realization__row:not(:has(> picture)) { min-height: 0; }
/* Zdjęcie nad tekstem (2026-10-14) — wysokość nadaje pas zdjęcia, nie minimalna wysokość sekcji. */
.pgc--auto-head .pg-title-section-realization__row:has(> picture) { min-height: 0; }
/* O nas: blok „diament" z jedną kolumną (po usunięciu kolumny o dawnej lokalizacji) — na całą szerokość, bez pustej połowy. */
.pg-border__content-diamond:has(> :only-child) { grid-template-columns: 1fr; }

/* === CENNIK → ZAMÓWIENIE (js/v2/price-order.js, 2026-10-05) === */
.po-intro { margin: 28px 0 8px; padding: 24px; border: 1px solid var(--color-accent); border-radius: var(--radius); background: rgba(242, 122, 35, .06); display: flex; flex-direction: column; gap: 10px; }
.pgc .po-intro__title { margin: 0; font-size: 20px; font-weight: 600; color: var(--color-text); }
.pgc .po-intro__text { margin: 0; font-size: 15px; color: var(--color-text-2); }
.po-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pgc .po-size {
    padding: 10px 16px; margin: 0; border: 1px solid var(--color-line-soft); border-radius: 999px; background: var(--color-bg-deep);
    color: var(--color-text-2); font: 500 14px/1.2 var(--font-body); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.pgc .po-size:hover { border-color: var(--color-accent); color: var(--color-text); background: var(--color-bg-deep); }
.pgc .po-size.is-on { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-on-accent); }

.pgc .po-toggle {
    grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin: 0; padding: 12px 16px; border: 1px dashed var(--color-line-soft); border-radius: var(--radius); background: transparent;
    color: var(--color-text); font: 600 14px/1.2 var(--font-body); text-transform: none; letter-spacing: 0; cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pgc .po-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); background: transparent; }
.po-toggle__icon { position: relative; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 3px; }
.po-toggle__icon::after { content: '+'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.pgc .po-toggle.is-on { border-style: solid; border-color: var(--color-accent); background: var(--color-accent); color: var(--color-on-accent); }
.po-toggle.is-on .po-toggle__icon::after { content: '✓'; font-size: 12px; }
.pg-price-list__version.po-selected .pg-price-list__category-name { color: var(--color-accent); }
/* Przycisk koszyka na podstronie usługi (tabela .sp__table) — wiersz pod cenami, przycisk na całą szerokość
   cen, wygląd jak na cenniku (price-order.js, właściciel 2026-10-14). */
.pgc .sp__table tr.has-order td { border-bottom: 0; }
.pgc .sp__table td.sp__order { padding: 0 16px 16px; border-top: 0; }
.pgc .sp__table .sp__order .po-toggle { display: flex; width: 100%; }
@media (max-width: 699.98px) {
    /* Wiersz z cenami i wiersz z przyciskiem tworzą jedną kartę. */
    .pgc .sp__table tr.has-order { margin-bottom: 0; border-bottom: 0; }
    .pgc .sp__table tr.sp__order-row { margin-bottom: 14px; border: 1px solid var(--color-line); border-top: 0; }
    .pgc .sp__table td.sp__order { display: block; padding: 12px 16px 16px; border-top: 0; }
}
.pgc .sp__table tr.po-selected .sp__name { color: var(--color-accent); }

.po-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--color-bg-deep); border-top: 2px solid var(--color-accent); box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); animation: po-in .3s ease; }
.po-bar[hidden] { display: none; }
@keyframes po-in { from { transform: translateY(100%); } to { transform: none; } }
.po-bar__inner { max-width: var(--max-width); margin: 0 auto; padding: 14px var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; }
.po-bar__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.po-bar__count { font-size: 16px; }
.po-bar__total { color: var(--color-text-2); font-size: 14px; }
.po-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: flex-end; }
.po-bar__toggle, .po-bar__clear { padding: 6px 0; border: 0; background: none; color: var(--color-text-2); font: 500 14px/1.2 var(--font-body); text-decoration: underline; cursor: pointer; }
.po-bar__toggle:hover, .po-bar__clear:hover { color: var(--color-accent); }
.po-bar__send { padding: 13px 22px; }
.po-bar__list { grid-column: 1 / -1; order: 2; margin: 0; padding: 0; list-style: none; max-height: 40vh; overflow-y: auto; border-top: 1px solid var(--color-line); }
.po-bar__list[hidden] { display: none; }
.po-bar__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: 14px; }
.po-bar__price { color: var(--color-accent); font-weight: 600; white-space: nowrap; }
.po-bar__remove { width: 30px; height: 30px; border: 1px solid var(--color-line-soft); border-radius: 50%; background: none; color: var(--color-text-2); font-size: 18px; line-height: 1; cursor: pointer; }
.po-bar__remove:hover { border-color: var(--color-accent); color: var(--color-accent); }
body.has-po-bar { padding-bottom: 96px; }
/* Pasek zamówienia zasłania przycisk WhatsApp — podnosimy go nad pasek. */
body.has-po-bar .assist { bottom: 104px; }
@media (max-width: 599.98px) {
    .po-bar__inner { grid-template-columns: 1fr; }
    .po-bar__actions { justify-content: space-between; }
    .po-bar__send { flex: 1 1 100%; }
    body.has-po-bar { padding-bottom: 150px; }
    body.has-po-bar .assist { bottom: 158px; }
}
@media (prefers-reduced-motion: reduce) { .po-bar { animation: none; } }

/* Blok tekst+zdjęcie z jednym elementem (sam tekst albo samo zdjęcie) — na całą szerokość, bez pustej połowy
   (Regulamin bonów, Grand Prix w tenisie stołowym). */
.pgc--text-image :is(.pg-content--white, .pg-content--black) > div > div:has(> :only-child) { grid-template-columns: 1fr; }

/* === KALKULATOR RAT COMFINO (v2/partials/comfino-calculator) — wygląd samego widżetu ustala Comfino === */
.comfino-calc__heading { margin-bottom: 18px; }
.comfino-calc__widget { max-width: 720px; min-height: 120px; }

/* === CENY USŁUGI Z CENNIKA (v2/partials/service-prices) === */
.sp__heading { margin-bottom: 18px; }
.sp__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp__table-wrap { overflow-x: auto; }
.pgc .sp__table { width: 100%; margin: 0; border-collapse: collapse; }
.pgc .sp__table th, .pgc .sp__table td { padding: 14px 16px; border: 1px solid var(--color-line); vertical-align: middle; }
.pgc .sp__table thead th { color: var(--color-text-3); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.pgc .sp__name { color: var(--color-text); font-weight: 600; font-size: 16px; text-align: left; }
/* Pozycja innej usługi w tabeli cen — link do jej podstrony (2026-10-14). */
.pgc .sp__link { color: inherit; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 4px; }
.pgc .sp__link:hover { color: var(--color-accent); }
.sp__desc { display: block; margin-top: 6px; font-weight: 400; font-size: 14px; line-height: 1.6; color: var(--color-text-2); }
.sp__extras { display: grid; gap: 4px; margin-top: 10px; }
.sp__extra { display: flex; justify-content: space-between; gap: 16px; font-weight: 400; font-size: 13px; color: var(--color-text-3); border-top: 1px dashed var(--color-line); padding-top: 4px; }
.sp__extra strong { color: var(--color-accent); font-weight: 600; white-space: nowrap; }
.pgc .sp__cell { text-align: center; }
.sp__net { display: block; color: var(--color-text); font-size: 20px; font-weight: 600; white-space: nowrap; }
.sp__net small { font-size: 12px; font-weight: 400; color: var(--color-text-3); }
.sp__gross { display: block; margin-top: 2px; font-size: 13px; color: var(--color-text-2); white-space: nowrap; }
.sp__old { display: block; font-size: 13px; color: var(--color-text-3); white-space: nowrap; }
.pgc .sp__note { margin: 14px 0 0; font-size: 14px; color: var(--color-text-3); }
@media (max-width: 699.98px) {
    /* Telefon: zamiast szerokiej tabeli karty — nazwa usługi, pod nią ceny z podpisem rozmiaru auta. */
    .pgc .sp__table thead { display: none; }
    .pgc .sp__table, .pgc .sp__table tbody, .pgc .sp__table tr, .pgc .sp__table th, .pgc .sp__table td { display: block; width: 100%; }
    .pgc .sp__table tr { margin-bottom: 14px; border: 1px solid var(--color-line); }
    .pgc .sp__table th, .pgc .sp__table td { border: 0; }
    .pgc .sp__table td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--color-line); text-align: right; }
    .pgc .sp__table td[data-label]::before { content: attr(data-label); color: var(--color-text-3); font-size: 13px; text-align: left; }
    .sp__net { font-size: 18px; }
    .sp__val { flex: 0 0 auto; text-align: right; }
    .pgc .sp__table td:not([data-label]) { justify-content: flex-end; }
}

/* === SCHEMAT PAKIETÓW PPF (v2/partials/ppf-packages, config/ppf_packages.php) === */
.ppf__grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 360px); justify-content: start; }
.ppf__grid--compare { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); justify-content: stretch; }
.ppf__card { margin: 0; padding: 24px; background: var(--color-bg-deep); border: 1px solid var(--color-line); display: grid; gap: 18px; align-content: start; }
.ppf__grid:not(.ppf__grid--compare) .ppf__card { grid-template-columns: minmax(0, 240px) 1fr; align-items: center; gap: 24px 56px; padding: 32px; }
.ppf__grid:not(.ppf__grid--compare) { grid-template-columns: 1fr; }
@media (min-width: 900px) { .ppf__grid:not(.ppf__grid--compare) .ppf__list { columns: 2; column-gap: 40px; } .pgc .ppf__list li { break-inside: avoid; } }
.ppf__name { font-size: 20px; font-weight: 600; text-align: center; }
.pgc .ppf__name a { color: var(--color-text); text-decoration: none; }
.pgc .ppf__name a:hover { color: var(--color-accent); }
/* Porównanie pakietów: wyraźny przycisk do podstrony pakietu pod schematem. */
.pgc .ppf__more { justify-self: center; padding: 10px 16px; border: 1px solid var(--color-accent); border-radius: var(--radius); color: var(--color-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.pgc .ppf__more:hover { background: var(--color-accent); color: var(--color-on-accent); }
.ppf__car { width: 100%; max-width: 220px; height: auto; margin: 0 auto; display: block; }
.ppf__grid:not(.ppf__grid--compare) .ppf__car { max-width: 240px; }
@media (max-width: 599.98px) { .ppf__grid:not(.ppf__grid--compare) .ppf__car { max-width: 200px; } }
.ppf__part { fill: #2a2a2a; stroke: #5a5a5a; stroke-width: 1.2; stroke-linejoin: round; }
.ppf__part.is-on { fill: rgba(242, 122, 35, .85); stroke: var(--color-accent); }
.ppf__part.is-opt { stroke: var(--color-accent); stroke-dasharray: 3 2; }
/* Pakiet hybrydowy: elementy pod powłoką grafenową (nie folią) — inny kolor niż PPF. */
.ppf__part.is-coat { fill: rgba(96, 165, 214, .55); stroke: #7fb6dd; }
.ppf__part.is-light { fill: #4a4a4a; }
.ppf__part.is-light.is-on { fill: #ffd7b0; stroke: var(--color-accent); }
.ppf__glass { fill: #3b4650; stroke: #5a5a5a; stroke-width: 1.2; }
.ppf__opt-bg { fill: #2a2a2a; }
.ppf__opt-line { fill: rgba(242, 122, 35, .6); }
.pgc .ppf__list { margin: 0; padding-left: 1.1em; }
.pgc .ppf__list li { font-size: 15px; margin: .2em 0; }
@media (min-width: 900px) { .pgc .ppf__grid:not(.ppf__grid--compare) .ppf__list li { font-size: 19px; margin: .5em 0; } }
/* Interakcja (page.js, właściciel 2026-10-14): najechanie / dotknięcie elementu albo pozycji listy podświetla
   tę samą grupę na rysunku i w liście, a nazwa pojawia się w linijce pod autem. */
.ppf__part[data-group], .pgc .ppf__list li[data-group] { cursor: pointer; }
.ppf__part { transition: fill .15s ease, stroke .15s ease; }
.ppf__part.is-hover { stroke: #fff; stroke-width: 2.4; filter: brightness(1.25); }
.pgc .ppf__list li.is-hover { color: var(--color-accent); }
.pgc .ppf__hint { margin: 12px 0 0; font-size: 13px; line-height: 1.4; text-align: center; color: var(--color-text-3); }
/* Dymek z nazwą nad wskazanym elementem auta (page.js) — na telefonie widoczny nad palcem, nie pod rysunkiem. */
.ppf__visual { position: relative; }
.ppf__bubble {
    position: absolute; z-index: 3; left: 0; top: 0; max-width: 220px; width: max-content; padding: 8px 12px;
    border: 1px solid var(--color-accent); border-radius: 8px; background: var(--color-bg-deep); color: var(--color-text);
    font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
    pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 6px)) scale(.92); transform-origin: 50% 100%;
    transition: opacity .15s ease, transform .15s ease;
}
.ppf__bubble.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 10px)) scale(1); }
.ppf__bubble::after {
    content: ''; position: absolute; left: var(--arrow, 50%); top: 100%; width: 10px; height: 10px; margin-left: -5px; margin-top: -5px;
    background: var(--color-bg-deep); border-right: 1px solid var(--color-accent); border-bottom: 1px solid var(--color-accent); transform: rotate(45deg);
}
.ppf__bubble small { display: block; font-weight: 400; color: var(--color-accent); }
.ppf__bubble.is-below { transform: translate(-50%, 6px) scale(.92); transform-origin: 50% 0; }
.ppf__bubble.is-below.is-on { transform: translate(-50%, 10px) scale(1); }
.ppf__bubble.is-below::after { top: auto; bottom: 100%; margin-top: 0; margin-bottom: -5px; transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .ppf__bubble { transition: none; } }
.pgc .ppf__list-opt { color: var(--color-text-3); }
.pgc .ppf__list-coat::marker { color: #7fb6dd; }
.pgc .ppf__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; font-size: 14px; color: var(--color-text-3); }
.ppf__swatch { display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; }
.ppf__swatch--on { background: rgba(242, 122, 35, .85); }
.ppf__swatch--coat { background: rgba(96, 165, 214, .55); }
.ppf__swatch--opt { background: repeating-linear-gradient(45deg, rgba(242, 122, 35, .6) 0 3px, #2a2a2a 3px 6px); }
@media (max-width: 599.98px) {
    .ppf__grid:not(.ppf__grid--compare) .ppf__card { grid-template-columns: 1fr; }
}

/* === WYSZUKIWARKA USŁUG (js/v2/service-search.js): cennik i katalog „Wszystkie usługi” === */
.svc-search { margin: 0 0 28px; }
.pgc .svc-search__label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--color-text); }
.svc-search__field { position: relative; max-width: 640px; }
.svc-search__icon { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid var(--color-text-3); border-radius: 50%; pointer-events: none; }
.svc-search__icon::after { content: ''; position: absolute; right: -6px; bottom: -6px; width: 7px; height: 2px; background: var(--color-text-3); transform: rotate(45deg); }
.pgc .svc-search__input { width: 100%; margin: 0; padding: 14px 16px 14px 46px; border: 1px solid var(--color-line-soft); border-radius: var(--radius); background: var(--color-bg-deep); color: var(--color-text); font: 400 16px/1.3 var(--font-body); }
.pgc .svc-search__input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(242, 122, 35, .2); }
.pgc .svc-search__status { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--color-text-3); }
.svc-search__empty { margin-top: 12px; padding: 20px; border: 1px dashed var(--color-line-soft); border-radius: var(--radius); }
.svc-search__empty[hidden] { display: none; }
.pgc .svc-search__empty p { margin: 0 0 14px; }
/* Ukryte przez wyszukiwarkę — reguły układu (grid/flex) nie mogą przebić atrybutu hidden. */
.pg-price-list__version[hidden], .pg-price-list__category[hidden], .pg-price-list__services[hidden],
.pg-child__single[hidden], .pg-child__heading[hidden] { display: none !important; }

/* Przełącznik nowa/stara treść — tylko strona testowa (PageController, 2026-10-14). Lewy dół, bo prawy dół
   zajmuje przycisk WhatsApp. */
.pg-version-switch {
    position: fixed; left: 16px; right: auto; bottom: 16px; z-index: 1040; display: flex; align-items: center; gap: 4px;
    width: max-content; max-width: calc(100vw - 32px); margin: 0; transform: none;
    padding: 5px; border: 1px solid var(--color-accent); border-radius: 999px; background: var(--color-bg-deep);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45); font-size: 13px; font-weight: 600;
}
.pg-version-switch__label { padding: 0 6px 0 8px; color: var(--color-text-2); }
.pg-version-switch .pg-version-switch__opt { padding: 6px 14px; border-radius: 999px; color: var(--color-text); text-decoration: none; }
.pg-version-switch .pg-version-switch__opt:hover { color: var(--color-accent); }
.pg-version-switch .pg-version-switch__opt.is-on { background: var(--color-accent); color: var(--color-on-accent); }

/* === „Uzupełnij ochronę” — następny pakiet PPF (v2/partials/ppf-upgrade, 2026-10-14) === */
.ppf-up {
    display: grid; grid-template-columns: 140px 1fr; gap: 28px 40px; align-items: center;
    padding: 28px 32px; border: 1px solid var(--color-accent); border-radius: var(--radius); background: var(--color-bg-deep);
}
.ppf-up__visual { display: flex; justify-content: center; }
.ppf__car.ppf-up__car { max-width: 130px; }
.ppf-up__body .section__kicker { margin-bottom: 8px; }
.pgc .ppf-up__title { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 28px); }
.pgc .ppf-up__text { margin: 0 0 12px; max-width: 640px; color: var(--color-text-2); }
.pgc .ppf-up__price { margin: 0 0 18px; font-size: 18px; font-weight: 600; color: var(--color-accent); }
.pgc .ppf-up__cta { display: inline-flex; color: var(--color-on-accent); text-decoration: none; } /* .pgc a nadpisywał kolor przycisku */
.pgc .ppf-up__cta:hover { color: var(--color-on-accent); }
@media (max-width: 599.98px) {
    .ppf-up { grid-template-columns: 1fr; padding: 22px; text-align: center; }
    .ppf__car.ppf-up__car { max-width: 110px; }
    .pgc .ppf-up__text { margin-left: auto; margin-right: auto; }
}

/* Wariant bloku tekstu „accent” (strony pakietów PPF, _scan/build_ppf_overrides.py; właściciel 2026-10-14) —
   ten sam styl co krótki tekst przy zdjęciu (np. impregnacja dachu): pomarańczowa kreska z lewej i większa czcionka. */
.pgc--text-realization-accent .pg-content--black > div > div > div {
    max-width: 880px; padding-left: clamp(18px, 2vw, 28px); border-left: 3px solid var(--color-accent);
}
.pgc--text-realization-accent :is(p, li) { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.7; }

/* Dodatki do usług (listy „Dodatki” na podstronach; klient 2026-10-14: „mało widoczne”) — tabelka nazwa | cena,
   cena pogrubiona w kolorze akcentu, wiersze oddzielone liniami. Na telefonie cena pod nazwą. */
.pgc ul.pg-extras { max-width: 760px; margin: 0 0 1.4em; padding: 0; list-style: none; border-top: 1px solid var(--color-line); }
.pgc .pg-extras li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 0; padding: 12px 4px; border-bottom: 1px solid var(--color-line); }
.pgc .pg-extras__name { color: var(--color-text); }
.pgc .pg-extras__price { flex: 0 1 45%; text-align: right; font-weight: 700; color: var(--color-accent); }
@media (max-width: 599.98px) {
    .pgc .pg-extras li { flex-direction: column; }
    .pgc .pg-extras__price { flex-basis: auto; text-align: left; }
}

/* „Zobacz też poradnik” na końcu ostatniej sekcji treści usługi (v2/partials/service-guides, 2026-10-14) —
   w tej samej kolumnie co treść (.pgc > * = 1240px, środek), oddzielona cienką linią. */
.pgc > .pg-guides { margin: 2em auto 0; padding-top: 1.2em; border-top: 1px solid var(--color-line); font-size: 16px; color: var(--color-text-2); }

/* Prestige Club — program lojalnościowy (v2/landing/club, 2026-10-26). Kolory z tokenów motywu, akcent marki. */
.pgc-club__kicker { display: inline-block; margin-bottom: 14px; color: var(--color-accent); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pgc-club__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.pgc .pgc-club__phone { color: var(--color-text); text-decoration: none; font-weight: 600; }
.pgc .pgc-club__phone:hover { color: var(--color-accent); }
/* Przycisk w treści podstrony: .pgc a malowało napis kolorem akcentu = kolorem tła przycisku (pusty przycisk). */
.pgc a.btn-accent, .pgc a.btn-accent:hover { color: var(--color-on-accent); text-decoration: none; }
.pgc-club__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 8px 0 1.2em; }
.pgc-club__tile { padding: 24px 26px; border: 1px solid var(--color-line); border-top: 3px solid var(--color-accent); border-radius: var(--radius); background: var(--color-bg-deep); }
.pgc-club__tile h3 { margin-top: 0; }
.pgc-club__tile p:last-child { margin-bottom: 0; }
.pgc .pgc-club__value { color: var(--color-text); font-size: 20px; font-weight: 600; }
.pgc .pgc-club__note { font-size: 14px; color: var(--color-label); }
.pgc .pgc-club__rate { color: var(--color-accent); font-size: 22px; font-weight: 600; }
.pgc-club__table { max-width: 520px; }
.pgc .pgc-club__table td strong { color: var(--color-accent); }
.pgc-club__cta { text-align: center; }
.pgc .pgc-club__tagline { color: var(--color-text); font-weight: 600; letter-spacing: .08em; }
.pgc .pgc-club__legal { margin-top: 24px; font-size: 13px; color: var(--color-label); }
/* Krótkie pionowe nagranie w treści podstrony (stacja EV, 2026-10-28) — bez dźwięku, w pętli. */
.pg-video { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; background: var(--color-bg-deep); }

/* Grafika z tekstem/logo (plakat, ulotka) obok tekstu — cała, bez przycinania (np. ulotka szkoleń z dofinansowaniem, 2026-11-16). */
.pgc--text-image picture img.pg-img--whole { object-fit: contain; }
