/* T2: do 767 px dolny pas pierwszego ekranu zostaje dla banera zgód.
   Baner, jego treść, kategorie i SEOPress nie zmieniają się.
   Zapas bierze się z niższego zdjęcia bohatera, stałego od pierwszego
   malowania, więc decyzja o zgodzie nie przesuwa przycisku.
   Po recenzji kadr głównej ma najwyżej 140 px, a na cięciu laserowym
   zdjęcie pasa ma 108 px i stoi nad telefonem treści. Akordeony schodzą niżej.
   Selektory są mocniejsze niż arkusz produkcji.
   Od 768 px ten plik nic nie zmienia. */

@media (max-width: 767px) {
  html body .nw.nw #nw-tresc > section.el-hero {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  section.el-hero .el-hero__gora img {
    max-height: 72px;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  html body .nw.nw section.ex-hero .ex-hero__tlo {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 140px;
    overflow: hidden;
  }

  html body .nw.nw section.ex-hero .ex-hero__tlo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  html body .nw.nw section.e1h-hero .e1h-hero__tlo {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 140px;
    overflow: hidden;
  }

  html body .nw.nw section.e1h-hero .e1h-hero__tlo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  html body .nw.nw section.eo-hero .mk-hero-photo {
    max-height: 140px;
  }

  html body .nw.nw #nw-tresc > section.sp-hero {
    padding-top: 8px;
  }

  html body .nw.nw #nw-tresc > section.el-hero:has(figure.el-pas__foto) {
    padding-top: 36px;
  }

  html body .nw.nw section.el-hero .el-hero__gora > div:has(> figure.el-pas__foto) {
    display: contents;
  }

  html body .nw.nw section.el-hero figure.el-pas__foto {
    order: -2;
    width: 100%;
    margin: 0;
  }

  html body .nw.nw section.el-hero figure.el-pas__foto img {
    max-height: 108px;
    width: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  html body .nw.nw section.el-hero .el-hero__gora > div:has(> figure.el-pas__foto) > .el-podpis {
    order: -1;
    margin: 4px 0 0;
  }

  html body .nw.nw section.el-hero .el-hero__opis > .nw-akcje {
    order: 1;
  }

  html body .nw.nw section.el-hero .el-hero__opis > details.mk-det,
  html body .nw.nw section.el-hero .el-hero__gora > div:has(> figure.el-pas__foto) > details.mk-det {
    order: 2;
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  /* KONTAKT po przeniesieniu przez JS zajmuje ten sam wiersz co przed przeniesieniem. */
  html body .nw.el:has(#nw-tresc > section.el-hero figure.el-pas__foto)
  .nw-nav nav.nw-menu:has(> a.f-contact-item[data-ecad-f-contact="1"]) > .nw-menu__lista {
    display: none !important;
  }

  html body .nw.el:has(#nw-tresc > section.el-hero figure.el-pas__foto)
  .nw-nav nav.nw-menu:has(> a.f-contact-item[data-ecad-f-contact="1"]) {
    background-color: transparent;
  }

  /* Katalog ma te sama pozycje przed zwinieciem przez skrypt i po nim. */
  html body .nw.nw section.el-hero
  .el-hero__gora > div:has(> figure.el-pas__foto) > figure.el-maszyna__foto {
    order: 2;
    margin-top: 8px;
  }
}


@media (max-width: 767px) and (scripting: enabled) {
  #eo-oferta .eo-hero .nw-kol:not(:has(> .mk-hero-photo)) > .ecad-m8-hero-slot[hidden] {
    aspect-ratio: auto;
    height: 140px;
  }
}
