:root {
    /* --- BARVY --- */
    --bg-color: #b4ff911a;
    --bg-light: #ececec;
    --bg-dark: #121212;
    
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    
    /* Akcent - moderní gradient */
    --accent-color: #b0d351;
    --accent-hover: #96b346;
    --accent-gradient: linear-gradient(135deg, #accb55, #b8d660);
    
    /* --- MODERNÍ PRVKY (Zaoblení a Stíny) --- */
    --radius-sm: 16px;
    --radius-lg: 32px;
    --radius-pill: 50rem;

    --shadow-sm: 0 10px 30px -10px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px -15px rgba(0,0,0,0.15);
    --shadow-accent: 0 8px 25px -8px rgba(172, 203, 85, 0.6);

    --max-width: 1200px;
}

/* Reset a základy */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.5px; margin-bottom: 1rem; }
h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }

p.lead { font-size: 1.25rem; font-weight: 600; color: var(--text-main); margin-bottom: 1.5rem; }
p { color: var(--text-muted); margin-bottom: 1.5rem; }

a { text-decoration: none; transition: all 0.3s ease; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 7rem 0; }
.top-margin { margin-top: 90px; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.p-large { padding: 4rem; }

/* --- Užitkové třídy --- */
.card-rounded { border-radius: var(--radius-sm); overflow: hidden; }
.shadow-lg { box-shadow: var(--shadow-lg); }
.bg-light { background-color: var(--bg-light); }
.bg-light-rounded { background-color: var(--bg-light); border-radius: var(--radius-lg); margin: 2rem 2rem; }

/* --- Tlačítka --- */
.btn {
    display: inline-block; padding: 1.2rem 3rem; font-weight: 700;
    font-size: 1rem; border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border: none; cursor: pointer;
}
.btn-primary { background: var(--accent-gradient); color: #000; box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 30px -10px rgba(172, 203, 85, 0.8); }

/* --- Navigace --- */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; box-shadow: var(--shadow-sm); padding: 0.5rem 0;
}
.nav-container { max-width: var(--max-width); margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; display: block; }

/* Správné menu pro PC */
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-weight: 700; font-size: 0.95rem; text-transform: uppercase; color: var(--text-main); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background: var(--accent-color); transition: width 0.3s; border-radius: 10px; }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; border: none; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.line { width: 30px; height: 3px; background: var(--text-main); border-radius: 5px; transition: 0.3s; }

/* --- O nás --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.align-center { align-items: center; }
.trust-cta-block { margin-top: 3rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.google-reviews { display: inline-flex; align-items: center; gap: 1.2rem; padding: 1.5rem 2rem; background-color: var(--bg-color); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }

/* Ikona Google Maps */
.g-logo { width: 35px; height: 35px; object-fit: contain; }

.stars-row { display: flex; align-items: center; gap: 10px; line-height: 1; margin-bottom: 5px; }
.score-big { font-size: 1.8rem; font-weight: 900; color: var(--text-main); }
.stars { color: #fbbc05; font-size: 1.3rem; letter-spacing: 1px; }
.half-star { position: relative; display: inline-block; color: #e0e0e0; }
.half-star::before { content: '★'; position: absolute; color: #fbbc05; width: 50%; overflow: hidden; }
.score-text { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.about-images { display: flex; flex-direction: column; gap: 1.5rem; }
.img-main { width: 100%; height: auto; box-shadow: var(--shadow-lg); }
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.img-grid img { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-sm); }

/* --- Značky --- */
.section-title { position: relative; display: inline-block; margin-bottom: 4rem; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent-color); border-radius: 10px; }

/* Mřížka upravena tak, aby se 4 loga vešla vedle sebe */
.brands-grid { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.brand-card {
    background: var(--bg-color);
    width: 220px; height: 140px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-light); box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.brand-card:hover { border-color: transparent; transform: translateY(-10px); box-shadow: var(--shadow-lg); }

/* --- VIZUÁLNÍ VYROVNÁNÍ VELIKOSTÍ LOG --- */

/* --- OPTICKÉ VYROVNÁNÍ LOG NA MÍRU --- */

/* Základní chování pro všechna loga (šedý filtr a plynulý přechod) */
.brand-card img { 
    object-fit: contain; 
    filter: grayscale(100%); 
    transition: all 0.3s ease; 
}

.brand-card:hover img { 
    filter: grayscale(0%); 
}

/* 1. DACIA (Náš etalon - široké logo) */
.brand-card img[alt="Dacia" i] { 
    width: 100px; 
    height: auto; 
}

/* 2. RENAULT (Vysoký kosočtverec - řídíme ho přes výšku, aby nebyl obří) */
/* 2. RENAULT (Vysoký kosočtverec) */
.brand-card img[alt="Renault" i] { 
    height: 75px; 
    width: auto;
    filter: grayscale(100%) invert(100%); 
    opacity: 0.4; /* TADY JE TEN TRIK: Zprůhledníme černou na šedou */
    transition: all 0.3s ease;
}

.brand-card:hover img[alt="Renault" i] { 
    filter: grayscale(0%) invert(100%); 
    opacity: 1; /* Po najetí myší bude zase 100% sytě černý */
}

/* 3. MITSUBISHI (Masivní tvar spíše do čtverce) */
.brand-card img[alt="Mitsubishi" i] { 
    width: 120px; 
    height: auto; 
}

/* 4. AHORNCAMP (Složitější tvar stromu/auta) */
.brand-card img[alt="Ahorncamp" i] { 
    width: 130px; 
    height: auto; 
}

/* --- MOBILNÍ ZOBRAZENÍ (Loga jsou rovnou barevná) --- */
@media (max-width: 768px) {
    .brand-card img { filter: grayscale(0%) !important; }
    .brand-card img[alt="Renault" i] { filter: grayscale(0%) invert(100%) !important; }
}
/* --- Kontakt --- */
.contact-info { box-shadow: var(--shadow-lg); }
.contact-info .section-title::after { left: 0; transform: none; }

/* Opravené pravidlo pro zalamování na mobilu */
.contact-item { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; width: 100%; }
.contact-item > div { flex: 1; min-width: 0; } /* Zásadní pro Flexbox */
.contact-item:last-child { margin-bottom: 0; }

.icon { font-size: 1.5rem; background: var(--bg-light); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent-color); flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.9rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }

/* Zalamování dlouhých odkazů a e-mailů */
.contact-link { 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: var(--text-main); 
    display: inline-block;
    word-break: break-all; /* Natvrdo zlomí dlouhý e-mail */
    overflow-wrap: break-word;
}
.contact-link:hover { color: var(--accent-color); }

.map-container { height: 100%; min-height: 500px; overflow: hidden; }
.map-container iframe { filter: grayscale(100%) contrast(1.1); transition: all 0.5s ease; }
.map-container iframe:hover { filter: grayscale(0%); }

/* --- Patička --- */
footer { background-color: var(--bg-dark); color: #fff; padding: 5rem 0 2rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin: 0 1rem; }
footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 1.5rem; }
footer p, footer a { color: #adb5bd; }
footer a:hover { color: var(--accent-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-big-link { display: block; font-size: 1.4rem; font-weight: 700; color: #fff !important; margin-bottom: 0.5rem; }
.footer-big-link:hover { color: var(--accent-color) !important; }
.footer-col.links a { display: block; margin-bottom: 0.8rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.footer-bottom p { font-size: 0.9rem; margin: 0; }

/* --- Responsivita (Pro Telefony a Tablety) --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; } .p-large { padding: 2.5rem; } .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .split-layout { grid-template-columns: 1fr; gap: 3rem; }
    .about-images { order: -1; }
    .bg-light-rounded { margin: 2rem 1rem; border-radius: var(--radius-sm); }
    .map-container { min-height: 400px; }
}

@media (max-width: 768px) {
    .top-margin { margin-top: 75px; } .section-padding { padding: 5rem 0; }
    h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; }

    /* Opravené menu pro mobily - čistě bílé pozadí aby nepřekrývalo text */
    .nav-links {
        position: fixed; top: 75px; left: 0; right: 0; height: auto;
        background-color: #ffffff; flex-direction: column;
        align-items: center; padding: 2rem 0; box-shadow: var(--shadow-lg);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: 0.4s ease-in-out;
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .hamburger { display: flex; }
    .hamburger.active .line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .brand-card { width: 100%; height: 140px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    footer { margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    
    /* Na mobilu zmenšíme kontakt, aby se lépe vešel */
    .contact-link { font-size: 1.1rem; }
}

/* --- NUKLEÁRNÍ OPRAVA PRO ZALOMENÍ E-MAILU --- */
.contact-item {
    max-width: 100%;
    overflow: hidden; /* Odstřihne cokoliv, co by chtělo vytéct ven */
}

.contact-item > div {
    flex: 1;
    min-width: 0 !important;
    max-width: 100%;
}

.contact-link {
    display: block !important;
    width: 100%;
    word-break: break-all !important; /* Natvrdo rozsekne slovo kdekoliv */
    white-space: normal !important;
}

@media (max-width: 768px) {
    .contact-link {
        font-size: 1rem !important; /* Na mobilu ho trochu zmenšíme, ať nevypadá jako obří blok */
    }
}


/* --- COOKIE LIŠTA --- */
.cookie-banner {
    position: fixed;
    bottom: -150%; /* Na začátku je schovaná hluboko dole */
    left: 20px;
    right: 20px;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: bottom 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-banner.show {
    bottom: 0; /* Když dostane třídu .show, vyjede nahoru */
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-content strong {
    color: var(--text-main);
    font-size: 1.1rem;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Úprava cookie lišty pro mobily */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        padding: 1.5rem;
        left: 10px;
        right: 10px;
        margin-bottom: 10px;
    }
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    .btn-sm {
        width: 100%;
    }
}

/* --- BAREVNÁ LOGA ZNAČEK NA MOBILU --- */
@media (max-width: 768px) {
    /* Vypne černobílý filtr pro všechna loga */
    .brand-card img { 
        filter: grayscale(0%) !important; 
    }
    
    /* Výjimka pro Renault - zachováme mu invertování (aby byl černý a nezmizel na světlém pozadí) */
    .brand-card img[alt="Renault" i] { 
        filter: grayscale(0%) invert(100%) !important; 
    }
}


/* --- MOBILNÍ ZOBRAZENÍ (Loga jsou rovnou barevná a sytá) --- */
@media (max-width: 768px) {
    .brand-card img { filter: grayscale(0%) !important; opacity: 1 !important; }
    .brand-card img[alt="Renault" i] { filter: grayscale(0%) invert(100%) !important; opacity: 1 !important; }
}