/* ============================================
   MOBILE-FIRST RESPONSIVE DESIGN
   Cross-browser compatible CSS
   ============================================ */

/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    font-size: 18px; /* Klasická čitelná velikost (1rem = 18px v celém webu) */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent; /* Odstranění modrého rámečku na mobilních zařízeních */
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Kontejner */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-width: 0; /* Prevence overflow na malých zařízeních */
}

@media (max-width: 768px) {
    .container {
        padding-left: max(0.25rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
}

/* ============================================
   HLAVIČKA A NAVIGACE
   ============================================ */
.header {
    background-color: #fff;
    color: #1a365d;
    position: sticky;
    position: -webkit-sticky; /* Safari fallback */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e2e8f0;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a365d;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    max-width: 350px;
    object-fit: contain;
}

.logo a:hover .logo-img {
    opacity: 0.8;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo-text {
    display: none;
}

/* Header right section - odstraněno, není potřeba */

/* Social Links (Facebook) */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
    margin-right: auto;
}

.facebook-link,
.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    box-sizing: border-box;
}
.facebook-link {
    text-decoration: none;
    color: #1877f2;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    line-height: 0;
}

.facebook-link:hover {
    color: #0d5dbf;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.facebook-icon {
    width: 28px;
    height: 28px;
    display: block;
}

.instagram-link {
    text-decoration: none;
    color: #e4405f;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    line-height: 0;
}

.instagram-link:hover {
    color: #c13584;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.social-links .instagram-icon {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
    align-self: center;
}

.social-links .facebook-icon {
    margin: 0;
    padding: 0;
}

/* Responzivita pro social links */
@media (max-width: 1200px) {
    .social-links {
        margin-left: 0.5rem;
    }
    
    .facebook-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 992px) {
    .social-links {
        margin-left: 0.5rem;
    }
    
    .facebook-icon {
        width: 28px;
        height: 28px;
    }
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.language-btn {
    background: transparent;
    border: 2px solid #1a365d;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    min-width: 40px;
    height: 36px;
}

.language-btn:hover {
    background: #f7fafc;
    border-color: #406bae;
}

.language-btn .flag-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", emoji;
    font-style: normal;
    font-weight: normal;
}

.language-btn .flag-icon img {
    width: 20px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1a365d;
    text-decoration: none;
    transition: background-color 0.2s ease;
    -webkit-transition: background-color 0.2s ease;
}

.language-option:hover {
    background: #f7fafc;
    color: #406bae;
}

.language-option.active {
    background: #e6f2ff;
    color: #406bae;
    font-weight: 600;
}

.language-option .flag-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", emoji;
    font-style: normal;
    font-weight: normal;
}

.language-option .flag-icon img {
    width: 20px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    margin-right: 0.5rem;
}

.language-option .language-name {
    font-size: 0.95rem;
}

/* ============================================
   OPRAVENÁ MOBILNÍ HLAVIČKA (768px a méně)
   ============================================ */
@media (max-width: 768px) {
    /* Zajištění, aby header neblokoval zobrazení menu */
    .header {
        position: sticky;
        top: 0;
        overflow: visible;
        width: 100%;
    }

    .header-content {
        display: grid;
        /* Logo vlevo, Burger vpravo – výběr jazyka je v rozbalovacím menu */
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo burger"
            "social social";
        padding: 0.75rem 0.5rem 0.75rem 0.25rem;
        gap: 0.5rem;
        align-items: center;
    }

    /* Přiřazení prvků do gridu */
    .logo {
        grid-area: logo;
        justify-self: start;
    }

    .mobile-menu-toggle {
        grid-area: burger;
        justify-self: end;
    }

    .social-links {
        grid-area: social;
        margin: 0;
        padding-top: 0.25rem;
        border-top: 1px solid #f0f4f8; /* Jemné oddělení soc. ikon */
        width: 100%;
        justify-content: flex-start;
    }

    /* Fix loga, aby nerozbíjelo šířku displeje */
    .logo-img {
        height: auto;
        max-height: 45px; /* Fixní výška pro stabilitu */
        max-width: 160px;
        width: auto;
        object-fit: contain;
    }

    /* Oprava vysouvacího menu */
    .header-content > .main-nav {
        grid-column: 1 / -1; /* Roztáhne se přes celé řádky */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding-left: 0.25rem;
        box-sizing: border-box;
        background: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid #e2e8f0;
    }

    .header-content > .main-nav.active {
        max-height: 85vh; /* Limit výšky pro vnitřní scroll */
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

    .nav-list {
        padding: 1rem 1rem 1rem 0.5rem;
    }

    /* Výběr jazyka uvnitř rozbalovacího menu na mobilu */
    .main-nav .language-switcher {
        display: block;
        padding: 1rem 0.5rem 1rem 0.5rem;
        margin: 0 0.5rem 0 0.25rem;
        border-top: 1px solid #e2e8f0;
    }

    .main-nav .language-btn {
        width: 100%;
        justify-content: flex-start;
        height: 44px;
        min-width: 0;
        padding: 0 0.75rem;
        border-radius: 8px;
    }

    .main-nav .language-dropdown {
        position: static;
        margin-top: 0.5rem;
        margin-left: 0;
        min-width: 100%;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .main-nav .language-switcher.active .language-dropdown {
        max-height: 200px;
        overflow: visible;
    }

    /* Ikony sociálních sítí - kompaktnější pro mobil */
    .facebook-icon,
    .social-links .instagram-icon {
        width: 22px;
        height: 22px;
    }
}

/* Úprava pro velmi malé telefony */
@media (max-width: 480px) {
    .container {
        padding-left: max(0.2rem, env(safe-area-inset-left));
        padding-right: max(0.4rem, env(safe-area-inset-right));
    }

    .logo-img {
        max-height: 38px;
        max-width: 130px;
    }

    .header-content {
        padding: 0.5rem 0.4rem 0.5rem 0.2rem;
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 30px;
    height: 30px;
    min-width: 44px;
    min-height: 44px;
    padding: 7px;
    margin: -7px -7px -7px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #1a365d;
    border-radius: 3px;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    -webkit-transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    -webkit-transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigace */
.main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    -webkit-transition: max-height 0.3s ease;
}

.main-nav.active {
    max-height: 1000px;
}

.nav-list {
    list-style: none;
    padding: 1rem 0;
}

.nav-list > li {
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.nav-list > li:last-child {
    border-bottom: none;
}

.nav-list a {
    display: block;
    padding: 0.75rem 0;
    color: #1a365d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: #406bae;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    list-style: none;
    padding-left: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    -webkit-transition: max-height 0.3s ease;
}

.has-submenu.active .submenu {
    max-height: 500px;
}

.submenu li {
    border-bottom: none;
}

.submenu a {
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 0;
    color: rgba(26, 54, 93, 0.9);
}

.submenu a:hover {
    color: #406bae;
}

/* ============================================
   HERO BANNER – stejný design jako hlavní web SNN Praha
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

/* SNN banner – design hlavního webu organizace */
.hero-banner-snn {
    position: relative;
    padding: 4.75rem 0;
    min-height: 260px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner-snn .hero-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-color: #1a365d; /* fallback pokud obrázek nenahraje */
    z-index: 0;
}

/* Parallax efekt (volitelně) – pouze na desktopu, na mobilu způsobuje problémy */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    .hero-banner-snn .hero-banner-bg {
        background-attachment: fixed;
    }
}

.hero-banner-snn .hero-banner-overlay {
    position: absolute;
    inset: 0;
    background-color: #131313;
    opacity: 0.4;
    z-index: 1;
}

.hero-banner-snn .hero-banner-inner {
    position: relative;
    z-index: 2;
    padding: 2.5rem 4vw;
    text-align: left;
}

.hero-banner-snn .hero-content-centered {
    max-width: 800px;
    margin: 0 auto 0 0;
}

.hero-banner-snn .hero-title-snn {
    font-size: clamp(1.2rem, 1.2rem + ((1vw - 0.2rem) * 0.8), 1.75rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
    white-space: nowrap;
}

.hero-banner-snn .hero-subtitle-snn {
    font-size: clamp(0.75rem, 0.75rem + ((1vw - 0.2rem) * 0.2), 0.9rem);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero-banner-snn .btn-primary {
    background-color: #abb8c3;
    color: #131313;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.hero-banner-snn .btn-primary:hover {
    background-color: #ffe24a;
    color: #131313;
    box-shadow: 0 4px 12px rgba(255, 226, 74, 0.4);
}

@media (max-width: 768px) {
    .hero-banner-snn {
        padding: 2.5rem 0;
        min-height: 200px;
    }
    
    .hero-banner-snn .hero-banner-inner {
        padding: 1rem 4vw;
    }
    
    .hero-banner-snn .hero-title-snn {
        white-space: normal;
    }
    
    .hero-banner-snn .hero-content-centered {
        max-width: 100%;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   TLAČÍTKA
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #406bae;
    color: #fff;
}

.btn-primary:hover {
    background-color: #406bae;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 107, 174, 0.4);
    -webkit-box-shadow: 0 4px 12px rgba(64, 107, 174, 0.4);
}

/* ============================================
   HLAVNÍ OBSAH
   ============================================ */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Dlaždice (Tiles) */
.tiles-grid {
    display: grid;
    display: -ms-grid; /* IE10+ fallback */
    grid-template-columns: 1fr !important;
    -ms-grid-columns: 1fr; /* IE10+ fallback */
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

/* Fallback pro prohlížeče bez podpory gap */
@supports not (gap: 1.5rem) {
    .tiles-grid {
        margin: -0.75rem;
    }
    .tiles-grid > * {
        margin: 0.75rem;
    }
}

.tile {
    display: block;
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
}

.tile:hover {
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Touch zařízení - odstranění hover efektu */
@media (hover: none) {
    .tile:hover {
        transform: none;
        -webkit-transform: none;
        -moz-transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .tile:active {
        transform: scale(0.98);
        -webkit-transform: scale(0.98);
        -moz-transform: scale(0.98);
    }
}

.tile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: #fff;
    flex-shrink: 0;
}

.tile-icon svg {
    width: 50px;
    height: 50px;
    stroke: #fff;
    fill: none;
}

.tile-icon svg path[fill] {
    fill: #fff;
}

/* Barvy kruhových ikon podle pozice */
.tile-primary .tile-icon {
    background-color: #424f68;
}

.tile-secondary .tile-icon {
    background-color: #406bae;
}

.tile-accent .tile-icon {
    background-color: #6eafd8;
}

.tile-warning .tile-icon {
    background-color: #424f68;
}

.tile-info .tile-icon {
    background-color: #406bae;
}

.tile-success .tile-icon {
    background-color: #6eafd8;
}

.tile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a365d;
}

.tile-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-link {
    color: #406bae;
    font-weight: 600;
    display: inline-block;
}

.tile-primary {
    border-left: 4px solid #424f68;
}

.tile-secondary {
    border-left: 4px solid #406bae;
}

.tile-accent {
    border-left: 4px solid #6eafd8;
}

.tile-warning {
    border-left: 4px solid #424f68;
}

.tile-info {
    border-left: 4px solid #406bae;
}

.tile-success {
    border-left: 4px solid #6eafd8;
}

/* Sekce obsahu */
.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #406bae;
}

.content-box {
    background-color: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    line-height: 1.8;
}

.content-box p {
    margin-bottom: 1rem;
}

/* Aktuality na úvodní stránce – mřížka 5×2 dlaždic */
.news-tiles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 0;
}

.news-tiles-grid .news-tile {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 0;
    min-height: 180px;
    transition: box-shadow 0.2s ease;
}

.news-tiles-grid .news-tile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-tiles-grid .news-tile-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.news-tiles-grid .news-tile-title {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    flex-grow: 1;
}

.news-tiles-grid .news-tile-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    object-fit: cover;
    max-height: 100px;
}

.news-tiles-grid .news-tile-link {
    margin-top: auto;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.news-tiles-grid .news-tile-link a {
    color: #406bae;
    text-decoration: none;
}

.news-tiles-grid .news-tile-link a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .news-tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .news-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-tiles-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal – celý článek z úvodní stránky */
.news-article-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.news-article-modal-overlay.news-article-modal-open {
    opacity: 1;
    visibility: visible;
}

.news-article-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-article-modal-inner {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.news-article-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.news-article-modal-close:hover,
.news-article-modal-close:focus {
    background: rgba(0, 0, 0, 0.12);
    color: #000;
}

.news-article-modal-body {
    outline: none;
}

.news-article-modal-body .news-article-modal-content {
    font-size: 1rem;
    line-height: 1.6;
}

.news-article-modal-body .news-article-modal-content p {
    margin-bottom: 1rem;
}

.news-article-modal-body .news-article-modal-content p:last-child {
    margin-bottom: 0;
}

.news-article-modal-body .news-article-modal-content ul,
.news-article-modal-body .news-article-modal-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.news-article-modal-body .news-article-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Zvýraznění článku v archivu po přesměrování z modalu (Otevřít původní stránku) */
/* Obrázky v kartách článků v archivu – úměrná velikost (jako na úvodní stránce) */
.archive-article-card-img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

/* Logo Nadace ČEZ v archivu – úměrná velikost jako obrázky na úvodní stránce */
.archive-article-card-img--logo {
    max-height: 100px;
}

.archive-article-highlight {
    animation: archive-highlight 2s ease-out;
}

@keyframes archive-highlight {
    from { background-color: rgba(64, 107, 174, 0.15); }
    to { background-color: transparent; }
}

/* ============================================
   NOVINKY / ČLÁNKY
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.news-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    -webkit-transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.news-content {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
    }
    
    .news-title {
        font-size: 1.25rem;
    }
    
    .news-date {
        font-size: 0.85rem;
    }
}

.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    display: block;
}

.news-image {
    max-width: 800px;
    width: 100%;
    margin: 1.5rem auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   VIDEO KONTEJNER
   ============================================ */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding-bottom: 56.25%; /* 16:9 poměr */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ============================================
   LOGA SPONZORŮ A DÁRCŮ
   ============================================ */
.sponsors-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-container {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    padding: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-link:hover .sponsor-logo-container {
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #406bae;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.sponsor-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    width: 100%;
}

.sponsor-link:hover {
    color: #406bae;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .sponsor-logo-container {
        width: 160px;
        height: 100px;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

/* ============================================
   RESPONZIVNÍ TABULKY
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #1a365d;
    color: #fff;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

tbody tr:hover {
    background-color: #f7fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Mobilní zobrazení tabulek - převod na karty */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive td {
        display: block;
        width: 100%;
    }
    
    .table-responsive tr {
        margin-bottom: 1.5rem;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    .table-responsive td {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e2e8f0;
        text-align: left;
    }
    
    .table-responsive td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #1a365d;
        display: inline-block;
        width: 40%;
    }
    
    .table-responsive td:last-child {
        border-bottom: none;
    }
}

/* ============================================
   KONTAKTY S IKONAMI
   ============================================ */
.contact-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-position {
    font-weight: 600;
    color: #1a365d;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.contact-phone {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-email {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-email:empty {
    display: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-link {
    color: #1a365d;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.contact-link:hover {
    color: #406bae;
}

/* ============================================
   PATIČKA
   ============================================ */
.footer {
    background-color: #1a365d;
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-nadace-cez {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nadace-cez a {
    display: inline-block;
    text-decoration: none;
}

.footer-nadace-cez .footer-nadace-logo {
    display: block;
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
}

.footer-nadace-cez .footer-nadace-text {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #406bae;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #406bae;
}

.social-links-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.social-link-footer:hover {
    color: #406bae;
}

.social-link-footer .facebook-icon,
.social-link-footer .instagram-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   VYHLEDÁVÁNÍ
   ============================================ */
.search-box {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    -webkit-transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #406bae;
}

/* ============================================
   KOMENTÁŘE
   ============================================ */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #406bae;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: #1a365d;
    font-size: 1.1rem;
}

.comment-date {
    color: #718096;
    font-size: 0.9rem;
}

.comment-content {
    line-height: 1.8;
    color: #2d3748;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

/* ============================================
   POBOČKY
   ============================================ */
.branch-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.branch-section:last-child {
    border-bottom: none;
}

.branch-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #406bae;
}

.branch-info {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.branch-info p {
    margin-bottom: 0.75rem;
}

.branch-info p:last-child {
    margin-bottom: 0;
}

.branch-warning {
    background-color: #fff5e6;
    border-left: 4px solid #f6ad55;
}

/* Dlaždice poboček */
.branch-tile {
    background-color: #fff;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #406bae;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    color: #000;
    border: 2px solid transparent;
    display: block;
}

/* Když je dlaždice rozbalená, odstraníme aspect-ratio */
.branch-tile.active {
    display: flex;
    flex-direction: column;
}

.branch-tile-header {
    -webkit-tap-highlight-color: transparent;
}

.branch-tile:hover {
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (hover: none) {
    .branch-tile:hover {
        transform: none;
        -webkit-transform: none;
        -moz-transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .branch-tile:active {
        transform: scale(0.98);
        -webkit-transform: scale(0.98);
        -moz-transform: scale(0.98);
    }
}

.branch-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.branch-tile-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.branch-tile-toggle {
    font-size: 1.5rem;
    color: #406bae;
    font-weight: 700;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
    margin-left: 1rem;
}

.branch-tile.active .branch-tile-toggle {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

.branch-tile-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    -webkit-transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.branch-tile.active .branch-tile-content {
    max-height: 10000px;
    padding-top: 2rem;
    overflow: visible;
}

.branch-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Grid pro dlaždice poboček */
.branches-tiles-grid {
    display: grid;
    display: -ms-grid; /* IE10+ fallback */
    grid-template-columns: 1fr;
    -ms-grid-columns: 1fr; /* IE10+ fallback */
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@supports not (gap: 1.5rem) {
    .branches-tiles-grid {
        margin: -0.75rem;
    }
    .branches-tiles-grid > * {
        margin: 0.75rem;
    }
}


.contacts-grid {
    display: grid;
    display: -ms-grid; /* IE10+ fallback */
    grid-template-columns: 1fr;
    -ms-grid-columns: 1fr; /* IE10+ fallback */
    gap: 1.5rem;
    margin-top: 2rem;
}

@supports not (gap: 1.5rem) {
    .contacts-grid {
        margin: -0.75rem;
    }
    .contacts-grid > * {
        margin: 0.75rem;
    }
}

/* ============================================
   DOKUMENTY
   ============================================ */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.document-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1a365d;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: hidden;
}

.document-item h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
}

.document-item .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 100px;
}

/* Grid pro účetní uzávěrky - 5 sloupců */
.uzavěrky-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.uzavěrka-tile {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #406bae;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.uzavěrka-tile:hover {
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.uzavěrka-tile h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
}

.uzavěrka-tile .btn {
    width: 100%;
    max-width: 120px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Responsive design pro účetní uzávěrky */
@media (max-width: 768px) {
    .uzavěrky-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .uzavěrka-tile {
        padding: 0.75rem 0.5rem;
    }
    
    .uzavěrka-tile h3 {
        font-size: 1.1rem;
    }
    
    .uzavěrka-tile .btn {
        max-width: 100px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .uzavěrky-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .uzavěrky-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.6rem;
    }
}

@media (min-width: 1201px) {
    .uzavěrky-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.75rem;
    }
}

/* ============================================
   AKCE A GALERIE
   ============================================ */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #406bae;
}

.event-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.event-date {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-item p {
    line-height: 1.8;
    color: #2d3748;
}

.gallery-grid {
    display: grid;
    display: -ms-grid; /* IE10+ fallback */
    grid-template-columns: 1fr;
    -ms-grid-columns: 1fr; /* IE10+ fallback */
    gap: 1.5rem;
    margin-top: 2rem;
}

@supports not (gap: 1.5rem) {
    .gallery-grid {
        margin: -0.75rem;
    }
    .gallery-grid > * {
        margin: 0.75rem;
    }
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    -webkit-transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   RESPONZIVNÍ BREAKPOINTY
   ============================================ */

/* Tablety (768px a více) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: auto;
        max-height: none;
        overflow: visible;
    }
    
    .nav-list {
        display: flex;
        gap: 1.25rem;
        padding: 0;
        align-items: center;
    }
    
    .nav-list > li {
        border-bottom: none;
        position: relative;
    }
    
    .nav-list > li > a {
        padding: 0.5rem 0;
        font-size: 0.92rem;
        white-space: nowrap;
    }
    
    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        min-width: 200px;
        padding: 0.5rem 0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
        padding-left: 0;
        border: 1px solid #e2e8f0;
    }
    
    
    .has-submenu:hover .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .language-switcher {
        margin-left: 1rem;
        display: flex;
        align-items: center;
    }
    
    .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 160px;
    }
    
    .language-switcher:hover .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .submenu li {
        padding: 0 1rem;
    }
    
    .submenu a {
        padding: 0.5rem 0;
    }
    
    .tiles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        -ms-grid-columns: 1fr 1fr; /* IE10+ fallback */
    }
    
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .logo-img {
        height: 100px;
    }
    
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC (1024px a více) */
@media (min-width: 1024px) {
    .tiles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        -ms-grid-columns: 1fr 1fr 1fr; /* IE10+ fallback */
    }
    
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .contacts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .document-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .document-item h3 {
        font-size: 0.95rem;
    }
    
    .document-item .btn {
        width: auto;
        flex-shrink: 0;
    }
}

/* Velké obrazovky (1200px a více) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ============================================
   CROSS-BROWSER FIXES
   ============================================ */

/* Safari specifické opravy */
@supports (-webkit-appearance: none) {
    .tile {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Firefox specifické opravy */
@-moz-document url-prefix() {
    .table-wrapper {
        scrollbar-width: thin;
    }
}

/* Edge specifické opravy */
@supports (-ms-ime-align: auto) {
    .tiles-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr;
    }
    
    @media (min-width: 768px) {
        .tiles-grid {
            -ms-grid-columns: 1fr 1fr;
        }
    }
    
    @media (min-width: 1024px) {
        .tiles-grid {
            -ms-grid-columns: 1fr 1fr 1fr;
        }
    }
}

/* Velmi malé obrazovky (< 320px) */
@media (max-width: 319px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .logo-img {
        height: 70px;
        max-width: 250px;
    }
    
    .tile {
        padding: 1.2rem;
    }
    
    .tile-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
}


/* Print styly */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .tile,
    .event-item,
    .document-item {
        page-break-inside: avoid;
    }
}

