/* ===== Wpis "Jesień i zima? - Rozświetl swój ogród" (2026-11-10) =====
   Moduły wewnątrz treści wpisu (.text-rich-text): porównanie przed/po, karuzela opraw, ramka, przenikanie plansz projektu.
   Ładowany PO /css/drago.css, tylko na tym wpisie. Prefiks klas: wil- */
.wil { --wil-swiatlo: #ffc25a; --wil-noc: #13201a; --wil-kamien: #ebe7df; --wil-tekst: #1d1d1b; --wil-szary: #59605b; }
.text-rich-text .wil, .text-rich-text .wil * { box-sizing: border-box; }
.text-rich-text .wil ul, .text-rich-text .wil li, .text-rich-text .wil figure, .text-rich-text .wil h3, .text-rich-text .wil p { margin: 0; padding: 0; }
.text-rich-text .wil img { display: block; max-width: 100%; }
.text-rich-text .wil button { font: inherit; }

/* --- 1. Porównanie przed/po (jak na landingu B) --- */
.wil-porownanie { --poz: 50%; position: relative; margin: 2rem 0 !important; border-radius: 18px; overflow: hidden; aspect-ratio: 1200 / 626;
  background: var(--wil-noc); user-select: none; -webkit-user-select: none; }
.text-rich-text .wil-porownanie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wil-porownanie .wil-po { clip-path: inset(0 0 0 var(--poz)); }
.wil-porownanie::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--poz); width: 2px; margin-left: -1px; background: var(--wil-swiatlo);
  box-shadow: 0 0 18px var(--wil-swiatlo); pointer-events: none; }
.wil-uchwyt { position: absolute; top: 50%; left: var(--poz); width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%; background: var(--wil-swiatlo);
  color: var(--wil-noc); display: grid; place-items: center; pointer-events: none; z-index: 2; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.wil-porownanie input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.wil-porownanie input[type="range"]:focus-visible ~ .wil-uchwyt { outline: 3px solid #fff; outline-offset: 3px; }
.wil-etykieta { position: absolute; bottom: .9rem; z-index: 2; padding: .3rem .8rem; border-radius: 999px; background: rgba(19,32,26,.78); color: #fff;
  font-size: .85rem; line-height: 1.4; pointer-events: none; }
.wil-etykieta--przed { left: .9rem; }
.wil-etykieta--po { right: .9rem; }

/* --- 2. Karuzela opraw (6 kafli ze strony 6 broszury) --- */
.wil-karuzela { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; margin: 2rem 0 2.25rem !important; }
.text-rich-text .wil-karuzela__lista { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1.25rem) / 2); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.wil-karuzela__lista::-webkit-scrollbar { display: none; }
.text-rich-text .wil-kafel { scroll-snap-align: start; list-style: none; }
.text-rich-text .wil-kafel::before { content: none; }
.text-rich-text .wil-kafel img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: var(--wil-noc); }
.text-rich-text .wil-kafel h3 { margin-top: 1rem; font-size: 1rem; line-height: 1.35; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--wil-tekst); }
.text-rich-text .wil-kafel p { margin-top: .45rem; font-size: .9375rem; line-height: 1.55; color: var(--wil-tekst); }
.wil-karuzela__strzalka { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid #1d1d1b; background: #fff; color: #1d1d1b; display: grid; place-items: center;
  cursor: pointer; padding: 0; align-self: start; margin-top: var(--wil-y, 0); transition: background-color .2s, color .2s, opacity .2s; } /* --wil-y: środek zdjęcia, liczone w JS */
.wil-karuzela__strzalka:hover { background: #1d1d1b; color: #fff; }
.wil-karuzela__strzalka:focus-visible { outline: 3px solid #0f8443; outline-offset: 3px; }
.wil-karuzela__strzalka[disabled] { opacity: .3; cursor: default; background: #fff; color: #1d1d1b; }
.wil-karuzela__strzalka svg { width: 1.25rem; height: 1.25rem; }

/* --- 3. Ramka "Co wyróżnia system in-lite?" --- */
.wil-ramka { background: var(--wil-kamien); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.25rem); margin: 2.25rem 0 !important; }
.text-rich-text .wil-ramka h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--wil-tekst); }
.text-rich-text .wil-ramka ul { list-style: none; margin-top: 1rem; display: grid; gap: .75rem; }
.text-rich-text .wil-ramka li { position: relative; padding-left: 1.5rem; line-height: 1.6; }
.text-rich-text .wil-ramka li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wil-swiatlo); }

/* --- 4. Przyciski w treści --- */
.wil-cta { display: flex; justify-content: center; margin: 2rem 0 !important; }
.text-rich-text .wil-cta a { text-decoration: none; }

/* --- 5. Przenikanie plansz projektu --- */
.wil-fader { position: relative; margin: 1.75rem 0 1rem !important; }
.wil-fader__okno { position: relative; aspect-ratio: 900 / 636; border: 1px solid #d9d4ca; border-radius: 12px; overflow: hidden; background: #fff; }
.text-rich-text .wil-fader__okno img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.text-rich-text .wil-fader__okno img.is-aktywny { opacity: 1; }
.wil-fader__pasek { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: .85rem; }
.wil-fader__kropki { display: flex; gap: .15rem; }
.wil-fader__kropka { width: 1.75rem; height: 1.75rem; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.wil-fader__kropka::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #c9c3b8; transition: background-color .2s, transform .2s; }
.wil-fader__kropka[aria-current="true"]::before { background: #1d1d1b; transform: scale(1.15); }
.wil-fader__kropka:focus-visible, .wil-fader__pauza:focus-visible { outline: 3px solid #0f8443; outline-offset: 2px; border-radius: 6px; }
.wil-fader__pauza { border: 1.5px solid #1d1d1b; background: #fff; color: #1d1d1b; border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; line-height: 1.3; cursor: pointer; }
.wil-fader__pauza:hover { background: #1d1d1b; color: #fff; }
.wil-fader__opis { text-align: center; color: var(--wil-szary); font-size: .875rem; margin-top: .4rem !important; }

/* nazwa marki bez łamania w środku */
.wil-nw { white-space: nowrap; }

@media (max-width: 767px) {
  .wil-karuzela { grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
  .text-rich-text .wil-karuzela__lista { grid-column: 1 / -1; grid-row: 1; grid-auto-columns: 82%; gap: 1rem; }
  .wil-karuzela__strzalka { grid-row: 2; margin-top: 0; }
  .wil-karuzela__strzalka--wstecz { justify-self: end; }
  .wil-karuzela__strzalka--dalej { justify-self: start; }
  .wil-porownanie { aspect-ratio: 4 / 3; border-radius: 14px; }
  .wil-etykieta { font-size: .75rem; bottom: .6rem; }
  .wil-etykieta--przed { left: .6rem; } .wil-etykieta--po { right: .6rem; top: .6rem; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .text-rich-text .wil-karuzela__lista { scroll-behavior: auto; }
  .text-rich-text .wil-fader__okno img { transition: none; }
}
