:root { 
    --bg: #050505; 
    --cyan: #00f2ff; 
    --white: #ffffff; 
    --grid: rgba(0, 242, 255, 0.03); 
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; } /* Odstraněn globální cursor:none pro lepší přístupnost */

/* Upravený font-stack pro stabilitu */
body { 
    background-color: var(--bg); 
    color: var(--white); 
    /* Přidali jsme systémové fonty, které mají podobnou metriku jako Inter */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Fix pro Hero Title - rezervujeme místo, aby se text nerozšiřoval */
.hero-title {
    min-height: 1.2em; /* Prevence kolapsu výšky před načtením */
    will-change: transform; /* Příprava pro GPU akceleraci */
}



/* MULTILANG FIX - Odstraněna duplicita */
body[lang="en"] .lang-cs { display: none !important; }
body[lang="cs"] .lang-en { display: none !important; }


/* ... Zbytek tvého CSS (kurzor, nav, hero, sections...) pokračuje beze změn ... */
/* PROGRESS BAR */
#top-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--cyan); z-index: 10005; box-shadow: 0 0 10px rgba(0, 242, 255, 0.4); transition: width 0.1s ease-out; }

/* GLOBÁLNÍ VRSTVY */
.base-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -5; background: var(--bg); }
.grid-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -4; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; }
.noise { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.06; pointer-events: none; z-index: 9999; }

/* KURZOR */
#cursor-dot { position: fixed; width: 10px; height: 10px; background: var(--cyan); border-radius: 50%; pointer-events: none; z-index: 10001; transform: translate(-50%, -50%); transition: transform 0.1s; }
#cursor-light { position: fixed; width: 700px; height: 700px; background: radial-gradient(circle, rgba(0, 242, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%); pointer-events: none; z-index: 0; transform: translate(-50%, -50%); will-change: transform; }

/* NAV */
nav { position: fixed; top: 25px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1200px; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; z-index: 2000; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(15px); border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.1); }
.logo-box .logo-text { 
    font-weight: 900; 
    font-size: 1.6rem; 
    line-height: 0.9; 
    color: var(--white);
    text-transform: uppercase;
}
/* Styl pro hamburger tlačítko (na PC skryté) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100; /* Musí být nad otevřeným menu */
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* Animace hamburgeru na "Křížek" po kliknutí */
.hamburger.active span:nth-child(1) { transform: rotate(45deg); background: var(--cyan); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); background: var(--cyan); }
.logo-box span { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 2px; color: var(--cyan); display: block; margin-top: 3px; font-weight: 900; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 900; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--cyan); }
.lang-switch { display: flex; gap: 10px; margin-left: 10px; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 20px; }
.lang-btn { background: none; border: none; color: #fff; font-weight: 900; font-size: 0.7rem; cursor: pointer; opacity: 0.3; transition: 0.3s; }
.lang-btn.active { opacity: 1; color: var(--cyan); }

/* HERO */
.hero { height: 100vh; display: flex; justify-content: center; align-items: center; perspective: 1500px; position: relative; overflow: hidden; }
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* Styl pro menší texty v Hero sekci */
.hero-title .hero-sub { 
    font-size: clamp(1.8rem, 10vw, 7rem); 
    font-weight: 900; 
    line-height: 0.9; 
    text-transform: uppercase; 
    margin: 0;
    display: block; /* Aby se chovaly jako nadpisy a byly pod sebou */
}
/* Pomocné třídy pro SEO texty bez inline stylů */
.outline-text { -webkit-text-stroke: 1px #fff; color: transparent; }
.cyan-text { color: var(--cyan); }

/* Tvůj hlavní H1 - outline styl */
.hero-title h1.outline { 
    color: transparent; 
    -webkit-text-stroke: 1.5px var(--cyan); 
    font-size: clamp(2.5rem, 12vw, 11rem) !important; 
    display: block;
    margin: 0;
    text-transform: uppercase;
}
#ref-detail-title {
    color: var(--cyan); 
    font-size: 3rem; 
    font-weight: 900; 
    text-transform: uppercase;
}

/* SECTIONS */
.section-header { padding-top: 100px; text-align: center; position: relative; z-index: 5; scroll-margin-top: 50px; }
.section-title { font-size: clamp(4rem, 12vw, 10rem); font-weight: 900; text-transform: uppercase; letter-spacing: -1px; opacity: 0.3; line-height: 1; margin-bottom: -40px; }

/* ABOUT */
.about-section { padding: 80px 10%; position: relative; z-index: 5; }
.manifesto { font-size: clamp(2rem, 5.5vw, 5rem); font-weight: 900; line-height: 1; text-transform: uppercase; margin-bottom: 80px; letter-spacing: -2px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.about-card { border-left: 2px solid var(--cyan); padding-left: 30px; }
.about-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 15px; }
.about-card p { font-size: 0.9rem; line-height: 1.6; opacity: 0.7; }

/* PROJECT CARDS */
.project-section { position: relative; padding: 100px 10%; z-index: 5; }
.num-bg { position: absolute; font-size: 30vw; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
.project-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.project-grid.rev { grid-template-columns: 1.2fr 1fr; }
.project-grid.rev .project-content { order: 2; }
.project-grid.rev .p-img-main { order: 1; }
.p-subtitle { font-size: 0.75rem; color: var(--cyan); font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; display: block; }
.project-line { width: 40px; height: 2px; background: var(--cyan); margin: 25px 0; transition: 0.5s; }
.project-section.active .project-line { width: 120px; }
.p-desc-wrap {
        display: block !important; /* Musí být block, aby fungovala animace výšky */
        max-height: 0;             /* Schováme obsah */
        opacity: 0;
        overflow: hidden;
        transition: all 0.5s ease-in-out;
        margin-top: 0;
    }

    /* Tato třída se aktivuje po kliknutí na tlačítko */
    .p-desc-wrap.active {
        max-height: 1000px;        /* Dostatečná výška pro text */
        opacity: 1;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .btn-more {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        cursor: pointer;
    }.project-section.active .p-desc-wrap { max-height: 1000px; opacity: 1; margin-top: 30px; }
.p-desc-text { color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 20px; }
.p-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.p-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(1); transition: 0.4s; border: 1px solid rgba(255,255,255,0.1); }
.p-gallery img:hover { filter: grayscale(0); border-color: var(--cyan); transform: scale(1.02); }
.p-img-main { width: 100%; aspect-ratio: 16/10; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.p-img-main img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: 1.2s; opacity: 1; }
.btn-more { padding: 12px 30px; border: 1px solid var(--cyan); color: var(--cyan); background: none; font-weight: 900; text-transform: uppercase; transition: 0.3s; margin-top: 10px; }
.btn-more:hover { background: var(--cyan); color: #000; }
.p-img-main:hover {
    /* VRSTVENÝ NEON EFFECT: 3 stíny přes sebe pro maximální jas */
    box-shadow: 
        0 10px 40px rgba(0, 242, 255, 0.4), /* 2. Střední rozptyl světla směrem dolů */
        0 20px 80px rgba(0, 242, 255, 0.2); /* 3. Obrovské, měkké ambientní světlo v pozadí */
}
/* REFERENCE GRID */
.reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; padding: 50px 10%; z-index: 5; }
.ref-item { border: 1px solid rgba(255, 255, 255, 0.1); padding: 50px 25px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.02); transition: 0.4s; text-align: center; }
.ref-item h3 { font-weight: 900; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }
.ref-item:hover { background: rgba(0, 242, 255, 0.1); border-color: var(--cyan); transform: translateY(-5px); }

/* REF PANEL */
#ref-detail-panel { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: rgba(5,5,5,0.98); z-index: 4000; transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(20px); display: flex; flex-direction: column; padding: 100px 10%; overflow-y: auto; }
#ref-detail-panel.open { right: 0; }
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
.close-ref-btn { position: absolute; top: 40px; right: 40px; background: none; border: 1px solid var(--cyan); color: var(--cyan); padding: 10px 20px; font-weight: 900; text-transform: uppercase; transition: 0.3s; }
.close-ref-btn:hover { background: var(--cyan); color: #000; }
.ref-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Udělá sloupce podle šířky displeje */
    gap: 20px;
    padding: 20px 0;
}
main {
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: filter, transform;
}

/* ZÁKLADNÍ STAV FOTEK V DETAILU (před animací) */
.ref-gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0; /* DŮLEŽITÉ: Fotka je na začátku schovaná */
    will-change: clip-path, opacity, filter;
}

/* ANIMACE SKENOVÁNÍ - Spustí se přidáním třídy v JS */
.ref-gallery-grid img.scanning {
    animation: scanReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scanReveal {
    0% { 
        opacity: 0;
        clip-path: inset(100% 0 0 0); /* Odspodu schované */
        filter: brightness(3) contrast(1.5) sepia(1) hue-rotate(140deg); /* Digitální nádech */
    }
    100% { 
        opacity: 1;
        clip-path: inset(0 0 0 0); /* Úplně odhalené */
        filter: brightness(1) contrast(1) sepia(0) hue-rotate(0deg);
    }
}
/* LOGO TRACK */
.logos-section { padding: 100px 0; overflow: hidden; background: rgba(255,255,255,0.01); position: relative; z-index: 5; }
.logos-track { display: flex; width: calc(250px * 16); animation: scrollLogos 60s linear infinite; }
.logo-item { width: 250px; display: flex; justify-content: center; align-items: center; padding: 0 40px; transition: 0.5s ease; filter: grayscale(1); opacity: 0.3; }
.logo-item img { max-width: 140px; max-height: 50px; object-fit: contain; }
@keyframes scrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 8)); } }

/* HORIZONTAL SCROLL */
.h-section { height: 180vh; position: relative; }
.h-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.h-track { display: flex; gap: 80px; padding: 0 10vw; transition: transform 0.1s ease-out; }
.h-card { width: 60vw; height: 55vh; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.h-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

/* SLANT STRIP */
.slant-strip { background: var(--cyan); color: #000; padding: 30px 0; transform: rotate(-3deg) scale(1.1); margin: 100px 0; overflow: hidden; z-index: 100; position: relative; }
.slant-track { display: flex; animation: scrollMarquee 20s linear infinite; font-size: 2.2rem; font-weight: 900; white-space: nowrap; }
@keyframes scrollMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* CONTACT */
.contact-section { min-height: 20vh; padding: 100px 10% 50px 10%; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 5; }
.contact-big-text { font-size: clamp(3rem, 8vw, 8rem); font-weight: 900; line-height: 0.9; text-transform: uppercase; letter-spacing: -3px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 80px; }
.contact-label { font-size: 0.7rem; color: var(--cyan); font-weight: 900; text-transform: uppercase; letter-spacing: 3px; display: block; margin-bottom: 10px; }
.contact-value { font-size: clamp(1.2rem, 2vw, 2.5rem); font-weight: 900; color: #fff; text-decoration: none; transition: 0.3s; }

/* MISC */
#up-arrow { position: fixed; bottom: 50px; right: 50px; opacity: 0; transition: 0.5s; z-index: 2000; }
#up-arrow.show { opacity: 1; }
.arrow-v { width: 40px; height: 40px; border-left: 3px solid var(--cyan); border-top: 3px solid var(--cyan); transform: rotate(45deg); display: block; }
.site-footer {
    padding: 20px 10% 60px 10%; /* Zvětšený horní prostor, aby nahradil sekci kontakt */
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-label {
    display: block;
    font-size: 0.65rem;
    color: var(--cyan);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-info {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-value:hover {
    color: var(--cyan);
}

.footer-socials {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-socials a {
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    opacity: 0.5;
}

.footer-socials a:hover {
    opacity: 1;
    color: var(--cyan);
}

.footer-bottom-info {
    font-size: 0.6rem;
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   MOBILNÍ OPTIMALIZACE (Telefony a Tablety)
   ========================================= */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
.project-grid.rev {
        display: flex !important;
        flex-direction: column !important; /* Vynutí řazení pod sebe */
    }

.project-grid.rev .p-img-main,
    .project-grid.rev .project-content {
        grid-column: auto !important; /* Zruší desktopové pozicování */
        grid-row: auto !important;    /* Zruší desktopové pozicování */
        order: unset !important;      /* Vrátí pořadí podle HTML kódu */
        width: 100% !important;
    }

    .project-grid.rev .p-img-main {
        order: 2 !important; /* Obrázek bude druhý */
    }

    /* Zmenšíme padding hlavní lišty, aby nebyla "moc do strany" */
    nav {
        width: 95%; 
        padding: 10px 15px; /* Menší vnitřní okraj pro víc místa */
        top: 15px;
    }
@media (max-width: 768px) {
    /* Hamburger tlačítko se zobrazí pouze na mobilu */
    .hamburger {
        display: flex !important; /* Vynutit zobrazení */
        position: relative;
        z-index: 10006; /* Musí být nad nav-links */
    }

    /* Skrytí nav-links mimo obrazovku */
    nav .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%; /* Schované vpravo */
        width: 100%;
        height: 80vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 10005;
        backdrop-filter: blur(20px);
    }

    /* Třída přidaná přes JS pro vysunutí menu */
    nav .nav-links.active {
        right: 0;
    }

    /* Větší odkazy pro pohodlné ovládání palcem */
    .nav-links a {
        font-size: 2rem;
        margin: 15px 0;
        font-weight: 900;
        letter-spacing: 2px;
    }

    /* Přepínač jazyků v menu pod sebou */
    .lang-switch {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-left: 0;
        padding-top: 20px;
        margin-top: 20px;
        margin-left: 0;
    }
    /* Horní část nadpisu O NÁS */
    .section-header {
        padding-top: 20px;    /* Drastické snížení ze 100px */
    }

    /* Samotný šedý nápis na pozadí */
    .section-title {
        font-size: 3.5rem;    /* Menší písmo pro mobil */
        margin-bottom: 0px;   /* Zrušení záporného marginu, který posouvá text nevyzpytatelně[cite: 25] */
    }

    /* Začátek obsahu sekce O NÁS */
    .about-section {
        padding-top: 10px;    /* Sníženo z 80px[cite: 25] */
    }

    /* Manifest (text POSOUVÁME HRANICE...) */
    .manifesto {
        margin-top: 0;        /* Přiražení k nadpisu sekce[cite: 25] */
        font-size: 2.2rem;    /* Kompaktnější velikost[cite: 25] */
        margin-bottom: 30px;  /* Snížení mezery pod ním[cite: 25] */
    }
}
/* Základní linky hamburgeru */
.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Transformace na křížek při třídě .active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--cyan);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--cyan);
}

    /* Oprava vysouvacího menu */
    nav .nav-links {
        display: flex; 
        position: fixed;
        top: 0; 
        right: -100%;
        width: 100%; /* Menu přes celou šířku je na mobilu jistota */
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 99;
    }

    nav .nav-links.active { 
        right: 0; 
    }

    .nav-links a { 
        font-size: 1.8rem; /* Větší písmo pro palce */
        margin: 20px 0; 
    }

    /* Zbytek mobilních úprav... */
    .section-title { font-size: 4rem; margin-bottom: 20px; line-height: 1.1; }
    .hero-title .hero-sub { font-size: 2rem; }
    .hero-title h1.outline { font-size: 2.5rem !important; }
    
    .about-grid, .contact-grid, .footer-grid, .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .h-section { height: auto !important; margin-bottom: 50px; }
    .h-sticky { position: relative !important; height: auto !important; }
    .h-track { 
        flex-direction: column; 
        padding: 0 5%; 
        gap: 20px; 
        transform: none !important; 
    }
    
    .slant-strip {
        transform: rotate(-3deg) scale(1.02); 
        margin: 50px 0;
    }
} /* <--- TATO závorka musí být až úplně na konci všech mobilních úprav! */

/* =========================================
   VYPNUTÍ CUSTOM KURZORU NA DOTYKAČÍCH
   ========================================= */
@media (pointer: coarse) {
    #cursor-dot, #cursor-light { 
        display: none !important; 
    }
    * { 
        cursor: auto !important; 
    }
}
/* Efekt pro sekci Novinky */
.section-flash {
    animation: boot-up 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes boot-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: brightness(3) blur(10px);
    }
    50% {
        filter: brightness(1.5) blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1);
    }
}

/* Volitelný skenující řádek (cyan linka projede sekcí) */
.scan-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
    z-index: 10;
    pointer-events: none;
    animation: scan-move 0.8s linear forwards;
}

@keyframes scan-move {
    0% { top: 0%; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
/* COOKIE BAR STYLES */
.cookie-container {
    position: fixed;
    bottom: -100%; /* Schovaná ve výchozím stavu */
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--cyan);
    padding: 20px 10%;
    z-index: 20000;
    transition: bottom 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
/* Doplnění k tvému existujícímu designu */
#cookie-bar {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--cyan);
}

.cookie-settings-menu {
    font-size: 0.8rem;
    color: var(--white);
    gap: 15px;
    display: flex;
}

.cookie-settings-menu label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cookie-buttons button {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 5px 15px;
    cursor: pointer;
}

#cookie-accept {
    background: var(--cyan);
    color: var(--bg);
    font-weight: bold;
}
.cookie-container.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.cookie-content a {
    color: var(--cyan);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    background: none;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 8px 20px;
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.cookie-btn.accept {
    background: var(--cyan);
    color: #000;
}

.cookie-btn:hover {
    box-shadow: 0 0 15px var(--cyan);
}

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; }
}

/* LIGHTBOX - Zvětšený náhled fotky */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Tmavé pozadí */
    display: none; /* Schované ve výchozím stavu */
    justify-content: center;
    align-items: center;
    z-index: 99999;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 4px;
    object-fit: contain;
}
img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}
@media (max-width: 768px) {
    /* Zvýraznění telefonu pro mobilní uživatele */
    .footer-col a[href^="tel:"] {
        display: inline-block;
        background: var(--cyan);
        color: #000 !important;
        padding: 15px 25px;
        border-radius: 50px;
        margin-top: 10px;
        font-size: 1.4rem;
        box-shadow: 0 5px 20px rgba(0, 242, 255, 0.3);
        animation: pulse-cyan 2s infinite; /* Využijeme tvou existující animaci */
    }
}
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Tuto třídu musí přidat JavaScript */
section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }

@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

.btn-more:hover, .lang-btn.active {
    animation: pulse-cyan 1.5s infinite;
}



/* Efekt pro hlavní web, když je otevřený panel */
main.blur-scale {
    filter: blur(8px) brightness(0.5);
    transform: scale(0.98);
    pointer-events: none; /* Uživatel nemůže klikat na web pod panelem */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



@keyframes scanReveal {
    0% { 
        opacity: 0;
        clip-path: inset(100% 0 0 0); /* Odspodu schované */
        filter: brightness(2) cyan;
    }
    100% { 
        opacity: 1;
        clip-path: inset(0 0 0 0); /* Úplně odhalené */
        filter: brightness(1);
    }
}
.about-card {
    border-left: none;
    border-top: 2px solid var(--cyan);
    padding-left: 0;
    padding-top: 20px;
}

.project-client-logo {
    margin: 20px 0; /* Mezera nad a pod logem */
    display: flex;
    align-items: center;
}

.client-logo-img {
    display: block;      /* Aby logo stálo samostatně nad nadpisem */
    max-height: 80px;    /* Decentní výška, aby logo nepřebilo nadpis */
    width: auto;         /* Zachování poměru stran */
    margin-bottom: 15px; /* Mezera mezi logem a nadpisem */
    opacity: 0.9;        /* Jemné ztlumení pro lepší integraci do tmavého módu */
    transition: opacity 0.3s ease;
}
/* ==========================================================================
   SEKCE LOGA – KOMPLETNÍ OPRAVA PRO PC / DESKTOP
   ========================================================================== */
.logos-section {
    padding: 80px 40px !important;
    background: transparent;
}

.logos-static-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; /* Rozprostře loga vedle sebe na PC */
    gap: 40px !important;
    align-items: center !important;
    justify-content: center !important;
}

.logo-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.logo-item img {
    width: auto !important;
    height: auto !important;
    max-width: 280px !important; 
    max-height: 130px !important;
    object-fit: contain !important;
    /* Pro jistotu aplikujeme přechod i na samotný obrázek */
    transition: all 0.4s ease-in-out !important;
}

.logo-item:hover {
    /* Stav po najetí: barva zpět, průhlednost pryč */
    filter: grayscale(0); /* Zruší šedou, vrátí původní barvy */
    opacity: 1;           /* Nastaví plnou viditelnost na 100% */
    transform: scale(1.05); /* Volitelné: jemné zvětšení */
}

/* ==========================================================================
   ČISTÝ A FUNKČNÍ FIX PRO MOBILY (MAX-WIDTH: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Úvodní sekce (Hero) - Vypnutí mřížky a perfektní centrování textu */
    #hero-canvas {
        display: none !important;
    }

    .hero {
        height: auto !important;
        min-height: 50vh !important;
        padding: 100px 20px 40px 20px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;     
        justify-content: center !important;    
        text-align: center !important;        
    }

    .hero-content {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Přitažení sekce O NÁS blíž k úvodu bez obří díry */
    #about.project-section {
        margin-top: 0 !important; 
        padding-top: 40px !important;
    }

    .section-header {
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    /* 2. Sekce Novinky / Projekty - Pořadí prvků */
     .project-content {
        display: flex !important;
        flex-direction: column !important; /* Prvky půjdou pod sebe: Logo -> Fotka -> Tlačítko -> Text */
        align-items: center;
        height: auto !important;
        padding: 20px !important;
    }

    .p-content {
        order: 1 !important; /* Celý textový blok (včetně tlačítka) jde nahoru */
    }

    .p-img-main {
        order: 2 !important; /* Fotka jde dolů pod text */
        margin-top: 20px !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Fix pro správné zobrazení obrázků bez deformace (např. Plovet) */
    .p-img-main img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
will-change: transform;
    }

    .p-desc-wrap {
        order: 3; /* Popisek bude až pod tlačítkem */
        max-height: 0; /* Ve výchozím stavu zavřené */
        opacity: 0;
        overflow: hidden;
        transition: all 0.5s ease-in-out;
        width: 100%;
    }

    /* Třída pro aktivní (otevřený) stav */
    .p-desc-wrap.active {
        max-height: 1000px;
        opacity: 1;
        margin-top: 15px;
    }
}

    /* Popisek se pak otevře pod tlačítkem */
    .p-desc-wrap {
        width: 100%;
        text-align: left;
    }

    /* Tlačítko Prozkoumat na mobilu přes celou šířku pro lepší klikání */
    .btn-more {
        /* ZRUŠÍME vystředění přes fotku */
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        
        /* Zobrazení */
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        
        /* Styl tlačítka */
        margin: 10px auto !important;
        order: 2; /* Tlačítko bude pod fotkou */
        border: 1px solid var(--cyan);
        padding: 10px 20px;
    }

    /* 3. Sekce Reference - Vycentrování na střed displeje */
    .reference-section {
        padding: 40px 15px !important;
        text-align: center !important;
    }

    .ref-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Jedna reference na řádek na mobilu */
        gap: 20px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .ref-item {
        margin: 0 auto !important; /* Centrování kartičky */
        width: 100% !important;
        max-width: 400px !important;
    }

  /* ==========================================================================
   NASTAVENÍ PRO PC / DESKTOP (Základní styly pro velká okna)
   ========================================================================== */

/* Sekce log partnerů na PC – 5 log vedle sebe v jedné řadě */
.logos-section {
    padding: 60px 20px;
    text-align: center;
}

.logos-static-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 log vedle sebe na PC */
    gap: 40px;
    justify-content: center;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item img {
    max-width: 150px;
    height: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.logo-item img:hover {
    opacity: 1; /* Efekt rozsvícení při najetí myší */
}


/* ==========================================================================
   RESPONSIVNÍ STYLY PRO MOBILY (Pouze pro obrazovky do 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Odstranění prázdné mezery nad sekcí O nás */
    #about.project-section {
        margin-top: -40px !important; 
        padding-top: 0 !important;
    }

    .section-header {
        margin-bottom: 25px !important;
    }

/* ==========================================================================
       OPRAVA REFERENCE SEKCE NA MOBILU (Dokonalé centrování a přizpůsobení)
       ========================================================================== */
    .reference-section {
        padding: 40px 10px !important; /* Zmenšíme boční okraje na minimum, aby zbyl prostor pro obsah */
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

  .ref-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Vše pod sebe */
        gap: 20px !important;
        width: 90% !important; /* Rezerva 5 % z každé strany */
        margin: 0 auto !important;
    }

    .ref-item {
        width: 100% !important;
        /* Karta se roztáhne na celou šířku úzkého displeje, ale na větším mobilu nepřekročí 360px */
        max-width: 360px !important; 
        margin: 0 auto !important; /* Pojistka pro vycentrování */
        box-sizing: border-box !important;
    }

    /* Prohození fotky a textu u Novinek / Projektů na mobilu */
    .project-content {
        display: flex !important;
        flex-direction: column !important;
    }

    .p-content {
        order: 1 !important; /* Text nahoru */
    }

  .p-img-main {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Decentní hrana v základu */
    border-radius: 12px;
    overflow: hidden;
    
    /* Animujeme už pouze rámeček, žádný transform */
    transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

    /* Úprava log v novinkách na mobilu */
    .project-logo {
        align-self: flex-start !important;
        width: auto !important;
        height: auto !important;
        max-height: 35px !important;
        max-width: 130px !important;
    }

    /* Oprava iOS vzhledu tlačítek prozkoumat */
    .btn-more {
        -webkit-appearance: none;
        appearance: none;
        color: var(--white) !important;
        background: transparent !important;
        align-self: flex-start !important;
        width: auto !important;
    }

.logos-static-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Zajištění, že sekce nebudou na mobilech širší než displej */
    .section, .project-section, .logos-section, .reference-section, footer {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        perspective: 2000px; 
        transform-style: preserve-3d;
    }