/* Fluid layout for viewports smaller than the original 1038px page. */
@media (max-width: 1037px) {
  #vc-header,
  #vc-body,
  #vrsek,
  #menu,
  #stred,
  #stred-spodek,
  #spodek-banner,
  #vc-footer,
  .patka_sirka {
    box-sizing: border-box;
    width: 100%;
  }

  #vc-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    height: auto;
    min-height: 36px;
    padding-inline: 12px;
    color: white;
  }

  #vc-header > p {
    margin-right: auto;
    padding: 8px 8px 8px 0;
    text-align: left;
  }

  #vc-body {
    min-height: 0;
    padding-bottom: 0;
  }

  #vrsek {
    height: auto;
    padding-top: 24px;
    background-color: #142c3a;
    background-size: 100% auto;
  }

  #slogan {
    width: min(55%, 552px);
    margin-left: 12px;
    background-size: contain;
  }

  #hledani {
    width: min(40%, 400px);
    height: auto;
  }

  #tel {
    float: none;
    box-sizing: border-box;
    white-space: nowrap;
  }

  div#___gcse_0 {
    width: min(100%, 251px);
    margin: 0 0 8px;
  }

  #menu {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    min-height: 45px;
    margin: 0;
    background: #e9e9e9 url("../img/menu-pod_02.png") repeat-x left top;
  }

  #menu a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    min-height: 44px;
    height: auto;
    padding: 6px 10px;
    text-align: center;
  }

  #menu a:hover,
  #menu a.active {
    background-color: #1686be;
  }

  #menu .vertel {
    flex: 0 0 1px;
  }

  #vrsek .padvlevo {
    padding: 12px 16px;
    line-height: 1.4;
  }

  #stred-t {
    background-size: 100% 17px;
  }

  #stred {
    padding-inline: clamp(14px, 3.5vw, 30px);
    background-size: 100% auto;
  }

  #stred,
  #stred-spodek {
    overflow-wrap: anywhere;
  }

  #stred-spodek {
    top: 0;
    padding: 18px clamp(14px, 3.5vw, 30px) 0;
  }

  #spodek-banner {
    margin-bottom: 22px;
  }

  #banner-l:empty,
  #banner-r:empty {
    display: none;
  }

  #stred img {
    max-width: 100%;
    height: auto;
  }

  #stred input,
  #stred select,
  #stred textarea,
  #stred fieldset,
  #stred #slider-range,
  #accordion,
  #adsense,
  .novinky,
  #dlouhodobe,
  #rkontakt {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  #rek_google,
  #sklikReklama_35075 {
    position: static;
    max-width: 100%;
  }

  #stred .ContentFlow {
    max-width: 100%;
  }

  #fkontakt {
    float: none;
    margin-right: 0;
  }

  #vc-footer {
    position: static;
    min-height: 104px;
    height: auto;
    padding: 16px 12px;
  }

  .patka_sirka {
    padding-top: 0;
  }

  #kariera {
    float: none;
  }
}

@media (max-width: 700px) {
  #vrsek {
    padding-top: 14px;
  }

  #slogan {
    float: none;
    width: calc(100% - 24px);
    height: auto;
    aspect-ratio: 552 / 43;
    margin: 0 12px;
  }

  #hledani {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
    float: none;
    width: auto;
    margin: 8px 12px;
  }

  #tel {
    margin-top: 0;
  }

  div#___gcse_0 {
    width: min(100%, 251px);
    margin: 0;
  }

  #menu {
    background-repeat: repeat;
  }

  #menu a {
    flex: 1 1 31%;
    border: 1px solid #d0d0d0;
    padding-inline: 5px;
  }

  #menu .vertel {
    display: none;
  }

  .vytvorit-pruh {
    width: min(100%, 379px);
    aspect-ratio: 379 / 59;
    height: auto;
    float: none;
    margin-left: 0;
    background-size: contain;
  }

  .uvod-otazky {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    float: none;
    margin: 0;
    padding: 10px 0 18px;
  }

  .uvod-otazky a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
  }

  .uvod-pipe {
    display: none;
  }

  #wrapIt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  #wrapIt .prov {
    position: static;
    width: min(100%, 270px);
  }

  #wrapIt .prov > a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 44px;
    width: min(100%, 239px);
    float: none;
    height: auto;
    padding-block: 7px;
    background-size: 100% 100%;
  }

  #stred-i #wrapIt .tip {
    display: block;
    float: none;
    position: static;
    width: auto;
    height: auto;
    margin: 5px 0 0;
    background: none;
    color: #262626;
    line-height: 1.45;
  }
  
  #wrapIt .tip span,
  #wrapIt .tip:hover span {
    display: block;
    position: static;
    width: auto;
    margin: 0;
    background: none;
  }
  
  #wrapIt .tip span div {
    padding: 0;
  }

  #middle {
    left: auto;
  }

  #stred table:not(.gsc-search-box):not(.gsc-input) {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: auto;
  }

  #stred table#kon-udaje {
    margin-inline: 0;
  }

  #stred .ref {
    box-sizing: border-box;
    float: none;
    width: 100%;
    min-height: 0;
    margin: 10px 0 !important;
  }

  #stred .ContentFlow {
    width: 100%;
    height: auto !important;
  }

  #stred .ContentFlow .flow {
    display: grid;
    gap: 14px;
    height: auto !important;
    visibility: visible !important;
  }

  #stred .ContentFlow .flow .item {
    box-sizing: border-box;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    visibility: visible !important;
    padding: 12px;
    background: #e9e9e9;
  }

  #stred .ContentFlow .item img.content {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: 272px;
    margin: 0 auto 8px;
  }

  #stred .ContentFlow .item .caption {
    position: static;
    display: block !important;
    max-height: none;
    color: inherit;
    background: transparent;
  }

  #stred .ContentFlow .rv {
    position: static;
    box-sizing: border-box;
    min-height: 0;
    width: 100%;
    margin-top: 6px;
  }

  #stred .ContentFlow .reflection,
  #stred .ContentFlow .globalCaption,
  #stred .ContentFlow .preButton,
  #stred .ContentFlow .nextButton,
  #stred .ContentFlow .loadIndicator {
    display: none !important;
  }
}

@media (max-width: 380px) {
  #menu a {
    flex-basis: 46%;
  }
}
