/* DVNG Ústí nad Labem – styly webu */
:root{--navy:#17212E;--slate:#3A4757;--amber:#FFB400;--blue:#2457A6;--teal:#0E7C86;--bg:#EEF1F5;--mut:#4A5666}
*{box-sizing:border-box}
body{margin:0;font-family:'Barlow',Arial,sans-serif;color:var(--navy);background:var(--bg);line-height:1.5}
a{color:inherit}
h1,h2,h3{font-family:'Barlow Condensed','Arial Narrow',sans-serif;margin:0;line-height:1.05;font-weight:700}
p{margin:0}
.c{max-width:1200px;margin:0 auto;padding:0 24px}
.c.s{max-width:1008px}
.sec{padding-top:24px;padding-bottom:16px}
.top{background:#fff;border-bottom:1px solid #DDE3EA}
.top .c{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;padding-bottom:14px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo{width:44px;height:44px;background:var(--navy);color:var(--amber);display:flex;align-items:center;justify-content:center;font:700 20px 'Barlow Condensed',sans-serif;border-radius:6px}
.logo svg{width:26px;height:26px}
.brand b{display:block;font-size:18px;line-height:1.1}
.brand small{font-size:13px;color:var(--mut)}
nav{display:flex;flex-wrap:wrap;gap:4px}
nav a{text-decoration:none;font-weight:600;padding:10px 14px;border-radius:6px}
nav a:hover,nav a.on{background:var(--bg)}
.g{display:grid;gap:16px}
.g4{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
.g2{grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr))}
.gt{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.doc{min-height:240px;justify-content:flex-start;gap:12px}
.doc h3{font-size:32px}
.doc p{font-size:15px;opacity:.92}
.doc .dh{display:flex;align-items:center;gap:12px}
.doc .dh svg{width:36px;height:36px}
.doc .pv{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.doc .pn{font-size:13px;opacity:.9}
.doc .dl{margin-left:auto;font-size:13px;font-weight:600;color:inherit;text-decoration:underline}
.doc .da{margin-top:auto;display:flex;flex-wrap:wrap;gap:10px}
.pe{min-height:220px;justify-content:flex-start;gap:12px}
.pe h2{font-size:34px}
.pe .btn{overflow-wrap:anywhere}
.gy{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))}
.t{display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:28px;border-radius:6px;text-decoration:none;color:inherit;transition:transform .15s}
a.t:hover{transform:translateY(-3px)}
.k{font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:600}
.btn{display:inline-block;align-self:flex-start;text-decoration:none;font-weight:600;padding:12px 20px;border-radius:6px}
.navy{background:var(--navy);color:#fff}.amber{background:var(--amber);color:var(--navy)}
.blue{background:var(--blue);color:#fff}.teal{background:var(--teal);color:#fff}
.slate{background:var(--slate);color:#fff}.white{background:#fff}
.mut{color:var(--mut)}
.b-navy{background:var(--navy);color:#fff}.b-white{background:#fff;color:var(--navy)}.b-amber{background:var(--amber);color:var(--navy)}
.crumb{font-size:14px;color:var(--mut);margin-bottom:12px}
.crumb a{text-decoration:none}
.hero{min-height:360px}
.photo{position:relative;overflow:hidden;background:var(--navy) url('../img/uvod.jpg') center 60%/cover no-repeat;isolation:isolate}
.photo::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(23,33,46,.15) 0%,rgba(23,33,46,.55) 55%,rgba(23,33,46,.92) 100%)}
.photo h1,.photo p{text-shadow:0 2px 10px rgba(0,0,0,.55)}
.photo .bars i{box-shadow:0 1px 4px rgba(0,0,0,.4)}
.hero h1{font-size:clamp(36px,6vw,56px)}
.bars{display:flex;gap:6px}.bars i{width:36px;height:12px;display:block}
.q{min-height:200px}.q h3{font-size:32px}.q p{font-size:15px;opacity:.9}.q svg{width:40px;height:40px}
.sq{aspect-ratio:1/1;display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:20px;background:#fff;color:var(--mut);text-decoration:none;border-radius:6px;transition:transform .15s,background .15s}
.sq strong{font-family:'Barlow Condensed',sans-serif;font-size:68px;line-height:.9;color:var(--blue)}
.pl{display:flex;flex-direction:column;justify-content:flex-start;gap:2px;border-top:3px solid var(--amber);padding-top:10px;min-height:112px}
.pl b{font-size:18px;font-weight:600;line-height:1.2;color:var(--navy)}
.pl i{font-style:normal;font-size:14px;line-height:1.25;color:var(--mut)}
.sq:hover{background:var(--blue);color:#fff;transform:translateY(-3px)}
.sq:hover strong,.sq:hover .pl b,.sq:hover .pl i{color:#fff}
.yh{padding:26px 24px;border-radius:6px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px}
.yh .num{font:700 88px/.8 'Barlow Condensed',sans-serif;color:var(--amber)}
.yh h1{font-size:clamp(28px,5vw,38px)}
.yh .id{display:flex;align-items:flex-end;gap:24px}
.yt{min-height:250px;padding:22px;gap:12px;justify-content:flex-start}
.yt .big{font:700 64px/.9 'Barlow Condensed',sans-serif}
.yt h2{font-size:34px}
.chip{padding:8px 12px;border-radius:6px}
.chip .k{font-size:11px}
.chip strong{font-size:17px}
.btn.sm{font-size:15px;padding:10px 16px}
.map{padding:0;overflow:hidden;justify-content:flex-start}
.map .hd{padding:22px 22px 0}
.map h3{font-size:24px;margin-top:4px}
.map iframe{width:100%;height:170px;border:0;display:block;flex:1;margin-top:12px}
.map .ft{padding:12px 22px 22px}
.mapph{flex:1;margin-top:12px;min-height:170px;background:#E4EAF0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;padding:16px}
.mapph svg{width:36px;height:36px}
.mapph b{font-size:15px}
.mapph span{font-size:13px;color:var(--mut)}
#map{width:100%;height:170px;margin-top:12px;flex:1;min-height:170px}
.zap{grid-column:1/-1;min-height:0}
.zap .ak a{color:inherit;font-weight:600;text-decoration:underline}
.zap .ak b{min-width:130px}
.zap .ak strong{display:block;font-size:16px}
.ak{display:flex;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.35)}
.ak b{font:700 20px/1.1 'Barlow Condensed',sans-serif;min-width:84px}
.ak p{font-size:15px;opacity:.92}
.ft-site{background:var(--navy);color:#C9D2DD;margin-top:24px}
.ft-site .c{padding-top:36px;padding-bottom:36px}
.ft-site h3{font-size:28px;color:#fff;margin-bottom:10px}
.ft-site .k{color:var(--amber);margin-bottom:10px}
.ft-site p{font-size:14px}
.ft-site .cp{font-size:13px;margin-top:28px;opacity:.7}
.page-h{padding:36px 32px;border-radius:6px;display:flex;flex-direction:column;gap:12px}
.page-h h1{font-size:clamp(36px,6vw,56px)}
@media(max-width:800px){.g3{grid-template-columns:1fr}}
@media(max-width:640px){.gt{grid-template-columns:1fr}.yh .num{font-size:64px}.t{padding:22px}}

.page-h.photo-h{position:relative;overflow:hidden;isolation:isolate;min-height:230px;justify-content:flex-end;background:var(--navy) url('../img/uvod.jpg') center 55%/cover no-repeat}
.page-h.photo-h::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(23,33,46,.92) 0%,rgba(23,33,46,.70) 45%,rgba(23,33,46,.30) 100%)}
.page-h.photo-h h1,.page-h.photo-h p{text-shadow:0 2px 10px rgba(0,0,0,.5)}
.pes{min-height:0;padding:12px 18px;gap:2px}
.pes h2{font-size:26px}

.yt .kon{display:flex;flex-direction:column;gap:2px;margin:0;font-size:20px;font-weight:400;line-height:1.35}
.yt .kon a{color:inherit;text-decoration:none;overflow-wrap:anywhere}
.yt .kon a:hover{text-decoration:underline}

.pe .kon{display:flex;flex-direction:column;gap:2px;margin:0;font-size:20px;font-weight:400;line-height:1.35}
.pe .kon a{color:inherit;text-decoration:none;overflow-wrap:anywhere}
.pe .kon a:hover{text-decoration:underline}

a[href^="mailto:"]::before,a[href^="tel:"]::before{content:"";display:inline-block;width:1em;height:1em;margin-right:.45em;vertical-align:-.12em;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
a[href^="mailto:"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E")}
a[href^="tel:"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E")}

.mapbar{flex-direction:row!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;padding:16px 24px!important;min-height:0}
.mapbar p{margin:0}
.mapbar .l1{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;font-size:20px}
.mapbar .l1 b{font-size:20px}
.mapbar .l2{font-size:14px;color:var(--mut);margin-top:2px}

.stack{display:flex;flex-direction:column;gap:12px}
.wide{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:8px 28px;padding:18px 26px!important;min-height:0}
.wide h3{font-size:24px;line-height:1.15;margin:2px 0 0}
.wide p{font-size:15px;line-height:1.4;margin:4px 0 0}
.wide .k{display:block}
.wide .act{display:flex;flex-direction:column;gap:8px;align-items:stretch;justify-content:center;min-width:260px}
.wide .act .btn{text-align:center;justify-content:center}
@media(max-width:760px){.wide{grid-template-columns:1fr}.wide .act{min-width:0;flex-direction:row;flex-wrap:wrap}}

.qrrow{display:flex;align-items:center;justify-content:center;text-align:center;margin:auto 0}
.qrrow .big{white-space:nowrap}
.qrrow p{margin:4px 0 0}
.qrchips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.qrchips .chip{padding:8px 8px;min-width:0;text-align:center;display:flex;flex-direction:column;justify-content:center}
.qrchips .chip strong{font-size:16px;display:block}
.qrvs{display:contents}

.btn.qrbtn{flex:none;align-self:stretch;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;cursor:pointer;font:700 15px/1.2 'Barlow',sans-serif;padding:8px 14px}
.btn.qrbtn:hover{background:var(--amber)}
.qri{width:22px;height:22px}
.qrdlg{border:0;padding:0;border-radius:8px;background:#fff;color:var(--navy);box-shadow:0 20px 50px rgba(0,0,0,.35);max-width:calc(100vw - 32px)}
.qrdlg::backdrop{background:rgba(23,33,46,.6)}
.qrbox{position:relative;width:280px;max-width:100%;box-sizing:border-box;padding:22px 24px 20px;text-align:center}
.qrbox .k{margin:0 0 8px;font-size:12px;color:var(--mut)}
.qrbox svg{display:block;width:220px;height:220px;margin:0 auto}
.qrnote{margin:12px 0 0;color:#C62828;font-weight:700;font-size:20px;line-height:1.3}
.qrx{position:absolute;top:6px;right:8px;border:0;background:none;font-size:26px;line-height:1;color:var(--mut);cursor:pointer;padding:4px 8px}
.qrx:hover{color:var(--navy)}


.wide .act{width:330px;min-width:330px}
.wide .act .btn{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center}
@media(max-width:760px){.wide .act{width:100%;min-width:0;flex-direction:column}}

/* menší tlačítka v širokých dlaždicích (úvod) */
.wide .act{width:290px;min-width:290px;gap:6px}
.wide .act .btn.sm{font-size:14px;padding:7px 14px;line-height:1.3}
@media(max-width:760px){.wide .act{width:100%;min-width:0}}

.t.yt.blue:has(.qrchips){container-type:inline-size}
.qrchips .chip .k{margin-bottom:2px}
.btn.qrbtn{padding:8px}
@container (max-width:400px){.qrchips{grid-template-columns:1fr 1fr}.qrchips>.chip:first-child{grid-column:1/-1}}
