/* Pohotovost webu: zobrazení v telefonu (jen do šířky 800 px, na počítači se nic nemění) */
.pw-kontakt { display: none; }
@media (max-width: 800px) {
  html { background: #e5e5e5 !important; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html, body { height: auto !important; text-align: left !important; }
  body { font-size: 16px !important; }
  #main { width: auto !important; }

  /* hlavička: obrázek zmenšený na šířku displeje */
  #top { width: auto !important; height: auto !important; margin: 0 !important; background: #7f0009 !important; }
  #banner { display: block !important; float: none !important; width: 100% !important; height: 0 !important; margin: 0 !important;
    padding-top: 15.88% !important; background: url('img/sys/top02.jpg') no-repeat 0 0 / 100% auto !important; }

  /* menu: tlačítka na dva sloupce */
  #menu { position: static !important; top: auto !important; left: auto !important; padding: 8px !important; background: #7f0009; }
  #menu ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
  #menu ul li { display: block !important; flex: 1 1 calc(50% - 6px); padding: 0 !important; }
  #menu ul li a { display: flex !important; align-items: center; justify-content: center; min-height: 44px; padding: 6px 6px !important;
    box-sizing: border-box; border: 1px solid rgba(255,246,191,.45); border-radius: 4px; text-align: center;
    color: #FFF6BF !important; font-family: Arial, sans-serif !important; font-size: 14px !important; line-height: 1.2; }

  /* telefon a e-mail, které jsou na počítači v obrázku hlavičky */
  .pw-kontakt { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 10px 8px 12px; background: #7f0009;
    font-family: Arial, sans-serif; font-size: 16px; }
  .pw-kontakt a { color: #FFF6BF !important; text-decoration: none; font-weight: bold; min-height: 32px; display: inline-flex; align-items: center; }

  /* vlajky jazyků */
  #vlajky { position: static !important; left: auto !important; top: auto !important; width: auto !important; padding: 10px 0 !important; background: #e5e5e5; }
  #vlajky2 { width: auto !important; }
  #vlajky img { width: 30px !important; height: 18px !important; margin: 0 6px !important; }

  /* obsah na celou šířku, levý panel až pod textem */
  #content { width: auto !important; margin: 0 !important; text-align: left !important; }
  #content-in { display: flex; flex-direction: column; padding: 16px 14px 20px !important; min-height: 0 !important; }
  #left, #right, .right-uzky, .right-siroky { float: none !important; width: auto !important; max-width: 100% !important; }
  #right { order: -1; font-size: 16px !important; line-height: 1.45; }
  #left { margin-top: 24px; }
  #horni { width: auto !important; height: auto !important; padding: 12px 16px 16px !important; background: #7f0009 !important; text-align: center; }
  #dolni { width: auto !important; text-align: center; }
  #left { text-align: center !important; }
  #left * { text-align: center !important; }
  #left img { width: auto !important; max-width: 180px !important; height: auto !important; }
  #left div, #left a { margin-left: auto !important; margin-right: auto !important; }
  #content-in > .clear { display: none; }
  #bottom { position: static !important; width: auto !important; left: auto !important; bottom: auto !important; padding-top: 20px; font-size: 14px !important; line-height: 2; order: 10; color: #FFF6BF !important; }

  /* texty, obrázky, tabulky, mapy */
  #right h1 { font-size: 20px !important; line-height: 1.25; }
  #right h2 { font-size: 18px !important; }
  #right h3 { font-size: 17px !important; }
  #right p, #right li, #right td, #right div, #right span, #right font { font-size: inherit; }
  #content *, .taj, [align="justify"], [style*="justify"] { text-align: left !important; }
  #content * { max-width: 100% !important; box-sizing: border-box; overflow-wrap: break-word; }
  #content [style*="center"], #content [align="center"], #content .tac, #content center { text-align: center !important; }
  #content img { max-width: 100% !important; height: auto !important; }
  #content .fl, #content .fr, #content .fli, #content .fri { float: none !important; display: block; margin: 0 auto 12px !important; }
  #content iframe, #content embed, #content object { width: 100% !important; }
  #content table { width: 100% !important; height: auto !important; }
  #content td, #content th { width: auto !important; height: auto !important; }
  div.gallery { width: auto !important; padding: 12px 6px 4px !important; text-align: center !important; }
  div.gallery a { display: inline-block; width: 48%; margin: 0 0 8px; }
  div.gallery img, #right img.image { margin: 0 !important; width: 100% !important; }
  table.cenik, #content table table, #content div > table { font-size: 13px !important; border-width: 2px !important; }
  #content div:has(> table), #content p:has(> table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #content table td, #content table th { padding: 4px 1px !important; }
  #content table font, #content table strong { font-size: inherit !important; }
  table.cenik td, table.cenik th { padding: 6px 3px !important; }
  input, select, textarea { font-size: 16px !important; max-width: 100% !important; }
  #content input[type="text"], #content input:not([type]), #content input[type="email"], #content input[type="tel"], #content textarea { width: 100% !important; }
  #content form table { table-layout: fixed; }
  #content form td:first-child { width: 32% !important; }
}
