/* 2026-10-17 UKŁAD: zdjęcia w tle sekcji (przyciemnione) + paski kadrów bez nachodzenia.
   Ładowany jako ostatni arkusz, nadpisuje stare reguły pełnej szerokości z mobile-pelny-ekran.css. */

/* 1) paski kadrów: równe ramki obok siebie, bez rozpychania na 100vw i ujemnych marginesów */
.pasek .frame,main .pasek figure.frame:not(.panel__img):not(.ebk-hero):not(.x-a),main .pasek span.frame:not(.x-a){flex:0 0 clamp(150px,44vw,230px)!important;width:auto!important;max-width:none!important;margin:0!important;aspect-ratio:9/16!important}
main .pasek--mala figure.frame:not(.panel__img):not(.ebk-hero):not(.x-a){flex-basis:clamp(120px,30vw,170px)!important}
main .pasek--final figure.frame:not(.panel__img):not(.ebk-hero):not(.x-a){flex-basis:clamp(130px,36vw,200px)!important}

/* 2) zdjęcia w tle sekcji: zdjęcie na całą sekcję, mocno przyciemnione u góry i dołu, żeby tekst był czytelny */
main>section.sec,main>section.final{position:relative;isolation:isolate}
main>section.sec::after,main>section.final::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(5,5,6,.92) 0%,rgba(5,5,6,.66) 22%,rgba(5,5,6,.66) 78%,rgba(5,5,6,.94) 100%),var(--tlo,none) center 30%/cover no-repeat}
#zaufanie{--tlo:url("historia/processed/w-r-hala-luk-720.webp")}
#po-robocie-s{--tlo:url("historia/processed/w-r-dzwig-720.webp")}
#minimum{--tlo:url("historia/processed/w-f-lustro-26-720.webp")}
#historia{--tlo:url("historia/processed/w-p-kask-budowa-720.webp")}
#ksiazki{--tlo:url("historia/processed/tlo-rusztowanie.webp")}
#trening{--tlo:url("historia/processed/w-f-winda-720.webp")}
#glosy{--tlo:url("historia/processed/w-r-kratownica-led-720.webp")}
#pytania{--tlo:url("historia/processed/w-r-maszt-720.webp")}
#final{--tlo:url("historia/processed/w-r-palac-720.webp")}
@media (min-width:1000px){
  #zaufanie{--tlo:url("historia/processed/w-r-hala-luk-1200.webp")}
  #po-robocie-s{--tlo:url("historia/processed/w-r-dzwig-1200.webp")}
  #minimum{--tlo:url("historia/processed/w-f-lustro-26-1200.webp")}
  #historia{--tlo:url("historia/processed/w-p-kask-budowa-1200.webp")}
  #trening{--tlo:url("historia/processed/w-f-winda-1200.webp")}
  #glosy{--tlo:url("historia/processed/w-r-kratownica-led-1200.webp")}
  #pytania{--tlo:url("historia/processed/w-r-maszt-1200.webp")}
  #final{--tlo:url("historia/processed/w-r-palac-1200.webp")}
}
#aplikacja{--tlo:none}main>section#aplikacja::after{background:#000}
/* 3) sekcja Aplikacja: trzy zrzuty z opisami (bez testu w przeglądarce) */
.apka-scr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:28px 0 26px;align-items:start}
.apka-scr__it{margin:0;display:flex;flex-direction:column;gap:14px}
.apka-scr__it img{display:block;width:100%;height:auto;border:1px solid #2a2a30;border-radius:18px;background:#0a0a0c;box-shadow:0 18px 40px rgba(0,0,0,.6)}
.apka-scr__it figcaption{display:flex;flex-direction:column;gap:6px}
.apka-scr__it figcaption b{font:800 italic 22px/1 var(--f-cond,"Barlow Condensed",sans-serif);text-transform:uppercase;letter-spacing:.04em;color:#fff;border-left:3px solid #e10600;padding-left:10px}
.apka-scr__it figcaption span{color:#c9cbd0;font-size:16px;line-height:1.5}
@media (max-width:760px){
  .apka-scr{display:flex;flex-direction:column;gap:30px}
  .apka-scr__it{width:100%}
  .apka-scr__it img{max-width:420px;margin:0 auto}
  main .apka-scr figure.apka-scr__it{width:auto!important;margin:0!important;aspect-ratio:auto!important}
}
/* punkty w opisach: jedna rzecz pod drugą, czerwony znacznik */
.scr-pkt,.pkt{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.scr-pkt li,.pkt li{position:relative;padding-left:22px;color:#c9cbd0;font-size:16px;line-height:1.45}
.scr-pkt li::before,.pkt li::before{content:"";position:absolute;left:2px;top:.5em;width:9px;height:9px;background:#e10600;transform:rotate(45deg)}
.pkt.measure{max-width:62ch;margin:6px 0}.appban .pkt,.offer .pkt{margin:4px 0 12px}
/* 4) okładki w zakładkach książek: nie na cały ekran, tylko rozsądny podgląd */
@media (max-width:760px){
  main .panel__img{width:100%!important;max-width:100%!important;aspect-ratio:auto!important;height:auto!important;max-height:380px!important;margin:0 auto 14px!important;background:transparent!important;display:flex!important;justify-content:center}
  main .panel__img img{width:auto!important;height:auto!important;max-width:100%!important;max-height:380px!important;object-fit:contain!important}
}
