:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #151515;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent: #d4af37;
    --accent-hover: #b8962c;
    --border-color: #222;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= NAVBAR & MENU ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.logo span {
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Dynamická navigace WonderCMS (Desktop) */
.navbar .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 2.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    align-items: center;
}

.navbar .nav-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .nav-menu a,
.navbar .nav-menu .nav-link {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: color var(--transition-speed) ease !important;
    background: transparent !important;
    padding: 0 !important;
}

.navbar .nav-menu a:hover,
.navbar .nav-menu .nav-link:hover {
    color: var(--accent) !important;
    background: transparent !important;
}

/* HAMBURGER IKONA (na PC skrytá) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Animace na křížek */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
}

/* Obal tlačítek v hlavičce */
.header-buttons {
    display: flex;
    gap: 1rem;
}

/* Vynucení stejné šířky pro obě tlačítka v hlavičce */
.header-buttons .btn {
    width: 200px;
    padding: 0.8rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Nové tlačítko pro miklik.art (s přechodem) */
.btn-miklik {
    background: linear-gradient(90deg, rgb(44, 204, 196) 0%, rgb(149, 193, 31) 100%);
    color: #ffffff;
    border: none;
}

.btn-miklik:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, var(--bg-dark) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ================= BENTO GRID ================= */
.services {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.services-header {
    margin-bottom: 4rem;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-card);
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border-color);
}

.bento-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.4) 50%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-overlay h3 {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-main);
}

.arrow {
    font-size: 1.5rem;
    opacity: 0.4;
    transition: all var(--transition-speed) ease;
}

.bento-card:hover img {
    transform: scale(1.04);
}

.bento-card:hover .arrow {
    opacity: 1;
    color: var(--accent);
    transform: translateX(4px);
}

/* BENTO PLACEMENT */
.bento-grid > a:nth-child(1) { grid-column: 1; grid-row: span 2; } /* Reality */
.bento-grid > a:nth-child(2) { grid-column: 2; grid-row: 1; }      /* Dron */
.bento-grid > a:nth-child(3) { grid-column: 2; grid-row: 2; }      /* Akce */
.bento-grid > a:nth-child(4) { grid-column: 3; grid-row: span 2; } /* Restaurování */

/* ================= PAGE STRUCTURE ================= */
.page-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.content-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-alt {
    background-color: var(--bg-card);
    max-width: 100%;
    padding-left: calc(5% + auto);
    padding-right: calc(5% + auto);
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title.left-align {
    text-align: left;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-center {
    text-align: center;
}

/* ================= GALLERY ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform var(--transition-speed);
    cursor: zoom-in;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* ================= FEATURES GRID ================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-box h3 {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.feature-box p {
    color: var(--text-muted);
}

/* ================= PRICING ================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background-color: var(--bg-dark);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.price-list {
    list-style: none;
    text-align: left;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.price-list li span:last-child {
    color: var(--text-main);
    font-weight: 600;
}

.price-list-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: var(--text-muted);
}

.accent-card {
    border-color: var(--accent);
    position: relative;
    overflow: hidden;
}

.accent-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-full {
    display: block;
    width: 100%;
}

.note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* ================= PREPARATION LIST ================= */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.prep-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prep-item {
    color: var(--text-muted);
}

.prep-item strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ================= B2B BANNER ================= */
.b2b-banner {
    background: linear-gradient(to right, #111, #000);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 6rem 5%;
    text-align: center;
}

.b2b-banner h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.b2b-banner p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--bg-darker);
    padding: 6rem 5% 4rem;
    text-align: center;
}

.footer-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.footer-content p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-info a {
    color: var(--accent);
}

.contact-info a:hover {
    color: var(--accent-hover);
}

.signature-logo {
    height: 70px;
    width: auto;
    max-width: 250px;
    display: block;
    transition: opacity var(--transition-speed);
}

.signature-logo:hover {
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ================= COMPARISON SLIDER ================= */
.comparison-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: ew-resize; 
    user-select: none;
    -webkit-user-drag: none;
}

.comparison-slider img {
    display: block;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: center 10%; 
    pointer-events: none;
}

.slider-grid .comparison-slider {
    aspect-ratio: 4 / 5; 
}

.img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; 
    height: 100%;
    overflow: hidden;
}

.img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; 
    max-width: 1000px;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--accent);
    transform: translateX(-50%);
    pointer-events: none;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.slider-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= LIGHTBOX ================= */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1; pointer-events: all;
}

.lightbox img {
    max-width: 90%; max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: var(--text-muted); font-size: 40px; cursor: pointer;
    z-index: 2001; transition: color 0.3s;
}

.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 40px; cursor: pointer;
    padding: 20px; z-index: 2001; transition: color 0.3s;
    user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover {
    color: var(--accent);
}

/* ================= CONTACT FORM ================= */
.form-container {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* ================= COOKIE LIŠTA ================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 450px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex;
    transform: translateY(150%); /* Výchozí stav: schováno dole */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Třída pro zobrazení, kterou přidá JavaScript */
.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

.cookie-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--accent-hover);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Zobrazení na mobilech přes celou šířku */
@media (max-width: 576px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-content .btn {
        width: 100%;
    }
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }
    
    .bento-grid > a {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .trust-bar {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .grid-3, .pricing-grid, .two-col-layout, .slider-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-grid {
        gap: 2rem;
    }

    .section-title.left-align {
        text-align: center;
    }
    
    .two-col-layout p {
        text-align: center;
    }

    .comparison-slider {
        margin: 0 20px;
    }
    
    .grid-3[style] {
        grid-template-columns: 1fr 1fr !important; 
    }
}

@media (max-width: 768px) {
    /* Mobilní menu - aktivace hamburger ikony */
    .hamburger {
        display: flex;
    }
    
    /* Mobilní overlay menu */
    .navbar .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: rgba(10, 10, 10, 0.98) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: right 0.4s ease !important;
        z-index: 1000 !important;
        gap: 0 !important;
    }

    /* Třída, kterou přidá JavaScript po kliknutí (vysune menu) */
    .navbar .nav-menu.active {
        right: 0 !important;
    }

    .navbar .nav-menu li {
        margin: 1.5rem 0 !important;
    }

    .navbar .nav-menu a,
    .navbar .nav-menu .nav-link {
        font-size: 1.5rem !important;
    }

    /* Skrytí obou tlačítek na mobilu */
    .navbar .header-buttons {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .services {
        padding: 4rem 5%;
    }
    
    .grid-3[style] {
        grid-template-columns: 1fr !important; 
    }

    .lightbox-prev, .lightbox-next { padding: 10px; font-size: 30px; }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}