:root {
    --primary-blue: #007bff;
    --primary-dark: #0b2e59;
    --tkc-blue: #247dda;
    --text-dark: #333;
    --text-gray: #666;
    --bg-light: #f8f9fa;
    --footer-bg: rgba(24, 24, 25, 1);
    --footer-text: #b0b0b0;
    --white: #fff;
}

/* --- OPRAVA SCROLLOVÁNÍ DO BOKU --- */
html,
body {
    width: 100%;
    max-width: 100vw;
    /* Maximální šířka je šířka okna */
    overflow-x: hidden;
    /* Cokoliv přesáhne do boku, bude oříznuto */
    position: relative;
}

/* Reset a základ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    padding-top: 116px;
    /* Kompenzace pro fixní hlavičku */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.blue-text {
    color: var(--tkc-blue);
}

.mt-large {
    margin-top: 80px;
}

.divider-line {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 60px 0;
}

/* --- Top Bar --- */
.top-bar {
    background: #000;
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-links-left a,
.top-links-right a {
    margin-right: 15px;
    color: #ccc;
    display: inline-block;
}

.top-links-left a:hover,
.top-links-right a:hover {
    color: var(--white);
}

.top-links-left i,
.top-links-right i {
    margin-right: 5px;
}

.eshop-btn {
    color: var(--white) !important;
    font-weight: bold;
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 36px;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 14px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--tkc-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 5px 0;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    padding-top: 60px;
}

.footer-cta-container {
    position: relative;
    height: 0;
}

.skewed-phone-box {
    background: var(--white);
    position: absolute;
    top: -100px;
    left: 15px;
    padding: 20px 40px;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0% 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    min-width: 320px;
}

.box-content {
    text-align: left;
}

.small-text {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.phone-big {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
    line-height: 1;
}

.footer-content {
    padding-bottom: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
}

.col ul li {
    margin-bottom: 10px;
}

.col a {
    color: var(--footer-text);
    font-size: 14px;
}

.col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-info p,
.hours {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-line {
    border: 0;
    border-top: 1px solid #333;
    margin: 30px 0;
}

.sponsors-title {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 16px;
}

.sponsors-img img {
    max-height: 60px;
    opacity: 0.8;
}

.footer-bottom {
    background: #111;
    padding: 15px 0;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #666;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scroll-top {
    width: 30px;
    height: 30px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Mobilní menu */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .top-bar {
        display: none;
    }

    .navbar {
        top: 0 !important;
        height: 70px;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        transition: 0.3s;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .skewed-phone-box {
        position: static;
        clip-path: none;
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
        background: #f0f0f0;
    }
}

/* --- PATIČKA DLE OBRÁZKU --- */
.main-footer {
    background-color: #181819;
    /* Tmavá barva z obrázku */
    color: #b0b0b0;
    position: relative;
    padding-top: 80px;
    /* Více místa nahoře pro box */
    font-size: 14px;
}

/* --- Zkosený "Call to Action" Box --- */
.footer-cta-container {
    position: relative;
    height: 0;
    /* Kontejner musí být nad obsahem, ale nebrat výšku */
    z-index: 20;
}

.skewed-phone-box {
    background: #fff;
    position: absolute;
    top: -130px;
    /* Posuneme ho výrazně nahoru */
    left: 15px;
    padding: 25px 60px 25px 40px;
    /* Větší padding vpravo kvůli zkosení */
    /* Zkosení pravé strany */
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0% 100%);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    min-width: 380px;
}

.box-content {
    display: flex;
    flex-direction: column;
}

.small-text {
    font-weight: 800;
    color: #333;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.phone-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--tkc-blue);
    /* Použijeme vaši modrou */
    text-decoration: none;
    line-height: 1;
}

/* --- Sloupce patičky --- */
.footer-content {
    padding-bottom: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 sloupce */
    gap: 30px;
    margin-top: 20px;
}

.col h4 {
    color: #fff;
    /* Bílé nadpisy */
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.col ul {
    list-style: none;
}

.col ul li {
    margin-bottom: 8px;
}

.col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s;
}

.col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Specifika pro sloupec Kontakt */
.contact-info {
    line-height: 1.6;
}

.address-block,
.hours-block,
.legal-block {
    margin-bottom: 15px;
}

.legal-block a {
    display: block;
    color: #888;
    font-size: 13px;
}

/* --- Linka a Partneři --- */
.footer-line {
    border: 0;
    border-top: 1px solid #333;
    margin: 40px 0 30px 0;
}

.sponsors {
    width: 100%;
    margin-bottom: 20px;
}

.sponsors-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 18px;
    /* Zvětšeno písmo nadpisu */
    text-align: left;
}

.sponsors-img {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Zarovná obrázek na střed kontejneru */
}

.sponsors-img img {
    width: 100%;
    /* Roztáhne obrázek na plnou šířku kontejneru */
    height: auto;
    /* Výška se automaticky dopočítá (aby nebyl deformovaný) */
    max-height: none;
    /* DŮLEŽITÉ: Odstraní limit, který obrázek zmenšoval */
    object-fit: contain;
    display: block;
    opacity: 1;
    /* Plná viditelnost */
}

/* --- Spodní copyright lišta --- */
.footer-bottom {
    background-color: #111;
    /* Ještě tmavší */
    padding: 20px 0;
    border-top: 1px solid #222;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.scroll-top {
    width: 35px;
    height: 35px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.scroll-top:hover {
    background: var(--tkc-blue);
}

/* --- Responsivita Patičky --- */
@media (max-width: 991px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .skewed-phone-box {
        position: static;
        /* Zrušíme absolutní pozici */
        clip-path: none;
        /* Zrušíme zkosení */
        width: 100%;
        margin-bottom: 30px;
        background: #f4f4f4;
        text-align: center;
        border-radius: 8px;
    }

    .main-footer {
        padding-top: 40px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sponsors-img {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* ======================================================
   FINÁLNÍ CSS PRO MOBIL (Vložte na konec styleGlobal.css)
   ====================================================== */

@media (max-width: 991px) {

    /* 1. ZÁKLAD - Vynutit nulovou mezeru nahoře */
    html,
    body {
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden;
    }

    /* 2. TOP BAR - Přilepit úplně nahoru */
    .top-bar {
        display: block !important;
        position: relative;
        margin-top: 0 !important;
        /* Důležité */
        top: 0 !important;
        z-index: 1002;
        /* ... zbytek stylů ... */
    }

    .top-links-left,
    .top-links-right {
        display: flex;
        gap: 10px;
        align-items: center;
        margin: 0;
    }

    /* SKRYTÍ NEDŮLEŽITÝCH VĚCÍ V LIŠTĚ */
    /* Skryje email */
    .top-links-left a[href^="mailto"],
    .top-links-right a[href^="mailto"] {
        display: none !important;
    }

    /* Skryje telefony v liště (protože jsou v patičce) */
    .top-links-left a[href^="tel"],
    .top-links-right a[href^="tel"] {
        display: none !important;
    }

    /* Skryje TeamViewer */
    .top-links-left a[href*="teamviewer"],
    .top-links-right a[href*="teamviewer"] {
        display: none !important;
    }

    .top-links-right a,
    .top-links-left a {
        margin: 0;
        white-space: nowrap;
    }

    /* --- 2. MENU (Překryje všechno) --- */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1001;
    }

    /* 3. MENU (Musí překrýt i Top Bar) */
    .nav-menu {
        position: fixed;
        top: 0;
        /* Začíná úplně nahoře */
        left: -100%;
        width: 100%;
        height: 100vh;
        /* Celá výška */
        background: #fff;

        /* ZVÝŠENÝ INDEX - Aby překrylo černou lištu (která má 1002) */
        z-index: 9999;

        padding-top: 80px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
        transition: left 0.3s ease;
    }

    /* Hamburger musí být ještě výš, aby šlo menu zavřít */
    .hamburger {
        position: relative;
        z-index: 10000;
        /* Nejvyšší */
    }

    .nav-menu.active {
        left: 0;
        /* Vysunutí */
    }

    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.3rem;
        display: block;
        padding: 10px;
    }

    /* --- 3. PATIČKA A TELEFONNÍ BOX (PILULKA) --- */

    /* Vytvoříme místo nad patičkou pro box */
    .main-footer {
        margin-top: 60px;
        padding-top: 0;
        position: relative;
    }

    /* Kontejner pro box - absolutně ho napozicujeme na hranu patičky */
    .footer-cta-container {
        position: absolute;
        top: -40px;
        /* Vysuneme ho nahoru nad patičku */
        left: 0;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        z-index: 10;
        margin: 0;
        padding: 0 15px;
        /* Ochrana okrajů */
        box-sizing: border-box;
    }

    .skewed-phone-box {
        position: relative;
        transform: none;
        clip-path: none;
        top: auto;
        left: auto;

        /* VZHLED PILULKY */
        width: 100%;
        max-width: 350px;
        /* Aby nebyl moc široký */
        background: #f4f4f4;
        border-radius: 50px;
        /* Kulaté rohy */
        border: 4px solid #fff;
        /* Bílý obrys */

        padding: 20px;
        text-align: center;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        /* Stín nahoru */
    }

    .box-content {
        align-items: center;
        justify-content: center;
    }

    .phone-big {
        font-size: 24px;
        line-height: 1.2;
        color: var(--tkc-blue);
        white-space: nowrap;
        /* Aby se číslo nezalomilo */
        display: block;
    }

    /* Posuneme obsah patičky dolů, aby nebyl schovaný pod boxem */
    .footer-content {
        padding-top: 60px;
        /* Odstup od boxu uvnitř patičky */
        text-align: center;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    /* --- FINÁLNÍ RESPONZIVITA (styleGlobal.css) --- */

    @media (max-width: 991px) {

        /* --- 1. TOP BAR (Černá lišta) - OPRAVA PRO VŠECHNY STRÁNKY --- */
        .top-bar {
            display: block !important;
            position: relative;
            background: #000;
            padding: 8px 0;
            z-index: 1002;
            width: 100%;
            font-size: 10px;
            /* Malé písmo */
            line-height: 1.2;
        }

        .top-bar-inner {
            display: flex;
            justify-content: center;
            flex-wrap: nowrap !important;
            /* ZÁKAZ ZALOMENÍ */
            gap: 10px;
            width: 100%;
            overflow: hidden;
            /* Co se nevejde, to se schová */
        }

        /* Sloučíme obsah a schováme nedůležité */
        .top-links-left,
        .top-links-right {
            display: flex !important;
            flex-wrap: nowrap !important;
            gap: 10px;
            margin: 0;
            padding: 0;
            align-items: center;
        }

        /* NA MOBILU SCHOVÁME IKONY (i) VŠUDE - aby se vešel text */
        .top-bar i {
            display: none !important;
        }

        /* Schováme specifické odkazy, aby zbylo místo */
        /* Schováme: Facebook, Telefon, Email, TeamViewer */
        .top-bar a[href*="facebook"],
        .top-bar a[href^="tel"],
        .top-bar a[href^="mailto"],
        .top-bar a[href*="teamviewer"] {
            display: none !important;
        }

        /* Zobrazíme jen zbytek (Mapa, Klient, E-shop) */
        .top-bar a {
            color: #ccc;
            margin: 0;
            white-space: nowrap;
            text-transform: uppercase;
            font-weight: 600;
            padding: 0 5px;
        }

        /* 2. MENU (Navbar) */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 1001;
        }

        .hamburger {
            z-index: 9999;
            position: relative;
        }

        /* 3. VYSOUVACÍ MENU */
        .nav-menu {
            position: fixed;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100vh;
            background: #fff;
            padding-top: 80px;
            flex-direction: column;
            z-index: 9998;
            transition: left 0.3s ease;
        }

        .nav-menu.active {
            left: 0;
        }

        /* 4. PATIČKA A BOX */
        .main-footer {
            margin-top: 60px;
            padding-top: 0;
            position: relative;
        }

        .footer-cta-container {
            position: absolute;
            top: -30px;
            width: 100%;
            display: flex;
            justify-content: center;
            z-index: 10;
            pointer-events: none;
        }

        .skewed-phone-box {
            pointer-events: auto;
            background: #f4f4f4;
            border-radius: 50px;
            border: 4px solid #fff;
            padding: 15px 30px;
            text-align: center;
            box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
            width: auto;
            max-width: 90%;
        }

        .phone-big {
            font-size: 22px;
            color: var(--tkc-blue);
            margin: 0;
            line-height: 1;
        }

        .small-text {
            display: none;
        }

        .footer-content {
            padding-top: 50px;
            text-align: center;
        }

        .footer-columns {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }
}

/* --- STYL PRO MODÁLNÍ OKNO (POP-UP) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Ztmavnutí pozadí */
    z-index: 9999;
    /* Aby to bylo úplně nahoře */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    /* Jemné rozostření pozadí */
}

.modal-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-top: 5px solid #007bff;
    /* Modrý proužek nahoře */
    animation: popIn 0.3s ease-out;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-box h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-box p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-btn:hover {
    background-color: #0056b3;
}

/* Animace příletu okna */
@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- VYLEPŠENÝ STYL TABULEK V CHATU --- */
.table-wrapper {
    overflow-x: auto;
    /* Umožní posun do boku na mobilu */
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    /* Trochu větší písmo */
    background-color: #fff;
    min-width: 250px;
    /* Aby se to na mobilu moc nesmrsklo */
}

.chat-table th {
    background-color: #007bff;
    color: white;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    /* Nadpisy na jeden řádek */
}

.chat-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    color: #444;
    vertical-align: middle;
}

/* Ceny a čísla zarovnáme doprava a zakážeme zalamování */
.chat-table td:nth-child(n+2) {
    text-align: right;
    white-space: nowrap;
    font-weight: bold;
    color: #007bff;
}

/* "Zebrování" - každý druhý řádek bude šedý */
.chat-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Hover efekt při najetí myší */
.chat-table tr:hover {
    background-color: #e9ecef;
}