
:root{--red:#c82f36;--navy:#172a3b;--cream:#f8f6f2;--muted:#63717a}*{box-sizing:border-box}body{margin:0;font:16px/1.65 system-ui,-apple-system,Segoe UI,sans-serif;color:#243340;background:var(--cream)}a{color:inherit;text-decoration:none}.wrap{width:min(1160px,calc(100% - 40px));margin:auto}.topline{background:var(--navy);color:#fff;font-size:12px;letter-spacing:1.5px;padding:7px 0}.topline .wrap{display:flex;justify-content:space-between}header{background:#fff;box-shadow:0 2px 20px #0001;position:sticky;top:0;z-index:3}header .inner{display:flex;align-items:center;justify-content:space-between;min-height:86px;gap:20px}.brand{display:flex;align-items:center;gap:13px;font-size:24px;font-weight:900;letter-spacing:.4px;color:var(--navy)}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:2.5px;line-height:1}.seal{width:51px;height:57px;background:var(--red);clip-path:polygon(50% 0,94% 15%,94% 65%,50% 100%,6% 65%,6% 15%);display:grid;place-items:center;color:white;font-size:28px}nav{display:flex;gap:20px;align-items:center}nav a{font-size:13px;font-weight:800;color:#374958}nav a:hover{color:var(--red)}.menu{display:none;border:1px solid #ddd;background:white;padding:10px;border-radius:5px}.hero{background:var(--navy);color:white;position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 35%,#c83b3f66,transparent 31%),repeating-linear-gradient(125deg,transparent,transparent 37px,#ffffff06 38px,#ffffff06 39px)}.hero .wrap{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;min-height:490px;position:relative}.kicker{letter-spacing:3px;font-size:12px;font-weight:800;color:#f4979b}.hero h1{font-size:clamp(40px,5vw,66px);line-height:1.07;letter-spacing:-2px;margin:16px 0 22px}.hero p{max-width:570px;color:#d9e1e9;font-size:18px}.btn{display:inline-block;background:var(--red);padding:13px 22px;border-radius:5px;color:white;font-size:13px;font-weight:800;margin:13px 12px 0 0;cursor:pointer}.btn.ghost{background:transparent;border:1px solid #95a0a9}.art{padding:20px}.art svg{width:100%;height:auto;filter:drop-shadow(0 20px 40px #050d16a0)}section{padding:70px 0}.heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:26px}.heading h2{font-size:35px;color:var(--navy);line-height:1.2;margin:7px 0}.eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:2px;color:var(--red);font-weight:900}.all{font-weight:800;color:var(--red);font-size:13px}.news{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.tile{background:white;box-shadow:0 8px 25px #2433400a;border-radius:9px;overflow:hidden}.tile .image{height:190px;display:flex;align-items:center;justify-content:center;font-size:69px;background:linear-gradient(135deg,#293f50,#547086)}.tile:nth-child(2) .image{background:linear-gradient(135deg,#ac3235,#e89a67)}.tile:nth-child(3) .image{background:linear-gradient(135deg,#446457,#a8b89b)}.tile .body{padding:24px}.date{color:var(--red);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:1px}.tile h3{font-size:21px;line-height:1.35;margin:12px 0;color:var(--navy)}.tile p{color:var(--muted);font-size:14px;margin:0}.feature{background:#fff}.feature .wrap{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center}.mockphoto{min-height:300px;background:linear-gradient(140deg,#d6dbda,#a5b3b9);border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#304a56}.mockphoto strong{font-size:66px}.mockphoto span{font-size:13px;letter-spacing:1px}.feature h2{font-size:37px;line-height:1.2;margin:10px 0;color:var(--navy)}.feature p{color:var(--muted)}.chips{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}.chip{background:#f5e7e7;color:#9e272e;font-size:12px;font-weight:900;padding:8px 12px;border-radius:22px}.band{background:var(--red);color:white;padding:40px 0}.band .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}.band h2{font-size:26px;margin:0}.band p{margin:5px 0}.band a{border:1px solid #fff;padding:11px 22px;border-radius:5px;font-weight:800}footer{background:var(--navy);color:#c5d0da;padding:38px 0}footer .wrap{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}footer strong{color:white}.notice{background:#fff3cd;color:#624e17;padding:12px 20px;text-align:center;font-size:13px} @media(max-width:950px){nav{display:none;position:absolute;background:white;top:86px;left:0;right:0;padding:20px;flex-direction:column;align-items:start}nav.open{display:flex}.menu{display:block}.hero .wrap{grid-template-columns:1fr;gap:0;padding-top:45px}.art{max-width:440px;margin:auto}.news{grid-template-columns:1fr 1fr}.feature .wrap{gap:30px}}@media(max-width:620px){.news,.feature .wrap{grid-template-columns:1fr}.brand{font-size:18px}.hero h1{font-size:44px}.hero .wrap{min-height:0}.band .wrap{display:block}.band a{display:inline-block;margin-top:12px}}
.original-logo{display:block;width:min(290px,36vw);height:auto;object-fit:contain}.brand{flex-shrink:0}@media(max-width:680px){.original-logo{width:210px;max-width:55vw}}

.pagehero{background:#172a3b;color:#fff;padding:64px 0}.pagehero h1{font-size:clamp(32px,5vw,52px);margin:12px 0}.pagehero p{color:#d4e0e8;max-width:700px}
.content{min-height:48vh}.content .wrap{max-width:1000px}.panel{background:#fff;padding:30px;border-radius:10px;box-shadow:0 4px 22px #172a3b0b;margin-bottom:20px}
.panel h2{margin-top:0;color:#172a3b}.subnav{display:flex;gap:12px;flex-wrap:wrap}.subnav a{padding:9px 13px;background:#fff;border-radius:6px;color:#b62932;font-weight:700}
.gallerygrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.galleryplaceholder{background:#ecedef;border:2px dashed #bec5cc;border-radius:9px;min-height:160px;display:grid;place-items:center;color:#5e6975;text-align:center;padding:15px}
.note{border-left:4px solid #c82f36;background:#fff8f7;padding:18px 22px;margin:20px 0}
@media(max-width:700px){.gallerygrid{grid-template-columns:1fr}}

.archive-item{border-top:1px solid #e5e8e9;padding:20px 0}.archive-item h3{margin:4px 0 9px;color:#192b39}.archive-year{font-weight:700;font-size:.83rem;color:#b3333c}.archive-item p{margin:0 0 9px;line-height:1.6}.archive-item a{color:#ae2635;font-weight:700}

.archivelist{max-width:1100px;margin:auto;padding:34px 20px}.yearnav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:25px}.yearnav a{background:#fff;border:1px solid #ddd;border-radius:8px;padding:10px 18px;color:#a21f2a;font-weight:700}.archivecards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px}.archivecard{overflow:hidden;border-radius:12px;background:white;box-shadow:0 5px 24px #162b3814}.archivecard img{width:100%;height:170px;object-fit:cover}.archivecard .pad{padding:19px}.archivecard h2{font-size:19px;line-height:1.35;margin:8px 0}.archivecard a,.article-page a{color:#a51f29}.archivecard p{font-size:14px;color:#5b6570}.article-page{max-width:920px;margin:32px auto;padding:24px;background:white;border-radius:12px}.article-page p{line-height:1.75;margin:12px 0}.article-page h1{font-size:clamp(28px,5vw,43px);line-height:1.15;margin:14px 0}.date{color:#65717b;font-size:14px}.article-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:13px;margin:30px 0}.article-gallery img{width:100%;height:210px;object-fit:contain;background:#eff1f2;border-radius:8px}.article-gallery a{display:block}.backlink{display:inline-block;margin:5px 0 22px}.archivestats{color:#63707b;font-size:14px;margin-bottom:28px}

.racegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:15px}.racecard{display:flex;gap:15px;padding:17px;border:1px solid #e7ebef;border-radius:10px;background:#fff}.racecard h3{margin:6px 0 8px;line-height:1.3}.racecard small{color:#bd2936;font-weight:700}.racecard p{font-size:14px;line-height:1.55;color:#52606b}.racecard a{font-size:14px;font-weight:700}.raceicon{flex:none;font-size:26px;background:#f9ebec;align-self:flex-start;border-radius:9px;padding:8px}

.race-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-bottom:1px solid #e8edf0}.race-row small{color:#566475}.race-row a{white-space:nowrap}@media(max-width:650px){.race-row{align-items:flex-start;flex-direction:column}}

/* Projekty a dotace */
.proj-year{margin:44px 0 18px;font-size:28px;color:#172a3b}.proj-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.proj-card{background:white;border:1px solid #e5e5e5;border-radius:12px;overflow:hidden;box-shadow:0 3px 12px #1426320b;display:flex;flex-direction:column}.proj-image{height:180px;width:100%;object-fit:contain;background:#fff;padding:16px;border-bottom:1px solid #eee}.proj-text{padding:22px}.proj-text h3{font-size:19px;line-height:1.35;margin:0 0 12px;color:#172a3b}.proj-text p{margin:0;color:#3a4b55}.proj-source{margin:35px 0;font-size:14px}.proj-source a{color:#b52931;text-decoration:underline}@media(max-width:720px){.proj-grid{grid-template-columns:1fr}}

.project-gallery-panel{margin-top:24px}.project-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.project-photo-grid figure{margin:0;background:#fff;border:1px solid #e7eaee;border-radius:12px;overflow:hidden;box-shadow:0 3px 12px #1426320b}.project-photo-grid img{display:block;width:100%;height:220px;object-fit:cover}.project-photo-grid figcaption{padding:12px 14px;font-size:14px;color:#435560}.proj-image{background:#fff}.proj-card .proj-image[src$=".jpg"],.proj-card .proj-image[src$=".jpeg"]{object-fit:cover;padding:0}.proj-card .proj-image[src*="areal_"]{object-fit:cover;padding:0}.proj-card .proj-image[src*="areal_vystavba"]{object-fit:cover;padding:0}@media(max-width:720px){.project-photo-grid{grid-template-columns:1fr}}

.proj-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px;background:#fff}.proj-pair img{width:100%;height:180px;object-fit:cover;border-radius:6px}.calendar-container{position:relative;width:100%;min-height:650px;overflow:hidden}.calendar-container iframe{width:100%;height:650px;border:0}.original-logo{object-fit:contain}@media(max-width:650px){.proj-pair{grid-template-columns:1fr}.proj-pair img{height:200px}.calendar-container iframe{height:650px}}

/* Úvodní skutečná fotografie areálu místo ilustrované helmy */
.hero .art{display:flex;align-items:center;justify-content:center;min-width:0;padding:12px}.hero-areal-photo{display:block;width:100%;max-width:700px;aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:16px;border:1px solid rgba(255,255,255,.22);box-shadow:0 20px 48px rgba(0,0,0,.26)}@media(max-width:760px){.hero .art{padding:12px 0 24px}.hero-areal-photo{aspect-ratio:16/10}}

.home-original{padding:34px 0;background:#f5f6f8}.home-original .wrap{max-width:1080px}.home-original .panel{margin-bottom:18px}.orig-news{display:grid;gap:12px}.orig-news>div{border-bottom:1px solid #e5e9ed;padding-bottom:8px}.panel p{line-height:1.75}.panel ul{line-height:1.9}

.new-history{margin-top:30px}.new-history h3{margin-top:24px}.source-note{font-size:13px;color:#596a75}.latest-achievement{padding:34px 0;background:#f5f7f9}.achieve-card{border-left:6px solid #d42e36;background:white;border-radius:9px;padding:28px;box-shadow:0 5px 25px #1111110a}.achieve-kicker{color:#b5222b;font-size:12px;font-weight:800;letter-spacing:.12em}.achieve-card h2{margin:11px 0}.achieve-card a{color:#bd2830;font-weight:700}

.vybor-sdh{margin-top:28px}.table-scroll{overflow-x:auto}.vybor-table{width:100%;border-collapse:collapse;margin-top:18px;font-size:16px}.vybor-table th,.vybor-table td{padding:13px 16px;text-align:left;border-bottom:1px solid #e1e7ec}.vybor-table thead{background:#182c3b;color:white}.vybor-table tbody tr:nth-child(even){background:#f6f8fa}.vybor-table td:first-child{font-weight:600;width:42%}.nabor-foto{margin:22px 0 0;max-width:580px}.nabor-foto img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 5px 20px #0d223322}.map-panel iframe{width:100%;height:370px;border:0;border-radius:12px;background:#e9edef}.map-panel a{color:#b52931;text-decoration:underline}

/* Original current posters */
.news .tile .image{overflow:hidden;padding:0;display:flex;align-items:stretch;background:#f6f7f9}.news .tile .image img{display:block;width:100%;height:100%;min-height:195px;object-fit:cover}.news-four{margin-top:20px}.news-four .tile .image img{object-fit:contain;background:#fff}

.kronika-article{max-width:950px;margin:auto}.kronika-article p{line-height:1.7}.kronika-pictures{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px;margin:28px 0}.kronika-pictures figure{margin:0}.kronika-pictures img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 4px 15px #0001}

.archivecards .archivecard>img{width:100%;height:210px;object-fit:cover;object-position:top;display:block;background:#f5f5f5}

/* Skutečná fotografie SDH na úvodní stránce */
.feature-photo{margin:0;min-width:0;overflow:hidden;border-radius:14px;box-shadow:0 14px 32px rgba(20,38,50,.14);align-self:stretch}
.feature-photo img{display:block;width:100%;height:100%;min-height:290px;max-height:420px;object-fit:cover;object-position:center 61%}
@media(max-width:720px){.feature-photo img{min-height:240px;max-height:370px}}

/* Kronika na úvodní straně – skutečná fotografie a odkaz */
#kronika .chronicle-photo{display:block;overflow:hidden;border-radius:12px;min-height:290px;box-shadow:0 12px 26px #20304019}
#kronika .chronicle-photo img{display:block;width:100%;height:100%;min-height:290px;max-height:390px;object-fit:cover}
#kronika .btn{margin-top:8px}

/* Stabilni navrat na puvodni kartu */
.archivecard[id],.proj-card[id]{scroll-margin-top:110px;}


/* Kniha kroniky – automaticky rozmistene fotografie a rucni volby */
.article-page,.kronika-article,.cms-chronicle,.print-entry .book-body{display:flow-root}
.book-photo{margin:24px 0 28px;display:grid;gap:12px;break-inside:avoid;page-break-inside:avoid;clear:both}
.book-photo-item{min-width:0;break-inside:avoid}
.book-photo img{display:block;width:100%;height:auto;max-height:470px;object-fit:contain;border-radius:8px;box-shadow:0 5px 17px #0b28351c;background:#f6f7f7}
.book-photo figcaption{font-size:.86rem;color:#67747b;text-align:center;padding:7px 6px 0}
.book-hero{max-width:780px;margin:20px auto 30px}.book-hero img{max-height:480px}
.book-duo{grid-template-columns:repeat(2,minmax(0,1fr));max-width:850px;margin:22px auto}
.book-duo img{height:260px;object-fit:cover}
.book-side-left,.book-side-right{width:min(47%,360px);margin-top:10px;margin-bottom:18px;clear:none}
.book-side-left{float:left;margin-right:24px}.book-side-right{float:right;margin-left:24px}
.foto-vlevo{float:left;width:42%;margin:9px 22px 12px 0}.foto-vpravo{float:right;width:42%;margin:9px 0 12px 22px}
.foto-cela{width:100%;clear:both}.foto-dvojice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;clear:both}
.foto-vlevo img,.foto-vpravo img,.foto-cela img,.foto-dvojice img{max-width:100%;height:auto}
@media(max-width:700px){.book-side-left,.book-side-right,.foto-vlevo,.foto-vpravo{float:none;width:100%;margin:20px auto;clear:both}.book-duo img{height:auto;max-height:260px}}
@media print{
 .book-photo,.book-photo-item,.foto-vlevo,.foto-vpravo,.foto-cela,.foto-dvojice{break-inside:avoid;page-break-inside:avoid}
 .book-photo{margin:9mm 0}.book-photo img{max-height:105mm;border-radius:0;box-shadow:none}
 .book-hero img{max-height:130mm}
 .book-duo{gap:4mm}.book-duo img{height:auto;max-height:80mm;object-fit:contain}
 .book-side-left,.book-side-right{width:42%;margin-top:2mm;margin-bottom:4mm}
 .book-side-left{margin-right:6mm}.book-side-right{margin-left:6mm}
 .foto-vlevo,.foto-vpravo{width:42%}
}


/* Sazba knihy v2: rozumné výchozí velikosti a volitelné rozmístění */
.book-photo.book-medium{width:min(76%,540px);max-width:100%;margin:18px auto 20px;float:none;clear:both}
.book-photo.book-large{width:min(100%,820px);margin:20px auto 24px;float:none;clear:both}
.book-photo.book-small{width:min(48%,350px);max-width:100%;margin:14px auto 18px;float:none;clear:both}
.book-photo.book-medium img{max-height:360px;object-fit:contain}
.book-photo.book-large img{max-height:550px;object-fit:contain}
.book-photo.book-small img{max-height:270px;object-fit:contain}
.book-photo.book-duo img{object-fit:contain;height:auto;max-height:330px}
.print-entry .book-body{display:block}
.print-entry .book-photo-controls{clear:both}
@media print{
 .print-entry{break-before:auto!important;page-break-before:auto!important;break-after:auto!important;page-break-after:auto!important}
 .print-entry .book-body{display:block}
 .print-entry .book-photo.book-medium{width:72%;margin:4mm auto 6mm}
 .print-entry .book-photo.book-large{width:100%;margin:5mm auto 7mm}
 .print-entry .book-photo.book-small{width:48%;margin:3mm auto 5mm}
 .print-entry .book-photo.book-medium img{max-height:100mm}
 .print-entry .book-photo.book-large img{max-height:155mm}
 .print-entry .book-photo.book-small img{max-height:65mm}
 .print-entry .book-photo.book-duo img{max-height:100mm}
 .print-entry h2,.print-entry h3{break-after:avoid;page-break-after:avoid}
 .print-entry figure{break-inside:avoid;page-break-inside:avoid}
 .print-entry p{orphans:3;widows:3}
}
@media(max-width:700px){.book-photo.book-small,.book-photo.book-medium{width:100%}}


/* V3: opravdove obtekani textu kolem samostatnych fotografii. */
.book-photo.book-float{display:block;box-sizing:border-box;max-width:100%;width:min(var(--book-width,55%),100%);clear:none;float:none;position:relative;margin:12px auto 18px;break-inside:avoid;page-break-inside:avoid}
.book-photo.book-float .book-photo-item{display:block;min-width:0}
.book-photo.book-float img{width:100%;height:auto;max-height:none;object-fit:contain;display:block;border-radius:5px}
.book-photo.book-float.book-align-left{float:left;width:min(var(--book-width,44%),80%);margin:5px 18px 10px 0}
.book-photo.book-float.book-align-right{float:right;width:min(var(--book-width,44%),80%);margin:5px 0 10px 18px}
.book-photo.book-float.book-align-center{float:none;width:min(var(--book-width,65%),100%);margin:15px auto 18px;clear:both}
.book-photo.book-float.book-align-wide{float:none;width:min(var(--book-width,100%),100%);margin:14px auto 20px;clear:both}
.book-photo.book-float .photo-editor{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:6px;background:#f0f4f6;border:1px solid #ccd6df;border-radius:6px;font-size:12px;color:#223;clear:both}
.book-photo.book-float .photo-editor label{display:flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}
.book-photo.book-float .photo-editor input[type=range]{width:70px}
.book-photo.book-float .photo-editor button{padding:4px 6px;border:1px solid #9caab5;border-radius:5px;background:white;color:#172b40;cursor:pointer}
.book-photo.book-float .photo-editor select{max-width:160px;font-size:12px;padding:4px}
@media(max-width:630px){.book-photo.book-float.book-align-left,.book-photo.book-float.book-align-right{width:min(var(--book-width,55%),80%);margin-left:10px;margin-right:10px}}
@media print{
 .book-photo.book-float{display:block!important;clear:none!important;box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important}
 .book-photo.book-float.book-align-left{float:left!important;width:min(var(--book-width,44%),80%)!important;margin:2mm 5mm 3mm 0!important}
 .book-photo.book-float.book-align-right{float:right!important;width:min(var(--book-width,44%),80%)!important;margin:2mm 0 3mm 5mm!important}
 .book-photo.book-float.book-align-center{float:none!important;width:min(var(--book-width,65%),100%)!important;margin:4mm auto 5mm!important;clear:both!important}
 .book-photo.book-float.book-align-wide{float:none!important;width:min(var(--book-width,100%),100%)!important;margin:4mm auto 5mm!important;clear:both!important}
 .book-photo.book-float img{max-height:145mm!important;width:100%!important;height:auto!important;box-shadow:none!important;object-fit:contain!important}
 .book-photo.book-float .photo-editor{display:none!important}
}

/* Volitelný mírný fotografický přesah. */
.book-photo.book-float .book-photo-item{transform:translateY(calc(-1 * var(--book-overlap,0px)));position:relative;z-index:1}
@media print{.book-photo.book-float .book-photo-item{transform:translateY(calc(-1 * var(--book-overlap,0px)))!important}}


/* Fotogalerie vytvářené redaktory v Pages CMS */
.cms-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:24px 0;clear:both}
.cms-gallery figure{margin:0;min-width:0;break-inside:avoid;page-break-inside:avoid}
.cms-gallery img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain;border-radius:8px;background:#f7f8f9}
.cms-index .archivecards{margin-top:16px}
.cms-years{display:flex;gap:10px;flex-wrap:wrap;padding:12px 0 22px}
.cms-years a{display:inline-block;padding:7px 12px;border:1px solid #dae2e8;border-radius:7px;background:#fff}
.cms-index h2[id^="rok-"]{margin-top:30px}
@media print{.cms-gallery{gap:4mm}.cms-gallery img{max-height:100mm;border-radius:0}}

/* Pořízené vybavení dokumentované u jednotlivých dotací */
.cms-equipment{margin-top:32px}.cms-equipment-item{padding:18px 0;border-top:1px solid #dae2e8}.cms-equipment-item h3{margin:0 0 12px}.cms-equipment-item .cms-gallery{margin:14px 0}.cms-grant-docs{margin-top:28px}

