/**
 * R-PAS: style sekcji modułu rpasdesign.
 * Wszystkie klasy mają prefiks rp-, żeby nie kolidowały z motywem (Bootstrap 4 / Classic).
 *
 * Tokeny kolorów i typografii definiuje motyw potomny rpas_child (assets/css/rpas-child.css).
 * Poniżej są tylko wartości zapasowe na wypadek pracy bez tego motywu. :where() ma zerową
 * specyficzność, więc tokeny motywu zawsze wygrywają, niezależnie od kolejności plików.
 * Kolor marki czy font zmieniaj w motywie, nie tutaj.
 */
:where(:root) {
  --rp-bg: #ffffff;
  --rp-surface: #ffffff;
  --rp-surface-2: #f4f5f6;
  --rp-plate: #f4f4f2;
  --rp-ink: #111316;
  --rp-ink-2: #555d67;
  --rp-line: #e2e5e8;
  --rp-line-strong: #111316;
  --rp-brand: #c8141c;
  --rp-brand-hover: #a80f16;
  --rp-ok: #1b7337;
  --rp-focus: #0b57d0;
  --rp-font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --rp-font-display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", Arial, sans-serif;
  --rp-wrap: 1320px;
  --rp-tap: 44px;
  --rp-tabbar-h: 64px;
}

.rp, .rp *, .rp *::before, .rp *::after { box-sizing: border-box; }
.rp { font-family: var(--rp-font); color: var(--rp-ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.rp h1, .rp h2, .rp h3 { margin: 0; font-family: var(--rp-font-display); font-weight: 600; line-height: 1.08; color: var(--rp-ink); text-transform: none; letter-spacing: -.01em; text-wrap: balance; }
.rp p { margin: 0; }
.rp ul, .rp ol { margin: 0; padding: 0; list-style: none; }
.rp img { max-width: 100%; display: block; }
.rp a { color: inherit; }
.rp :focus-visible { outline: 3px solid var(--rp-focus); outline-offset: 2px; }
.rp [hidden] { display: none !important; }

.rp-wrap { max-width: var(--rp-wrap); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.rp-display { font-family: var(--rp-font-display); }
.rp-h1 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem); }
.rp-h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); }
.rp-lead { font-size: 1.125rem; color: var(--rp-ink-2); max-width: 58ch; }
.rp-muted { color: var(--rp-ink-2); }
.rp-small { font-size: .875rem; }
.rp-stack { display: grid; gap: 16px; align-content: start; }
.rp-row { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-photo { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* przyciski */
.rp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--rp-tap); padding: 8px 20px; border: 1px solid transparent; border-radius: 0; font: 600 1rem/1.2 var(--rp-font); letter-spacing: .01em; text-align: center; text-decoration: none; text-transform: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
.rp-btn:active { transform: scale(.98); }
.rp-btn--primary { background: var(--rp-brand); color: #fff; }
.rp-btn--primary:hover, .rp-btn--primary:focus { background: var(--rp-brand-hover); color: #fff; text-decoration: none; }
.rp-btn--secondary { background: #fff; color: var(--rp-ink); border-color: var(--rp-line); }
.rp-btn--secondary:hover { border-color: var(--rp-line-strong); color: var(--rp-ink); text-decoration: none; }
.rp-btn--ghost { background: transparent; color: var(--rp-ink); }
.rp-btn--ghost:hover { background: var(--rp-surface-2); }
/* Przyciski będące linkami: reguła „.rp a { color: inherit }” ma większą wagę niż sam wariant
   przycisku, więc bez tych reguł tekst czerwonego przycisku-linku był ciemny zamiast białego. */
.rp a.rp-btn--primary { color: #fff; }
.rp a.rp-btn--secondary, .rp a.rp-btn--ghost { color: var(--rp-ink); }
.rp-btn--lg { min-height: 52px; font-size: 1.125rem; padding-inline: 28px; }
.rp-btn--block { width: 100%; }
.rp-link-more { display: inline-flex; align-items: center; min-height: var(--rp-tap); font-weight: 600; color: var(--rp-ink); text-decoration: underline; text-underline-offset: 4px; }
.rp-link-more::after { content: "→"; margin-left: 6px; text-decoration: none; }

/* pola */
.rp-field { display: grid; gap: 6px; }
/* text-align: arkusz szablonu rpas (Classic) wyrównuje wszystkie etykiety do prawej */
.rp-field label { font-size: .875rem; font-weight: 600; margin: 0; text-align: left; }
.rp-field input, .rp-field select { width: 100%; min-height: var(--rp-tap); padding: 0 12px; border: 1px solid var(--rp-line); border-radius: 0; background: #fff; font: 400 1rem var(--rp-font); color: var(--rp-ink); }
.rp-field input:focus, .rp-field select:focus { outline: 3px solid var(--rp-focus); outline-offset: 0; border-color: transparent; }
.rp-hint { font-size: .8125rem; color: var(--rp-ink-2); }
.rp-field textarea { width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid var(--rp-line); border-radius: 0; background: #fff; font: 400 1rem/1.5 var(--rp-font); color: var(--rp-ink); resize: vertical; }
.rp-field textarea:focus { outline: 3px solid var(--rp-focus); outline-offset: 0; border-color: transparent; }
.rp-field [aria-invalid="true"] { border-color: #b8121a; }
.rp-optional { font-weight: 400; color: var(--rp-ink-2); }
.rp-error { font-size: .875rem; font-weight: 600; color: #b8121a; }

/* sekcje */
.rp-section { padding-block: 64px; }
.rp-section + .rp-section { padding-top: 0; }
.rp-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.rp-section__head p { margin-top: 6px; max-width: 62ch; }

/* hero */
.rp-hero { background: var(--rp-surface-2); border-bottom: 1px solid var(--rp-line); }
.rp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; padding-block: 64px; align-items: stretch; }
.rp-hero__copy { display: grid; gap: 16px; align-content: center; min-width: 0; }
.rp-hero__copy .rp-h1 { max-width: 15ch; }
.rp-hero__proof { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; color: var(--rp-ink-2); }
.rp-hero__proof b { color: var(--rp-ink); }

/* siatka „Do czego potrzebujesz?”: kafle-linki ze zdjęciem */
.rp-uses { display: grid; gap: 12px; margin-top: 12px; min-width: 0; }
.rp-uses__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp .rp-uses__title { font: 600 1.125rem/1.2 var(--rp-font-display); }
.rp-uses__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rp-uses__list > li { min-width: 0; }
.rp-use { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; height: 100%; padding: 6px 10px 6px 6px; border: 1px solid var(--rp-line); background: #fff; color: var(--rp-ink); text-decoration: none; }
.rp-use:hover { border-color: var(--rp-line-strong); color: var(--rp-ink); text-decoration: none; }
.rp-use:hover .rp-use__name { text-decoration: underline; text-underline-offset: 3px; }
.rp-use__thumb { display: block; width: 52px; height: 52px; background: var(--rp-plate); overflow: hidden; }
.rp-use__txt { display: grid; gap: 1px; min-width: 0; }
.rp-use__name { font-size: .875rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.rp-use__txt small { font-size: .8125rem; color: var(--rp-ink-2); line-height: 1.25; overflow-wrap: anywhere; }

.rp-section__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.rp-mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; min-height: 460px; }
.rp-mosaic a { position: relative; display: grid; align-content: end; overflow: hidden; background: #262a2f; color: #fff; text-decoration: none; }
.rp-mosaic a:first-child { grid-row: span 2; }
.rp-mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rp-mosaic a.is-pack { background: var(--rp-plate); }
.rp-mosaic a.is-pack img { object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.rp-mosaic a:hover img { transform: scale(1.04); }
.rp-mosaic a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.72)); }
.rp-mosaic__cap { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 16px 24px; }
.rp-mosaic__cap > span:first-child { display: grid; gap: 2px; }
.rp-mosaic b { font: 600 1.375rem/1.1 var(--rp-font-display); }
.rp-mosaic small { font-size: .875rem; color: rgba(255,255,255,.85); }
.rp-go { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); }
.rp-mosaic a:not(:first-child) .rp-mosaic__cap { padding: 12px; }
.rp-mosaic a:not(:first-child) b { font-size: 1rem; }
.rp-mosaic a:not(:first-child) small { font-size: .8125rem; }
.rp-mosaic a:not(:first-child) .rp-go { width: 30px; height: 30px; }

/* liczby */
.rp-facts { background: #fff; border-block: 1px solid var(--rp-line); }
.rp-facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.rp-facts li { display: grid; gap: 2px; padding: 24px 24px 24px 0; }
.rp-facts li + li { padding-left: 24px; border-left: 1px solid var(--rp-line); }
.rp-num { font: 500 clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem)/1 var(--rp-font-display); letter-spacing: -.01em; }
.rp-num em { font-style: normal; font-size: .6em; color: var(--rp-ink-2); }
.rp-facts b { margin-top: 8px; font-weight: 600; }
.rp-facts li > span:last-child { font-size: .875rem; color: var(--rp-ink-2); }

/* kafle kategorii */
.rp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rp-tile { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--rp-line); background: #fff; color: var(--rp-ink); text-decoration: none; overflow: hidden; }
.rp-tile:hover { border-color: var(--rp-line-strong); text-decoration: none; color: var(--rp-ink); }
.rp-tile__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rp-plate); }
.rp-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rp-tile__media.is-pack img { object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.rp-tile:hover .rp-tile__media img { transform: scale(1.05); }
.rp-tile__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rp-line); }
.rp-tile__label b { display: block; font-weight: 600; line-height: 1.2; }
.rp-tile__label small { display: block; font-size: .8125rem; color: var(--rp-ink-2); }
.rp-tile:hover .rp-tile__label b { text-decoration: underline; text-underline-offset: 3px; }

/* bestsellery i promocje: własna siatka CSS (2 / 3 / 4 kolumny, jak klasy col-xs-6 col-md-4 col-lg-3).
   Classic w PrestaShop 1.7.8 nie daje tu flexa, więc kolumny Bootstrap pływały (float) i karty
   różnej wysokości blokowały się nawzajem. Siatka wyrównuje wiersze w 1.7.8 i 8.x. */
.rp-best .products.rp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.rp-best .products.rp-grid::before, .rp-best .products.rp-grid::after { content: none; display: none; }
.rp-best .products.rp-grid > .js-product { display: flex; width: auto; max-width: none; float: none; flex: none; margin: 0; padding: 0; }
.rp-best .products.rp-grid > .js-product > .product-miniature { flex: 1; width: 100%; }
@media (max-width: 991px) { .rp-best .products.rp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rp-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.rp-bullets li { position: relative; padding-left: 18px; font-size: .875rem; }
.rp-bullets li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--rp-ink); }
.rp-price { font: 600 1.375rem/1 var(--rp-font-display); }
.rp-price--lg { font-size: 2rem; }

/* kalkulator */
.rp-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.rp-calc__form { display: grid; gap: 16px; align-content: start; padding-top: 24px; border-top: 2px solid var(--rp-ink); }
.rp-calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-calc__result { display: grid; gap: 16px; align-content: start; padding: 24px; background: var(--rp-surface-2); border-top: 2px solid var(--rp-ink); }
.rp-calc__big { font: 500 clamp(3rem, 2rem + 4vw, 4.75rem)/1 var(--rp-font-display); }
.rp-calc__dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-calc__dirs div { display: grid; gap: 2px; padding: 12px; background: #fff; }
.rp-calc__dirs b { font: 600 1.375rem var(--rp-font-display); }
.rp-calc__mat { padding: 12px 16px; background: #fff; border-left: 2px solid var(--rp-ok); font-weight: 600; }
.rp-calc__buy { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-calc__buy form { margin: 0; }
.rp-disclaimer { font-size: .8125rem; color: var(--rp-ink-2); }

/* zawiesia */
.rp-wll { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.rp-wll a { display: grid; gap: 8px; padding: 10px 10px 12px; border: 1px solid var(--rp-line); background: #fff; color: var(--rp-ink); text-decoration: none; }
.rp-wll a:hover { border-color: var(--rp-line-strong); color: var(--rp-ink); text-decoration: none; }
.rp-webbing { position: relative; height: 44px; overflow: hidden; }
.rp-webbing::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 6px); }
.rp-webbing::after { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(255,255,255,.55); }
.rp-wll b { font: 600 1.375rem/1 var(--rp-font-display); }
.rp-wll small { font-size: .8125rem; color: var(--rp-ink-2); }
.rp-wll__text { display: grid; gap: 12px; max-width: 75ch; margin-bottom: 24px; color: var(--rp-ink-2); }

/* zawiesia specjalne i szekle powyżej 20 t */
.rp-heavy { background: var(--rp-surface-2); border-block: 1px solid var(--rp-line); }
.rp-heavy__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 48px; }
.rp-heavy__media { display: block; aspect-ratio: 21 / 9; overflow: hidden; background: var(--rp-plate); }
.rp-heavy__media img { width: 100%; height: 100%; object-fit: cover; }
.rp-heavy__media--grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 21 / 11; background: transparent; }
.rp-heavy__photo { position: relative; display: block; background: var(--rp-plate); overflow: hidden; color: var(--rp-ink); text-decoration: none; }
.rp-heavy__photo.is-main { grid-row: span 2; }
.rp-heavy__photo img { position: absolute; inset: 0; padding: 10%; object-fit: contain; }
.rp-heavy__photo span { position: absolute; left: 10px; top: 10px; padding: 2px 6px; background: rgba(255,255,255,.92); font-size: .8125rem; font-weight: 700; }
.rp-heavy__copy { display: grid; gap: 12px; }
.rp-heavy__copy .rp-row { margin-top: 8px; }
.rp-eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b8121a; }

/* nietypowe zamówienie */
.rp-config { background: #fff; border-block: 1px solid var(--rp-line); padding-top: 64px !important; }
.rp-config__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.rp-config__stage { position: sticky; top: 24px; display: grid; gap: 16px; }
.rp-config__art { aspect-ratio: 16 / 10; padding: 8px; background: var(--rp-plate); }
.rp .rp-config__title { display: grid; gap: 2px; line-height: 1.12; }
.rp-config__q { font-size: 1.375rem; font-weight: 500; }
.rp-config__go { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); margin-top: 8px; }
.rp-print-band { height: 36px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; padding-inline: 12px; font: 600 13px var(--rp-font-display); letter-spacing: .14em; text-transform: uppercase; }
.rp-config__form { display: grid; gap: 24px; }
.rp-config__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.rp-config__form legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 8px; padding: 0; font-size: 1rem; font-weight: 600; }
.rp-config__form legend label { margin: 0; font-weight: 600; }
.rp-config__form output { color: var(--rp-ink-2); font-weight: 600; font-size: .875rem; }
.rp-config__form input[type="range"] { width: 100%; min-height: var(--rp-tap); accent-color: var(--rp-brand); }
.rp-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-seg label { display: inline-flex; align-items: center; gap: 8px; min-height: var(--rp-tap); margin: 0; padding: 0 14px; border: 1px solid var(--rp-line); background: #fff; font-size: .875rem; font-weight: 600; cursor: pointer; }
.rp-seg input:checked + label { border-color: var(--rp-line-strong); box-shadow: inset 0 0 0 1px var(--rp-line-strong); }
.rp-seg input:focus-visible + label { outline: 3px solid var(--rp-focus); outline-offset: 2px; }
.rp-seg input:disabled + label { opacity: .4; cursor: not-allowed; }
.rp-swatch { width: 18px; height: 18px; flex: none; border: 1px solid rgba(0,0,0,.2); background-image: repeating-linear-gradient(38deg, rgba(0,0,0,.12) 0 1.3px, transparent 1.3px 3.2px); }
.rp-swatch.is-moro { background-image: radial-gradient(circle at 25% 30%, #3e3f2c 0 22%, transparent 23%), radial-gradient(circle at 70% 65%, #8a7d55 0 24%, transparent 25%), radial-gradient(circle at 75% 20%, #2f2f24 0 14%, transparent 15%); }
/* konfigurator: kafle napinaczy i zakończeń ze zdjęciami części ze sklepu */
.rp-opt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rp-opt { position: relative; display: flex; }
.rp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-opt label { flex: 1; display: grid; grid-template-rows: auto 1fr; gap: 4px; margin: 0; padding: 4px 4px 8px; border: 1px solid var(--rp-line); background: #fff; font-size: .875rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
.rp-opt label:hover { border-color: var(--rp-line-strong); }
.rp-opt input:checked + label { border-color: var(--rp-ink); box-shadow: inset 0 0 0 1px var(--rp-ink); }
.rp-opt input:focus-visible + label { outline: 3px solid var(--rp-focus); outline-offset: 2px; }
.rp-opt__img { display: block; aspect-ratio: 1; background: var(--rp-plate); overflow: hidden; }
.rp-opt__img .rp-photo { padding: 6px; }
.rp-opt__img.is-empty { display: none; }
.rp-opt__svg { display: block; width: 100%; height: 100%; padding: 8px; }
.rp-opt__name { align-self: center; }
.rp-opt-color { display: contents; }
.rp-summary { display: grid; gap: 12px; padding: 24px; background: var(--rp-surface-2); }
.rp-summary [data-rp-config-summary] { font-weight: 600; }
/* formularz zapytania w konfiguratorze */
.rp-inq { display: grid; gap: 12px; }
.rp-inq .rp-btn[disabled] { opacity: .7; cursor: progress; }
.rp-inq__status { margin: 0; padding: 12px 16px; font-weight: 600; background: #fff; border-left: 4px solid currentColor; }
.rp-inq__status.is-ok { color: #1b6e36; }
.rp-inq__status.is-error { color: #b8121a; }
.rp-inq__status:focus { outline: 3px solid var(--rp-focus); outline-offset: 2px; }
.rp-summary a:not(.rp-btn) { color: var(--rp-ink); text-decoration: underline; text-underline-offset: 3px; }
/* pole-pułapka na boty: niewidoczne dla ludzi i czytników ekranu */
.rp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* dla firm */
.rp-b2b { background: var(--rp-surface-2); border-block: 1px solid var(--rp-line); }
.rp-b2b__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding-block: 64px; }
.rp-b2b ol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.rp-b2b ol li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--rp-line-strong); }
.rp-b2b ol li b { font: 600 1.125rem var(--rp-font-display); }

/* FAQ */
.rp-faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.rp-faq { border-top: 1px solid var(--rp-line); }
.rp-faq details { border-bottom: 1px solid var(--rp-line); }
.rp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 16px 0; font-size: 1.125rem; font-weight: 500; list-style: none; cursor: pointer; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq__icon { flex: none; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.rp-faq details[open] .rp-faq__icon { transform: rotate(45deg); }
.rp-faq__answer { padding-bottom: 24px; max-width: 72ch; color: var(--rp-ink-2); }

/* pasek darmowej dostawy i dodatki karty produktu */
.rp-ship { display: grid; gap: 6px; font-size: .875rem; }
.rp-ship__bar { height: 6px; background: var(--rp-surface-2); overflow: hidden; }
.rp-ship__bar span { display: block; height: 100%; background: var(--rp-ok); transition: width .3s; }
.rp-pdp-extra { display: grid; gap: 12px; margin-top: 16px; }
/* w wierszu .product-quantity (flex bez zawijania w motywie rpas): blok w nowej linii na całą szerokość;
   zawijanie tylko w wierszu z blokiem (starsze przeglądarki bez :has() zawijają każdy wiersz) */
.product-quantity:has(> .rp-pdp-extra) { flex-wrap: wrap; }
@supports not selector(:has(*)) { .product-quantity { flex-wrap: wrap; } }
.product-quantity > .rp-pdp-extra { flex: 0 0 100%; max-width: 100%; }
.rp-delivery { border: 1px solid var(--rp-line); }
.rp-delivery li { display: grid; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--rp-line); font-size: .875rem; }
.rp-delivery li:last-child { border-bottom: 0; }
.rp-delivery a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rp-cart-progress { margin-bottom: 16px; padding: 16px; background: #fff; border: 1px solid var(--rp-line); }

/* kafle wariantów na karcie produktu: zdjęcie + nazwa (+ cena) */
.rp-variants { display: grid; gap: 16px; margin-bottom: 16px; font-family: var(--rp-font); }
.rp-variants *, .rp-variants *::before, .rp-variants *::after { box-sizing: border-box; }
.rp-vgroup { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rp-vgroup__label { margin: 0; padding: 0; font-size: .875rem; font-weight: 700; color: var(--rp-ink); }
.rp-vgroup__label span { font-weight: 500; color: var(--rp-ink-2); }
.rp-vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rp-vtiles.is-text { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
.rp-vtile { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; width: 100%; height: 100%; min-height: var(--rp-tap); margin: 0; padding: 4px 4px 8px; border: 1px solid var(--rp-line); background: #fff; color: var(--rp-ink); font-size: .875rem; font-weight: 400; text-align: center; text-decoration: none; cursor: pointer; }
.rp-vtiles.is-text .rp-vtile { align-content: center; padding: 8px 4px; }
.rp-vtile:hover { border-color: var(--rp-line-strong); color: var(--rp-ink); text-decoration: none; }
.rp-vtile.is-selected { border-color: var(--rp-ink); box-shadow: inset 0 0 0 1px var(--rp-ink); }
.rp-vtile:focus-visible, .rp-vtile:focus-within { outline: 3px solid var(--rp-focus); outline-offset: 2px; }
.rp-vtile__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rp-vtile__img { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 4px; background: var(--rp-plate); }
.rp-vtile__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.rp-vtile b { font-weight: 600; line-height: 1.2; }
.rp-vtile small { font-size: .8125rem; color: var(--rp-ink-2); }
.rp-vtile.is-unavailable { opacity: .55; }
.rp-vtile.is-unavailable b { text-decoration: line-through; }

/* dolny pasek na telefonie */
.rp-tabbar { display: none; }
.rp-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .rp-wll { grid-template-columns: repeat(5, 1fr); }
  .rp-bullets { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .rp-hero__grid, .rp-calc, .rp-config__grid, .rp-b2b__grid, .rp-faq__grid, .rp-heavy__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rp-config__stage { position: static; }
  .rp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-facts ul { grid-template-columns: 1fr 1fr; }
  .rp-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .rp-facts li:nth-child(n+3) { border-top: 1px solid var(--rp-line); }
  .rp-mosaic { min-height: 360px; }
  .rp-hero__copy .rp-h1 { max-width: none; }
}

/* ---------- telefon ---------- */
@media (max-width: 767px) {
  .rp-section { padding-block: 32px; }
  .rp-lead { font-size: 1rem; }
  .rp-hero__grid { padding-block: 24px; gap: 24px; }
  .rp-hero__proof { display: none; }
  .rp-uses { margin-top: 8px; gap: 8px; }
  .rp-uses__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-use { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 4px 8px 4px 4px; }
  .rp-use__thumb { width: 44px; height: 44px; }
  .rp-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 112px 112px; min-height: 0; }
  .rp-mosaic a:not(:first-child) .rp-go { display: none; }
  .rp-mosaic a:first-child { grid-row: auto; grid-column: span 2; }
  .rp-mosaic__cap { padding: 12px; }
  .rp-mosaic b { font-size: 1.125rem; }
  .rp-mosaic small { font-size: .8125rem; }
  .rp-go { width: 32px; height: 32px; }

  .rp-facts li { padding: 16px 12px 16px 0; }
  .rp-facts li + li { padding-left: 12px; }
  .rp-facts li:nth-child(3) { padding-left: 0; }
  .rp-facts li > span:last-child { font-size: .8125rem; }

  .rp-tiles { gap: 8px; }
  .rp-tile__media { aspect-ratio: 4 / 3; }
  .rp-tile__label { min-height: 52px; padding: 8px 12px; }
  .rp-tile__label small, .rp-tile__label > span:last-child { display: none; }
  .rp-tile__label b { font-size: .875rem; }

  .rp-best .products.rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  .rp-heavy__grid { padding-block: 32px; gap: 16px; }
  .rp-heavy__media { aspect-ratio: 16 / 9; }
  .rp-heavy__media--grid { aspect-ratio: 4 / 3; }
  .rp-heavy__copy .rp-btn { flex: 1 1 100%; }
  .rp-config__q { font-size: 1.125rem; }

  .rp-calc__row { grid-template-columns: 1fr; }
  .rp-calc__buy .rp-btn, .rp-calc__buy form { width: 100%; }

  .rp-wll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-config__art { aspect-ratio: 16 / 10; }
  .rp-opt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-b2b__grid { padding-block: 32px; }
  .rp-b2b ol { grid-template-columns: 1fr; }

  /* dolny pasek */
  body.rp-has-tabbar { padding-bottom: calc(var(--rp-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .rp-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--rp-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .rp-tabbar a, .rp-tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; height: var(--rp-tabbar-h); border: 0; background: none; font: 600 11px var(--rp-font); color: var(--rp-ink-2); text-decoration: none; cursor: pointer; }
  .rp-tabbar a:hover { color: var(--rp-ink); text-decoration: none; }
  .rp-tabbar [aria-current="page"] { color: var(--rp-ink); }
  .rp-tabbar [aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 32px; height: 3px; background: var(--rp-brand); }
  .rp-badge { position: absolute; top: 6px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; background: var(--rp-brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rp *, .rp *::before, .rp *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
