.pv-panel, .pv-oceny, .pv-loga { display: none; }
.offer-hero.pv-4 .pv-panel { display: flex; }
.offer-hero.pv-on .pv-oceny { display: flex; }
.offer-hero.pv-on { --pv-top: 0px; }
body.has-topbar .offer-hero.pv-on { --pv-top: var(--topbar-h, 41px); }
/* przycisk „Wyślij zapytanie” z hero znika - jego miejsce zajmuje formularz */
.offer-hero.pv-on .hero--subpage .section-footer { display: none; }
.pv-oceny { flex-wrap: wrap; gap: 10px; }
.pv-ocena { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font: 500 14px/1.2 "Raleway", sans-serif; white-space: nowrap; }
.pv-ocena b { font-size: 18px; font-weight: 700; }
.pv-ocena svg { width: 17px; height: 17px; }
.pv-ocena small { font-size: 13px; opacity: .85; }
.pv-loga { text-align: center; color: #fff; }
.pv-loga__tyt { display: block; font: 600 12px/1.2 "Raleway", sans-serif; letter-spacing: .6px; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.pv-loga__rzad { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }
.pv-loga__rzad img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
/* ==========================================================================
   KOMPUTER (od 992 px)
   ========================================================================== */
@media (min-width: 992px) {
/* hero rośnie razem z treścią; zdjęcie zostaje tłem */
  .offer-hero.pv-on .hero.hero--subpage { display: block; position: relative; overflow: hidden; min-height: 770px; }
  .offer-hero.pv-on .hero--subpage > picture { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; }
  .offer-hero.pv-on .hero--subpage > picture img { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; }
  .offer-hero.pv-on .hero--subpage .hero__content {
    position: relative; left: auto; top: auto; transform: none; margin: 0 auto;
    width: 1200px; max-width: 100%; min-height: inherit; padding-left: 15px; padding-right: 15px;
    justify-content: center; pointer-events: auto;
  
  }
  .offer-hero.pv-on .hero__content .hero__headers { display: grid; width: 100%; margin: auto 0; }
  .offer-hero.pv-on .hero__headers .hero__text-overlay { grid-area: tytul; }
  .offer-hero.pv-on .hero__headers .pv-oceny { grid-area: oceny; }
  .offer-hero.pv-on .hero__headers .pv-loga { grid-area: loga; }
/* --- tekst po lewej, karta po prawej -------------------------------------- */
  .offer-hero.pv-4 .hero.hero--subpage { display: grid; grid-template-columns: 1fr 1fr; }
  .offer-hero.pv-4 .hero--subpage .hero__content { grid-column: 1; grid-row: 1; width: auto; margin: 0; padding: calc(var(--pv-top) + 92px) 48px 40px 64px; align-items: stretch; }
  .offer-hero.pv-4 .hero__content .hero__headers { grid-template-columns: 100%; grid-template-areas: "tytul" "korzysci" "oceny" "ekspert"; }
  .offer-hero.pv-4 .hero--subpage .hero__text-overlay { justify-content: flex-start; text-align: left; }
  .offer-hero.pv-4 .pv-oceny { margin-top: 26px; }
  .offer-hero.pv-4 .hero--subpage .hero__badge-overlay { display: none; }
  .offer-hero.pv-4 .pv-panel { grid-column: 2; grid-row: 1; position: relative; z-index: 6; margin-top: calc(var(--pv-top) + 76px); background: #fff; align-items: center; justify-content: center; padding: 24px 48px 26px; }
}
/* niski laptop: ciaśniej, żeby przycisk był nad linią ekranu */
@media (min-width: 992px) and (max-height: 800px) {
  .offer-hero.pv-4 .pv-panel { padding-top: 18px; padding-bottom: 18px; }
  .offer-hero.pv-4 .pv-oceny { margin-top: 20px; }
}
/* ==========================================================================
   TELEFON (do 991 px): zdjęcie z tytułem i ocenami, pod nim formularz,
   dalej korzyści i logotypy na białym tle
   ========================================================================== */
@media (max-width: 991px) {
  .offer-hero.pv-on .hero.hero--subpage { display: grid; grid-template-columns: 100%; min-height: 0; overflow: hidden; background: #fff; }
  .offer-hero.pv-on .hero--subpage > picture { position: relative; grid-row: 1 / span 2; grid-column: 1; display: block; width: 100%; height: auto; min-height: 0; max-height: none; }
  .offer-hero.pv-on .hero--subpage > picture img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; }
  .offer-hero.pv-on .hero--subpage .hero__content, .offer-hero.pv-on .hero__content .hero__headers { display: contents; }
  .offer-hero.pv-on .hero--subpage .hero__text-overlay { grid-row: 1; grid-column: 1; position: relative; z-index: 6; padding: 88px 15px 14px; }
  .offer-hero.pv-on .pv-oceny { grid-row: 2; grid-column: 1; position: relative; z-index: 6; justify-content: center; gap: 8px; padding: 0 12px 22px; }
  .offer-hero.pv-on .pv-oceny { flex-wrap: nowrap; gap: 6px; }
  .offer-hero.pv-on .pv-ocena { padding: 5px 9px; gap: 5px; font-size: 12px; }
  .offer-hero.pv-on .pv-ocena b { font-size: 15px; }
  .offer-hero.pv-on .pv-ocena small { font-size: 11.5px; }
  .offer-hero.pv-on .pv-ocena svg { width: 14px; height: 14px; }
  .offer-hero.pv-on .pv-panel { grid-row: 3; grid-column: 1; position: relative; z-index: 7; }
  .offer-hero.pv-on .pv-loga { grid-row: 6; grid-column: 1; padding: 0 15px 26px; color: #000; }
  .offer-hero.pv-on .pv-loga__rzad img { filter: grayscale(1); opacity: .75; height: 40px; }
  .offer-hero.pv-on .hero--subpage .hero__badge-overlay { display: none; }
  .offer-hero.pv-on .hero--subpage .artboard { display: none; }
/* biały panel pod zdjęciem, na całą szerokość */
  .offer-hero.pv-4 .pv-panel { display: block; background: #fff; padding: 24px 15px 6px; }
}

.offer-hero.pv-kompakt .pv-oceny { display: none !important; }
@media (min-width: 992px) {
  .offer-hero.pv-kompakt.pv-4 .hero.hero--subpage { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .offer-hero.pv-kompakt.pv-4 .pv-panel { padding: 20px 40px 22px; }
}
@media (max-width: 991px) {
  .offer-hero.pv-kompakt .hero--subpage .hero__text-overlay { padding-bottom: 30px; }
  .offer-hero.pv-kompakt.pv-4 .pv-panel { padding: 22px 15px 6px; }
}

.offer-hero.pv-4 .pv-panel:not(.pv-panel--0) { display: none !important; }

.offer-hero.pv-4.pv-oferta .pv-panel { display: none !important; }
.offer-hero.pv-oferta .pv-panel { background: transparent !important; }
/* ostre zdjęcie, ciemniej po lewej (tekst), jaśniej po prawej (karta) */
.offer-hero.pv-oferta .hero--subpage > picture::before { background: linear-gradient(90deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, .34) 100%); }
@media (min-width: 992px) {
  .offer-hero.pv-oferta .pv-panel { padding: 22px 56px 28px; }
}
/* --- TELEFON: tytuł, zaraz pod nim cała karta z przyciskiem, korzyści pod formularzem --- */
@media (max-width: 991px) {
  .offer-hero.pv-oferta .hero--subpage > picture { grid-row: 1 / span 3; }
  .offer-hero.pv-oferta .hero--subpage .hero__text-overlay { padding: 80px 15px 16px; }
  .offer-hero.pv-oferta .pv-panel { padding: 0 10px 20px !important; }
}
/* niski telefon (np. 360×740, 360×800, iPhone SE): ciaśniej, żeby przycisk wszedł na 1. ekran tam, gdzie się da */
@media (max-width: 991px) and (max-height: 820px) {
  .offer-hero.pv-oferta .hero--subpage .hero__text-overlay { padding: 72px 15px 12px; }
}
/* bardzo niski telefon (np. 360×740) */
@media (max-width: 991px) and (max-height: 760px) {
  .offer-hero.pv-oferta .hero--subpage .hero__text-overlay { padding-top: 70px; }
}

.offer-hero.pv-4.pv-final .pv-panel { display: none !important; }
@media (min-width: 992px) {
  .offer-hero.pv-final .hero__content .hero__headers { display: flex; flex-direction: column; align-items: stretch; }
  .offer-hero.pv-final .hero__headers .hero__text-overlay { order: 0; }
  .offer-hero.pv-final .pv-loga { order: 4; margin-top: 18px; text-align: left; }
  .offer-hero.pv-final .pv-loga__rzad { justify-content: flex-start; gap: 20px; }
  .offer-hero.pv-final .pv-loga__rzad img { height: 40px; }
}
@media (min-width: 992px) and (max-height: 800px) {
  .offer-hero.pv-final .pv-loga { margin-top: 14px; }
}
/* telefon: tytuł i karta na zdjęciu, pod formularzem reszta lewej strony na jasnym (lub czarnym) tle */
@media (max-width: 991px) {
  .offer-hero.pv-final .pv-loga { grid-row: 7; grid-column: 1; padding: 18px 15px 26px; }
  .offer-hero.pv-final .pv-loga__rzad { gap: 14px; }
}
@media (max-width: 991px) and (max-height: 760px) {
  .offer-hero.pv-final .hero--subpage .hero__text-overlay { padding-top: 64px; }
}
@media (max-width: 991px) {
  .offer-hero.pv-final .pv-loga__rzad { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; row-gap: 10px; }
}

@media (min-width: 992px) {
  .offer-hero.pv-4.pv-g .pv-panel.pv-panel--g { display: flex !important; }
}
@media (max-width: 991px) {
  .offer-hero.pv-4.pv-g .pv-panel.pv-panel--g { display: block !important; }
}
.offer-hero.pv-kompakt.pv-g3 .pv-oceny { display: flex !important; }
.offer-hero.pv-g3 .pv-loga { display: block; }
@media (min-width: 992px) {
  .offer-hero.pv-g .pv-oceny { order: 3; margin-top: 22px; }
  .offer-hero.pv-g .pv-loga { order: 4; }
  .offer-hero.pv-g3 .pv-oceny { margin-top: 18px; }
  .offer-hero.pv-g3 .pv-loga { margin-top: 14px; }
  .offer-hero.pv-g .pv-loga__rzad img { height: 38px; }
}
@media (max-width: 991px) {
  .offer-hero.pv-g .pv-oceny { padding-bottom: 16px; }
}
/* telefon: opinie pod formularzem, żeby przycisk wysyłki był wyżej */
@media (max-width: 991px) {
  .offer-hero.pv-g .pv-oceny { grid-row: 4; justify-content: center; padding: 18px 12px 0; }
  .offer-hero.pv-g .pv-ocena { background: #f0f0f0; border-color: #e3e3e3; color: #000; }
}
/* dopasowanie do wszystkich ofert (różne długości tytułów) */
@media (min-width: 992px) {
  .offer-hero.pv-g .pv-panel { align-items: flex-start; padding-top: 18px; }
}
@media (min-width: 992px) and (max-height: 800px) {
  .offer-hero.pv-g .pv-oceny { margin-top: 14px; }
  .offer-hero.pv-g3 .pv-loga { margin-top: 10px; }
}
@media (max-width: 991px) {
  .offer-hero.pv-g .hero--subpage .hero__text-overlay { padding-top: 76px; }
}
@media (max-width: 991px) and (max-height: 820px) {
  .offer-hero.pv-g .hero--subpage .hero__text-overlay { padding-top: 68px; padding-bottom: 10px; }
}
@media (max-width: 991px) and (max-height: 760px) {
  .offer-hero.pv-g .hero--subpage .hero__text-overlay { padding-top: 62px; }
}
@media (min-width: 992px) {
  .offer-hero.pv-koniec .pv-oceny { margin-top: 18px; }
  .offer-hero.pv-koniec .pv-loga { margin-top: 18px; max-width: 580px; }
  .offer-hero.pv-koniec .pv-loga__tyt { margin-bottom: 8px; }
  .offer-hero.pv-koniec .pv-loga__rzad { gap: 22px; }
  .offer-hero.pv-koniec .pv-loga__rzad img { height: 44px; opacity: .92; }
}
@media (min-width: 992px) and (max-height: 800px) {
  .offer-hero.pv-koniec .pv-oceny { margin-top: 14px; }
  .offer-hero.pv-koniec .pv-loga { margin-top: 12px; }
  .offer-hero.pv-koniec .pv-loga__rzad img { height: 40px; }
}
@media (max-width: 991px) {
  .offer-hero.pv-koniec .pv-oceny { padding-top: 22px; }
  .offer-hero.pv-koniec .pv-loga { padding-top: 22px; }
  .offer-hero.pv-koniec .pv-loga__rzad img { height: 42px; }
}
@media (min-width: 992px) {
/* hero tak wysokie jak treść (bez pustego pasa) - spod spodu wyłania się początek strony oferty */
  .offer-hero.pv-koniec .hero.hero--subpage { min-height: 0; }
  .offer-hero.pv-koniec .hero--subpage .hero__content { min-height: 0; padding-bottom: 46px; }
  .offer-hero.pv-koniec .pv-panel { padding-bottom: 46px; }
  .offer-hero.pv-koniec .pv-loga { margin-top: 22px; }
}
@media (min-width: 992px) and (max-height: 800px) {
  .offer-hero.pv-koniec .pv-loga { margin-top: 16px; }
}
/* pusty element szablonu pod treścią hero - bez wysokości */
.offer-hero.pv-koniec .hero--subpage .go-to-section { display: none; }

.offer-hero { width: 100%; }
/* --- tytuł: tytuł strony i dopisek z usługi ---------------------------- */

.offer-hero .hero__headers .offer-hero__tytul .offer-hero__tytul-tekst { margin: 0 !important; padding: 0; text-align: left; font-family: "Raleway", sans-serif; color: #fff; text-wrap: balance; }
.offer-hero .hero__headers .offer-hero__tytul-tekst { font-weight: 700; font-size: 50px; line-height: 1.1; letter-spacing: -1.2px; max-width: 15.5em; }
.offer-hero .hero__headers .offer-hero__tytul-tekst.is-long { font-size: 40px; letter-spacing: -.8px; }

.offer-hero .hero__headers .offer-hero__tytul-tekst.is-bardzo-long { font-size: 32px; line-height: 1.15; letter-spacing: -.5px; max-width: 22em; }
/* tytuł strony w znaczniku nagłówka (h1 / h2) albo span - w jednej linii z dopiskiem, krojem całego tytułu */
.offer-hero .offer-hero__nazwa { display: inline; margin: 0; padding: 0; font: inherit; letter-spacing: inherit; color: inherit; text-transform: inherit; }

.offer-hero__usp { display: none; list-style: none; margin: 0; padding: 0; gap: 14px; text-align: left; }
.offer-hero.pv-on .offer-hero__usp { display: grid; }
.offer-hero__usp li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; font: 500 17px/1.4 "Raleway", sans-serif; color: #fff; }
.offer-hero__usp li::before { content: none !important; }
.offer-hero__usp i { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--primary-color, #41c207); background: rgba(65, 194, 7, .16); border: 1px solid rgba(65, 194, 7, .55); }
.offer-hero__usp svg { width: 14px; height: 14px; }
@media (min-width: 992px) {
  .offer-hero .hero__headers .hero__text-overlay { width: 100%; }
  .offer-hero .offer-hero__usp { order: 2; margin-top: 30px; }
  .offer-hero.pv-koniec .pv-oceny { margin-top: 26px; }
}

@media (min-width: 992px) {
  .offer-hero.pv-oferta .pv-panel--g { padding-top: 76px !important; padding-bottom: 106px !important; }
}
@media (min-width: 992px) and (max-height: 800px) {
  .offer-hero .hero__headers .offer-hero__tytul-tekst { font-size: 44px; }
  .offer-hero .hero__headers .offer-hero__tytul-tekst.is-long { font-size: 36px; }
  .offer-hero .hero__headers .offer-hero__tytul-tekst.is-bardzo-long { font-size: 29px; }
  .offer-hero .offer-hero__usp { margin-top: 22px; gap: 10px; }
  .offer-hero.pv-koniec .pv-oceny { margin-top: 18px; }
}
/* --- telefon: tytuł → formularz → opinie → checkboxy → logotypy (3×2) ------ */
@media (max-width: 991px) {
  .offer-hero .hero__headers .offer-hero__tytul-tekst { font-size: 29px; line-height: 1.12; letter-spacing: -.6px; }
  .offer-hero .hero__headers .offer-hero__tytul-tekst.is-long { font-size: 24px; }
  .offer-hero .hero__headers .offer-hero__tytul-tekst.is-bardzo-long { font-size: 21px; line-height: 1.2; }
  .offer-hero .offer-hero__usp { grid-row: 5; grid-column: 1; gap: 12px; padding: 22px 20px 0; }
  .offer-hero .offer-hero__usp li { color: #000; font-size: 16px; }
  .offer-hero .offer-hero__usp i { background: rgba(65, 194, 7, .12); }
  .offer-hero.pv-on .pv-loga { grid-row: 6; }
}
/* --- karta formularza (kf-*): tu tylko jej miejsce w hero ------------- */
.offer-hero__karta { width: 100%; max-width: 450px; }
@media (max-width: 991px) {
  .offer-hero__karta { max-width: none; }
}

.offer-hero.pv-oferta .hero--subpage > picture::before { background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .8) 38%, rgba(0, 0, 0, .6) 62%, rgba(0, 0, 0, .46) 100%); }
@media (max-width: 991px) {
/* telefon: tekst jest na całej szerokości - przyciemnienie równe, mocniejsze u góry (tytuł) */
  .offer-hero.pv-oferta .hero--subpage > picture::before { background: linear-gradient(180deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .76) 35%, rgba(0, 0, 0, .7) 100%); }
}
/* --- telefon: więcej powietrza nad i pod tytułem; opinie zostają na zdjęciu, pod formularzem --- */
@media (max-width: 991px) {
  .offer-hero.pv-g .hero--subpage .hero__text-overlay { padding-top: 100px; padding-bottom: 32px; }
  .offer-hero.pv-oferta .hero--subpage > picture { grid-row: 1 / span 4; }
  .offer-hero.pv-oferta .pv-panel { padding: 0 10px !important; }
  .offer-hero.pv-g .pv-oceny { padding: 18px 12px 24px; }
  .offer-hero.pv-g .pv-ocena { background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .3); color: #fff; }
  .offer-hero .offer-hero__usp { padding-top: 26px; }
}
@media (max-width: 991px) and (max-height: 820px) {
  .offer-hero.pv-g .hero--subpage .hero__text-overlay { padding-top: 94px; padding-bottom: 28px; }
}
@media (max-width: 991px) and (max-height: 760px) {
  .offer-hero.pv-g .hero--subpage .hero__text-overlay { padding-top: 88px; padding-bottom: 26px; }
}

@media (min-width: 992px) {
  .offer-hero.pv-oferta .pv-panel--g { padding-top: 40px !important; }
  .offer-hero.pv-4 .hero--subpage .hero__content { padding-top: calc(var(--pv-top) + 56px); }
}
/* od 1441 px menu jest wyższe */
@media (min-width: 1441px) {
  .offer-hero.pv-oferta .pv-panel--g { padding-top: 62px !important; }
  .offer-hero.pv-4 .hero--subpage .hero__content { padding-top: calc(var(--pv-top) + 78px); }
}

@media (min-width: 992px) {
  .offer-hero .hero {
    padding-left: max(20px, calc((100% - 1500px) / 2));
    padding-right: max(20px, calc((100% - 1500px) / 2));
  }

  .offer-hero.pv-4 .hero--subpage .hero__content, .offer-hero.pv-4 .hero--subpage .pv-panel {
    padding-left: 0;
    padding-right: 0;
  }
}
