/* 2026-12-01: naprawa uciętej szerokości szkicu na telefonach. Nie dotyczy strony publicznej. */
body.home #et-main-area,
body.home #main-content,
body.home #main-content > article,
body.home #main-content article.page,
body.home #main-content .entry-content,
body.home #main-content .et-l,
body.home #main-content .et-l--post,
body.home #main-content .et_builder_inner_content{
  display:block;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
body.home #main-content .do-xmas{
  display:block!important;
  float:none!important;
  clear:both!important;
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
body.home .do-xmas-hero,
body.home .do-xmas-benefits,
body.home .do-xmas-offer{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.home .do-xmas-hero{
  display:flex!important;
  overflow:hidden!important;
}
body.home .do-xmas-hero-content{
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
}
body.home .do-xmas-hero h1,
body.home .do-xmas-overline,
body.home .do-xmas-hero-content p{
  max-width:100%!important;
  overflow-wrap:normal;
}
/* Gałązki dolne przy samej krawędzi ekranu, bez odsuwania przez pasek podglądu.
   Banner podglądu i informacja o cookies mogą je zasłonić, ale nie zmieniają pozycji. */
body.home .do-xmas-corner--bl,
body.home .do-xmas-corner--br{bottom:0!important;}
/* Podgląd ma pozostać rozpoznawalny, ale pasek nie może zasłaniać połowy ekranu. */
@media (max-width:980px) {
  #wpvibe-preview-banner{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100vw!important;
    min-width:0!important;
    padding:7px 9px!important;
    gap:6px!important;
    font-size:11px!important;
  }
  #wpvibe-preview-banner .wpvibe-info{display:none!important;}
  #wpvibe-preview-banner .wpvibe-badge{flex:1 1 115px!important;min-width:0!important;font-size:11px!important;line-height:1.25!important;}
  #wpvibe-preview-banner .wpvibe-btn{flex:0 0 auto!important;font-size:10px!important;line-height:1.25!important;padding:5px 7px!important;white-space:nowrap!important;}
}
@media(max-width:650px) {
  body.home .do-xmas-hero{min-height:570px!important;height:auto!important;}
  body.home .do-xmas-hero-content{width:92%!important;margin:0 auto!important;padding-left:8px!important;padding-right:8px!important;}
  body.home .do-xmas-overline{display:flex!important;flex-wrap:wrap!important;gap:5px!important;line-height:1.35!important;}
  body.home .do-xmas-overline .do-xmas-hr{flex:0 0 14px;}
  body.home .do-xmas-hero h1{font-size:clamp(34px,8.2vw,46px)!important;line-height:1.14!important;overflow-wrap:break-word!important;}
  #wpvibe-preview-banner .wpvibe-badge{flex-basis:100px!important;}
  #wpvibe-preview-banner .wpvibe-btn{font-size:10px!important;}
}

/* 2026-12-01: korekta wyłącznie desktopowego nagłówka strony głównej.
   Logo i menu zostają nad banerem świątecznym, nie na jego treści. */
@media (min-width:981px) {
  body.home #top-header {
    position:relative!important;
    top:auto!important;
    box-shadow:none!important;
    border-bottom:0!important;
  }
  body.home #main-header,
  body.home #main-header.et-fixed-header {
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    border-bottom:0!important;
    box-shadow:0 2px 12px rgba(0,0,0,.14)!important;
  }
  body.home #page-container {padding-top:0!important;}
  /* Kontener Divi domyslnie rozciaga sie na cala szerokosc naglowka.
     Na desktopie ograniczamy rowniez jego klikalny link, nie tylko rozmiar obrazka. */
  body.home #main-header .container.et_menu_container {
    position:relative!important;
    min-height:76px!important;
  }
  body.home #main-header .logo_container {
    position:absolute!important;
    top:0!important;
    bottom:auto!important;
    left:0!important;
    right:auto!important;
    display:flex!important;
    align-items:center!important;
    width:195px!important;
    max-width:195px!important;
    min-width:0!important;
    height:76px!important;
    max-height:76px!important;
    overflow:hidden!important;
    z-index:2!important;
    pointer-events:none!important;
  }
  body.home #main-header .logo_container .logo_helper {display:none!important;}
  body.home #main-header .logo_container > a {
    position:static!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:185px!important;
    max-width:185px!important;
    min-width:0!important;
    height:76px!important;
    max-height:76px!important;
    overflow:hidden!important;
    pointer-events:auto!important;
  }
  body.home #main-header #logo {
    /* Bez nadpisywania obrazka: korzysta z przezroczystego logo używanego już na telefonie. */
    display:block!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    padding:0!important;
    position:static!important;
    width:175px!important;
    height:auto!important;
    max-width:175px!important;
    max-height:52px!important;
    object-fit:contain!important;
    object-position:left center!important;
    vertical-align:middle!important;
    border:0!important;
  }
  body.home #main-header #top-menu li > a {
    border-bottom:0!important;
    box-shadow:none!important;
    text-decoration:none!important;
  }
}
