:root{--blue:#07549a;--blue-dark:#063866;--red:#c91f2b;--red-dark:#981923;--yellow:#efc617;--white:#fff;--light:#f1f5f9;--text:#172033;--muted:#64748b;--footer:#111827;--radius:16px;--shadow:0 8px 24px rgba(15,23,42,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);background:var(--light);font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}.container{width:min(1180px,calc(100% - 32px));margin:0 auto}.top-line{height:8px;background:var(--yellow)}
.site-header{background:var(--blue);color:var(--white)}.header-inner{min-height:140px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0}.brand{display:flex;align-items:center;gap:18px}.logo-placeholder,.crest-placeholder{display:grid;place-items:center;flex:0 0 auto;width:86px;height:86px;border:4px solid var(--yellow);background:var(--white);color:var(--red);font-weight:900;text-align:center;box-shadow:var(--shadow)}.logo-placeholder{border-radius:50%;font-size:38px}.crest-placeholder{border-radius:14px;font-size:12px}.eyebrow{margin:0 0 4px;color:var(--yellow);font-size:12px;font-weight:800;letter-spacing:.2em;text-transform:uppercase}h1{margin:0;font-size:clamp(25px,3vw,38px);line-height:1.15}.municipality{margin:4px 0 0;color:#dbeafe; font-size:20px}
.main-nav{background:var(--red);border-bottom:4px solid var(--yellow);box-shadow:var(--shadow)}.menu-toggle{display:none;width:100%;padding:15px 0;border:0;color:var(--white);background:transparent;font:inherit;font-weight:800;text-align:left;cursor:pointer}.main-menu{display:flex;margin:0;padding:0;list-style:none}.main-menu a{display:block;padding:16px 18px;color:var(--white);font-size:14px;font-weight:800}.main-menu a:hover,.main-menu a.active{background:var(--red-dark)}
.layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:28px;padding:34px 0 44px}.sidebar-box,.card,.news-card,.gallery-item{overflow:hidden;border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow)}.sidebar-title{margin:0;padding:15px 18px;color:var(--white);background:var(--blue);font-size:17px}.side-menu{margin:0;padding:8px;list-style:none}.side-menu li+li{border-top:1px solid #e2e8f0}.side-menu a{display:flex;justify-content:space-between;padding:12px 10px;color:#334155;font-size:14px;font-weight:700;border-radius:8px}.side-menu a:hover{color:var(--blue);background:#eff6ff}.emergency{margin-top:20px;padding:20px;border-radius:var(--radius);background:var(--yellow);box-shadow:var(--shadow)}.emergency strong{display:block}.emergency .number{display:block;color:var(--red);font-size:42px;font-weight:900;line-height:1.1}
.hero{position:relative;overflow:hidden;padding:clamp(36px,6vw,68px);border-radius:24px;color:var(--white);background:linear-gradient(135deg,var(--blue),var(--blue-dark));box-shadow:var(--shadow)}.hero:after{content:'';position:absolute;width:260px;height:260px;right:-90px;top:-100px;border:38px solid rgba(255,255,255,.06);border-radius:50%}.hero-content{position:relative;z-index:1;max-width:700px}.badge{display:inline-block;padding:5px 12px;border-radius:999px;color:var(--text);background:var(--yellow);font-size:12px;font-weight:900;text-transform:uppercase}.hero h2{margin:18px 0 12px;font-size:clamp(32px,5vw,54px);line-height:1.08}.hero p{max-width:620px;color:#dbeafe}.button{display:inline-block;margin-top:14px;padding:12px 20px;border-radius:10px;color:var(--white);background:var(--red);font-weight:800}.button:hover{background:var(--red-dark)}
.page-header{padding:30px;border-radius:20px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--blue-dark));box-shadow:var(--shadow)}.page-header h2{margin:0;font-size:clamp(28px,4vw,42px)}.page-header p{margin-bottom:0;color:#dbeafe}.section-heading{margin:32px 0 16px}.section-heading small{color:var(--red);font-weight:900;letter-spacing:.16em;text-transform:uppercase}.section-heading h2{margin:2px 0 0;color:var(--blue);font-size:28px}.news-grid,.gallery-grid,.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.news-card,.card{padding:22px}.news-date{color:var(--red);font-size:13px;font-weight:800}.news-card h3,.card h3{margin:10px 0 8px;color:var(--blue);font-size:20px;line-height:1.3}.news-card p,.card p{color:var(--muted);font-size:14px}.more{color:var(--red);font-size:14px;font-weight:800}.article-list{display:grid;gap:18px}.article{padding:24px;border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.article h3{margin-top:0;color:var(--blue)}.gallery-item{min-height:180px;display:grid;place-items:center;padding:20px;color:#fff;background:linear-gradient(135deg,#0f6fbd,#c91f2b);font-weight:900;text-align:center}.contact-form{display:grid;gap:14px}.contact-form label{font-weight:700}.contact-form input,.contact-form textarea{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.contact-form textarea{min-height:150px;resize:vertical}.contact-form button{width:max-content;border:0;cursor:pointer}
.site-footer{color:var(--white);background:var(--footer);border-top:4px solid var(--yellow)}.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;padding:38px 0}.footer-title{margin:0 0 10px;color:var(--yellow);font-weight:900}.footer-text,.contacts{color:#cbd5e1;font-size:14px}.contacts p{margin:7px 0}.sponsors{display:flex;flex-wrap:wrap;gap:8px}.sponsors a{padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.10);font-size:12px;font-weight:800}.sponsors a:hover{background:rgba(255,255,255,.20)}.copyright{padding:15px;border-top:1px solid rgba(255,255,255,.10);color:#94a3b8;font-size:12px;text-align:center}
@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{order:2}.content{order:1}.news-grid,.gallery-grid,.info-grid,.footer-grid{grid-template-columns:1fr}}@media(max-width:720px){.crest-placeholder{display:none}.header-inner{min-height:120px}.logo-placeholder{width:70px;height:70px}.menu-toggle{display:block}.main-menu{display:none;flex-direction:column;padding-bottom:8px}.main-menu.open{display:flex}.main-menu a{padding:12px 8px;border-top:1px solid rgba(255,255,255,.18)}}
.contacts a[href^="mailto:"] {
    transition: color 0.2s ease;
}

.contacts a[href^="mailto:"]:hover {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-logo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex: 0 0 auto;
    transform: scale(1.40);
}

.header-crest {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex: 0 0 auto;
}

.header-logo {
    padding: 1px;

}

.header-crest {
    padding: 1px;

}

@media (max-width: 720px) {
    .header-logo {
        width: 70px;
        height: 70px;
    }

    .header-crest {
        display: none;
    }
}

.article-content {
    margin-top: 18px;
}

.article-content p {
    margin: 0 0 16px;
}

.article-content a,
.article-links a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover,
.article-links a:hover {
    color: var(--red);
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.article-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.article-gallery img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.article-gallery a:hover img {
    opacity: 0.9;
    transform: scale(1.04);
}

.article-links {
    margin-top: 22px;
    padding: 16px 20px;
    border-left: 4px solid var(--yellow);
    background-color: #f8fafc;
}

.article-links h4 {
    margin: 0 0 8px;
    color: var(--blue);
}

.article-links ul {
    margin: 0;
    padding-left: 20px;
}

.article-links li + li {
    margin-top: 6px;
}

@media (max-width: 900px) {
    .article-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .article-gallery {
        grid-template-columns: 1fr;
    }

    .article-gallery img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

.gallery-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.gallery-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.gallery-card > a { display: block; height: 100%; }
.gallery-card img { width: 100%; height: 210px; object-fit: cover; }
.gallery-card-content { padding: 20px; }
.gallery-card-content h3 { margin: 0 0 8px; color: var(--blue); font-size: 21px; }
.gallery-card-content p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.gallery-card-content span { color: var(--red); font-weight: 800; }

/* Detail alba a mřížka náhledů */
.gallery-back { margin: 22px 0; }
.gallery-back a { color: var(--blue); font-weight: 800; }
.gallery-back a:hover { color: var(--red); text-decoration: underline; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.photo-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #dbe3ec;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
    cursor: zoom-in;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.photo-thumbnail:hover img,
.photo-thumbnail:focus-visible img {
    transform: scale(1.05);
    opacity: .9;
}

.photo-thumbnail:focus-visible {
    outline: 4px solid var(--yellow);
    outline-offset: 3px;
}

/* Plovoucí prohlížeč fotografií */
body.lightbox-open { overflow: hidden; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 64px 90px 40px;
    background: rgba(3, 10, 22, .94);
}

.lightbox.is-open { display: flex; }

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1100px, 100%);
    max-height: 100%;
    margin: 0;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

.lightbox-content figcaption {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    margin-top: 14px;
    color: #fff;
    font-size: 14px;
}

.lightbox-close,
.lightbox-arrow {
    position: fixed;
    z-index: 10000;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-arrow:hover { background: var(--red); }
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible { outline: 3px solid var(--yellow); }

.lightbox-close {
    top: 18px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
}

.lightbox-arrow {
    top: 50%;
    width: 54px;
    height: 72px;
    border-radius: 10px;
    font-size: 50px;
    line-height: 1;
    transform: translateY(-50%);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 900px) {
    .gallery-directory,
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .gallery-directory,
    .photo-grid { grid-template-columns: 1fr; }
    .gallery-card img { height: 230px; }
    .lightbox { padding: 70px 12px 80px; }
    .lightbox-arrow { top: auto; bottom: 14px; width: 58px; height: 50px; transform: none; }
    .lightbox-prev { left: calc(50% - 68px); }
    .lightbox-next { right: calc(50% - 68px); }
    .lightbox-content figcaption { padding: 0 4px; }
}
