/*========= obecně písma a prvotní vzhled ==============================================*/

html {font-size: 14px; background: #fff; }
body {font-family: 'Arial', sans-serif; color: #222; }
input,select,textarea,button {font-family: 'Arial',sans-serif;font-size: 1rem;box-sizing:border-box;}

/*========= obecné =====================================================================*/
body { margin:0; }
#container { min-height: 100%; }
img {max-width: 100%;}
a img {border:0;text-decoration: none;}
a {text-decoration: underline;}

h1 {font-size: 30px; margin: .66em 0; }
.uvodni h1 {margin-top: 0; font-size: 20px;}
h2 { margin-bottom: .8em; }
h2.nomarginb {margin-bottom: 0;}
h3 {}
h2 a { text-decoration: none; }
h3 a { text-decoration: none; }
h4 a { text-decoration: none; }

ul{ padding: 0 0 0 2em; overflow: hidden; }
ul li{ padding:0; margin-bottom: .5em;}
blockquote { background: #eee; border: 1px solid #ddd; margin: 0 0 1.5em; padding: .25em 1em;}
blockquote p { font-size: 1.2em; margin: .5em;}
hr { width: 100%; height: 1px; margin:.75em 0;  }

table {max-width:100%; border-collapse: collapse; }
table td,table th { padding-right: 1em; }
table.ramovana { border: 1px solid;}
table.ramovana td,table.ramovana th { border: 1px solid; padding-left: .5em; padding-right: .5em; }

template {display:none;}

/*========= globální třídy a modifikátory ==============================================*/
/* Případně doplněny s konkrétními identifikátory podstránek a sekcí */
.hid {display: none!important;}

.chyba,.msgOk {padding: .5em 1em .5em; border: 2px solid;margin-bottom: 2em;}
.chyba {font-size: 1.2em; background: #fdd; color:#d00; font-weight: bold; border-color: #eaa; }
.msgOk {background: #dfd; color:#242; border-color: #aea; }
.chyba p,.msgOk p {margin-bottom: .5em!important; margin-top: .5em!important; }

.left {float:left!important;}
.right {float:right!important;}
.cleaner {display: block; width: 100%; clear: both!important;}

.nalevo {text-align: left!important;}
.nastred {text-align: center!important;}
.napravo {text-align: right!important;}
.navse {text-align: justify!important;}

.tucny  { font-weight: bold;}
.italika { font-style: italic }
.podtrzeny { text-decoration: underline!important; }
.preskrtnute {text-decoration: line-through!important; }

.mensi-pismo { font-size: .8em; }
.vetsi-pismo { font-size: 1.25em;  }
.velke-pismo { font-size: 1.5em;  }
.pismo2x { font-size: 2em; }

.kurzor-sipka { cursor: default; }
.kurzor-otaznik { cursor: help; }
.kurzor-ruka { cursor: pointer; }

.transparent { -moz-opacity:.5; opacity:.5; }
.full {width: 100%;}

.topMsg {background: #ecc; color:#f33; font-weight: bold; font-size: 1.1em; padding: .25em 10%; text-align: center;}
form .post {display: none!important;}
form .bblcntnr {}
form .bblcntnr .bubble { display: block; text-align: left; }
form .bblcntnr .bubble span { border:1px solid #eaa; background: #fdd; color:#d00; font-weight: bold; display: inline-block; padding: .1em .5em;margin: .1em; }
form .js_error_list { opacity:1; display: block; text-align: left; border:1px solid #eaa; background: #fdd; color:#d00; font-weight: bold; padding: .1em .5em;margin: .1em;}
form .js_error_list:empty { display: none;}
@keyframes fadeOut {  from { opacity: 1; }  to { opacity: .25; } } form .js_error_list.diss {opacity: .25; animation: fadeOut 10s}

.max-sirka {width: 100%; max-width: 1000px; margin:auto;position: relative;}

.slflex {--mezery:calc( var(--sloupce) - 1 ); column-gap: var(--rozestup); row-gap: var(--rozestup); display: flex; flex-wrap: wrap; }
.slflex > * { display: block; flex: 0 0 calc( calc( 100% - var(--mezery) * var(--rozestup) ) / var(--sloupce) ); }

.tlacitko {color:#fff; background:#afb93c; border: 0; font-size: 1rem; padding: 1em; line-height: 1em; font-weight: bold; text-decoration: none; cursor: pointer; display: inline-block; border-radius: 3px; box-shadow: 0 2px #848b2e; }
button.tlacitko,input[type=submit].tlacitko {}
.tlacitko:hover {}
button.tlacitko:hover,input[type=submit].tlacitko:hover {}

:root {--wastemenu-color: #000; --wastemenu-xcolor: #000; --wastemenu-lwidth: 9%; --wastemenu-border: 9%; }
span.wasteofspace{  height: 1.5rem; min-width: 1.5rem; font-size: 0; display: inline-block; vertical-align: middle; overflow: hidden; margin: .25rem;
   background: linear-gradient(to bottom, 
         transparent 0% var(--wastemenu-border), 
         var(--wastemenu-color) var(--wastemenu-border) calc( var(--wastemenu-border) + var(--wastemenu-lwidth) ), 
         transparent calc( var(--wastemenu-border) + var(--wastemenu-lwidth) ) calc( 50% - var(--wastemenu-lwidth) / 2 ), 
         var(--wastemenu-color) calc( 50% - var(--wastemenu-lwidth) / 2 ) calc( 50% + var(--wastemenu-lwidth) / 2 ), 
         transparent calc( 50% + var(--wastemenu-lwidth) / 2 ) calc( 100% - var(--wastemenu-border) - var(--wastemenu-lwidth) ), 
         var(--wastemenu-color) calc( 100% - var(--wastemenu-border) - var(--wastemenu-lwidth) ) calc( 100% - var(--wastemenu-border) ), 
         transparent calc( 100% - var(--wastemenu-border) ) 100% 
      );
}
span.wasteofspace.waste-x {
   background: linear-gradient(45deg, 
         transparent 0% calc( 50% - var(--wastemenu-lwidth) / 2 ), 
         var(--wastemenu-xcolor) calc( 50% - var(--wastemenu-lwidth) / 2 ) calc( 50% + var(--wastemenu-lwidth) / 2 ), 
         transparent calc( 50% + var(--wastemenu-lwidth) / 2 ) 100%
      ), linear-gradient(-45deg, 
         transparent 0% calc( 50% - var(--wastemenu-lwidth) / 2 ), 
         var(--wastemenu-xcolor) calc( 50% - var(--wastemenu-lwidth) / 2 ) calc( 50% + var(--wastemenu-lwidth) / 2 ), 
         transparent calc( 50% + var(--wastemenu-lwidth) / 2 ) 100%
      );
}

/*========= společné definice (barvy, chování apod.) ===================================*/
:root {--mainbarva:#e58936; }
h1:first-letter,h2:first-letter,h3:first-letter,p.h2:first-letter,p.h3:first-letter {text-transform: uppercase}
a,.mainbarva { color:var(--mainbarva) }
h1,h2 { }
.gbg {background: #f3f3f3;}
.mainbg {background: var(--mainbarva); color:#000;}
.mainbg a {color:#fff;}

.hoverline,.nohoverline,.hoverparent {text-decoration: none;}
.hoverline:hover,.hoverbase:hover .hoverparent {text-decoration: underline;}

/*========= prvky hlavičky =============================================================*/
#hlavicka {padding: 30px 0 15px;background: url(/img/bg_top.jpg) center top no-repeat; }
.uvodni #hlavicka{padding-bottom: 165px;}
#hlavicka-top {display: grid; grid-template: auto / 100px 1fr auto auto; column-gap: 2.5%; align-items: center;  }
#hlogo {display: block; }
#hslogan { font-size: 17px; line-height: 24px; color: #000; }
#htop { color: #000;}

#hslogan .nadpis {font-size: 32px; font-weight: bold; text-transform: uppercase; }
#hslogan ul { margin: 0; padding: 0; list-style: inside url(/img/icon_li2.png) none; }
#hslogan ul li {margin: 0; padding: 0;}
#hslogan p {margin:0;}

#htop p {font-size: 18px; line-height: 24px; margin: 0.75em 0;padding-left: 35px; background: left center no-repeat;}
#htop p.tel { background-image: url(/img/icon_phone.png); font-weight: bold; }
#htop p.mail {background-image: url(/img/icon_email.png); }
#htop a {color: #000; text-decoration: none;}
#htop a:hover {text-decoration: underline;}

/*========= menu =======================================================================*/
.hmenu {font-size: 17px;font-weight: bold; }
.hmenu a { display: block; text-decoration: none; color:#fff; }
.hmenu .radic { position: relative; flex-grow: 1; }
.hmenu .msp { display: grid; align-content: center; line-height: 1.2em; }

#nhmenu { width: 100%; background: url(/img/menu.png); border-radius: 2.5px; display: flex; text-shadow: 1px 1px 0.7px rgba(0, 0, 0, 0.33); margin-top: 25px;text-align: center; align-items: stretch;  }
#nhmenu a {}
#nhmenu .msp { min-height: 50px; padding: 0 1em;  }
#nhmenu .oddelovac {width: 1px; flex-grow: 0; background: url(/img/menu.png); }
#nhmenu .radic a:hover .msp,#nhmenu .radic.active > a > .msp{ }
#nhmenu .radic a:hover,#nhmenu .radic.active > a { background: url(/img/menu.png) };

#xhmenu { }
#xhmenu a { color:#000;}
#xhmenu .extrawrap {display: block; background: #FFEFE1; position: fixed; top:0; padding: 1em 18% 14em; left:0; width: 100vw; bottom: 0; overflow: auto; z-index: 999; box-sizing: border-box;}
#xhmenu .radic{ z-index: 1000;}
#xhmenu .msp { padding:.75em 0; }
#xhmenu .zobak { display: inline-block; vertical-align: middle; position: relative; left:-2em; width: 2em; height: 1.2em; background: url(/img/ic_zobak.svg) left center no-repeat; cursor: pointer; }
#xhmenu .radic.open .zobak { background-image: url(/img/ic_zobak_open.svg); }
#xhmenu .zobak + a { display: inline-table;margin-left: -2em;vertical-align: middle;}
#xhmenu a:hover > .msp,
#xhmenu .active > a .msp{; text-decoration: underline; }
#xhmenu .radic:not(.open) .podmenu { display: none; }
#xhmenu .overline { border-top: 1px solid #eee; padding: 1em 0; }

#xhmenu .podmenu { font-size: 16px; font-weight: normal; margin-left: 1em; }

/*========= jazyky =====================================================================*/
#vlajky { text-align: right;}
#vlajky a {margin-left: 1em; }

#xvlajky { display: block; margin: 1em 0;text-align: left; text-transform: uppercase; }
#xvlajky a {display: inline-block; width: auto; margin: 1em 2em 1em 0; padding: 1em 0; }

/*========= prvky stránky ==============================================================*/
#stranka { padding: 1em 0; margin:0;background:url(/img/bg_between.jpg) center top no-repeat #fff;}

#uvodnik {position: relative; background: #fff; border-radius: 3px; text-align: left; margin-top: -150px; padding: 35px 5%; font-size: 16px; line-height: 1.7;  }

/*========= obsah ======================================================================*/
#telo {padding: 0; margin:0 0 1em; }
.uvodni #telo {width: 75%; float: left;}

.obsah { line-height: 1.7em; position: relative; }
.obsah p { margin-top: 0; margin-bottom: .66em;}
.obsah img.left,.obsah iframe.left,.obsah div.left {margin: .75em 1em; margin-left: 0;}
.obsah img.right,.obsah iframe.right,.obsah div.right {margin: .75em 1em; margin-right: 0;}
.obsah iframe {max-width: 100%;}

.obsah div.left,.obsah div.right, .obsah div.full {text-align: center; padding:1em;}
.obsah div.full{ margin: .75em 0;}
.obsah div.left > :last-child,.obsah div.right > :last-child,.obsah div.full > :last-child {margin-bottom:0; }

.anotacka { font-size: 1.1em; }

/*========= drobečková =================================================================*/
.drobnav {line-height: 1.75em; color:#888; margin: 1em 0; }
.drobnav a {color:#888;}
.drobnav span { padding:0; margin:0; display: inline-block;}
.drobnav span.odd {margin: 0 .75em;}

/*========= podstránky =================================================================*/
.podkat { margin: 2em 0; align-items: stretch; --sloupce:3; --rozestup:1em; }
.podkat a {font-size: 1.1em; border: 1px solid #ccc; padding: .33em 1%; position: relative; box-sizing: border-box; }
.podkat a:not(:hover) {border-color: #eee; text-decoration: none; }
.podkat a.wpix { display:grid; grid-template: 1fr auto / 1fr; grid-template-areas: 'text' 'pic'; }
.podkat .text { grid-area: text; }
.podkat .pic { grid-area: pic; margin-top: .5em; text-align: right; max-height: 100px; }
.podkat .pic img { max-height: 100%; object-fit: contain; }

/*========= fotky ======================================================================*/
.gallery { margin: 2em 0; align-items: stretch; --sloupce:4; --rozestup: 1em; }
.gallery .box { vertical-align: top; }
.gallery .box a {display: grid; min-height: 150px; align-items: center; justify-content: center; }
.gallery img { padding:2%; border: 1px solid #fafafa; box-sizing: border-box; }
.gallery .text { display: block; padding: 0 2%; margin-top: .15em; text-align: center;  }

/*========= soubory ====================================================================*/
.files {display:table; max-width: 700px; width: 100%; margin-top: 1em;}
.files a {display: table-row; text-decoration: none}
.files span {display:table-cell; vertical-align: middle; text-align: left; padding: .5em 0; border-bottom: 1px solid #eee;}
.files img {float:left; margin: 0 .5em;}
.files .tail {text-align: right;}

/*========= články =====================================================================*/
.clanky {}
.clanky .clanek { margin-bottom: 2em; }
.clanky .h3 { font-weight: bold; font-size: 1.1em; margin-bottom: 0;}
.clanky .datum {font-size: .9em; color:#777; margin: 0 0 .5em;}

/*========= novinky ====================================================================*/
.novinky {}
.novinky .novinka {margin-bottom: 2em;}
.novinky .h3 {font-weight: bold; font-size: 1.1em; margin-bottom: 0;}
.novinky .datum {font-size: .9em; color:#777; margin: .5em 0 .75em;}

.uvodnovinky {line-height: 20px; margin-top: 20px;}
.uvodnovinky .polozka{ display: inline-block; margin-bottom: 10px; margin-right: 5%; vertical-align: top; width: 45%; }
.uvodnovinky p{ margin: 0 0 .66em; }
.uvodnovinky p.datum { background: url(/img/icon_cal.jpg) left center no-repeat; color: #999; font-style: italic; line-height: 16px; margin: 10px 0; padding-left: 25px;}
.uvodnovinky .link { font-size: 16px; font-weight: bold; }

/*========= sloupce ====================================================================*/
.sloupec-pravy { width: 24%; float: right;}
.sl-box { margin-bottom: 1em;}
.sl-box p {margin:.66em 0;}
.sl-box p.big { font-size: 19px; font-weight: bold; }
.sl-box p.big .small { font-size: 15px; }
.sl-box .podbox {border-color: #c0c0c0; border-style: none solid solid; border-width: 0 1px 1px; border-radius: 0 0 2.5px 2.5px; font-size: 16px; line-height: 30px; padding: 20px 5% 12px;}
.sl-box .orezavac {border-bottom: 3px solid #ab3; height: 165px; overflow: hidden; position: relative; }
.sl-box .orezavac img {position: absolute; left: 50%; top:50%; transform: translateX(-50%) translateY(-50%); -ms-transform: translateX(-50%) translateY(-50%);max-width: none; }

.sl-box.ikon { margin: 0 0 1em -2.5%; text-align: center; width: 105%;}
.sl-box.ikon img {margin: 0 3px 5px;}

/*========= šablony ====================================================================*/
.respgbg,.respgbg tbody {width: 100%; border-collapse: collapse;}
.respgbg tr td:first-of-type {background:#f3f3f3;}
.respgbg tr td {border-bottom: 1px solid #eee;border-top: 1px solid #eee; padding: 0 .5em;}

.flexcols {display: flex; width:100%; flex-wrap: wrap; justify-content: space-around; align-items: flex-start; }
.flexcols.verticentr {align-items: center;}
.flexcols > div {padding: .5em; box-sizing: border-box; margin-bottom: 1em; }
.flexcols > div > p:last-child {margin-bottom: 0;}
.column2 > div {width: 50%; }
.column3 > div {width: 33.3%; }
.column4 > div {width: 25%; }
.column5 > div {width: 20%; }

/*========= kontaktní formulář =========================================================*/
.kform { text-align: left; display: inline-block; vertical-align: top; width: 71%;}
.kform form { }
.kform p {margin: 0 0 1em; }
.kform .sloup {display: inline-block; vertical-align: top; width: 48%; }
.kform .l { padding-right: 2%; }
.kform .r { padding-left: 2%; }
.kform label {display: block; line-height: 1.5em; padding: 0;}
.kform label.readerhelp {width: 0; height: 0; overflow: hidden; display: block; }
.kform .stretch {width: 100%; padding: .5em; border:0; background: #fff;}
.kform textarea.stretch { height: 120px; padding: .5em;}
.kform .tlacitko {}
.kform ::placeholder { font-style: italic; color:#777; opacity: 1;}
#telo .kform {padding-top: .5em;}

/*========= prvky patičky ==============================================================*/
#paticka {background: url(/img/bg_bottom.jpg) center top;color:#000; padding-top: 45px;}
#paticka .mapa{ display: inline-block; vertical-align: top; width: 26%; margin-left: 3%;}
#paticka a {color:#fff;}

#zakonceni { margin-top: 2em; padding: 1.7em 0 6.5em;position: relative; border-top: 1px solid #ad691e;}
#zakonceni a { color:#000; }

/*========= pro výměnu odkazů ==========================================================*/
.xch p {border-bottom: 1px solid #ddd; margin: 0; padding: .5em; width: auto;}
#xchlink {}

/*========= ostatní zbytečnosti ========================================================*/
@media (min-width: 689px){
   #cm.cloud {max-width: 800px; padding: 2em; }
   .cc_div .cloud #c-inr {display: flex;}
   .cc_div .cloud #c-inr-i {width: auto; flex-shrink: 1;}
   .cc_div .cloud #c-bns {max-width: 225px; width: 40%; font-size: 1.25em; text-align: center; }
   #cm.cloud #c-bns button + button.c-bn {display: inline-block; font-size: .82em; margin: 1.5em auto; float:none; padding: 0; background: #fff; width: auto; }
   #cm.cloud #c-bns button + button:hover {text-decoration: underline; cursor:pointer; }
}
@media (max-width: 689px){
   .cc_div .cloud #c-bns {display: flex; flex-direction:row; justify-content: space-between;}
   #cm.cloud .c-bn {width:auto; box-sizing: border-box;margin: 0; display: block; flex-basis: 45%; }
   #cm.cloud .c-bn:first-child {margin: 0; order:2}
   #cm.cloud #c-bns button + button.c-bn { background: #fff; order: 1; }
   #cm.cloud #c-bns button + button:hover {text-decoration: underline; cursor:pointer; }
}
:root {--cc-btn-primary-bg:var(--mainbarva); --cc-btn-secondary-hover-bg:#fff; }

.babish { text-align: left; margin-top: 3.5em;}

#modalbase {position: fixed; top:0; left:0; width: 100vw; bottom: 0; background: rgba(0,0,0,.6); z-index: 10000; }
#modaldialog {background: #fff; padding: 1.5em; box-sizing: border-box; position: absolute; width: 80vw; left: 0; right: 0; text-align: center; max-width: 500px;margin-left: auto; margin-right: auto; overflow:auto; }
#modaldialog .dialogclose {position: absolute; display: block; color:transparent; background: url(/img/ikona-smaz.png) center center no-repeat; right:0; top:0; width: 1.5em; height: 1.5em; }
#modaldialog .tlacitko { margin: 0 1.5em 1em;pointer-events: auto; }

#modaldialog.dialogkosik { top:20vh; }

#modaldialog.dialogparcelshop { top:5vh;bottom:5vh; max-width: none; width: 90vw; }
#modaldialog.dialogparcelshop .pplmapcontain{ height: 100%; box-sizing: border-box; position: relative; }
#modaldialog.dialogparcelshop #ppl-parcel-shop-map { height:100%; }
#modaldialog.dialogparcelshop #ppl-parcelshop-map .ppl-parcelshop-map {height:100%;}
#modaldialog.dialogparcelshop #ppl-parcelshop-map .control-panel {padding-top: 0;}
#modaldialog.dialogparcelshop #ppl-parcelshop-map .control-panel__logo-holder {padding: 20px 0; margin:0;}

#modaldialog.dialogdpdpickup { top:5vh;bottom:5vh; max-width: none; width: 90vw; }
#modaldialog.dialogdpdpickup .iframecontain {position: relative; width: 100%; height: 100%;}
#modaldialog.dialogdpdpickup iframe { width: 100%; height: 100%; border:0; }

#modaldialog.dialogbalikovnapickup { top:5vh;bottom:5vh; max-width: none; width: 90vw; }
#modaldialog.dialogbalikovnapickup .iframecontain {position: relative; width: 100%; height: 100%;}
#modaldialog.dialogbalikovnapickup iframe { width: 100%; height: 100%; border:0; }

#modaldialog.dialogpaymentgateway { top:5vh;bottom:5vh; max-width: none; width: 90vw; }
#modaldialog.dialogpaymentgateway .iframecontain {position: relative; width: 100%; height: 100%;}
#modaldialog.dialogpaymentgateway iframe { width: 100%; height: 100%; border:0; }

/*========= responzivity ===============================================================*/

/* per-web header transformations */
@media (max-width:999px) { 
   .max-sirka {width: 95%;}
   #hlavicka-top { grid-template: auto / 100px 1fr auto; }
   #rozcestnik .div {width: 32%;}
   .kform {width: 100%;}
   #nhmenu {display: none; }
   #vlajky {display: none; }
   #htop {display: none;}
   #paticka  {padding-top: 1em;}
   #paticka .mapa {width: 100%; margin-left: 0; padding-top: 1em;}
   .hmenu .hider { display:none!important; }
}

@media (min-width: 1000px) {
   .hmenu .shower {display:none!important;}
   #xhmenu {display: none;}
}

@media (max-width:999px) {
   .gallery { --sloupce:3; }
}

@media (max-width:799px) {
   .podkat { --sloupce:2; }
   .gallery { --sloupce:2; }
   .obsah .quadbutton {display: flex; width: 100%; clear: both; align-items: center; justify-content: space-around; flex-wrap: wrap; }
   .obsah .quadbutton .tlacitko {min-width: 40%; text-align: center; margin: 1em 0; }
}

@media (max-width:749px) {
   #hlavicka {background: var(--mainbarva);}
   #uvodnik .sloup {width: 100%; border:0;}
   #uvodnik .nesloup {width: 100%; border: 0; margin: 0; padding-top: 0;}
   .sloupec-pravy,#telo,.uvodni #telo{width: 100%; margin: 0 auto 1em; float: none;}
   .sloupec-pravy{margin-bottom: 0;}
}

@media (max-width:649px) {
   #hlavicka {padding: 15px 0;}
   #hlavicka-top { grid-template: auto / 50px 1fr auto; }
   #hslogan .nadpis { font-size: 25px; }
   .uvodni #hlavicka {padding-bottom: 150px;}
   .obsah .left,.obsah .right { margin:.5em 0!important; float:none!important;}
   #rozcestnik .div {width: 49%;}

}

@media (max-width:599px) {
   .obsah .left,.obsah .right { margin:.5em 0!important; float:none!important; display: block;}
   #rozcestnik .div {width: 49%;}
}

@media (max-width:469px) {
   .podkat { --sloupce:1; }
   .uvodnovinky .polozka{width: 95%; }
   .obsah .quadbutton .tlacitko {min-width: 85%; }
   .objednavka .radioobj label .tab1 { width: 60%; }
   .objednavka .radioobj label .tab2 { display: none; }
   .objednavka .radioobj label .tab3 { width: auto; flex-grow: 1; flex-shrink: 1; text-align: right; }
}

@media (max-width:399px) {
   .gallery { --sloupce:1; }
   .kform .sloup {width: 100%;padding:0; }
}

/* special block rules */
@media (max-width:849px) and (min-width:750px), (max-width:549px) {
   .respgbg,.respgbg tbody,.respgbg tr,.respgbg td {display: block; width: 100%;}
}

@media (max-width: 999px) {
   .column5 > div {width: 33%; }
}
@media (max-width: 899px) {
   .column4 > div {width: 50%; }
}
@media (max-width:599px) {
   .column3 > div {width: 50%; }
   .column5 > div {width: 50%; }
}
@media (max-width:499px) {
   .column2 > div {width: 100%; }
}
