/* ZÁKLADNÍ NASTAVENÍ A RESET */
:root {
    --primary-color: #4A90E2;
    --primary-color-hover: #357ABD;
    --dark-bg: #1E1E2E;
    --medium-dark-bg: #2A2A3A;
    --light-text: #FFFFFF;
    --medium-text: #B8B8B8;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --container-width: 1140px;
    --section-padding-y: 80px;
    --header-height: 70px;
    --border-radius-main: 8px;
}

/* Light mode variables */
[data-theme="light"] {
    --dark-bg: #FFFFFF;
    --medium-dark-bg: #F8F9FA;
    --light-text: #1E1E2E;
    --medium-text: #6C757D;
    --primary-color: #4A90E2;
    --primary-color-hover: #357ABD;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-secondary); line-height: 1.7; background-color: var(--dark-bg); color: var(--medium-text); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.no-scroll { overflow: hidden; }
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); color: var(--light-text); margin-bottom: 0.8em; line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
a { color: #4A90E2; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #357ABD; }
img, video { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius-main); }
.section-padding { padding-top: var(--section-padding-y); padding-bottom: var(--section-padding-y); }

/* Portfolio sekce - menší padding nahoře pro mobil */
@media (max-width: 768px) {
    #portfolio.section-padding {
        padding-top: 40px;
    }
    
    /* Text "Projekt Bungalov" posunout nahoru */
    #portfolio h2 {
        margin-top: -20px;
        margin-bottom: 10px;
    }
    
    #portfolio p {
        margin-top: -10px;
        margin-bottom: 20px;
    }
    
    /* Hlavní obrázek galerie - centrování na mobilu */
    .gallery-main-image {
        text-align: center;
        margin: 0 auto;
    }
    
    .gallery-main-image img {
        height: 350px;
        margin: 0 auto;
        display: block;
    }
    
    /* Hero obrázek galerie - centrování na mobilu */
    .hero-image-container {
        text-align: center;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .hero-image-container img {
        margin: 0 auto;
        display: block;
    }
}
.dark-bg { background-color: var(--medium-dark-bg); }
.text-center { text-align: center; }
.lead { font-size: 1.1rem; max-width: 700px; margin: 0 auto 1.5em; }
.section-title { text-align: center; margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; display: block; width: 70px; height: 4px; background-color: #4A90E2; margin: 15px auto 0; border-radius: 2px; }

.quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: var(--light-text);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.quality-badge i {
    color: #FFD700;
    font-size: 0.8rem;
}

.quality-badge span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* TLAČÍTKA */
.btn { display: inline-block; padding: 12px 25px; border-radius: var(--border-radius-main); text-decoration: none; font-weight: bold; transition: all 0.3s ease; cursor: pointer; border: none; font-family: var(--font-primary); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem; }
.btn-primary { background-color: #4A90E2; color: var(--light-text); box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3); }
.btn-primary:hover { background-color: #357ABD; color: var(--light-text); transform: translateY(-3px); }
.btn-secondary { background-color: transparent; color: #4A90E2; border: 2px solid #4A90E2; }
.btn-secondary:hover { background-color: #4A90E2; color: var(--light-text); }

/* HLAVIČKA A NAVIGACE */
.main-header { background-color: rgba(18, 18, 18, 0.85); height: var(--header-height); display: flex; align-items: center; position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.4); transition: background-color 0.3s ease, height 0.3s ease; }
.main-header.scrolled { background-color: var(--dark-bg); height: calc(var(--header-height) - 10px); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--light-text); }

/* Header controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--light-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.main-nav { 
    display: flex; 
    transition: all 0.3s ease;
}

.main-nav ul { 
    list-style: none; 
    display: flex; 
    margin: 0;
    padding: 0;
}

.main-nav ul li { 
    margin-left: 25px; 
}

.main-nav ul li a { 
    color: var(--medium-text); 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover, 
.main-nav ul li a.active { 
    color: #4A90E2; 
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        gap: 30px;
    }
    
    .main-nav ul li {
        margin: 0;
    }
    
    .main-nav ul li a {
        font-size: 1.2rem;
        color: var(--light-text);
        padding: 15px 30px;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .main-nav ul li a:hover {
        background: rgba(74, 144, 226, 0.1);
        color: var(--primary-color);
        transform: translateY(-2px);
    }
}

/* ===== TOUCH FEEDBACK ===== */
.touch-feedback {
    -webkit-tap-highlight-color: rgba(74, 144, 226, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.touch-feedback:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Mobile body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Touch gestures indicator */
.swipe-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--medium-text);
    font-size: 0.9rem;
    opacity: 0.7;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}
.nav-toggle span { display: block; width: 25px; height: 3px; background-color: var(--light-text); margin: 5px 0; transition: all 0.3s ease-in-out; border-radius: 2px; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 990; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

/* HERO SEKCE */
.hero-section { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--light-text); }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -2; }
.hero-bg-image { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: -1; }
.hero-content h1 { text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.2rem; margin-bottom: 1.5em; max-width: 600px; margin-left: auto; margin-right: auto; }

/* INTERAKTIVNÍ 3D PRODUKT */
.interactive-product-section {
    background: linear-gradient(135deg, #2A2A3A 0%, #3A3A4A 100%);
    position: relative;
    overflow: hidden;
}

.interactive-product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(74,144,226,0.1)" stroke-width="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    z-index: 1;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Na větších obrazovkách zvětšíme gap pro lepší rozložení */
@media (min-width: 1200px) {
    .product-showcase {
        gap: 80px;
    }
}

.product-3d-container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.product-3d-model {
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
    cursor: grab;
    aspect-ratio: 1/1;
}

.product-3d-model:active {
    cursor: grabbing;
}

.product-faces {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #4A90E2, #357ABD);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
}

.face.front { transform: translateZ(150px); }
.face.back { transform: translateZ(-150px) rotateY(180deg); }
.face.right { transform: translateX(150px) rotateY(90deg); }
.face.left { transform: translateX(-150px) rotateY(-90deg); }
.face.top { transform: translateY(-150px) rotateX(90deg); }
.face.bottom { transform: translateY(150px) rotateX(-90deg); }

.product-texture {
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(74, 144, 226, 0.3);
}

.product-details .detail-item {
    display: block;
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Loading a Error stavy pro 3D model */
.model-loading, .model-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    min-width: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.model-loading p, .model-error p {
    margin: 10px 0;
    font-size: 1rem;
}

.model-error i {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.model-error button {
    margin-top: 15px;
}

/* Ovládací tlačítka pro 3D model */
.product-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.control-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn i {
    font-size: 1.2rem;
    color: #4A90E2;
}

.control-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nápověda pro 3D model */
.model-help {
    margin-top: 20px;
    text-align: center;
}

.help-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--medium-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.help-toggle:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--light-text);
    border-color: #4A90E2;
}

.help-toggle i {
    color: #4A90E2;
    font-size: 1rem;
}

.help-content {
    margin-top: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.help-content h4 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.help-content ul {
    list-style: none;
    padding: 0;
}

.help-content li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-content li:last-child {
    border-bottom: none;
}

.help-content li strong {
    color: var(--light-text);
    min-width: 80px;
    font-size: 0.9rem;
}

/* Responsivní design pro ovládací prvky */
@media (max-width: 768px) {
    .product-controls {
        gap: 10px;
    }
    
    .control-btn {
        padding: 12px 15px;
        min-width: 70px;
    }
    
    .control-btn i {
        font-size: 1rem;
    }
    
    .control-btn span {
        font-size: 0.7rem;
    }
    
    .help-content {
        margin: 20px 15px;
        padding: 20px;
    }
}

/* Informace o produktu */
.product-info {
    color: white;
}

.product-info h3 {
    font-size: 2em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-info p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-features .feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.product-features .feature-item i {
    font-size: 1.2em;
    color: var(--primary-color);
    width: 20px;
}

.product-features .feature-item span {
    font-size: 1em;
    opacity: 0.9;
}

/* Responzivita pro 3D produkt */
@media (min-width: 1200px) {
    .product-3d-model {
        max-width: 600px;
        height: 600px;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-3d-model {
        width: 100%;
        max-width: 350px;
        height: 350px;
        margin: 0 auto;
        display: block;
    }
    
    .face.front { transform: translateZ(125px); }
    .face.back { transform: translateZ(-125px) rotateY(180deg); }
    .face.right { transform: translateX(125px) rotateY(90deg); }
    .face.left { transform: translateX(-125px) rotateY(-90deg); }
    .face.top { transform: translateY(-125px) rotateX(90deg); }
    .face.bottom { transform: translateY(125px) rotateX(-90deg); }
}

.product-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Instrukce pro ovládání */
.control-instructions {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: var(--border-radius-main);
    padding: 20px;
    margin-bottom: 25px;
}

.control-instructions h4 {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-instructions h4 i {
    color: var(--primary-color);
}

.control-instructions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.control-instructions li {
    color: var(--medium-text);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.control-instructions li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.control-instructions li:last-child {
    margin-bottom: 0;
}

.product-stats .stat {
    display: block;
    font-size: 1.2rem;
    margin: 8px 0;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 4px;
}

.product-features span {
    display: block;
    margin: 5px 0;
    font-size: 0.9rem;
}

.product-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.product-version {
    font-size: 1.1rem;
    opacity: 0.8;
}


.fallback-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fallback-btn:hover {
    background: var(--primary-color-hover);
    transform: translateY(-2px);
}

/* Three.js canvas styling */
.product-3d-model canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
}

.product-controls {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}


.product-info h2 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.product-info p {
    color: var(--medium-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--light-text);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

/* SLUŽBY */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.service-item { 
    background-color: var(--medium-dark-bg); 
    padding: 30px; 
    border-radius: var(--border-radius-main); 
    text-align: center; 
    transition: all 0.3s ease; 
    border: 1px solid transparent;
    cursor: pointer;
}

.service-item:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.service-icon { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 20px; 
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--light-text);
}

.service-item p {
    color: var(--medium-text);
    line-height: 1.6;
}

/* PORTFOLIO (na index.html) */
.portfolio-filters { text-align: center; margin-bottom: 40px; }
.filter-btn { background: none; border: 2px solid var(--medium-text); color: var(--medium-text); padding: 8px 18px; margin: 5px; border-radius: var(--border-radius-main); cursor: pointer; transition: all 0.3s ease; }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary-color); color: var(--primary-color); }
.filter-btn.active { background-color: var(--primary-color); color: var(--light-text); }

.section-subtitle { 
    text-align: center; 
    color: var(--medium-text); 
    font-size: 1.1rem; 
    margin-bottom: 40px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* NOVÁ GALERIE NA HLAVNÍ STRÁNCE */
.main-gallery {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.gallery-main-image {
    position: relative;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.gallery-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-main-image:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 30px 30px;
    color: white;
}

.gallery-overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.gallery-overlay p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--medium-text);
}

.gallery-zoom-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-zoom-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-thumbnail {
    position: relative;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    aspect-ratio: 4/3;
}

.gallery-thumbnail:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.3);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover .thumbnail-overlay {
    transform: translateY(0);
}

.gallery-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    padding: 50px;
    border-radius: var(--border-radius-main);
    margin-top: 40px;
}

.gallery-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.gallery-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* ZOOM OVERLAY */
.main-gallery-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zoom-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.zoom-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-main);
}

.zoom-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: var(--primary-color-hover);
    transform: scale(1.1);
}

/* RESPONZIVNOST */
@media (max-width: 768px) {
    /* INTERAKTIVNÍ PRODUKT */
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .product-3d-model {
        width: 100%;
        max-width: 350px;
        height: 350px;
        margin: 0 auto;
        display: block;
    }
    
    .face.front { transform: translateZ(125px); }
    .face.back { transform: translateZ(-125px) rotateY(180deg); }
    .face.right { transform: translateX(125px) rotateY(90deg); }
    .face.left { transform: translateX(-125px) rotateY(-90deg); }
    .face.top { transform: translateY(-125px) rotateX(90deg); }
    .face.bottom { transform: translateY(125px) rotateX(-90deg); }
    
    .product-controls {
        flex-direction: column;
        align-items: center;
    }
    
    /* SLUŽBY */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .service-item {
        padding: 25px 20px;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    /* GALERIE */
    .gallery-main-image img {
        height: 350px;
    }
    
    .gallery-overlay {
        padding: 30px 20px 20px;
    }
    
    .gallery-overlay h3 {
        font-size: 1.5rem;
    }
    
    .gallery-thumbnails-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .gallery-zoom-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
        top: 20px;
        right: 20px;
    }
    
    .gallery-cta {
        padding: 30px 20px;
    }
    
    .gallery-cta h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* SLUŽBY */
    .services-grid {
        gap: 15px !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .service-item {
        padding: 20px 15px;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
}

/* DETAIL PROJEKTU */
.project-detail-page { padding-top: var(--header-height); }
.project-hero { background-color: var(--dark-bg); text-align: center; }
.project-title { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 30px; }
.project-main-image { width: 100%; max-width: 1000px; height: auto; margin: 0 auto; }
.project-info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 50px; }
.project-description ul { list-style: disc; margin-left: 20px; }
.project-meta { background-color: var(--dark-bg); padding: 25px; border-radius: var(--border-radius-main); border: 1px solid rgba(255,255,255,0.05); }
.project-meta h3 { border-bottom: 1px solid var(--medium-text); padding-bottom: 10px; }
.meta-item { 
    margin-bottom: 15px; 
    padding: 10px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.meta-item:last-child { 
    border-bottom: none; 
    margin-bottom: 0; 
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.section-padding-small { padding: calc(var(--section-padding-y)/1.5) 0; border-top: 1px solid rgba(255,255,255,0.08); margin-top: calc(var(--section-padding-y)/1.5); }
.section-padding-small:first-of-type { margin-top: 0; border-top: none; }
.section-subtitle { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 40px; }
.section-subtitle.text-center::after { display: none; }

/* --- INTERAKTIVNÍ PŮDORYS (VYLEPŠENÁ VERZE) --- */
.floorplan-360-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
    background: var(--dark-bg);
    padding: 30px;
    border-radius: var(--border-radius-main);
    border: 2px solid var(--medium-dark-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floorplan-360-wrapper.with-panorama {
    grid-template-columns: 1fr 1fr;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floorplan-360-wrapper.panorama-fullscreen {
    grid-template-columns: 1fr;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floorplan-360-wrapper.panorama-fullscreen .panorama-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 100 !important;
    width: 100% !important;
    height: auto !important;
    min-width: 100% !important;
    min-height: 450px !important;
}

.floorplan-container {
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floorplan-title {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 600;
}

.floorplan-image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floorplan-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.panorama-container {
    min-height: 450px;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    background-color: var(--dark-bg);
    border: 2px solid var(--medium-dark-bg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    width: 100% !important;
    height: auto !important;
    min-width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.panorama-container[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 100 !important;
    width: 100% !important;
    height: auto !important;
    min-width: 100% !important;
    min-height: 450px !important;
}

/* Zajištění viditelnosti panoramy */
.panorama-container.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 100 !important;
    width: 100% !important;
    height: auto !important;
    min-width: 100% !important;
    min-height: 450px !important;
}

/* Zajištění správného zobrazení panoramatu */
.panorama-container:has(#panoramaViewer) {
    min-height: 450px !important;
    height: 450px !important;
}

.panorama-container #panoramaViewer {
    min-height: 450px !important;
    height: 450px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Zajištění, že se panorama neztratí při chybách */
#panoramaViewer {
    position: relative !important;
    overflow: visible !important;
}

#panoramaViewer .error-overlay {
    position: absolute !important;
    z-index: 1000 !important;
}

/* Pevné rozměry pro panorama - BEZ DEFORMACE */
#panoramaViewer {
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 10px !important;
}

/* Pannellum container - pevné rozměry */
#panoramaViewer .pnlm-container {
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

/* Pannellum render container */
#panoramaViewer .pnlm-render-container {
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

/* Pannellum canvas container */
#panoramaViewer .pnlm-canvas-container {
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

/* Pannellum canvas - ZÁKLADNÍ ROZMĚRY BEZ DEFORMACE */
#panoramaViewer .pnlm-canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

/* Panorama container wrapper */
.panorama-container {
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 10px !important;
    background: #000 !important;
}

/* Skryjeme fullscreen tlačítko */
.pnlm-fullscreen-button {
    display: none !important;
}

/* Omezíme zoom, aby se panorama nedeformovalo */
.pnlm-zoom-controls {
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
}

.pnlm-zoom-in, .pnlm-zoom-out {
    background: rgba(255, 107, 53, 0.8) !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    border-radius: 5px !important;
    margin-bottom: 5px !important;
}

.panorama-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--medium-dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 20;
}

.panorama-header h4 {
    margin: 0;
    color: var(--light-text);
    font-size: 1.1rem;
}

.close-panorama-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 25;
}

.close-panorama-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Nový layout pro interaktivní prohlídku */
.interactive-tour-wrapper {
    background-color: var(--medium-dark-bg);
    border-radius: var(--border-radius-main);
    padding: 30px;
    margin-top: 30px;
}

.tour-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tour-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--light-text);
    font-size: 1.8rem;
}

.tour-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.floorplan-column,
.panorama-column {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius-main);
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.column-title {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.column-description {
    color: var(--medium-text);
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.floorplan-container {
    position: relative;
    display: inline-block;
    line-height: 0;
    border: 2px solid var(--medium-dark-bg);
    border-radius: var(--border-radius-main);
    overflow: hidden;
    min-height: 300px;
    background-color: var(--dark-bg);
    width: 100%;
}

.panorama-container {
    min-height: 400px;
    background-color: var(--dark-bg);
    border-radius: var(--border-radius-main);
    overflow: hidden;
    position: relative;
}

#panoramaViewer {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    background-color: var(--dark-bg);
    border-radius: var(--border-radius-main);
    overflow: hidden;
}

#panoramaViewer canvas {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Zajištění správného zobrazení panoramatu */
#panoramaViewer .pnlm-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#panoramaViewer .pnlm-render-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#panoramaViewer .pnlm-canvas-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#floorplanImageWrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
    border: 2px solid var(--medium-dark-bg);
    border-radius: var(--border-radius-main);
    overflow: hidden;
    min-height: 200px;
    background-color: var(--dark-bg);
}

#floorplanImage {
    display: block;
    max-width: 100%;
    height: auto;
    transition: opacity 0.5s ease;
}

.floorplan-error-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--medium-text);
    text-align: center;
    position: absolute;
    top: 0; left: 0;
}

/* Hotspoty na půdorysu */
.floorplan-hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 107, 53, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.floorplan-hotspot:hover {
    background: rgba(255, 107, 53, 1);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.floorplan-hotspot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ff6b35;
    transform: scale(1.3);
}

/* Půdorys container */
.floorplan-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Kontejner s obrázkem půdorysu a absolutním overlayem pro body */
.floorplan-image-container {
    position: relative;
    display: inline-block;
}

#floorplanHotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* kliky pouze na body */
}

#floorplanHotspots .floorplan-hotspot {
    pointer-events: auto;
}

.floorplan-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Interaktivní sekce */
.interactive-floorplan-section {
    margin-top: 60px;
}

.tour-container {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.tour-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent-color);
    font-size: 1.8rem;
}

.tour-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.column-title {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.column-description {
    color: var(--medium-text);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.floorplan-hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px); /* Jemný pohyb nahoru při zobrazení */
}

/* Aktivní hotspot */
.floorplan-hotspot.active {
    background-color: var(--primary-color-hover);
    border-color: white;
    transform: translate(-50%, -50%) scale(1.2);
}

.floorplan-hotspot.active::after {
    animation: none;
}

/* Navigační body pro půdorys */
.floorplan-navigation-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floorplan-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.floorplan-dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.floorplan-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.floorplan-dot::after {
    content: attr(data-room);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floorplan-dot:hover::after {
    opacity: 1;
    visibility: visible;
    top: -35px;
}

/* Responsivní úpravy pro navigační body */
@media (max-width: 768px) {
    .floorplan-navigation-dots {
        gap: 10px;
        margin-top: 15px;
        padding: 12px;
    }
    
    .floorplan-dot {
        width: 14px;
        height: 14px;
    }
}

/* --- RESPONSIVE DESIGN --- */
/* === OPTIMALIZACE PRO MOBILNÍ PORTRÉTNÍ ZOBRAZENÍ === */
@media (max-width: 768px) and (orientation: portrait) {
    /* Celkové rozložení tour-container */
    .tour-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 15px;
        margin: 0;
        max-width: 100%;
    }
    
    /* Sekce půdorysu - optimalizace */
    .floorplan-section {
        order: 1;
        margin-bottom: 15px;
    }
    
    .floorplan-section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .floorplan-wrapper {
        position: relative;
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .floorplan-image-container {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    #floorplanImage {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
    }
    
    /* Hotspoty - větší a snadněji klikatelné */
    .floorplan-hotspot {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        border: 3px solid #fff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
    }
    
    .floorplan-hotspot:hover,
    .floorplan-hotspot.active {
        transform: scale(1.2) !important;
        border-color: var(--accent-color) !important;
    }
    
    /* Navigační tlačítka místností - horizontální scroll */
    .panorama-nav-btn {
        flex: 0 0 auto;
        padding: 8px 16px;
        margin: 0 4px;
        font-size: 0.9rem;
        white-space: nowrap;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--light-text);
        transition: all 0.3s ease;
    }
    
    .panorama-nav-btn:hover,
    .panorama-nav-btn.active {
        background: var(--accent-color);
        border-color: var(--accent-color);
        color: white;
        transform: translateY(-2px);
    }
    
    /* Kontejner pro navigační tlačítka - horizontální scroll */
    .room-navigation {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 0;
        margin: 15px 0;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-color) transparent;
    }
    
    .room-navigation::-webkit-scrollbar {
        height: 4px;
    }
    
    .room-navigation::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .room-navigation::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }
    
    /* Sekce 3D prohlídky - optimalizace */
    .panorama-section {
        order: 2;
        margin-top: 10px;
    }
    
    .panorama-section h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .panorama-section p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 15px;
        color: var(--medium-text);
    }
    
    /* Panorama container - větší výška pro mobil */
    .panorama-container {
        min-height: 60vh !important;
        height: 60vh !important;
        max-height: 60vh !important;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        position: relative;
    }
    
    #panoramaViewer {
        height: 60vh !important;
        min-height: 60vh !important;
        max-height: 60vh !important;
        border-radius: 12px;
        width: 100% !important;
    }
    
    /* Pannellum elementy pro mobil - přepsání desktop stylů */
    #panoramaViewer .pnlm-container,
    #panoramaViewer .pnlm-render-container,
    #panoramaViewer .pnlm-canvas-container {
        height: 60vh !important;
        min-height: 60vh !important;
        max-height: 60vh !important;
        width: 100% !important;
    }
    
    #panoramaViewer .pnlm-canvas {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    /* Ovládací prvky panoramatu - překrytí */
    .panorama-controls-simple {
        position: absolute;
        bottom: 15px;
        right: 15px;
        display: flex;
        gap: 8px;
        z-index: 10;
    }
    
    .control-btn-simple {
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .control-btn-simple:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        transform: scale(1.1);
    }
    
    /* Zoom tlačítko - lepší pozice */
    .panorama-zoom-button {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 10;
    }
    
    .panorama-zoom-button:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        transform: scale(1.1);
    }
    
    /* Obecné styly pro lepší čitelnost */
    .virtual-tour-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .virtual-tour-section > p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 20px;
        color: var(--medium-text);
    }
    
    /* Optimalizace padding a margin */
    .section-header {
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .panorama-wrapper {
        padding: 0;
        margin: 0;
    }
}

/* === OPTIMALIZACE PRO MENŠÍ MOBILY === */
@media (max-width: 480px) and (orientation: portrait) {
    .tour-container {
        padding: 10px;
        gap: 15px;
    }
    
    .floorplan-section h3,
    .panorama-section h3 {
        font-size: 1.1rem;
    }
    
    .virtual-tour-section h2 {
        font-size: 1.3rem;
    }
    
    .virtual-tour-section > p {
        font-size: 0.85rem;
    }
    
    .panorama-section p {
        font-size: 0.85rem;
    }
    
    /* Panorama - menší výška pro menší mobily */
    .panorama-container {
        min-height: 50vh !important;
        height: 50vh !important;
        max-height: 50vh !important;
    }
    
    #panoramaViewer {
        height: 50vh !important;
        min-height: 50vh !important;
        max-height: 50vh !important;
    }
    
    /* Pannellum elementy pro menší mobily */
    #panoramaViewer .pnlm-container,
    #panoramaViewer .pnlm-render-container,
    #panoramaViewer .pnlm-canvas-container {
        height: 50vh !important;
        min-height: 50vh !important;
        max-height: 50vh !important;
        width: 100% !important;
    }
    
    #panoramaViewer .pnlm-canvas {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    /* Navigační tlačítka - menší */
    .panorama-nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 0 2px;
    }
    
    .room-navigation {
        gap: 6px;
        padding: 8px 0;
        margin: 12px 0;
    }
    
    /* Ovládací prvky - menší */
    .control-btn-simple,
    .panorama-zoom-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .panorama-controls-simple {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .panorama-zoom-button {
        top: 10px;
        left: 10px;
    }
    
    /* Hotspoty - menší ale stále klikatelné */
    .floorplan-hotspot {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        border: 2px solid #fff !important;
    }
    
    /* Na mobilu skryj hotspoty úplně */
@media (max-width: 768px) {
    .floorplan-hotspot {
        display: none !important;
    }
    
    /* Skrýt zoom tlačítko na mobilu */
    #galleryZoomButton {
        display: none !important;
    }
    
    /* Skrýt zoom tlačítko galerie na mobilu */
    .gallery-zoom-button {
        display: none !important;
    }
}
}

@media (max-width: 480px) {
    .section-padding {
        padding: 40px 20px;
    }
    
    .section-padding-small {
        padding: 30px 20px;
    }
    
    .floorplan-360-wrapper {
        padding: 15px;
        margin-top: 20px;
    }
    
    .panorama-container {
        min-height: 300px;
    }
    
    #panoramaViewer {
        height: 300px;
    }
    
    .panorama-header {
        padding: 10px 15px;
    }
    
    .panorama-header h4 {
        font-size: 1rem;
    }
}

/* Jednoduchý panorama systém */
.panorama-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.panorama-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.panorama-image:hover {
    transform: scale(1.05);
}

.panorama-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    text-align: center;
}

.panorama-overlay h3 {
    margin: 0 0 10px 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.panorama-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* PANORAMA OVLÁDACÍ PRVKY */
.panorama-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}


/* Vylepšené panorama container */
#panoramaViewer {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 600px;
}

/* Pannellum viewer styly */
#pannellum-container {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
}

/* Jednodušší panorama ovládací prvky */
.panorama-controls-simple {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.control-btn-simple {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.control-btn-simple:hover {
    background: rgba(74, 144, 226, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.5);
    border-color: rgba(74, 144, 226, 0.8);
}

.control-btn-simple.active {
    background: #4A90E2;
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.7);
    border-color: #4A90E2;
}

.control-btn-simple i {
    font-size: 18px;
}

/* Chybový fallback - větší */
.panorama-error-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: linear-gradient(135deg, #2A2A3A 0%, #1E1E2E 100%);
    border-radius: 16px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.error-content {
    text-align: center;
    color: var(--medium-text);
    padding: 40px;
}

.error-content h3 {
    color: var(--light-text);
    margin-bottom: 15px;
}

.error-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Scene info overlay - větší */
.scene-info {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(30, 30, 46, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(74, 144, 226, 0.3);
    z-index: 1000;
    font-size: 16px;
    font-weight: 600;
    animation: fadeInUp 0.4s ease;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vylepšené Pannellum ovládací prvky - jen zoom */
.pnlm-zoom-controls {
    background: rgba(30, 30, 46, 0.8) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(74, 144, 226, 0.3) !important;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.2) !important;
}

.pnlm-zoom-in, .pnlm-zoom-out {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

.pnlm-zoom-in:hover, .pnlm-zoom-out:hover {
    background: #4A90E2 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4) !important;
}

/* Skryjeme nepotřebné Pannellum prvky */
.pnlm-fullscreen-button,
.pnlm-compass,
.pnlm-info,
.pnlm-load-button {
    display: none !important;
}

/* Responsivní úpravy pro panorama */
@media (max-width: 768px) {
    #panoramaViewer {
        min-height: 500px;
    }
    
    #pannellum-container {
        height: 500px;
    }
    
    .panorama-error-fallback {
        height: 500px;
    }
    
    .panorama-controls-simple {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .control-btn-simple {
        width: 40px;
        height: 40px;
    }
    
    .control-btn-simple i {
        font-size: 16px;
    }
    
    .scene-info {
        top: 10px;
        left: 10px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #panoramaViewer {
        min-height: 450px;
    }
    
    #pannellum-container {
        height: 450px;
    }
    
    .panorama-error-fallback {
        height: 450px;
    }
    
    .panorama-controls-simple {
        flex-direction: column;
        gap: 6px;
        top: 8px;
        right: 8px;
    }
    
    .control-btn-simple {
        width: 35px;
        height: 35px;
    }
    
    .control-btn-simple i {
        font-size: 14px;
    }
}

/* Instrukční panel */
.instructions-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1001;
    max-width: 300px;
    animation: slideInLeft 0.5s ease;
}

.instructions-content {
    background: rgba(30, 30, 46, 0.9);
    color: white;
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.2);
    position: relative;
}

.instructions-content h4 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructions-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.instructions-content li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
    padding-left: 0;
}

.instructions-content strong {
    color: var(--light-text);
}

.close-instructions-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--medium-text);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-instructions-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    color: white;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsivní úpravy pro instrukční panel */
@media (max-width: 768px) {
    .instructions-panel {
        max-width: 280px;
        top: 5px;
        left: 5px;
    }
    
    .instructions-content {
        padding: 15px;
    }
    
    .instructions-content h4 {
        font-size: 14px;
    }
    
    .instructions-content li {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .instructions-panel {
        max-width: 250px;
    }
    
    .instructions-content {
        padding: 12px;
    }
}

/* --- GALERIE OBRÁZKŮ --- */
.image-gallery {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-main-image:hover {
    transform: scale(1.02);
}

/* Ikona zvětšení */
.gallery-zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.gallery-zoom-icon:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 107, 53, 0.8);
}

.gallery-zoom-icon i {
    color: white;
    font-size: 18px;
}

/* Tlačítko zvětšení na obrázku */
.gallery-zoom-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-zoom-button:hover {
    background: rgba(255, 107, 53, 0.9);
    border-color: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Overlay pro zvětšený obrázek */
.gallery-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
    backdrop-filter: blur(5px);
}

.gallery-zoom-overlay.active {
    display: flex;
}

.gallery-zoom-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-zoom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.gallery-zoom-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-zoom-close:hover {
    background: rgba(255, 107, 53, 0.9);
    border-color: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
}

/* Responsivní úpravy */
@media (max-width: 768px) {
    .gallery-zoom-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
    
    .gallery-zoom-overlay {
        padding: 20px;
    }
    
    .gallery-zoom-overlay.active {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .gallery-zoom-content {
        max-width: 95%;
        max-height: 90%;
        padding: 15px;
        margin: 0 auto;
    }
    
    .gallery-zoom-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: -50px;
    }
    
    /* Hero zoom overlay centrování na mobilu */
    .hero-zoom-overlay {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-zoom-content {
        max-width: 95% !important;
        max-height: 90% !important;
        margin: 0 auto !important;
    }
    
    /* Interactive product section - mobilní centrování */
    .interactive-product-section .product-showcase {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .interactive-product-section .product-3d-model {
        width: 100% !important;
        max-width: 350px !important;
        height: 350px !important;
        margin: 0 auto !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .interactive-product-section .product-3d-model canvas {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .interactive-product-section .product-info {
        width: 350px !important;
        max-width: 350px !important;
        height: 280px !important;
        margin: 0 auto !important;
        padding: 15px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow-y: auto !important;
    }
    
    .mobile-hint {
        display: block !important;
    }
    
    /* Zoom content centrování na mobilu */
    .zoom-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        text-align: center !important;
    }
    
    .zoom-content img {
        max-width: 95% !important;
        max-height: 90% !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }
    
    /* Service cards centrování na mobilu */
    .service-card {
        margin: 0 auto !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .services-grid {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* Thumbnaily galerie */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gallery-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumbnail:hover {
    opacity: 1;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigační body pro galerii */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.gallery-dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.gallery-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Responsivní úpravy pro galerii */
@media (max-width: 768px) {
    .gallery-thumbnails {
        gap: 8px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .gallery-dots {
        margin-top: 15px;
    }
    
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
    
    .gallery-zoom-icon {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .gallery-zoom-icon i {
        font-size: 16px;
    }
}

/* --- KONTAKTNÍ STRÁNKA --- */
.contact-page {
    padding-top: var(--header-height);
}

.contact-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-dark-bg) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,107,53,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-hero p {
    color: var(--medium-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2,
.contact-form-container h2 {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-form-container p {
    color: var(--medium-text);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: var(--medium-dark-bg);
    border-radius: var(--border-radius-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 20px;
}

.contact-details h4 {
    color: var(--light-text);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--medium-text);
    margin: 0;
    line-height: 1.6;
}

.social-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--medium-dark-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-text);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.social-icon i {
    font-size: 18px;
}

/* Kontaktní formulář */
.contact-form {
    background-color: var(--medium-dark-bg);
    padding: 30px;
    border-radius: var(--border-radius-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    color: var(--light-text);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--dark-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-main);
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background-color: var(--dark-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-main);
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.custom-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    pointer-events: none;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-select:focus + .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

/* Specifické styly pro select options */
.custom-select option {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    border: none !important;
    margin: 0 !important;
}

.custom-select option:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.custom-select option:checked,
.custom-select option:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.custom-select option:first-child {
    background-color: #1a1a1a !important;
    color: #cccccc !important;
    font-style: italic;
}

/* Zlepšení pro select dropdown */
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff4757;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--medium-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.submit-btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* CTA sekce */
.contact-cta {
    background: linear-gradient(135deg, var(--medium-dark-bg) 0%, var(--dark-bg) 100%);
    text-align: center;
}

.contact-cta h2 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.contact-cta p {
    color: var(--medium-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsivní design pro kontaktní stránku */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon i {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 40px 0;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .contact-info h2,
    .contact-form-container h2 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

/* Tlačítko zvětšení na panoramatu */
.panorama-zoom-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.panorama-zoom-button:hover {
    background: rgba(255, 107, 53, 0.9);
    border-color: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Overlay pro zvětšené panorama */
.panorama-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.panorama-zoom-overlay.active {
    display: flex;
}

.panorama-zoom-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panorama-zoom-panorama {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* Pannellum v zoom overlay */
.panorama-zoom-panorama .pnlm-container {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
}

.panorama-zoom-panorama .pnlm-render-container {
    width: 100% !important;
    height: 100% !important;
}

.panorama-zoom-panorama canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
}

.panorama-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.panorama-zoom-close:hover {
    background: rgba(255, 107, 53, 0.9);
    border-color: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
}

/* Responsivní úpravy pro panorama zoom */
@media (max-width: 768px) {
    .panorama-zoom-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
    
    .panorama-zoom-close {
        width: 45px;
        height: 45px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
    
    /* Vizuální indikace pro klik na panorama v zoomu */
    .panorama-zoom-panorama {
        cursor: pointer !important;
    }
    
    .panorama-zoom-panorama canvas {
        cursor: pointer !important;
    }
    
    /* Animace pro indikaci klikatelnosti */
    .panorama-zoom-panorama:hover {
        opacity: 0.95;
        transition: opacity 0.3s ease;
    }
    
    /* Tlačítko zavření v panoramatu */
    .panorama-zoom-panorama button {
        transition: all 0.3s ease;
    }
    
    .panorama-zoom-panorama button:hover {
        background: rgba(255, 107, 53, 0.9) !important;
        border-color: rgba(255, 107, 53, 0.8) !important;
        transform: scale(1.1);
    }
}

/* Animace pro hint */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Kontejner pro tlačítko zvětšení panoramatu */
.panorama-zoom-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: auto;
}

/* Tlačítko zvětšení na panoramatu */
.panorama-zoom-button {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.panorama-zoom-button:hover {
    background: rgba(255, 107, 53, 0.9);
    border-color: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* GALERIE PROJEKTU */
.project-gallery-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h2 {
    margin-bottom: 15px;
}

.project-gallery {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-main {
    margin-bottom: 30px;
}

.gallery-main-image {
    position: relative;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.8);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-zoom-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-thumbnail {
    position: relative;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.gallery-thumbnail:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.gallery-thumbnail span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

/* RESPONZIVNOST */
@media (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .gallery-thumbnail img {
        height: 100px;
    }
    
    .gallery-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }
}

/* NOVÁ MODERNÍ GALERIE NA HLAVNÍ STRÁNCE */
.modern-gallery {
    max-width: 1400px;
    margin: 0 auto 80px;
}

.gallery-hero {
    margin-bottom: 50px;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    aspect-ratio: 16/9;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.hero-image-container:hover img {
    transform: scale(1.08);
}

.hero-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
    padding: 60px 40px 40px;
    color: white;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.hero-overlay-content h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.hero-overlay-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

.hero-zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-zoom-btn:hover {
    background: #4A90E2;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

.hero-zoom-btn i {
    font-size: 1.2rem;
}

/* Grid všech obrázků */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    aspect-ratio: 4/3;
    background: var(--medium-dark-bg);
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: #4A90E2;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.4);
}

.gallery-item.active {
    border-color: #4A90E2;
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.6);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 20px 15px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(10px);
}

.gallery-item:hover .item-label {
    transform: translateY(0);
}

/* Moderní CTA sekce */
.modern-cta {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    padding: 60px;
    border-radius: 25px;
    margin-top: 60px;
    box-shadow: 0 25px 80px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.price-info {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
    margin: 15px 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.price-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    font-weight: 500;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Overlay styly */
.hero-zoom-overlay,
.all-images-overlay,
.single-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.all-images-content {
    background: var(--dark-bg);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.overlay-header h3 {
    color: white;
    font-size: 2rem;
    margin: 0;
}

.overlay-close {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-close:hover {
    background: var(--primary-color-hover);
    transform: scale(1.1);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.overlay-image-item {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.overlay-image-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255,107,0,0.3);
}

.overlay-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-title {
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.single-zoom-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.single-zoom-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
}

.image-info {
    position: absolute;
    top: -60px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

.single-zoom-close {
    position: absolute;
    top: -20px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-zoom-close:hover {
    background: var(--primary-color-hover);
    transform: scale(1.1);
}

/* RESPONZIVNOST */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        aspect-ratio: 4/3;
    }
    
    .hero-overlay-content {
        padding: 40px 25px 25px;
    }
    
    .hero-overlay-content h3 {
        font-size: 1.8rem;
    }
    
    .hero-overlay-content p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .modern-cta {
        padding: 40px 25px;
    }
    
    .cta-content h3 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .all-images-content {
        padding: 20px;
    }
    
    .overlay-header h3 {
        font-size: 1.5rem;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

/* ZOOM OVERLAY */
.hero-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zoom-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.zoom-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
}

.zoom-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.zoom-close:hover {
    background: var(--primary-color-hover);
    transform: scale(1.1);
}

/* Navigační šipky v zoom overlay */
.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,107,0,0.9);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-nav:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.zoom-nav:disabled {
    background: rgba(128,128,128,0.5);
    cursor: not-allowed;
    opacity: 0.5;
}

.zoom-prev {
    left: 20px;
}

.zoom-next {
    right: 20px;
}

/* Informace o obrázku v zoom overlay */
.zoom-info {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10001;
}

.zoom-counter {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.zoom-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

/* RESPONZIVNOST pro zoom overlay */
@media (max-width: 1200px) {
    .zoom-prev {
        left: 15px;
    }
    
    .zoom-next {
        right: 15px;
    }
    
    .zoom-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .zoom-prev {
        left: 10px;
    }
    
    .zoom-next {
        right: 10px;
    }
    
    .zoom-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .zoom-close {
        width: 45px;
        height: 45px;
        font-size: 24px;
        top: -20px;
    }
    
    .zoom-info {
        bottom: -60px;
    }
    
    .zoom-counter {
        font-size: 1rem;
    }
    
    .zoom-title {
        font-size: 1rem;
    }
}

/* Navigační šipky v hlavní galerii */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,107,0,0.9);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:disabled {
    background: rgba(128,128,128,0.5);
    cursor: not-allowed;
    opacity: 0.5;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* RESPONZIVNOST pro navigační šipky v hlavní galerii */
@media (max-width: 1200px) {
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .gallery-prev {
        left: 15px;
    }
    
    .gallery-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
}

/* Progress bar pro galerii */
.gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-hover));
    transition: width 0.3s ease;
    border-radius: 0 0 15px 15px;
}



/* Fullscreen tlačítko v zoom overlay */
.zoom-fullscreen {
    position: absolute;
    top: -60px;
    right: 60px;
    width: 50px;
    height: 50px;
    background: rgba(255,107,0,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-fullscreen:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Progress bar v zoom overlay */
.zoom-progress {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.zoom-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-hover));
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Touch/swipe indikátor */
.touch-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.touch-hint.show {
    opacity: 1;
}

/* Responsivní úpravy pro nové prvky */
@media (max-width: 768px) {
    
    .zoom-fullscreen {
        top: -50px;
        right: 50px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .zoom-progress {
        width: 150px;
        bottom: -80px;
    }
}


/* Hover efekt pro navigační tlačítka */
.gallery-nav:hover:not(:disabled) {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255,107,0,0.4);
}

/* ===== KONTAKTNÍ FORMULÁŘ ===== */
.contact-form-container {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form-container h3 {
    color: var(--light-text);
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--primary-color-hover);
}

.form-submit {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-success,
.form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
}

.form-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
}

.form-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
}

/* Responzivita formuláře */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
        margin-top: 30px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .form-submit {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* ===== MOBILNÍ VYLEPŠENÍ ===== */
@media (max-width: 768px) {
    /* Header improvements */
    .main-header .container {
        padding: 0 20px;
    }
    
    .header-controls {
        gap: 10px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle i {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    /* 3D Model mobile improvements */
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .product-3d-model {
        width: 100%;
        max-width: 100%;
        height: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .fab-controls {
        position: relative;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 20px auto 0;
        width: fit-content;
        gap: 15px;
    }
    
    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    .fab-btn .btn-label {
        font-size: 0.7rem;
    }
    
    /* Gallery mobile improvements */
    .gallery-category-tabs {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .category-tab {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
    
    .gallery-hero {
        margin-bottom: 30px;
    }
    
    .hero-image-container {
        height: 250px;
        max-width: 98%;
        margin: 0 auto;
    }
    
    /* Přesunout tlačítko "Zvětšit" do DOLNÍHO levého rohu na mobilu */
    .hero-zoom-btn {
        position: absolute !important;
        bottom: 10px !important;
        left: 10px !important;
        padding: 4px 6px !important;
        font-size: 0.6rem !important;
        opacity: 0.7 !important;
        z-index: 10 !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-zoom-btn i {
        font-size: 0.8rem !important;
    }
    
    .hero-zoom-btn span {
        display: none !important;
    }
    
    /* Zmenšit text overlay na mobilu */
    .hero-overlay-content {
        padding: 15px 10px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .hero-overlay-content h3 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .hero-overlay-content p {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    .item-label {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Contact section mobile */
    .contact-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    /* Form mobile improvements */
    .contact-form-container {
        margin: 20px 0;
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobilní optimalizace pro select */
    .form-group select {
        background-size: 20px;
        padding-right: 45px;
    }
    
    .form-group select option {
        font-size: 16px;
        padding: 12px;
        line-height: 1.4;
    }
    
    /* Mobilní optimalizace pro custom select */
    .custom-select {
        font-size: 16px;
        padding: 12px 45px 12px 16px;
    }
    
    .custom-select-arrow {
        font-size: 14px;
        right: 15px;
    }
    
    .custom-select option {
        font-size: 16px;
        padding: 12px;
        line-height: 1.4;
    }
    
    /* Touch improvements */
    .btn, .fab-btn, .theme-toggle {
        min-height: 44px; /* iOS touch target */
        min-width: 44px;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Better text selection */
    ::selection {
        background: var(--primary-color);
        color: var(--light-text);
    }
}

/* Landscape orientation support - pouze pro šířky <=1024px (mobil/tablet) */
@media (max-width: 1024px) and (orientation: landscape) {
    .product-3d-model {
        width: 100%;
        max-width: 100%;
        height: 250px;
        min-height: 250px;
        margin: 0 auto;
        display: block;
    }
    
    .fab-controls {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        top: auto;
        flex-direction: row;
        justify-content: center;
        margin: 20px auto 0;
        transform: none;
        padding: 10px;
        gap: 15px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
    
    .fab-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Tablet improvements */
@media (max-width: 768px) and (min-width: 481px) {
    .product-3d-model {
        width: 100%;
        max-width: 100%;
        height: 400px;
        min-height: 400px;
        margin: 0 auto;
        display: block;
    }
    
    .fab-controls {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        top: auto;
        flex-direction: row;
        justify-content: center;
        margin: 20px auto 0;
        transform: none;
        gap: 20px;
        padding: 15px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .gallery-category-tabs {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .product-3d-model {
        width: 100%;
        max-width: 100%;
        height: 300px;
        min-height: 300px;
        margin: 0 auto;
        display: block;
    }
    
    /* Touch-friendly 3D controls - VODOROVNĚ POD MODELEM */
    .fab-controls {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin: 20px auto 0 !important;
        transform: none !important;
        gap: 20px !important;
        padding: 15px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 15px !important;
        backdrop-filter: blur(10px) !important;
        width: 100% !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .gallery-item {
        aspect-ratio: 1;
        border-radius: 8px;
    }
    
    .gallery-item img {
        border-radius: 8px;
    }
    
    /* Touch-friendly gallery navigation */
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 50%;
    }
    
    .gallery-category-tabs {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .category-tab {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Mobile header improvements */
    .main-header {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    
    .main-nav ul li {
        margin: 0;
    }
    
    .main-nav ul li a {
        font-size: 18px;
        padding: 10px 0;
        display: block;
    }
    
    /* Mobile hero improvements */
    .hero-section {
        min-height: 70vh;
        padding: 80px 0 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    /* Mobile form improvements */
    .contact-form-container {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .form-submit {
        width: 100%;
        padding: 15px;
        font-size: 18px;
        margin-top: 20px;
    }
    
    /* Mobile sections */
    .section-padding {
        padding: 40px 15px;
    }
    
    .section-padding-small {
        padding: 30px 15px;
    }
    
    /* Mobile buttons */
    .btn {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    /* Touch improvements */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    button, .btn, .fab-btn {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Smooth scrolling */
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better touch targets */
    .gallery-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    .category-tab {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== LOADING ANIMACE ===== */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Page load animation */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Button hover animations */
.btn, .fab-btn, .theme-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover, .fab-btn:hover {
    transform: translateY(-2px);
}

.btn:active, .fab-btn:active {
    transform: translateY(0);
}

/* Gallery item animations */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
}

/* 3D Model loading animation */
.product-3d-model {
    transition: all 0.5s ease-out;
}

.product-3d-model.loading {
    background: linear-gradient(90deg, 
        rgba(74, 144, 226, 0.1) 25%, 
        rgba(74, 144, 226, 0.2) 50%, 
        rgba(74, 144, 226, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== ACCESSIBILITY STYLES ===== */
/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

/* High contrast mode */
.high-contrast {
    --primary-color: #0000FF;
    --primary-color-hover: #0000CC;
    --light-text: #000000;
    --medium-text: #333333;
    --dark-bg: #FFFFFF;
    --medium-dark-bg: #F0F0F0;
}

.high-contrast .btn,
.high-contrast .fab-btn,
.high-contrast .theme-toggle {
    border: 2px solid #000000;
    background: #FFFFFF;
    color: #000000;
}

.high-contrast .btn:hover,
.high-contrast .fab-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

/* Reduced motion */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.reduced-motion .gallery-item:hover {
    transform: none;
}

.reduced-motion .btn:hover,
.reduced-motion .fab-btn:hover {
    transform: none;
}

/* Skip links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus management */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ARIA live regions */
[aria-live] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Error states */
.error-message[role="alert"] {
    color: #ff6b6b;
    font-weight: 600;
}

/* Loading states */
[aria-busy="true"] {
    cursor: wait;
}

/* Disabled states */
[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Touch targets */
@media (max-width: 768px) {
    button, .fab-btn, .theme-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
/* Fade in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Parallax effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Pulse animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Floating animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Gradient animation */
.gradient-animation {
    background: linear-gradient(-45deg, #4A90E2, #357ABD, #2A2A3A, #1E1E2E);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--light-text);
}

.service-card h3 {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--medium-text);
    line-height: 1.6;
}

/* Hover efekt pro zoom tlačítko */
.hero-zoom-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,0,0.3);
}

/* Hover efekt pro CTA tlačítka */
.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hover efekt pro progress bar */
.gallery-progress:hover .progress-bar {
    background: linear-gradient(90deg, var(--primary-color-hover), var(--primary-color));
}

/* ===== KOMPLETNÍ REDESIGN: 3D kávovar ===== */
.interactive-product-section {
    background: 
        radial-gradient(ellipse 800px 400px at 20% 20%, rgba(74,144,226,0.15), transparent),
        radial-gradient(ellipse 600px 300px at 80% 80%, rgba(53,122,189,0.12), transparent),
        linear-gradient(135deg, #1a1d29 0%, #252837 50%, #2a2d3e 100%);
    position: relative;
    overflow: hidden;
}

.interactive-product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(74,144,226,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(53,122,189,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.interactive-product-section .product-showcase {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.interactive-product-section .product-3d-model {
    width: 100%;
    max-width: 600px;
    height: 600px;
    aspect-ratio: 1/1;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    box-shadow: 
        0 32px 80px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.interactive-product-section .product-3d-model::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%),
        linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.interactive-product-section .product-info {
    height: 600px;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 
        0 32px 80px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    position: relative;
    align-self: flex-start;
}

/* Typografie a nadpisy */
.interactive-product-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e8ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.interactive-product-section .section-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.interactive-product-section .product-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.interactive-product-section .product-info p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.interactive-product-section .product-controls {
    gap: 8px;
    justify-content: flex-start;
    margin-top: 16px;
}

/* ===== PŘEPÍNAČ SEKCIÍ GALERIE ===== */
.gallery-category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    background: rgba(74,144,226,0.2);
    border-color: rgba(74,144,226,0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74,144,226,0.3);
}

.category-tab.active {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-color: #4A90E2;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(74,144,226,0.4);
}

.category-tab i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.category-tab:hover i {
    transform: scale(1.1);
}

.category-tab span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .gallery-category-tabs {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 10px;
        position: relative;
        top: -15px;
    }
    
    .category-tab i {
        font-size: 12px;
    }
}

/* ===== ROZDĚLOVAČ SEKCIÍ V GALERII ===== */
.gallery-section-divider {
    grid-column: 1 / -1;
    text-align: center;
    margin: 40px 0 20px 0;
    position: relative;
}

.gallery-section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(74,144,226,0.3), transparent);
    z-index: 1;
}

.gallery-section-divider h3 {
    background: #1a1a2e;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .gallery-section-divider {
        margin: 30px 0 15px 0;
    }
    
    .gallery-section-divider h3 {
        font-size: 1.2rem;
        padding: 0 20px;
    }
}

/* ===== VARIANTY MODERNÍHO DESIGNU ===== */

/* Tlačítka pod modelem - horizontální layout */
.fab-controls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px 20px !important;
    background: rgba(0,0,0,0.8) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    width: fit-content !important;
    height: fit-content !important;
    margin: 20px auto 0 !important;
    position: relative !important;
}

/* FORCE HORIZONTAL LAYOUT - OVERRIDE ALL */
#fabControls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* ULTRA FORCE - přepíše všechno */
.fab-controls#fabControls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    position: relative !important;
    margin: 20px auto 0 !important;
    width: fit-content !important;
    height: fit-content !important;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74,144,226,0.3);
    position: relative;
    padding: 0;
}

.fab-btn:hover {
    background: linear-gradient(135deg, #5BA0F2, #4A90E2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(74,144,226,0.4);
}

.fab-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(74,144,226,0.3);
}

.fab-btn.active {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.fab-btn i {
    font-size: 24px;
    font-weight: 500;
    display: block;
    min-width: 24px;
    min-height: 24px;
}

/* Fallback pro ikony pokud se FontAwesome nenačte */
.fab-btn i:before {
    content: "●";
    font-family: Arial, sans-serif;
    font-size: 20px;
}

.fab-btn i.fa-undo:before { content: "↶"; }
.fab-btn i.fa-play:before { content: "▶"; }
.fab-btn i.fa-sync-alt:before { content: "↻"; }
.fab-btn i.fa-cog:before { content: "⚙"; }

.fab-btn .btn-label {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    text-align: center;
    margin-top: 2px;
}

.interactive-product-section .product-controls .control-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
}
.interactive-product-section .product-controls .control-btn:active {
    transform: translateY(1px);
}
.interactive-product-section .product-controls .control-btn.active {
    background: rgba(74,144,226,0.22);
    border-color: #4A90E2;
}
.interactive-product-section .product-controls .control-btn i { font-size: 0.95rem; color: #cfe0ff; }
.interactive-product-section .product-controls .control-btn span { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.85rem; }

/* Pokročilé ovládání - moderní design */
.interactive-product-section .advanced-controls {
    margin-top: 2rem;
    padding: 24px;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 16px 40px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.interactive-product-section .advanced-controls .control-group {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.interactive-product-section .advanced-controls .control-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.interactive-product-section .advanced-controls label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interactive-product-section .advanced-controls input[type="range"] {
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(74,144,226,0.2) 0%, 
        rgba(131,179,241,0.3) 50%, 
        rgba(74,144,226,0.2) 100%);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interactive-product-section .advanced-controls input[type="range"]:hover {
    background: linear-gradient(90deg, 
        rgba(74,144,226,0.3) 0%, 
        rgba(131,179,241,0.4) 50%, 
        rgba(74,144,226,0.3) 100%);
}

.interactive-product-section .advanced-controls input[type="range"]::-webkit-slider-thumb {
    width: 20px; 
    height: 20px; 
    background: linear-gradient(135deg, #6ba4ee 0%, #4a90e2 100%); 
    border-radius: 50%;
    box-shadow: 
        0 4px 12px rgba(74,144,226,0.4),
        0 0 0 2px rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.interactive-product-section .advanced-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 16px rgba(74,144,226,0.5),
        0 0 0 3px rgba(255,255,255,0.15);
}

.interactive-product-section .advanced-controls input[type="range"]::-moz-range-thumb {
    width: 20px; 
    height: 20px; 
    background: linear-gradient(135deg, #6ba4ee 0%, #4a90e2 100%); 
    border-radius: 50%;
    box-shadow: 
        0 4px 12px rgba(74,144,226,0.4),
        0 0 0 2px rgba(255,255,255,0.1);
    cursor: pointer;
    border: none;
}

.interactive-product-section .advanced-controls input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.interactive-product-section .advanced-controls input[type="color"]:hover {
    border-color: rgba(74,144,226,0.5);
    transform: scale(1.05);
}

.interactive-product-section .advanced-controls span { 
    color: #4A90E2; 
    font-weight: 700; 
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

/* Moderní tlačítko HDR */
.interactive-product-section .hdr-button {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(74,144,226,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.interactive-product-section .hdr-button:hover {
    background: linear-gradient(135deg, #5BA0F2 0%, #4A90E2 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(74,144,226,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.interactive-product-section .hdr-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(74,144,226,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Responsivita */
@media (max-width: 768px) {
    .interactive-product-section .product-showcase { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    .interactive-product-section .product-3d-model { 
        width: 100%;
        max-width: 400px;
        height: 400px;
        aspect-ratio: 1/1;
        margin: 0 auto;
    }
    
    .interactive-product-section .product-controls { 
        justify-content: center; 
    }
    
    .interactive-product-section h2 {
        font-size: 2.5rem;
    }
    
    .interactive-product-section .section-subtitle {
        font-size: 1.1rem;
    }
    
    .interactive-product-section .advanced-controls .control-group {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .fab-controls {
        margin: 0 10px;
        gap: 10px;
        padding: 15px;
    }
    
    .fab-btn {
        width: 50px;
        height: 50px;
    }
    
    .fab-btn i {
        font-size: 20px;
    }
    
    .fab-btn .btn-label {
        font-size: 7px;
    }
}

/* CSS 3D Kostka */
.interactive-cube-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
}

.cube-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
}

.cube-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(15deg);
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.cube-face.front  { transform: rotateY(0deg) translateZ(100px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

.face-content {
    padding: 20px;
}

.face-content i {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.face-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.face-content p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Rotace kostky */
.product-cube.rotating {
    animation: cubeRotate 10s infinite linear;
}

@keyframes cubeRotate {
    0% { transform: rotateX(-15deg) rotateY(15deg); }
    100% { transform: rotateX(-15deg) rotateY(375deg); }
}

/* Hover efekt */
.product-cube:hover {
    transform: rotateX(-15deg) rotateY(15deg) scale(1.1);
}

/* Kontrolní tlačítka */
.cube-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}


/* Informace o kostce */
.cube-info {
    flex: 1;
    color: white;
}

.cube-info h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cube-info p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cube-features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cube-features-list .feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.cube-features-list .feature-item i {
    font-size: 1.2em;
    color: #667eea;
    width: 20px;
}

.cube-features-list .feature-item span {
    font-size: 1em;
    opacity: 0.9;
}

/* Responzivita */
@media (max-width: 768px) {
    .cube-showcase {
        flex-direction: column;
        text-align: center;
    }
    
    .product-cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
    
    .cube-face.front  { transform: rotateY(0deg) translateZ(75px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(75px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(75px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(75px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(75px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
}

/* Pokročilé ovládání */
.advanced-controls {
    margin-top: 25px;
    padding: 20px;
    background: rgba(74, 144, 226, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.control-group label {
    color: var(--light-text);
    font-weight: 600;
    min-width: 80px;
    font-size: 0.9rem;
}

.control-group input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4A90E2;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.control-group input[type="color"] {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.control-group span {
    color: #4A90E2;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsivní design pro pokročilé ovládání */
@media (max-width: 768px) {
    .advanced-controls {
        margin-top: 20px;
        padding: 15px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .control-group label {
        min-width: auto;
    }
    
    .control-group input[type="range"] {
        width: 100%;
    }
}

/* HDR tlačítko */
.hdri-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid #4A90E2;
    border-radius: 8px;
    color: #4A90E2;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.hdri-toggle:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.hdri-toggle.active {
    background: #4A90E2;
    color: var(--light-text);
}

.hdri-toggle i {
    font-size: 1rem;
}

.hdri-toggle span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== 360° PANORAMA PROHLÍDKA ===== */
.panorama-section {
    background: linear-gradient(135deg, #1E1E2E 0%, #2A2A3A 100%);
    position: relative;
    overflow: hidden;
}

.panorama-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="panorama-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(74,144,226,0.08)" stroke-width="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23panorama-grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.panorama-container {
    position: relative;
    z-index: 2;
}

.panorama-viewer {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(74, 144, 226, 0.2);
    backdrop-filter: blur(10px);
}

.panorama-canvas {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #2A2A3A, #3A3A4A);
    border: 2px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.panorama-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
}

.panorama-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-text);
    z-index: 10;
}

.panorama-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-top: 3px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.panorama-loading p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--medium-text);
}

.panorama-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding: 20px;
    background: rgba(42, 42, 58, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.panorama-controls .control-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.panorama-controls label {
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
}

.panorama-controls select {
    padding: 8px 12px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.panorama-controls select:hover {
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.panorama-controls select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.panorama-controls .control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid #4A90E2;
    border-radius: 8px;
    color: #4A90E2;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.panorama-controls .control-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.panorama-controls .control-btn i {
    font-size: 1rem;
}

.panorama-controls .control-btn span {
    font-size: 0.9rem;
}

.panorama-controls input[type="range"] {
    flex: 1;
    min-width: 100px;
    height: 6px;
    background: rgba(74, 144, 226, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.panorama-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4A90E2;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.panorama-controls input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.panorama-controls span {
    color: #4A90E2;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.room-info {
    margin-top: 25px;
    padding: 20px;
    background: rgba(42, 42, 58, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    text-align: center;
}

.room-info h3 {
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.room-info p {
    color: var(--medium-text);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsivní design pro panoramu */
@media (max-width: 768px) {
    .panorama-canvas {
        height: 350px;
    }
    
    .panorama-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .panorama-controls .control-group {
        min-width: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .panorama-controls select {
        min-width: auto;
        width: 100%;
    }
    
    .panorama-controls input[type="range"] {
        width: 100%;
    }
    
    .panorama-viewer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .panorama-canvas {
        height: 300px;
    }
    
    .panorama-controls {
        padding: 15px;
    }
    
    .room-info {
        padding: 15px;
    }
    
    .room-info h3 {
        font-size: 1.2rem;
    }
    
    .room-info p {
        font-size: 0.9rem;
    }
}

/* Kontaktní sekce */
.cta-section {
    padding: 30px 0;
    background-color: var(--medium-dark-bg);
}

.cta-section h2 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-price {
    color: #4A90E2;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
}

/* Kontaktní informace */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.contact-item i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-info {
        margin: 15px 0;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
}

/* Landscape módu specifické úpravy */
.landscape-mode {
    overflow-x: hidden;
}

.landscape-mode .product-3d-model {
    height: 200px !important;
    min-height: 200px !important;
}

.landscape-mode .interactive-product-section {
    padding: 20px 0;
}

.landscape-mode .product-showcase {
    grid-template-columns: 1fr !important;
    gap: 15px;
}

.landscape-mode .gallery-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px;
}

/* Mobilní galerie - oprava vertikálního zobrazení */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
}