/* --- GLOBÁLNÍ PROMENNÉ --- */
ÿoo翖{
    --brand-blue: #0066cc;
    --brand-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}











/* --- REFERENCE MARQUEE (JEMNÝ & PLYNULÝ) --- */
.reference-marquee-section { 
    background-color: #0d0f11; 
    padding: 100px 0; 
    overflow: hidden; 
}

/* Základní kontejner pro sjednocení ?írky webu */
.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Hlavní flexbox pro hlavicku */
.section-header {
    display: flex;
    justify-content: space-between; /* Rozstrcí obsah do stran */
    align-items: flex-end;         /* Zarovná spodek textu na linku */
    gap: 40px;                     /* Mezera mezi nadpisem a textem */
    margin-bottom: 50px;
}

/* Levá strana - Nadpis */
.header-title-box {
    flex: 2; /* Zabere víc místa (cca 60%) */
}

.ref-badge {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--brand-blue);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
}

.main-title {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem); /* Responzivní velikost písma */
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
}

.light-accent {
    color: var(--brand-blue);
    font-weight: 300; /* Tenký styl pro eleganci */
}

/* Pravá strana - Popis */
.header-info-box {
    flex: 1; /* Zabere mín místa (cca 40%) */
    text-align: right;
}

.header-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.header-description span {
    display: block;
    margin-top: 5px;
}

/* RESPONZIVITA - Mobilní verze */
@media (max-width: 991px) {
    .section-header {
        flex-direction: column; /* Dají se pod sebe */
        align-items: flex-start; /* Zarovnají se doleva */
        gap: 20px;
    }

    .header-info-box {
        text-align: left; /* Na mobilu text doleva */
        border-left: 2px solid var(--brand-blue); /* Jemná linka pro o?ivení */
        padding-left: 15px;
    }
}

/* Hlavicka sekce */
.header-container { margin-bottom: 60px; }
.badge-blue {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--brand-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Marquee wrapper a animace */
.marquee-wrapper { 
    display: flex; 
    width: 100%; 
    overflow: hidden; 
    padding: 20px 0; 
    position: relative;
    /* Zmírnení okraju do ztracena */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content { 
    display: flex; 
    animation: scroll-left 60s linear infinite; /* Pomalej?í a plynulej?í */
}

.marquee-wrapper:hover .marquee-content { 
    animation-play-state: paused; /* Zastaví se pri najetí pro prectení */
}

.marquee-item { 
    flex: 0 0 auto; 
    width: 400px; /* Trochu ?ir?í pro eleganci */
    margin: 0 20px; 
}

/* Design karty */
.ref-mini-card { 
    position: relative; 
    height: 350px; 
    overflow: hidden; 
    border-radius: 24px; /* Hodne zaoblené rohy */
    background: #16181b; 
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ref-mini-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.8; 
    transition: 0.8s ease; 
}

.ref-mini-card:hover {
    transform: scale(1.02);
    border-color: rgba(0, 102, 204, 0.4);
}

.ref-mini-card:hover img { 
    opacity: 1; 
    transform: scale(1.1); 
}

/* Jemnej?í overlay */
.ref-mini-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(13, 15, 17, 0.9) 0%, rgba(13, 15, 17, 0.2) 60%, transparent 100%); 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 35px; 
    opacity: 0; 
    transition: 0.4s ease-in-out; 
    color: white;
}

.ref-mini-card:hover .ref-mini-overlay { opacity: 1; }

.ref-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    background: var(--brand-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ref-mini-overlay h5 { 
    font-family: 'Lexend', sans-serif; 
    margin-bottom: 8px; 
    font-size: 1.3rem; 
    font-weight: 600;
}

.ref-mini-overlay p { 
    font-size: 0.85rem; 
    margin: 0; 
    opacity: 0.8; 
    line-height: 1.5;
}

/* Klícové snímky pro nekonecný posun */
@keyframes scroll-left { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* --- SITE FOOTER --- */
.site-footer {
    background-color: #090b0c;
    padding: 80px 0 40px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Grid rozvr?ení */
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Rozmístí sloupce rovnomerne */
    gap: 40px;
}

/* Jednotlivé boxy */
.footer-brand-box { flex: 0 0 300px; }
.footer-nav-box { flex: 0 0 150px; }
.footer-contact-box { flex: 0 0 300px; }

/* Typografie */
.footer-logo {
    max-height: 45px;
    margin-bottom: 25px;
    display: block;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.footer-title {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Navigace v paticce */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--brand-blue);
}

/* Kontaktní list */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contact-list .label {
    color: var(--brand-blue);
    font-weight: 700;
    margin-right: 10px;
}

.footer-contact-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-list a:hover {
    color: var(--brand-blue);
}

/* Spodní li?ta */
.footer-copyright-bar {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--brand-blue);
    transform: translateY(-3px);
}

/* RESPONZIVITA */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand-box, .footer-nav-box, .footer-contact-box {
        flex: 1 1 100%;
    }
    
    .footer-logo { margin: 0 auto 25px; }
    
    .footer-copyright-bar {
        flex-direction: column;
        gap: 20px;
    }
}
/* --- VLASTNÍ LIGHTBOX (MODERNÍ) --- */
.custom-lightbox {
    display: none; /* Skrytý v základu */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 17, 19, 0.9); /* Velmi tmavá barva Toroni */
    backdrop-filter: blur(8px); /* Moderní rozostrení pozadí */
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    display: flex; /* Pou?ijeme flex pro dokonalé vycentrování */
    pointer-events: none; /* Aby neblokoval klikání, kdy? je opacity 0 */
}

/* Aktivní stav lightboxu (pridá? pres JS) */
.custom-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Kontejner pro obrázek a popisek */
.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-lightbox.active .lightbox-container {
    transform: scale(1);
}

/* Velký obrázek */
.lightbox-content {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Titulek pod obrázkem */
.lightbox-caption {
    color: #fff;
    padding: 20px 0;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'Lexend', sans-serif;
    text-align: center;
}

/* Zavírací tlacítko - moderní "X" */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: var(--brand-blue);
    transform: rotate(90deg);
}

/* Responzivita */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.5);
    }
}





@media (max-width: 768px) {
    .marquee-item { width: 280px; }
    .stat-number { font-size: 2.5rem; }
    
    .footer-minimal {
        padding: 60px 0 30px;
        text-align: center;
    }
    
    .footer-header::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
}

@media (max-width: 575px) {
    .navbar-logo-img { height: 35px; }
    .carousel-caption h1 { font-size: 2.5rem; }
}









/* --- GLOBÁLNÍ NASTAVENÍ --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, .navbar-brand, h2, h3, h4 {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
}


/* --- NAVIGACE ZÁKLAD --- */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.navbar i {color: rgba(255, 255, 255, 0.2);}
/* Stav pri scrollu */
.navbar.scrolled {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.navbar.scrolled i {color: black;}
.navbar > .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- LOGO (S PLYNULÝM PŘECHODEM) --- */
.navbar-brand {
    padding: 0; 
    margin-right: 1rem;
    text-decoration: none;
    position: relative; /* Důležité pro překrytí log */
    display: block;
    height: 50px; /* Výchozí výška */
    width: 150px;  /* Nastav přibližnou šířku tvého loga, aby drželo místo */
    transition: height 0.4s ease;
}
.navbar.scrolled .navbar-brand {
    height: 42px; /* Zmenšení kontejneru při scrollu */
}

.navbar-logo-img {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 100%; /* Vyplní výšku kontejneru .navbar-brand */
    width: auto;
    transition: opacity 0.4s ease; /* Zde se děje to kouzlo prolnutí */
}

/* Výchozí stav (nahoře) */
.logo-white {
    opacity: 1;
    z-index: 2;
}

.logo-black {
    opacity: 0;
    z-index: 1;
}

/* Stav při scrollu */
.navbar.scrolled .logo-white {
    opacity: 0;
}

.navbar.scrolled .logo-black {
    opacity: 1;
}



/* Menu polo?ky - spolecné */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* --- Menu položky a zbytek zůstává stejný --- */
.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'Lexend', sans-serif;
}
.navbar.scrolled .nav-link {
    color: #1a1a1a;
}

/* Tlacítko Poptávka */
.btn-poptavka-custom {
    background-color: var(--brand-blue);
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--brand-blue);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-poptavka-custom:hover {
    background-color: transparent;
    color: var(--brand-blue) !important;
}

/* Toggler (Hamburger) - Spolecné */
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    display: none; /* Uká?e se jen v media query */
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    /* Výchozí bílá ikonka */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Tmavá ikonka pri scrollu */
.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- DESKTOP SPECIFICKÉ (Hover efekt) --- */
@media (min-width: 992px) {
    .navbar-nav { flex-direction: row; }
    
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 1rem;
        background-color: var(--brand-blue);
        transition: width 0.3s ease;
    }
    .nav-link:hover::after {
        width: calc(100% - 2rem);
    }
}

/* --- RESPONZIVITA (SVETLÝ STYL) --- */
@media (max-width: 991px) {
    .navbar-toggler { 
        display: block; 
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 8px 12px;
        border-radius: 6px;
    }

    /* Kdy? scrollujeme, zmeníme barvu rámecku toggleru na tmavou */
    .navbar.scrolled .navbar-toggler {
        border-color: black;
        color: black;
    }

    .navbar-collapse { 
        display: none; 
        width: 100%; 
        background: #ffffff; 
        padding: 25px; 
        border-radius: 12px; 
        margin-top: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-collapse.show { 
        display: block; 
        animation: fadeInDown 0.3s ease;
    }

    .navbar-nav { 
        flex-direction: column; 
        align-items: flex-start; 
        width: 100%;
    }

    .nav-link { 
        color: #1a1d20 !important; 
        font-weight: 500;
        padding: 15px 0 !important;
        border-bottom: 1px solid #f0f0f0; 
        width: 100%; 
        transition: all 0.2s ease;
    }

    .navbar-nav .nav-item:last-of-type .nav-link {
        border-bottom: none;
    }

    .nav-link:hover {
        color: var(--brand-blue) !important;
        padding-left: 5px !important;
    }

    .btn-poptavka-custom { 
        margin: 20px 0 5px 0 !important; 
        width: 100%; 
        text-align: center; 
        display: block;
        padding: 14px;
        border-radius: 8px;
        color: white !important;
    }

    /* Reset loga pro mobilní menu, pokud není scrolled */
    .navbar:not(.scrolled) .navbar-logo-img { 
        filter: none !important; 
    }
}

/* Animace */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- ZÁKLADNÍ MRÍ?KA (NÁHRADA ZA BOOTSTRAP) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.g-0 {
    margin-right: 0;
    margin-left: 0;
}

.g-0 > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.align-items-center {
    align-items: center;
}

.col-lg-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .order-lg-1 { order: 1; }
    .order-lg-2 { order: 2; }
    .text-lg-end { text-align: right; }
}

/* ============================================================
   1. HLAVNÍ STRUKTURA CAROUSELU
   ============================================================ */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

#toroniCarousel {
    height: 100%;
    width: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- JEDNOTLIVÉ SLAJDY (ČISTÝ PLYNULÝ CROSSFADE + OPRAVA VIDITELNOSTI) --- */
.carousel-item {
    display: block; /* Všechny jsou přítomné v DOMu */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    
    /* ZÁKLADNÍ STAV - NEAKTIVNÍ SLAJD */
    z-index: 1; /* Leží dole v hromádce */
    opacity: 0; /* Je průhledný */
    visibility: hidden; /* Pro jistotu pro čtečky */
    
    /* KLÍČOVÁ OPRAVA: Neaktivní slajd nepropouští kliknutí a nepřekrývá texty */
    pointer-events: none; 
    
    /* Plynulost prolnutí */
    transition: opacity 1.2s ease-in-out, visibility 1.2s, z-index 1.2s;
}

.carousel-item.active {
    /* STAV - AKTIVNÍ SLAJD */
    opacity: 1; /* Je viditelný */
    visibility: visible;
    z-index: 5; /* Vyskočí na vršek hromádky fotek */
    
    /* KLÍČOVÁ OPRAVA: Aktivní slajd normálně funguje */
    pointer-events: auto; 
}

/* --- POZADÍ (STATICKÉ A STABILNÍ) --- */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* --- TEXTY (OPRAVENO: MUSÍ BÝT NAD POZADÍM) --- */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* KLÍČOVÁ OPRAVA: Texty musí být nad pozadím a overlayem */
    z-index: 10; 
    
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 1100px;
}

.carousel-caption h1, 
.carousel-caption p, 
.caption-btns {
    opacity: 0;
    transform: translateY(30px);
}

/* Spuštění animací s jemnou brzdou */
.carousel-item.active h1 { 
    animation: textUpFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards; 
}
.carousel-item.active p { 
    animation: textUpFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards; 
}
.carousel-item.active .caption-btns { 
    animation: textUpFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards; 
}

@keyframes textUpFade {
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ============================================================
   3. OVLÁDACÍ PRVKY (ŠIPKY A TEČKY)
   ============================================================ */
.carousel-control-prev, 
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control-prev span, 
.carousel-control-next span {
    font-size: 3.5rem;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.carousel-control-prev { left: 25px; }
.carousel-control-next { right: 25px; }

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 12px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: #0066cc;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

/* ============================================================
   4. ADMIN REŽIM (KOMPLETNÍ A FUNKČNÍ)
   ============================================================ */



/* 1. Necháme události myši propadnout skrz overlay a caption na pozadí */
.overlay, 
.carousel-caption {
    pointer-events: none;
}

/* 2. Ale u textů a tlačítek, které CHCEME editovat, je zase zapneme */
.admin-editable,
.caption-btns,
.slide-admin-toolbar {
    pointer-events: auto;
}

/* 3. Zajistíme, aby nápověda nebránila klikání */
.upload-hint {
    pointer-events: none;
}

/* Vynucení viditelnosti textů v carouselu (přebíjí animace v carousel.js/css) */
body.edit-mode-active .carousel-item .carousel-caption h1,
body.edit-mode-active .carousel-item .carousel-caption p,
body.edit-mode-active .carousel-item .caption-btns {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: block !important;
}

/* Sjednocený Admin Toolbar */
.slide-admin-toolbar {
    display: none; /* Skryto v běžném režimu */
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85); /* Tmavý skleněný efekt */
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    flex-direction: column;
    gap: 12px;
    width: 210px;
    pointer-events: auto !important;
}

/* Zobrazení pouze v edit-mode */
.edit-mode-active .slide-admin-toolbar {
    display: flex;
}

/* Položky nápovědy */
.admin-help-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.help-item {
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.help-item i {
    width: 20px;
    color: #007bff; /* Modrá jako akcent */
    font-size: 13px;
    margin-right: 8px;
    text-align: center;
}

.help-item strong {
    color: #007bff;
    margin-right: 4px;
}

/* Oddělovač */
.admin-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* Tlačítko pro smazání */
.btn-tool-delete {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    width: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-tool-delete:hover {
    background: #dc3545;
    color: #fff;
}

/* Responzivní režim pro mobilní zařízení (pod 767px) */
@media (max-width: 767px) {
    .slide-admin-toolbar {
        /* Přesuneme do levého dolního rohu */
        top: auto;        /* Zrušíme horní pozici */
        right: auto;      /* Zrušíme pravou pozici */
        bottom: 20px;     /* 20px od spodu */
        left: 20px;       /* 20px od leva */
        
        /* Zmenšíme kontejner na minimum */
        width: auto;
        padding: 6px;
        gap: 0;
        border-radius: 50px; /* Uděláme ho kulatý pro hezčí vzhled */
        background: rgba(220, 53, 69, 0.9); /* Na mobilu mu dáme rovnou červený nádech */
        border: 1px solid #dc3545;
    }

    /* Skryjeme vše kromě tlačítka pro smazání */
    .admin-help-section, 
    .admin-divider {
        display: none !important;
    }

    .btn-tool-delete {
        width: 44px;      /* Ideální velikost pro dotyk (tap target) */
        height: 44px;
        padding: 0;
        border: none;     /* Rámeček už má hlavní kontejner */
        background: transparent;
        border-radius: 50%;
        font-size: 0;     /* Skryje text "Smazat" */
    }

    /* Ikona koše uprostřed */
    .btn-tool-delete i {
        font-size: 18px;
        margin: 0;
        color: #fff;      /* Bílá ikona na červeném pozadí */
    }
}

/* --- KOMPLETNÍ STYL PRO GLOBAL ADMIN BAR --- */

#global-admin-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    padding: 8px;
    
    /* Moderní skleněný vzhled */
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Animace roztažení */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    max-width: 1200px;
}

/* --- STAV PŘI ZAVŘENÉ LIŠTĚ (KULIČKA) --- */
#global-admin-bar.admin-bar-hidden {
    max-width: 48px;
    padding: 8px;
    border-radius: 50%;
    justify-content: center;
    cursor: pointer;
    width: 40px;
}

/* Zajištění klikatelnosti celé plochy kuličky */
#global-admin-bar.admin-bar-hidden #admin-bar-toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- OVLÁDACÍ TLAČÍTKO (OZUBENÉ KOLO) --- */
#admin-bar-toggle {
    background: none !important;
    border: none !important;
    color: white !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px !important;
    flex-shrink: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

#admin-bar-toggle i {
    display: block; /* Pro plynulou rotaci */
}

/* Animace točení při hoveru na bar */
#global-admin-bar:hover #admin-bar-toggle {
    color: #007bff !important;
    transform: rotate(180deg);
}

/* Reset pozice v otevřeném stavu */
#global-admin-bar:not(.admin-bar-hidden) #admin-bar-toggle {
    position: relative;
    transform: none;
}

/* --- VNITŘNÍ OBSAH A JEHO MIZENÍ --- */
#admin-bar-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 10px 0 5px;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

#global-admin-bar.admin-bar-hidden #admin-bar-content {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    width: 0;
}

/* --- STYLY PRVKŮ UVNITŘ (TVÉ PŮVODNÍ) --- */

body.edit-mode-active #global-admin-bar {
    border-color: #007bff;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.3);
    background: rgba(0, 10, 20, 0.9);
}

.admin-bar-left {
    display: flex;
    align-items: center;
}

.admin-status-badge {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

body.edit-mode-active .admin-status-badge {
    background: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.admin-bar-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 5px;
}

#global-admin-bar button:not(#admin-bar-toggle) {
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-btn-mode { background: rgba(255, 255, 255, 0.05); }
.admin-btn-mode:hover { background: rgba(255, 255, 255, 0.15); }
body.edit-mode-active .admin-btn-mode { background: #fff !important; color: #000 !important; }

.admin-btn-add { background: #0066cc; }
.admin-btn-add:hover { background: #0052a3; transform: translateY(-3px); }

.admin-btn-save { background: #28a745; }
.admin-btn-save:hover { background: #218838; transform: translateY(-3px); }
.admin-btn-save:disabled { background: #444 !important; opacity: 0.6; cursor: not-allowed; transform: none !important; }

.admin-bar-right { display: flex; align-items: center; }
.admin-btn-logout {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    padding: 5px 10px;
    transition: color 0.2s;
    text-decoration: none;
}
.admin-btn-logout:hover { color: #ff4d4d; }

/* --- RESPONZIVITA PRO MOBILNÍ ZAŘÍZENÍ --- */

@media (max-width: 768px) {
    /* 1. ROZTAŽENÍ PŘES CELOU ŠÍŘKU S MINIMÁLNÍM OKRAJEM */
    #global-admin-bar:not(.admin-bar-hidden) {
        left: 5px;
        right: 5px;
        bottom: 5px;
        width: auto;
        max-width: calc(100% - 10px);
        padding: 4px; /* Tenčí padding pro více vnitřního místa */
        border-radius: 12px;
        gap: 4px;
    }

    #global-admin-bar.admin-bar-hidden {
        max-width: 48px;
        height: 48px;
        right: 15px;
        bottom: 15px;
        border-radius: 50%;
    }

    #admin-bar-content {
        display: flex !important; /* Vynutit flex */
        width: 100% !important;
        flex: 1; /* Nechat obsah vyplnit zbytek místa vedle toggle tlačítka */
        gap: 5px;
        padding: 0 5px;
        justify-content: space-between;
        align-items: center;
    }

    #global-admin-bar button span {
        display: none; /* Text pryč */
    }

    /* 2. HLAVNÍ AKČNÍ TLAČÍTKA (Expandují nejvíce) */
    #global-admin-bar button:not(#admin-bar-toggle) {
        flex: 2;             /* Tato tlačítka budou širší */
        height: 48px;        /* Vyšší pro lepší trefení se prstem */
        padding: 0 !important;
        border-radius: 8px;
        justify-content: center;
        min-width: 0;
    }

    /* 2. Zrušme floaty nebo staré display blocky z desktopu */
    .admin-bar-left, .admin-bar-center, .admin-bar-right {
        display: flex;
        flex: 1; /* Každá sekce dostane prostor */
        justify-content: center;
        gap: 5px;
    }
    
    /* Center sekce s hlavními tlačítky by měla mít nejvíc místa */
    .admin-bar-center {
        flex: 3; 
    }
    
    /* 3. FIXNÍ IKONY (Kraje a doplňky) */
    #admin-bar-toggle {
        width: 44px;
        flex: 0 0 44px;      /* Čtvercová dlaždice na začátku */
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px;
    }

    .admin-status-badge {
        flex: 0 0 44px;      /* Čtvercová dlaždice pro status */
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 8px;
    }

    .admin-bar-right {
        flex: 0 0 44px;      /* Čtvercová dlaždice pro logout */
        justify-content: center;
    }
    
    .admin-btn-logout {
        width: 44px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin: 0;
    }

    /* 4. Oprava pro tlačítko Uložit, aby nebylo utopené */
    .admin-btn-save {
        flex: 2 !important; /* Dáme mu ještě o kousek víc než ostatním */
    }

    .admin-divider {
        display: none;
    }
}

/* Extra malá zařízení (telefony na výšku) */
@media (max-width: 480px) {
    #global-admin-bar:not(.admin-bar-hidden) {
        right: 10px;
        left: 10px; /* Na úplně malých mobilech se roztáhne přes celou šířku */
        width: auto;
        justify-content: space-around;
        border-radius: 20px;
    }
}

/* Nápověda ovládání - umístění vpravo nahoře */
.upload-hint {
    display: none; /* Výchozí stav: skryto */
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: left;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 123, 255, 0.4);
    z-index: 100;
    pointer-events: none; /* Aby se dalo kliknout "skrz" na pozadí */
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Zobrazíme ji pouze v edit-modu, když myš najede na plochu slajdu */
.edit-mode-active .slide-bg:hover .upload-hint {
    display: block;
}

/* Ikony v nápovědě */
.upload-hint i {
    width: 20px;
    color: #007bff;
    margin-right: 8px;
    text-align: center;
}

.upload-hint strong {
    color: #007bff;
    margin-right: 5px;
}

.edit-mode-active .slide-bg:hover .upload-hint {
    display: block;
}

/* Kurzory pro intuitivní ovládání */
.edit-mode-active .slide-bg {
    cursor: crosshair; /* Křížek naznačuje možnost interakce */
}

.edit-mode-active .slide-bg:active {
    cursor: grabbing; /* Při držení tlačítka */
}

/* ============================================================
   5. TLAČÍTKA A RESPONSIVITA
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-primary { background: #0066cc; color: #fff; border: 2px solid #0066cc; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid #fff; }

.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

@media (max-width: 768px) {
    .carousel-control-prev, 
    .carousel-control-next { display: none; }
    .carousel-caption h1 { font-size: 2.2rem; }
    .caption-btns { flex-direction: column; width: 100%; gap: 10px; }
}

/* --- SEKCE O NÁS (ŠACHOVNICE) --- */

.badge-blue {
    display: inline-block;
    background-color: rgba(0, 102, 204, 0.08);
    color: var(--brand-blue);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 102, 204, 0.15);
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.display-5.fw-bold {
    font-family: 'Lexend', sans-serif;
    font-size: 3rem;
    color: var(--text-dark);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.about-chess {
    background-color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.chess-row {
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

/* Úprava wrapperu (nyní je to tag <a>) */
.chess-img-wrapper {
    position: relative;
    display: block; /* Důležité pro tag <a> */
    overflow: hidden;
    height: 480px;
    cursor: pointer;
    text-decoration: none;
}

.chess-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chess-img-wrapper:hover img {
    transform: scale(1.08);
}

.chess-number {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--brand-blue);
    color: #fff;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 3;
    font-family: 'Lexend', sans-serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Overlay s ikonou lupy / uploadu */
.chess-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 102, 204, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.chess-img-wrapper:hover .chess-overlay {
    opacity: 1;
}

.chess-overlay i {
    color: #fff;
    font-size: 3rem;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chess-img-wrapper:hover .chess-overlay i {
    transform: translateY(0);
}

/* --- ADMIN SPECIFICKÉ CSS --- */
/* Pokud je aktivní edit-mode, změníme ikonu na upload */
body.edit-mode-active .chess-overlay i::before {
    content: "\f0ee"; /* FontAwesome ikona 'cloud-upload-alt' */
}

body.edit-mode-active .chess-img-wrapper {
    outline: 2px dashed var(--brand-blue);
    outline-offset: -10px;
}

/* --- OBSAH ŠACHOVNICE --- */
.chess-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 80px;
}

.chess-divider {
    width: 60px;
    height: 4px;
    background: var(--brand-blue);
    margin-bottom: 25px;
}

.text-lg-end .chess-divider {
    margin-left: auto;
    margin-right: 0;
}

.chess-content h3 {
    font-family: 'Lexend', sans-serif;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.chess-content p.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.btn-minimal-blue {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    margin-top: 2rem;
    width: fit-content;
}

.btn-minimal-blue i {
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.btn-minimal-blue:hover {
    color: var(--text-dark);
}

.btn-minimal-blue:hover i {
    transform: translateX(8px);
}

/* --- RESPONZIVITA --- */
@media (max-width: 1199px) {
    .chess-content {
        padding: 50px;
    }
}

@media (max-width: 991px) {
    .chess-img-wrapper {
        height: 400px;
    }
    
    .chess-content {
        padding: 60px 30px !important;
        text-align: center !important;
    }
    
    .chess-divider {
        margin: 0 auto 25px !important;
    }
    
    .btn-minimal-blue {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575px) {
    .display-5.fw-bold {
        font-size: 2.25rem;
    }
    
    .chess-img-wrapper {
        height: 300px;
    }
    
    .about-chess {
        padding: 60px 0;
    }
}





/* --- STATS BAR (JEMNÝ STYL) --- */
.stats-bar { 
    background-color: #0d0f11; /* O odstín tmav?í pro hloubku */
    border-top: 1px solid rgba(255,255,255,0.05); /* Velmi jemná horní linka */
    border-bottom: 1px solid rgba(0, 102, 204, 0.3); /* Méne agresivní modrá linka */
    color: white; 
    padding: 100px 0; 
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-column {
    flex: 1;
    position: relative;
    padding: 0 40px;
    text-align: center;
}

/* Je?te decentnej?í oddelovace */
@media (min-width: 769px) {
    .stat-column:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background: rgba(255,255,255,0.07);
    }
}

/* Ikony v krou?ku nebo jemnej?í barve */
.stat-icon {
    font-size: 1.5rem; /* Zmen?ení */
    color: var(--brand-blue);
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 204, 0.1); /* Jemný podbarvený kruh */
    border-radius: 50%;
    transition: 0.3s ease;
}

/* Císla - ubrali jsme na tlou?tce a velikosti */
.stat-number { 
    font-size: 2.8rem; /* Men?í a elegantnej?í */
    font-weight: 600; /* Méne tucné ne? 800 */
    line-height: 1; 
    display: block; 
    color: #fff; /* Císla bílá pro cistotu */
    font-family: 'Lexend', sans-serif;
    margin-bottom: 10px;
}

/* Text pod císlem */
.stat-text { 
    font-size: 0.75rem; /* Men?í font */
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    font-weight: 500;
    color: var(--brand-blue); /* Modrá barva pro popisky */
    opacity: 0.8;
}

/* Efekt pri hoveru na celý sloupec */
.stat-column:hover .stat-icon {
    background: var(--brand-blue);
    color: #fff;
    transform: translateY(-5px);
}

/* RESPONZIVITA */
@media (max-width: 768px) {
    .stat-column {
        flex: 0 0 100%;
        padding: 30px 0;
    }
    .stat-number { font-size: 2.5rem; }
}

/* --- REFERENCE MARQUEE (JEMNÝ & PLYNULÝ) --- */
.reference-marquee-section { 
    background-color: #0d0f11; 
    padding: 100px 0; 
    overflow: hidden; 
}

/* Základní kontejner pro sjednocení ?írky webu */
.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Hlavní flexbox pro hlavicku */
.section-header {
    display: flex;
    justify-content: space-between; /* Rozstrcí obsah do stran */
    align-items: flex-end;         /* Zarovná spodek textu na linku */
    gap: 40px;                     /* Mezera mezi nadpisem a textem */
    margin-bottom: 50px;
}

/* Levá strana - Nadpis */
.header-title-box {
    flex: 2; /* Zabere víc místa (cca 60%) */
}

.ref-badge {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--brand-blue);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
}

.main-title {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem); /* Responzivní velikost písma */
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
}

.light-accent {
    color: var(--brand-blue);
    font-weight: 300; /* Tenký styl pro eleganci */
}

/* Pravá strana - Popis */
.header-info-box {
    flex: 1; /* Zabere mín místa (cca 40%) */
    text-align: right;
}

.header-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.header-description span {
    display: block;
    margin-top: 5px;
}

/* RESPONZIVITA - Mobilní verze */
@media (max-width: 991px) {
    .section-header {
        flex-direction: column; /* Dají se pod sebe */
        align-items: flex-start; /* Zarovnají se doleva */
        gap: 20px;
    }

    .header-info-box {
        text-align: left; /* Na mobilu text doleva */
        border-left: 2px solid var(--brand-blue); /* Jemná linka pro o?ivení */
        padding-left: 15px;
    }
}

/* Hlavicka sekce */
.header-container { margin-bottom: 60px; }
.badge-blue {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--brand-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Marquee wrapper a animace */
.marquee-wrapper { 
    display: flex; 
    width: 100%; 
    overflow: hidden; 
    padding: 20px 0; 
    position: relative;
    /* Zmírnení okraju do ztracena */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content { 
    display: flex; 
    animation: scroll-left 60s linear infinite; /* Pomalej?í a plynulej?í */
}

.marquee-wrapper:hover .marquee-content { 
    animation-play-state: paused; /* Zastaví se pri najetí pro prectení */
}

.marquee-item { 
    flex: 0 0 auto; 
    width: 400px; /* Trochu ?ir?í pro eleganci */
    margin: 0 20px; 
}

/* Design karty */
.ref-mini-card { 
    position: relative; 
    height: 350px; 
    overflow: hidden; 
    border-radius: 24px; /* Hodne zaoblené rohy */
    background: #16181b; 
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ref-mini-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.8; 
    transition: 0.8s ease; 
}

.ref-mini-card:hover {
    transform: scale(1.02);
    border-color: rgba(0, 102, 204, 0.4);
}

.ref-mini-card:hover img { 
    opacity: 1; 
    transform: scale(1.1); 
}

/* Jemnej?í overlay */
.ref-mini-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(13, 15, 17, 0.9) 0%, rgba(13, 15, 17, 0.2) 60%, transparent 100%); 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 35px; 
    opacity: 0; 
    transition: 0.4s ease-in-out; 
    color: white;
}

.ref-mini-card:hover .ref-mini-overlay { opacity: 1; }

.ref-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    background: var(--brand-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ref-mini-overlay h5 { 
    font-family: 'Lexend', sans-serif; 
    margin-bottom: 8px; 
    font-size: 1.3rem; 
    font-weight: 600;
}

.ref-mini-overlay p { 
    font-size: 0.85rem; 
    margin: 0; 
    opacity: 0.8; 
    line-height: 1.5;
}

/* Klícové snímky pro nekonecný posun */
@keyframes scroll-left { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* --- SITE FOOTER --- */
.site-footer {
    background-color: #090b0c;
    padding: 80px 0 40px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Grid rozvr?ení */
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Rozmístí sloupce rovnomerne */
    gap: 40px;
}

/* Jednotlivé boxy */
.footer-brand-box { flex: 0 0 300px; }
.footer-nav-box { flex: 0 0 150px; }
.footer-contact-box { flex: 0 0 300px; }

/* Typografie */
.footer-logo {
    max-height: 45px;
    margin-bottom: 25px;
    display: block;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.footer-title {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Navigace v paticce */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--brand-blue);
}

/* Kontaktní list */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contact-list .label {
    color: var(--brand-blue);
    font-weight: 700;
    margin-right: 10px;
}

.footer-contact-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-list a:hover {
    color: var(--brand-blue);
}

/* Spodní li?ta */
.footer-copyright-bar {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--brand-blue);
    transform: translateY(-3px);
}

/* RESPONZIVITA */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand-box, .footer-nav-box, .footer-contact-box {
        flex: 1 1 100%;
    }
    
    .footer-logo { margin: 0 auto 25px; }
    
    .footer-copyright-bar {
        flex-direction: column;
        gap: 20px;
    }
}
/* --- VLASTNÍ LIGHTBOX (MODERNÍ) --- */
.custom-lightbox {
    display: none; /* Skrytý v základu */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 17, 19, 0.9); /* Velmi tmavá barva Toroni */
    backdrop-filter: blur(8px); /* Moderní rozostrení pozadí */
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    display: flex; /* Pou?ijeme flex pro dokonalé vycentrování */
    pointer-events: none; /* Aby neblokoval klikání, kdy? je opacity 0 */
}

/* Aktivní stav lightboxu (pridá? pres JS) */
.custom-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Kontejner pro obrázek a popisek */
.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-lightbox.active .lightbox-container {
    transform: scale(1);
}

/* Velký obrázek */
.lightbox-content {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Titulek pod obrázkem */
.lightbox-caption {
    color: #fff;
    padding: 20px 0;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'Lexend', sans-serif;
    text-align: center;
}

/* Zavírací tlacítko - moderní "X" */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: var(--brand-blue);
    transform: rotate(90deg);
}

/* Responzivita */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.5);
    }
}





@media (max-width: 768px) {
    .marquee-item { width: 280px; }
    .stat-number { font-size: 2.5rem; }
    
    .footer-minimal {
        padding: 60px 0 30px;
        text-align: center;
    }
    
    .footer-header::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
}

@media (max-width: 575px) {
    .navbar-logo-img { height: 35px; }
    .carousel-caption h1 { font-size: 2.5rem; }
}


/* --- SERVIS PAGE STYLES --- */
:root {
    --srv-blue: #007bff;
    --srv-dark: #1a1a1a;
    --srv-gray: #f8f9fa;
    --srv-text: #4a4a4a;
}

.srv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero sekce */
.srv-hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.srv-title-main {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    margin-bottom: 10px;
}

.srv-breadcrumb {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Hlavní layout */
.srv-content-section {
    padding: 100px 0;
    background: #fff;
}

.srv-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: flex-start;
}

.srv-badge {
    color: var(--srv-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.srv-heading-secondary {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
    color: var(--srv-dark);
}

.srv-accent { color: var(--srv-blue); }

.srv-line {
    width: 60px;
    height: 4px;
    background: var(--srv-blue);
    margin-bottom: 30px;
}

.srv-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--srv-text);
    text-align: justify;
}

/* Karty slu?eb */
.srv-feature-box {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.srv-feature-card {
    background: var(--srv-gray);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.srv-feature-card:hover { transform: translateY(-5px); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.srv-icon {
    font-size: 1.8rem;
    color: var(--srv-blue);
}

.srv-feature-info h3 { font-size: 1.1rem; margin: 0; font-weight: 700; }
.srv-feature-info p { font-size: 0.9rem; margin: 5px 0 0; color: #777; }

/* Obrázek a Experience tag */
.srv-main-img-wrapper { position: relative; }
.srv-main-img { width: 100%; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

.srv-experience-tag {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--srv-blue);
    color: #fff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,123,255,0.3);
}

.srv-exp-num { font-size: 2.2rem; font-weight: 800; display: block; line-height: 1; }
.srv-exp-text { font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }

/* Galerie */
.srv-gallery-row { margin-top: 100px; border-top: 1px solid #eee; padding-top: 60px; }
.srv-gallery-title { font-size: 1.8rem; margin-bottom: 30px; font-weight: 700; text-align: center; }

.srv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.srv-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    height: 250px;
}

.srv-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.srv-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,123,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: 0.3s;
}

.srv-gallery-item:hover img { transform: scale(1.1); }
.srv-gallery-item:hover .srv-gallery-overlay { opacity: 1; }

/* Responzivita */
@media (max-width: 992px) {
    .srv-grid { grid-template-columns: 1fr; gap: 50px; }
    .srv-image-col { order: -1; }
    .srv-gallery-grid { grid-template-columns: 1fr 1fr; }
    .srv-title-main { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    .srv-feature-box { grid-template-columns: 1fr; }
    .srv-gallery-grid { grid-template-columns: 1fr; }
    .srv-experience-tag { left: 10px; bottom: 10px; padding: 15px; }
}

/* --- ZÁVLAHY PAGE SPECIFIC --- */
.zv-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.zv-hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.zv-title-main { font-size: 3rem; font-weight: 800; margin-bottom: 10px; }
.zv-breadcrumb { font-size: 0.85rem; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; }

.zv-content-section { padding: 90px 0; background: #fff; }

.zv-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 70px; 
    align-items: center; 
}

.zv-badge { color: #007bff; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
.zv-heading-secondary { font-size: 2.3rem; margin: 10px 0; color: #111; }
.zv-accent { color: #007bff; }
.zv-line { width: 50px; height: 4px; background: #007bff; margin-bottom: 25px; }
.zv-description { font-size: 1.05rem; line-height: 1.7; color: #444; margin-bottom: 30px; text-align: justify;}

.zv-feature-row { display: flex; gap: 30px; }
.zv-feature-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #222; }
.zv-feature-item i { color: #007bff; font-size: 1.2rem; }

/* Image Card */
.zv-img-card { position: relative; }
.zv-main-img { width: 100%; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.zv-floating-box {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #111;
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}
.zv-floating-box strong { display: block; color: #007bff; font-size: 1.1rem; }

/* Galerie se 4 obrázky */
.zv-gallery-wrapper { margin-top: 80px; text-align: center; }
.zv-gallery-heading { margin-bottom: 40px; font-weight: 700; }

.zv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.zv-gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    display: block;
}

.zv-gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.zv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 123, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: 0.3s;
}

.zv-gallery-card:hover img { transform: scale(1.1); }
.zv-gallery-card:hover .zv-overlay { opacity: 1; }

/* Responzivita */
@media (max-width: 992px) {
    .zv-grid { grid-template-columns: 1fr; }
    .zv-image-col { order: -1; }
    .zv-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .zv-gallery-grid { grid-template-columns: 1fr; }
    .zv-title-main { font-size: 2.2rem; }
}

/* --- VODNÍ ZDROJE PAGE SPECIFIC --- */
.vz-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.vz-hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.vz-title-main { font-size: 3rem; font-weight: 800; margin-bottom: 10px; font-family: 'Lexend', sans-serif; }
.vz-breadcrumb { font-size: 0.85rem; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; }

.vz-content-section { padding: 90px 0; background: #fff; }

.vz-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 70px; 
    align-items: flex-start; 
}

.vz-badge { color: #007bff; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
.vz-heading-secondary { font-size: 2.3rem; margin: 10px 0; color: #111; }
.vz-accent { color: #007bff; }
.vz-line { width: 50px; height: 4px; background: #007bff; margin-bottom: 25px; }
.vz-description { font-size: 1.05rem; line-height: 1.8; color: #444; margin-bottom: 30px; text-align: justify;}

/* --- INFO BOX GRID --- */
.vz-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.vz-info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vz-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #007bff; /* Modrá barva Toroni */
}

/* Ikona v krou?ku */
.vz-icon-wrapper {
    background: rgba(0, 123, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.vz-icon-wrapper i {
    color: #007bff;
    font-size: 1.4rem;
}

/* Texty uvnitr karty */
.vz-text-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.vz-text-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Responzivita pro mobily */
@media (max-width: 576px) {
    .vz-info-grid {
        grid-template-columns: 1fr;
    }
}
/* Galerie / Obrázek */
.vz-image-col { position: relative; }
.vz-gallery-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.vz-main-img { width: 100%; display: block; transition: 0.5s ease; }

.vz-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: 0.3s ease;
    gap: 10px;
}
.vz-overlay i { font-size: 2rem; }

.vz-gallery-card:hover .vz-overlay { opacity: 1; }
.vz-gallery-card:hover .vz-main-img { transform: scale(1.05); }

.vz-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #111;
    color: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.vz-experience-badge strong { display: block; font-size: 1.5rem; color: #007bff; line-height: 1; }
.vz-experience-badge span { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; }



    :root {
        --brand-blue: #007bff; /* Pokud máš v CSS jinou modrou, uprav zde */
        --brand-dark: #1a1a1a;
        --error-red: #dc3545;
    }

    .login-section { 
        padding: 100px 0; 
        background: #f4f7f6; 
        min-height: 60vh;
        display: flex; 
        align-items: center;
        justify-content: center; 
    }

    .login-card { 
        background: white; 
        padding: 50px 40px; 
        border-radius: 16px; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
        width: 100%; 
        max-width: 420px;
        transition: transform 0.3s ease;
    }

    .login-card:hover {
        transform: translateY(-5px);
    }

    .login-card h2 { 
        font-family: 'Lexend', sans-serif; 
        margin-bottom: 10px; 
        color: var(--brand-dark); 
        font-size: 1.8rem; 
        text-align: center;
    }

    .login-subtitle {
        text-align: center;
        color: #777;
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .form-group { 
        margin-bottom: 22px; 
        position: relative;
    }

    .form-group label { 
        display: block; 
        margin-bottom: 8px; 
        font-weight: 600; 
        font-size: 0.85rem; 
        color: #444; 
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Ikony uvnitř polí */
    .input-wrapper {
        position: relative;
    }

    .input-wrapper i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        transition: color 0.3s;
    }

    .form-control { 
        width: 100%; 
        padding: 14px 15px 14px 45px; /* Větší padding vlevo kvůli ikoně */
        border: 2px solid #eee; 
        border-radius: 8px; 
        font-family: 'Inter', sans-serif;
        box-sizing: border-box;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: #fafafa;
    }

    .form-control:focus { 
        border-color: var(--brand-blue); 
        background: white;
        outline: none; 
        box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
    }

    .form-control:focus + i {
        color: var(--brand-blue);
    }

    .btn-login { 
        width: 100%; 
        background: var(--brand-blue); 
        color: white; 
        border: none; 
        padding: 16px; 
        border-radius: 8px; 
        font-weight: 700; 
        cursor: pointer; 
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    }

    .btn-login:hover { 
        background: #0056b3; 
        box-shadow: 0 6px 20px rgba(0,123,255,0.4);
        transform: scale(1.02);
    }

    .btn-login:active {
        transform: scale(0.98);
    }

    .error-msg { 
        background: #fff5f5; 
        color: var(--error-red); 
        padding: 15px; 
        border-radius: 8px; 
        margin-bottom: 25px; 
        font-size: 0.9rem; 
        border: 1px solid #fed7d7;
        display: flex;
        align-items: center;
        gap: 10px;
    }

/* --- RESPONSIVE LOGIN --- */

/* Pro tablety a menší desktopy */
@media (max-width: 991px) {
    .login-section {
        padding: 60px 20px;
    }
    
    .vz-hero {
        padding: 100px 0 60px; /* Menší hero sekce na mobilu */
    }

    .vz-title-main {
        font-size: 2.2rem;
    }
}

/* Pro mobilní telefony */
@media (max-width: 576px) {
    .login-section {
        padding: 40px 15px;
        background: #ffffff; /* Na mobilu často vypadá lépe čistě bílé pozadí */
    }

    .login-card {
        padding: 30px 20px; /* Menší vnitřní okraje, aby zbylo místo na text */
        box-shadow: none;   /* Na úplně malých mobilech stíny někdy ruší, volitelné */
        border: 1px solid #eee;
    }

    .login-card h2 {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .form-control {
        font-size: 16px; /* Prevence automatického zoomování na iPhonech při kliku do pole */
        padding: 12px 15px 12px 40px;
    }

    .btn-login {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    /* Úprava hero sekce pro mobil */
    .vz-hero {
        text-align: center;
    }
    
    .vz-breadcrumb {
        font-size: 0.9rem;
    }
}

/* Animace pro plynulé načtení karty (volitelné) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}
/* Responzivita */
@media (max-width: 992px) {
    .vz-grid { grid-template-columns: 1fr; gap: 50px; }
    .vz-image-col { order: -1; }
    .vz-experience-badge { right: 10px; bottom: 10px; }
}
/* --- KONTAKT PAGE SPECIFIC --- */
.kon-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.kon-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    height: 400px;
}

.kon-title-main { font-size: 3rem; font-weight: 800; font-family: 'Lexend', sans-serif; }
.kon-breadcrumb { font-size: 0.85rem; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; }

.kon-content-section { padding: 80px 0; background: #fff; }

.kon-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px; 
    margin-bottom: 80px;
}

.kon-badge { color: #007bff; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
.kon-heading-secondary { font-size: 2.3rem; margin: 10px 0; color: #111; }
.kon-accent { color: #007bff; }
.kon-line { width: 50px; height: 4px; background: #007bff; margin-bottom: 25px; }
.kon-description { font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 40px; }

/* Kontaktní karty */
.kon-cards { display: grid; gap: 20px; }
.kon-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.kon-card:hover { transform: translateX(10px); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.kon-card-icon {
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.kon-card-text h3 { font-size: 0.9rem; text-transform: uppercase; margin: 0; color: #777; letter-spacing: 1px; }
.kon-card-text a, .kon-card-text span { font-size: 1.2rem; font-weight: 700; color: #111; text-decoration: none; }

/* Bocní box s fakturací */
.kon-billing-box {
    background: #111;
    color: #fff;
    padding: 40px;
    border-radius: 25px;
    position: sticky;
    top: 100px;
}
.kon-billing-box h3 { color: #007bff; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px; }
.kon-billing-list, .kon-hours-list { list-style: none; padding: 0; margin: 0; }
.kon-billing-list li { margin-bottom: 8px; opacity: 0.9; }
.kon-hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 25px 0; }
.kon-hours-list li { display: flex; justify-content: space-between; margin-bottom: 10px; }

/* Mapa */
.kon-map-wrapper { margin-top: 40px; }
.kon-map-title { text-align: center; margin-bottom: 30px; font-weight: 700; }
.kon-map-container { border-radius: 25px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

/* Responzivita */
@media (max-width: 992px) {
    .kon-grid { grid-template-columns: 1fr; }
    .kon-billing-box { position: static; }
}

/* --- KONTAKTNÍ FORMULÁR --- */
.kon-form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    margin-bottom: 80px;
    border: 1px solid #f0f0f0;
}

.kon-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.kon-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.kon-form-header p {
    color: #777;
}

.kon-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kon-form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kon-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kon-form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    padding-left: 5px;
}

.kon-form-group input, 
.kon-form-group select, 
.kon-form-group textarea {
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.kon-form-group input:focus, 
.kon-form-group select:focus, 
.kon-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,123,255,0.1);
}

.kon-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.kon-gdpr-info {
    font-size: 0.8rem;
    color: #999;
    max-width: 300px;
}

.kon-submit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kon-submit-btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,123,255,0.2);
}

/* Responzivita */
@media (max-width: 768px) {
    .kon-form-wrapper { padding: 30px 20px; }
    .kon-form-group-row { grid-template-columns: 1fr; }
    .kon-form-footer { flex-direction: column; gap: 20px; text-align: center; }
}



/* Styl pro admin oznámení (Toast) */
#admin-toast {
    position: fixed;
    bottom: -100px; /* Schovaný pod okrajem */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 37, 41, 0.95); /* Tmavá barva jako zbytek adminu */
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none; /* Aby neblokoval klikání pod sebou */
}

/* Třída, kterou JavaScript přidá pro zobrazení */
#admin-toast.show {
    bottom: 30px; /* Vyjede nahoru */
}

/* Dekorativní ikonka před textem (volitelné) */
#admin-toast::before {
    content: '\f05a'; /* FontAwesome ikona 'info-circle' */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #3b82f6; /* Modrá barva Toroni */
}

/* Pokud je v textu slovo AKTIVNÍ, můžeme ho barevně zvýraznit (přes JS nebo selektor) */
/* Toto je jen bonus, pokud bys chtěl barvu podle stavu */
#admin-toast {
    border-left: 4px solid #3b82f6;
}

/* ============================================================
   5. RESPONZIVNÍ ÚPRAVY PRO OBRÁZEK A TEXT (DO 978PX)
   ============================================================ */
@media (max-width: 978px) {
    
    /* Zajištění stabilní výšky carouselu na menších zařízeních */
    .hero-slider {
        height: 80vh !important; /* Fixní výška, aby fotka vynikla */
        min-height: 480px; /* Aby se na výšku vešel text a tlačítka */
    }

    /* --- KLÍČOVÁ OPRAVA PRO OBRÁZEK POZADÍ --- */
    .carousel-item .slide-bg {
        /* Vynutíme, aby obrázek pokryl celou plochu bez deformace */
        background-size: cover !important; 
        
        /* Zajistíme, aby střed obrázku byl vždy viditelný */
        background-position: center center !important; 
        
        /* Resetujeme případné zoomy z admin módu, aby fotka byla stabilní */
        transform: none !important; 
        
        /* Ujistíme se, že zabírá 100% výšky a šířky rodiče */
        width: 100% !important;
        height: 100% !important;
        inset: 0 !important;
    }

    /* --- ÚPRAVA TEXTŮ (Aby nepřekrývaly fotku) --- */
    .carousel-caption {
        width: 85%;
        /* Posuneme text trochu níž, aby vynikla horní část fotky */
        top: 55%; 
        transform: translate(-50%, -50%);
        padding: 0 10px;
    }

    .carousel-caption h1 {
        font-size: 2rem !important; /* Kompaktnější nadpis */
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .carousel-caption p {
        font-size: 1rem !important; /* Čitelný text */
        margin-bottom: 20px;
        /* Omezíme text na max 3 řádky, aby nezakryl celou fotku */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Zmenšíme tlačítka, aby nezabírala moc místa */
    .caption-btns .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* Úprava pro velmi malé telefony (na výšku) */
@media (max-width: 480px) and (orientation: portrait) {
    .hero-slider {
        height: 70vh !important; /* Na výšku displeje zmenšíme slider */
    }
    
    .carousel-caption h1 {
        font-size: 1.7rem !important;
    }
}

/* --- MODÁLNÍ OKNO PRO GALERII --- */
.admin-modal {
    display: none; /* Skryté defaultně */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.admin-modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid #333;
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
    color: #007bff;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- DROPZONA (Místo pro nahrávání) --- */
#drop-zone {
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: #222;
    cursor: pointer;
    margin: 20px 0;
}

#drop-zone:hover, #drop-zone.dragover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

#drop-zone i {
    font-size: 40px;
    color: #666;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

#drop-zone:hover i {
    transform: translateY(-5px);
    color: #007bff;
}

/* --- NÁHLEDY OBRÁZKŮ (Preview) --- */
#preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 5px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #444;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    cursor: pointer;
}

/* --- PATIČKA MODÁLNÍHO OKNA --- */
.modal-footer {
    display: flex;
    justify-content: flex-end; /* Tlačítka vpravo */
    align-items: center;
    gap: 12px;                /* Mezera mezi tlačítky */
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333; /* Oddělovací linka */
}

/* Tlačítko Zrušit */
.btn-close-modal {
    background-color: transparent;
    color: #bbb;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background-color: #333;
    color: #fff;
    border-color: #666;
}

/* Tlačítko Nahrát vše (přebírá tvůj styl .admin-btn-save) */
/* Pokud .admin-btn-save ještě nemáš definované, tady je verze pro modál: */
.modal-footer .admin-btn-save {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.modal-footer .admin-btn-save:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.modal-footer .admin-btn-save:active {
    transform: translateY(0);
}

.modal-footer .admin-btn-save i {
    font-size: 13px;
}

/* Horní lišta a vyhledávání */
.search-box .form-control {
    border-radius: 20px;
    padding: 8px 20px;
    border: 1px solid #ced4da;
    box-shadow: none;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

/* Styl karty a tabulky */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
    border-bottom: 2px solid #f1f1f1;
}

/* Badge pro klíč (ID elementu) */
.key-badge {
    background-color: #f0f4f8;
    color: #4a6fa5;
    padding: 5px 10px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #dbe3eb;
}

/* Editovatelná textarea */
textarea.content-edit {
    width: 100%;
    min-height: 40px;
    border: 1px solid transparent;
    background-color: #fafafa;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #333;
    resize: none; /* Skryje ruční tahání za roh */
    /*! overflow: hidden; */ /* Skryje scrollbar při autoResize */
    transition: all 0.2s ease;
    display: block;
    line-height: 1.6;
}

textarea.content-edit:hover {
    background-color: #f1f1f1;
}

textarea.content-edit:focus {
    background-color: #ffffff;
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.15);
}

/* Vizuální indikace změny (třída přidávaná přes JS) */
textarea.border-primary {
    border: 1px solid #0d6efd !important;
}

/* Status "Uloženo" */
.status-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #198754;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.status-save.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- KOMPLETNÍ RESPONSIVITA PRO ADMIN_CONTENT_LIST --- */

/* 1. Základní nastavení pro desktop (nad 768px) */
@media (min-width: 769px) {
    .table-container {
        display: table;
        width: 100%;
    }
}

/* 2. Mobilní zobrazení (pod 768px) */
@media (max-width: 768px) {
    /* Upravíme horní lištu, aby byla pod sebou */
    .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px;
    }

    .search-box {
        width: 100% !important;
    }

    /* Transformace tabulky na karty */
    .table-container {
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .table {
        display: block;
    }

    /* Skryjeme hlavičku tabulky (na mobilu nedává smysl) */
    .table thead {
        display: none;
    }

    .table tbody, 
    .table tr, 
    .table td {
        display: block;
        width: 100% !important;
    }

    /* Každý řádek vypadá jako samostatná karta */
    .table tr {
        background: #ffffff;
        margin-bottom: 15px;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border: 1px solid #e0e0e0;
    }

    .table td {
        padding: 8px 0 !important;
        border: none !important;
    }

    /* Přidáme popisky před data, aby uživatel věděl, co upravuje */
    .table td:nth-child(1):before {
        content: "Klíč:";
        display: block;
        font-size: 0.75rem;
        color: #888;
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .table td:nth-child(2):before {
        content: "Obsah:";
        display: block;
        font-size: 0.75rem;
        color: #888;
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    /* Úprava textarey na mobilu pro lepší ovládání prstem */
    textarea.content-edit {
        font-size: 16px !important; /* Prevence automatického zoomu na iOS */
        padding: 12px !important;
        background-color: #f9f9f9;
        border: 1px solid #ddd !important;
    }

    /* Status uložení na mobilu */
    .status-save {
        display: flex;
        justify-content: center;
        background: #f0fdf4;
        padding: 8px;
        border-radius: 6px;
        margin-top: 10px;
        width: 100%;
    }

    /* Tlačítka v horní liště */
    .btn-sm {
        padding: 10px;
        font-size: 14px;
        text-align: center;
    }
}

/* 3. Extra malé displeje (telefony na výšku) */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}

/* Tlačítko Zpět / Dashboard */
.btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Mezera mezi ikonou a textem */
    padding: 8px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #ffffff;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-outline-secondary i {
    font-size: 0.75rem; /* Ikona o něco menší než text */
    transition: transform 0.2s ease;
}

/* Efekt při najetí myší */
.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #212529;
    border-color: #adb5bd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    text-decoration: none;
}

/* Malý detail: posun ikony doleva při hoveru */
.btn-outline-secondary:hover i {
    transform: translateX(-3px);
}

/* Aktivní stav (při kliknutí) */
.btn-outline-secondary:active {
    background-color: #e9ecef;
    transform: translateY(1px);
    box-shadow: none;
}

/* Responzivní úprava pro mobil */
@media (max-width: 768px) {
    .btn-outline-secondary {
        width: 100%; /* Na mobilu se roztáhne na celou šířku */
        justify-content: center;
        padding: 12px;
        margin-bottom: 10px;
    }
}

.admin-container { padding: 40px 0; background: #f4f7f6; min-height: 80vh; }
        .admin-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
            gap: 25px; 
            margin-top: 30px; 
        }
        .admin-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            border: 1px solid #eee;
        }
        .admin-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,123,255,0.15);
            border-color: #007bff;
        }
        .admin-card i {
            font-size: 3rem;
            color: #007bff;
            margin-bottom: 15px;
        }
        .admin-card h3 { margin: 10px 0; font-family: 'Lexend', sans-serif; }
        .admin-card p { color: #666; font-size: 0.9rem; }
        
        .welcome-bar {
            background: white;
            padding: 20px 30px;
            border-radius: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        }
        .status-dot {
            height: 10px;
            width: 10px;
            background-color: #28a745;
            border-radius: 50%;
            display: inline-block;
            margin-right: 5px;
        }

/* --- WELCOME BAR & LOGOUT BUTTON --- */

.welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eef0f2;
}

/* Status dot - pulzující zelená tečka */
.status-dot {
    height: 10px;
    width: 10px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse-green 2s infinite;
    vertical-align: middle;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Text v welcome baru */
.welcome-bar div {
    font-size: 0.95rem;
    color: #495057;
}

.welcome-bar strong {
    color: #212529;
}

/* Tlačítko odhlásit (outline danger) */
.btn-outline-danger {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #dc3545;
    border-radius: 6px;
    background-color: transparent;
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.2);
    text-decoration: none;
}

.btn-outline-danger:active {
    transform: translateY(1px);
}

/* Responzivita pro mobil */
@media (max-width: 768px) {
    .welcome-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px;
    }

    .btn-outline-danger {
        width: 100%;
        justify-content: center;
    }
}

/* --- ADMIN SETTINGS: COMPLETE RESET & VARIABLES --- */
:root {
    --primary-color: #1e293b;
    --accent-color: #3b82f6;
    --danger-color: #e11d48;
    --bg-body: #fcfcfd;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 16px;
}

/* --- HERO SECTION --- */
.as-hero {
    background-image: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.as-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.as-hero-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.as-hero-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2rem;
    color: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.as-hero-title {
    font-family: 'Lexend', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: -1px;
}

.as-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.as-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.as-breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* --- CONTENT WRAPPER --- */
.as-main-wrapper {
    background-color: var(--bg-body);
    padding: 40px 0;
    min-height: 100vh;
}

.as-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    transition: color 0.2s;
}

.as-btn-back:hover { color: var(--primary-color); }

/* --- LAYOUT GRID --- */
.as-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

/* --- CARDS --- */
.as-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.as-card-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.as-card-title i { color: var(--accent-color); }

/* --- FORM ELEMENTS --- */
.as-form-group { margin-bottom: 20px; }

.as-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.as-input, .as-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: all 0.2s;
}

.as-input:focus, .as-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.as-hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 25px 0;
}

/* --- BUTTONS --- */
.as-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.as-btn-primary { background: var(--primary-color); color: white; }
.as-btn-primary:hover { background: #0f172a; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.as-btn-danger {
    background: #fff1f2;
    color: var(--danger-color);
    border: 1px solid #fecdd3;
}
.as-btn-danger:hover { background: var(--danger-color); color: white; transform: translateY(-2px); }

/* --- ALERTS --- */
.as-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    border-left: 5px solid transparent;
}

.as-alert-success { background: #dcfce7; color: #166534; border-left-color: #22c55e; }
.as-alert-danger { background: #fee2e2; color: #991b1b; border-left-color: #ef4444; }

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .as-grid { grid-template-columns: 1fr; }
    .as-hero-title { font-size: 1.8rem; }
    .as-hero-content { flex-direction: column; text-align: center; }
    .as-breadcrumb { justify-content: center; }
}

/* --- HLAVNÍ KONTEJNER NÁPOVĚDY --- */
.help-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #444;
}

/* --- NAVIGACE ZPĚT --- */
.back-nav {
    margin-bottom: 30px;
}

.back-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 8px;
}

.back-nav a:hover {
    color: #007bff;
    background: #e6f0ff;
    transform: translateX(-5px);
}

/* --- JEDNOTLIVÉ SEKCE (KARTY) --- */
.help-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    border-left: 6px solid #007bff; /* Modrý akcent */
    transition: transform 0.3s ease;
}

.help-section:hover {
    transform: translateY(-2px);
}

.help-section h2 {
    font-family: 'Lexend', sans-serif;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
}

.help-section h2 i {
    color: #007bff;
    font-size: 1.3rem;
}

.help-section p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.help-section ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.help-section ul li {
    margin-bottom: 12px;
    position: relative;
    list-style: none;
}

.help-section ul li::before {
    content: "\f00c"; /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -25px;
    color: #28a745;
    font-size: 0.8rem;
}

/* --- MŘÍŽKA PRO ZKRATKY (SHORTCUTS) --- */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.shortcut-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #efefef;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-item strong {
    display: block;
    color: #007bff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shortcut-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* --- KLÁVESY (KBD) --- */
kbd {
    background-color: #eee;
    border-radius: 5px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 2px 0 rgba(0,0,0,0.2), 0 0 0 1px #fff inset;
    color: #333;
    display: inline-block;
    font-family: inherit;
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    white-space: nowrap;
    margin: 0 2px;
    vertical-align: middle;
}

/* --- RESPONZIVITA --- */
@media (max-width: 768px) {
    .help-section {
        padding: 25px;
    }
    
    .help-section h2 {
        font-size: 1.3rem;
    }

    .shortcut-grid {
        grid-template-columns: 1fr;
    }
}

/* --- BARVY PRO RŮZNÉ SEKCE --- */
.help-section.gallery { border-left-color: #ffc107; }
.help-section.gallery h2 i { color: #ffc107; }

.help-section.slider { border-left-color: #28a745; }
.help-section.slider h2 i { color: #28a745; }