/* Mobilni ukazka JK-PROFIHOME, puvodni styly pocitace zustavaji beze zmeny. */
.pw-lista, .pw-menu-check { display: none; }
@media (max-width: 800px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html, body { width: 100% !important; min-width: 0 !important; height: auto !important; margin: 0 !important; }
  body { padding-top: 56px !important; font-size: 16px; line-height: 1.5; }
  #web, #obsah, #content { width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; }
  #obsah { padding-bottom: 0 !important; }
  #content { padding-top: 0 !important; }
  .innerPanel { width: auto !important; max-width: 100% !important; margin: 0 !important; box-sizing: border-box; }
  img { max-width: 100%; height: auto; }
  .pw-menu-check { display: block; position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }
  .pw-lista { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 10000; height: 56px; padding: 6px 12px; box-sizing: border-box; align-items: center; justify-content: space-between; background: #246572; font-family: Arial, sans-serif; box-shadow: 0 1px 4px #0008; }
  .pw-tel { color: white; font-size: 19px; font-weight: bold; min-height: 44px; display: flex; align-items: center; text-decoration: none; }
  .pw-menu-btn { color: white; border: 1px solid #fff; border-radius: 4px; padding: 0 12px; min-height: 42px; display: flex; align-items: center; font-size: 17px; font-weight: bold; cursor: pointer; }
  .pw-otevreno, body:has(#pw-menu:checked) .pw-zavreno { display: none; }
  body:has(#pw-menu:checked) .pw-otevreno { display: inline; }
  #header { position: relative !important; height: auto !important; width: 100% !important; }
  #mainMenuBox { position: static !important; display: flex; flex-direction: column; width: auto; padding: 16px; }
  #header .logo { position: static !important; order: -1; flex-shrink: 0; display: block; width: 250px !important; max-width: 100%; margin: 0 auto; }
  #header .logo img { display: block; }
  #mainMenuBox .mainMenuItem { display: none; }
  body:has(#pw-menu:checked) #mainMenuBox .mainMenuItem { display: flex; align-items: center; min-height: 48px; margin: 0; padding: 0 12px; border-bottom: 1px solid #444; font-size: 17px; }
  body:has(#pw-menu:checked) #header .logo { margin-bottom: 12px; }
  #banner { width: 100% !important; min-width: 0 !important; height: auto !important; background-size: cover !important; background-position: center !important; box-sizing: border-box; padding: 16px; overflow: visible !important; }
  #banner .introduce { position: relative !important; top: auto !important; left: auto !important; width: auto !important; padding: 16px !important; background: rgba(0,0,0,.83); text-align: left !important; }
  #banner .introduce .mainTitle { position: relative; z-index: 1; font-size: 28px; }
  #banner .introduce p { margin: 10px 0 0; line-height: 1.55 !important; }
  #banner .introduce p span { font-size: 18px !important; }
  #middleLine { height: auto !important; overflow: visible !important; }
  #middleLine .innerPanel { height: auto !important; }
  #middleLine .mottoPanel, #middleLine .fastContactPanel { position: static !important; width: auto !important; height: auto !important; padding: 14px 16px !important; box-sizing: border-box; }
  #middleLine .mottoPanel div { font-size: 20px !important; line-height: 1.5 !important; }
  #middleLine .fastContactPanel { text-align: center; background: #246572; }
  #mainProductions, .rightPanel { float: none !important; width: auto !important; margin: 0 !important; padding: 16px; box-sizing: border-box; }
  #mainProductions .productItem { display: block; float: none !important; width: auto !important; margin: 0 0 24px !important; }
  #mainProductions .productItem .title { font-size: 21px !important; line-height: 1.4 !important; }
  #mainProductions .productItem .slideshow { width: 313px; max-width: 100%; margin: 0 auto; }
  /* Prechodove kopie galerie zustanou cele, fotografie se dale stridaji. */
  #mainProductions .slideshow .slideItem { clip: auto !important; }
  #mainProductions .productItem .txtShort { height: auto !important; overflow: visible !important; text-align: left !important; font-size: 16px !important; line-height: 1.5; color: #ccc; margin: 8px 0 0; }
  .rightPanel .itemBox .title { font-size: 18px !important; line-height: 1.4; padding: 14px; }
  .rightPanel .infoPanelItem { display: flow-root; padding: 12px 0; }
  .rightPanel .infoPanelItem p { font-size: 16px !important; line-height: 1.5 !important; text-align: left !important; color: #ccc; }
  .rightPanel .infoPanelItem img { width: 80px; height: auto; }
  #mainContacts { position: relative !important; width: auto !important; margin: 0 0 24px; padding: 12px; overflow: visible !important; box-sizing: border-box; }
  #mainContacts > .background { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 5px; }
  #mainContacts .employeesBox { margin: 0 !important; }
  #mainContacts .contactItem { float: none; width: auto; min-height: 0; display: flow-root; }
  #mainContacts .employeesBox .title { font-size: 15px !important; }
  #mainContacts .contactItem p { font-size: 16px !important; line-height: 1.5; }
  #footer { margin: 0 !important; height: auto !important; text-align: left; }
  #footer .contact { position: static !important; width: auto !important; height: auto !important; padding: 16px; background: #246572; box-sizing: border-box; }
  #footer .contact p { margin: 0 !important; }
  #footer .contact .txt { font-size: 16px !important; line-height: 1.6 !important; }
  #footer .innerPanel > div:not(.contact) { position: static !important; padding: 16px; font-size: 14px !important; line-height: 1.6 !important; color: #bbb !important; overflow-wrap: anywhere; }

  /* Podstranky: Sluzby, Reference, Kontakty */
  div.mainPanel { float: none !important; width: auto !important; margin: 10px 12px 0 !important; }
  .itemBox .content { margin: 5px 0 !important; }
  .itemBox .item > div[style*="float"] { float: none !important; width: auto !important; max-width: 100%; margin: 0 0 12px !important; }
  .itemBox .item p[style] { font-size: 16px !important; line-height: 1.5 !important; text-align: left !important; }
  .itemBox .item iframe { float: none !important; display: block; width: 100% !important; margin: 0 0 12px !important; }
  .itemBox .item p.white[style*="float"] { float: none !important; margin-top: 0 !important; line-height: 1.5 !important; }
  .rightPanel .productionItem p { font-size: 16px !important; line-height: 1.4 !important; margin-left: 15px !important; }
  .referenceItem { float: none !important; width: auto !important; margin: 0 0 20px !important; }
  .referenceItem .image { width: auto !important; height: 220px !important; background-size: cover !important; }
  .referenceItem .medium span { font-size: 16px; }
  form[name="contactForm"] { float: none !important; width: auto !important; margin: 0 !important; }
  .employeesBox .title[style] { font-size: 15px !important; }
  .employeesBox .contactItem { float: none !important; width: auto !important; display: flow-root; }
  .employeesBox .contactItem p.name { font-size: 17px !important; }
  .employeesBox .contactItem p.department, .employeesBox .contactItem p.text { font-size: 16px !important; line-height: 1.5; }
  form[name="contactForm"] input[type="submit"] { min-height: 44px; padding: 0 24px; font-size: 16px; }
  div#middleLine .fastContactPanel { background-color: #246572 !important; }
  div.rightPanel .infoPanelItem img { width: 80px !important; height: auto !important; }
}
