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

html {font-size: 16px; background: #fff; }
body {font-family: 'Arial', sans-serif; color: #363636; }
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;}
a:hover {text-decoration: none; }

h1 {font-size: 2em; margin-top: .33em;}
h2 { margin-bottom: .6em; font-weight: normal;}
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: 1120px; padding:0 2.7%; margin:auto;position: relative; box-sizing: border-box;}

.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:#3a7830; border: 0; font-size: .875rem; padding: 1.2em 1.3em; line-height: 1em; font-weight: bold; text-decoration: none; cursor: pointer; display: inline-block; border-radius: 5px;}
button.tlacitko,input[type=submit].tlacitko {}
.tlacitko:hover {background:#539a07;}
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:#387731; }
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) }
h2 { color:#659a2a }
.gbg, .kform form {background: #f3f3f3;}
.mainbg {background: var(--mainbarva); color:#fff;}
.mainbg a {color:#fff;}

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

/*========= prvky hlavičky =============================================================*/
#hlavicka {padding-top: 18px; }
#hlogo {display: block; float: left; margin-bottom: 1.25em;}
#htop {float: right;  font-size: 14px;background: url(/img/stin.png) left bottom no-repeat; min-width: 60%; padding-bottom: 10px; text-align: right;}
#htop p {margin:0;line-height: 30px; display: inline-block; vertical-align: middle;}
#htop p.mail { line-height: 30px; margin-left: 35px; }
#htop p.mail a {color:#363636;background: url(/img/icon_mail.png) left center no-repeat; padding-left: 30px; display: block; }
#htop p.tel { color: #528b27; font-size:18px; font-weight: bold;}
#htop p.tel a { background: url(/img/icon_phone.png) left center no-repeat;padding-left: 30px; color: #528b27; display: block; }

/*========= menu =======================================================================*/
.hmenu { font-size: 17px; font-weight: bold; text-transform: uppercase;clear: right; float: right;}
.hmenu a { display: block; text-decoration: none; }
.hmenu .radic { position: relative; }
.hmenu .msp { display: grid; align-content: center; line-height: 1.25em; }
.hmenu .radic a:hover,.hmenu .radic.active > a { text-decoration: underline; }

#nhmenu { display: flex;margin-right: -.75em; }
#nhmenu a { color: #363636; }
#nhmenu .msp { min-height: 55px; padding: 0 .75em; }
#nhmenu .radic a:hover .msp,#nhmenu .radic.active > a > .msp{ }

#xhmenu {z-index: 1000; display: inline-block; z-index: 1000; position: relative; margin-top:12px; }
#xhmenu .extrawrap {display: block; background: rgba(255,255,255,.95); position: fixed; top:0; padding: 1em 12% 8em; left:0; width: 100vw; bottom: 0; overflow: auto; z-index: 999; box-sizing: border-box;}
#xhmenu .msp { padding:1em 0; }
#xhmenu .radic a:hover .msp,#xhmenu .radic.active > a > .msp{ }
#xhmenu .hider { display: none; }
#xhmenu .shower { z-index: 1001; }

/*========= prvky stránky ==============================================================*/
#stranka { padding: 1em 0 0; margin:0; background: transparent url(/img/bg.jpg) center top no-repeat;}
#stranka .max-sirka {background: #fff; padding: 2em 2.7%;}

#uvodnik { background: url(/img/bgtop.png) #eed323; color: #2a2a2a; padding-bottom: 20px; }
#uvodnik .pix { margin: 5px 1.4% -30px 2.8%; width: 47%; display: inline-block; vertical-align: top; }
#uvodnik .text {width: 48.8%; padding-top: 55px; display: inline-block; vertical-align: top; }
#uvodnik .text p {margin: 0;}
#uvodnik .text .h1 {color: #242424; font-size: 30px; font-weight: bold; text-transform: uppercase;}
#uvodnik .text .h2 {color: var(--mainbarva); font-size: 53px; font-weight: bold; text-transform: uppercase; margin: 5px 0 15px;}
#uvodnik .text ul {list-style: none; padding-left: 0; margin-left: 0;}
#uvodnik .text li {background: url(/img/malasipka.png) left center no-repeat; color: #424035; margin: 0 0 5px; padding-left: 30px;}
#uvodnik .text .tlacitko { margin-top: 20px; font-size: 21px; background: #539a07 ; padding: .6em 20px; border-bottom: 3px solid #3f7505; }
#uvodnik .text .tlacitko span {background: url(/img/icon_sipka.png) right center no-repeat; padding-right:55px; display: block}
#uvodnik .text .tlacitko:hover { border-bottom: 3px solid #539a07; }

#rozcestnik { text-align: center; background: url(/img/stin2.png) center bottom repeat-x; display: grid; grid-template-columns: repeat(6,16%); column-gap: .8%; margin: auto; }
#rozcestnik .box { background: url(/img/box.png) center center no-repeat; margin: 0 auto 20px; overflow: hidden; position: relative; width: 165px; max-width: 100%;}
#rozcestnik .box .pix {position: absolute;display: block; width: 100%; left: 0; top:0; overflow: hidden; height: 160px; }
#rozcestnik .box .pix img {position: absolute; top:50%; left: 50%; transform: translateX(-50%) translateY(-50%);-ms-transform: translateX(-50%) translateY(-50%);-webkit-transform: translateX(-50%) translateY(-50%); }
#rozcestnik .text {color: #fff; display: table; width: 100%; font-size: 15px; font-weight: bold; text-transform: uppercase; }
#rozcestnik .text span {display: table-cell;vertical-align: middle; height: 80px; padding: 160px .5em 0; }

/*========= obsah ======================================================================*/
#telo {padding: 0; margin:0; }
.uvodni #telo { padding-top: 2.5em;}

.obsah { line-height: 1.75em; position: relative; }
.obsah p { margin-top: 0; margin-bottom: 1.25em;}
.obsah table td,.obsah table th { padding-right: 1em; padding-bottom: .5em; }
.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; font-size: .8em; color:#888; margin: -1em 0 1em; }
.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;}

/*========= sloupce ====================================================================*/
.sloupec-pravy { width: 32%; float: right;}
.sl-box { margin-bottom: 1.25em; border-radius: 10px; overflow: hidden;}
.sl-box p { }

.sl-box.nltr { background: #ebf1ea; padding: 0; margin-top: 2.5em; }
.sl-box.nltr p.h2 { background: #d9e5d7; font-size: 21px; font-weight: bold; margin: 0; padding: .6em 4.7%;}

/*========= š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; width: 57%;display: inline-block;vertical-align: top;}
.kform form { padding: 1.5em 3% .5em; }
.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: 4.25em;}
.kform .tlacitko {}
.kform ::placeholder { font-style: italic; color:#777; opacity: 1;}
#telo .kform {padding-top: .5em;}

/*========= formulář newsletteru =======================================================*/
.nwform { }
.nwform form { padding: .5em  4.7%; }
.nwform label {display: block; line-height: 1.5em;}
.nwform label.readerhelp {width: 0; height: 0; overflow: hidden; display: block; }
.nwform .stretch  {padding: .85em 5%; color: #363636; width: 70%; border: 1px solid #d2d2d2;font-size: 14px; background:#fff;}
.nwform .tlacitko { border-radius: 0 5px 5px 0; padding: .85em 0; width: 30%; text-align: center; border: 0; }
.nwform ::placeholder { font-style: italic; opacity: 1; }

/*========= prvky patičky ==============================================================*/
#paticka {}
#paticka .max-sirka {background: #fff; }
#paticka .pbox {display: inline-block; margin-left: 3%; vertical-align: top; width: 40%;}
#zakonceni { padding: 1.6em 0 6.5em;position: relative;color:#8c8c8c; font-size: 13px;}
#zakonceni a {color:#8c8c8c; }
#zakonceni .max-sirka {background: #fff;}

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

/*========= 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;}

#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:1109px) {
   #rozcestnik {grid-template-columns: repeat(3,33%); column-gap: .33%; }
}

@media (max-width:999px) {
   #nhmenu { display: none; }
}

@media (min-width: 1000px) {
   #xhmenu {display:none;}
}

@media (max-width:899px) {
   #hlogo {margin-bottom: 1em;}
   #htop {width: 50%;}
}

@media (max-width:799px) {
   .gallery { --sloupce:2; }
   .podkat { --sloupce:2; }
}

@media (max-width:749px) {
   #htop {display: none; }
   #hlogo img {height: 50px;}
   #uvodnik {padding-bottom: 1em;}
   #uvodnik .pix {display: none;}
   #uvodnik .text {width: 100%;padding-top: 1em;}
   .kform,.sloupec-levy,.sloupec-pravy,#paticka .pbox  {width: auto; margin: auto; float: none;}
}

@media (max-width:599px) {
   #rozcestnik {grid-template-columns: repeat(2,48%); column-gap: 1%; }
}

@media (max-width:549px) {
   .obsah .left,.obsah .right { margin:.5em 0!important; float:none!important; display: block;}
   #uvodnik .text .h1 {font-size: 25px;}
   #uvodnik .text .h2 {font-size: 35px;}
}

@media (max-width:499px) {
   .podkat { --sloupce:1; }
}

@media (max-width:399px) {
   .gallery { --sloupce:1; }
   .hlavicka .top p {margin: .5em 0; padding: 0; background: none; display: block;}
   .hmenu .radic{ display: block; text-align: center;}
   .hmenu .msp { padding:1em 0; height: auto;}
   .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%; }
}
