/* ==========================================================================
   RODINNÉ STOLAŘSTVÍ — 10. VARIANTA (MASTER-TIER AWWWARDS EXPERIENCE)
   Premium CSS Stylesheet with Material Themes, Audio Controls & CNC HUD
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   DESIGN TOKENY — VÝCHOZÍ TMAVÝ REŽIM (OAK THEME)
   ────────────────────────────────────────────────────────────────────────── */
:root,
[data-theme="dark"] {
    --bg-base:          #080605; /* Uhelná čerň */
    --bg-surface:       #100d0c; /* Tmavý dubový povrch */
    --bg-card:          rgba(16, 13, 12, 0.6);
    --border-card:      rgba(255, 255, 255, 0.04);
    --border-glow:      rgba(207, 161, 92, 0.2);
    
    --text-primary:     #f5f2ee; /* Lněná bílá */
    --text-secondary:   #b0a8a0; /* Kůrová šedá */
    --text-muted:       #6e665e; /* Tmavé lano */
    
    /* Dynamický akcent — Dub (Výchozí) */
    --text-accent:      #cfa15c; /* Broušená mosaz */
    --text-accent-glow: #e5b869;
    --accent-glow-rgb:  207, 161, 92;

    --brand-red:        #aa1c1e;
    --brand-blue:       #0c3982;
    --brand-red-glow:   rgba(170, 28, 30, 0.12);
    --brand-blue-glow:  rgba(12, 57, 130, 0.12);
    
    --glass-bg:         rgba(14, 11, 10, 0.7);
    --glass-border:     rgba(255, 255, 255, 0.04);
    --glass-shadow:     0 25px 60px rgba(0, 0, 0, 0.6);

    --grid-line:        rgba(207, 161, 92, 0.02);
    --grid-line-strong: rgba(255, 255, 255, 0.015);
}

/* ──────────────────────────────────────────────────────────────────────────
   DYNAMICKÁ TÉMATA MATERIÁLŮ (Přepínání dýh)
   ────────────────────────────────────────────────────────────────────────── */
body.theme-mahogany {
    --text-accent:      #b84433; /* Teplé mahagonové dřevo */
    --text-accent-glow: #d65947;
    --accent-glow-rgb:  184, 68, 51;
    --grid-line:        rgba(184, 68, 51, 0.03);
    --border-glow:      rgba(184, 68, 51, 0.25);
}

body.theme-walnut {
    --text-accent:      #8a6b51; /* Hluboký ořechový masiv */
    --text-accent-glow: #ab8667;
    --accent-glow-rgb:  138, 107, 81;
    --grid-line:        rgba(138, 107, 81, 0.03);
    --border-glow:      rgba(138, 107, 81, 0.25);
}

/* ──────────────────────────────────────────────────────────────────────────
   SVĚTLÝ REŽIM (Březový základ s prolnutím témat)
   ────────────────────────────────────────────────────────────────────────── */
[data-theme="light"] {
    --bg-base:          #fbf9f6; /* Březový krém */
    --bg-surface:       #ffffff; /* Čisté dřevo */
    --bg-card:          rgba(255, 255, 255, 0.8);
    --border-card:      rgba(148, 107, 69, 0.08);
    --border-glow:      rgba(var(--accent-glow-rgb), 0.3);
    
    --text-primary:     #1c1613; /* Tmavá kůra */
    --text-secondary:   #59514a; /* Zemitá šeď */
    --text-muted:       #9e9389; /* Béžový tón */
    
    --glass-bg:         rgba(255, 255, 255, 0.85);
    --glass-border:     rgba(148, 107, 69, 0.08);
    --glass-shadow:     0 25px 60px rgba(148, 107, 69, 0.06);

    --grid-line:        rgba(148, 107, 69, 0.03);
    --grid-line-strong: rgba(148, 107, 69, 0.05);
}

body[data-theme="light"].theme-mahogany {
    --text-accent:      #9c3425;
    --text-accent-glow: #b84433;
    --accent-glow-rgb:  156, 52, 37;
}

body[data-theme="light"].theme-walnut {
    --text-accent:      #6e523b;
    --text-accent-glow: #8a6b51;
    --accent-glow-rgb:  110, 82, 59;
}

/* ──────────────────────────────────────────────────────────────────────────
   RESET & BAZÁLNÍ VZHLED
   ────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1), color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

::-webkit-scrollbar {
    display: none;
}

/* ──────────────────────────────────────────────────────────────────────────
   PREMIUM CANVAS & BACKGROUND HUDS
   ────────────────────────────────────────────────────────────────────────── */
#interactive-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.tech-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    transition: background-image 0.8s ease;
}

/* Technické HUD nitkové kříže */
.tech-crosshairs {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

.tech-crosshairs::before,
.tech-crosshairs::after {
    content: '';
    position: absolute;
    background-color: var(--text-accent);
}

.tech-axis-x {
    position: fixed;
    top: 90px;
    left: 5%;
    width: 90%;
    height: 1px;
    background-color: var(--grid-line-strong);
    z-index: 0;
    pointer-events: none;
    transition: background-color 0.8s ease;
}
.tech-axis-x::before {
    content: 'CNC FEEDBACK MATRIX // G-CODE SIMULATION ON SCROLL // ±0.1mm TOL';
    position: absolute;
    top: -15px;
    left: 0;
    font-size: 7.5px;
    font-family: monospace;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    transition: color 0.8s ease;
}

/* Ambientní chromatické záře */
.ambient-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(180px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
    mix-blend-mode: screen;
    animation: floating-glow 20s ease-in-out infinite alternate;
    transition: background 0.8s ease;
}
[data-theme="light"] .ambient-glow {
    opacity: 0.08;
    mix-blend-mode: multiply;
}

.glow-red {
    top: -250px;
    right: -150px;
    background: radial-gradient(circle, rgba(var(--accent-glow-rgb), 0.8) 0%, transparent 70%);
}

.glow-blue {
    bottom: -250px;
    left: -150px;
    background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
    animation-delay: -9s;
}

@keyframes floating-glow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(60px, 40px); }
}

/* ──────────────────────────────────────────────────────────────────────────
   PORTAL GLASS NAVIGACE S AUDIO HUDEM
   ────────────────────────────────────────────────────────────────────────── */
.nav-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    z-index: 100;
    margin-top: 2rem;
    pointer-events: none;
}

.nav-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 100px;
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--glass-shadow);
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-wrap img {
    height: 32px;
    display: block;
    transition: filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 0.3rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--text-accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.8s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Tlačítko pro světlý/tmavý režim */
#theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    border-color: var(--border-glow);
    color: var(--text-accent);
    box-shadow: 0 0 15px rgba(var(--accent-glow-rgb), 0.2);
}

.icon-light { display: none; }
[data-theme="light"] .icon-dark { display: none; }
[data-theme="light"] .icon-light { display: block; }

/* ─── AUDIO PANEL S EKVALIZÉREM ─── */
.audio-panel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-card);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}
[data-theme="light"] .audio-panel {
    background: rgba(255, 255, 255, 0.4);
}

.audio-panel:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 12px rgba(var(--accent-glow-rgb), 0.15);
}

.audio-text {
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.audio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
    width: 18px;
}

.audio-bar {
    width: 2px;
    height: 3px;
    background-color: var(--text-accent);
    border-radius: 1px;
    transition: height 0.15s ease, background-color 0.8s ease;
}

/* Tancování ekvalizéru při aktivním zvuku */
.audio-panel.playing .audio-bar:nth-child(1) { animation: dance-bar 0.6s infinite alternate 0.1s; }
.audio-panel.playing .audio-bar:nth-child(2) { animation: dance-bar 0.5s infinite alternate 0.3s; }
.audio-panel.playing .audio-bar:nth-child(3) { animation: dance-bar 0.7s infinite alternate 0.0s; }
.audio-panel.playing .audio-bar:nth-child(4) { animation: dance-bar 0.4s infinite alternate 0.2s; }

@keyframes dance-bar {
    0% { height: 3px; }
    100% { height: 12px; }
}

.btn-nav-cta {
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--text-accent);
    color: var(--text-accent);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-nav-cta:hover {
    background: var(--text-accent);
    color: var(--bg-base);
    box-shadow: 0 8px 25px rgba(var(--accent-glow-rgb), 0.25);
    transform: translateY(-1px);
}

/* ──────────────────────────────────────────────────────────────────────────
   VERTICAL SLIDES ENGINE LAYOUT (Liquid filter attached)
   ────────────────────────────────────────────────────────────────────────── */
.slides-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Třída pro aktivaci SVG tavení přes filter */
.slides-container.displacing {
    filter: url(#liquid-wood) blur(1px);
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%) scale(1.05);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 1.2s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
}

.slide.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 20;
}

.slide.prev {
    visibility: visible;
    opacity: 0.1;
    transform: translateY(-100%) scale(0.95);
    z-index: 10;
}

.slide-content-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 5;
    margin-top: 5rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   SLIDE 1: HERO
   ────────────────────────────────────────────────────────────────────────── */
.hero-bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(0.55) contrast(1.05);
}

.hero-bg-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(15, 17, 21, 0.2) 0%, rgba(15, 17, 21, 0.96) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 5rem;
    align-items: center;
    height: 100%;
    padding-bottom: 4rem;
}

.hero-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.holo-badge {
    align-self: flex-start;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 8.5px;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-accent);
    background: rgba(var(--accent-glow-rgb), 0.08);
    border: 1px solid rgba(var(--accent-glow-rgb), 0.2);
    margin-bottom: 2rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s, background-color 0.8s ease, border-color 0.8s ease;
}

.slide.active .holo-badge {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.05;
    text-transform: uppercase;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    margin-bottom: 2rem;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.hero-title span {
    display: block;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.8s ease;
}

.slide.active .hero-title {
    transform: translateY(0);
    opacity: 1;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 580px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.7s;
}

.slide.active .hero-desc {
    transform: translateY(0);
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.9s;
}

.slide.active .hero-actions {
    transform: translateY(0);
    opacity: 1;
}

.btn-premium-solid {
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    background: var(--text-accent);
    color: var(--bg-base);
    border: 1px solid var(--text-accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.8s ease;
    box-shadow: 0 10px 30px rgba(var(--accent-glow-rgb), 0.15);
}

.btn-premium-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(var(--accent-glow-rgb), 0.35);
}

.btn-premium-ghost {
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-premium-ghost:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.02);
}

/* Kruhový maskovaný Saw visualizer */
.hero-visual-side {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9) rotate(5deg);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
}

.slide.active .hero-visual-side {
    transform: scale(1) rotate(0);
    opacity: 1;
}

.hero-video-frame {
    width: 440px;
    height: 440px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-glow);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.6);
    background: #000;
    transition: border-color 0.8s ease;
}

.hero-video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(8, 6, 5, 0.8) 100%);
    pointer-events: none;
}

/* Floating credentials box */
.hero-credentials-box {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 10;
}

.cred-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cred-icon {
    font-size: 16px;
    color: var(--text-accent);
    transition: color 0.8s ease;
}

.cred-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Scroll dolů indikátor */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 50;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    width: 20px;
    height: 35px;
    border: 1px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background-color: var(--text-accent);
    border-radius: 2px;
    animation: scroll-mouse 1.8s ease-in-out infinite;
    transition: background-color 0.8s ease;
}

@keyframes scroll-mouse {
    0% { top: 6px; opacity: 0; }
    30% { opacity: 1; }
    80% { top: 22px; opacity: 0; }
    100% { top: 22px; opacity: 0; }
}

/* ──────────────────────────────────────────────────────────────────────────
   SLIDE 2: O NÁS (Historické letokruhy)
   ────────────────────────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    height: 100%;
}

.about-text-side {
    max-width: 580px;
}

.about-title {
    font-size: 2.8rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: 'Syncopate', sans-serif;
    letter-spacing: -0.5px;
}

.about-title span {
    color: var(--text-accent);
    transition: color 0.8s ease;
}

.about-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.about-timeline-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(50px);
    opacity: 0;
}

.slide.active .timeline-card {
    transform: translateX(0);
    opacity: 1;
}

.slide.active .timeline-card:nth-child(1) { transition-delay: 0.3s; }
.slide.active .timeline-card:nth-child(2) { transition-delay: 0.5s; }
.slide.active .timeline-card:nth-child(3) { transition-delay: 0.7s; }
.slide.active .timeline-card:nth-child(4) { transition-delay: 0.9s; }

.timeline-card:hover,
.timeline-card.active {
    border-color: var(--border-glow);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.timeline-year {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-accent);
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-card);
    transition: color 0.8s ease;
}

.timeline-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.timeline-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────────────
   SLIDE 3: KUCHYNĚ (S KONFIGURÁTOREM MATERIÁLŮ)
   ────────────────────────────────────────────────────────────────────────── */
.kitchen-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.kitchen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    transition: opacity 1.2s ease, filter 1.2s ease;
}

.slide.active .kitchen-img {
    opacity: 0.45;
}
[data-theme="light"] .slide.active .kitchen-img {
    opacity: 0.25;
}

/* Barevné filtry aplikované na fotku na základě konfigurátoru */
.theme-mahogany .kitchen-img { filter: sepia(0.35) hue-rotate(-15deg) saturate(1.2) contrast(1.05); }
.theme-walnut .kitchen-img { filter: sepia(0.2) contrast(1.15) brightness(0.9); }

.kitchen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-base) 20%, transparent 80%),
                linear-gradient(to top, var(--bg-base) 0%, transparent 30%);
    transition: background 0.8s ease;
}

.kitchen-content-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 5;
}

.hotspots-container {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px dashed var(--grid-line-strong);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.8s ease;
}

/* Konfigurátor dýh uvnitř levé strany */
.material-configurator-box {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.config-title {
    font-size: 9px;
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--text-accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
    transition: color 0.8s ease;
}

.config-options {
    display: flex;
    gap: 0.8rem;
}

.config-btn {
    flex: 1;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
[data-theme="light"] .config-btn {
    background: rgba(255, 255, 255, 0.4);
}

.config-btn:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
}

.config-btn.active {
    background: var(--text-accent);
    border-color: var(--text-accent);
    color: var(--bg-base);
    box-shadow: 0 5px 15px rgba(var(--accent-glow-rgb), 0.2);
}

/* Hotspot bod */
.hotspot-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

.hotspot-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(var(--accent-glow-rgb), 0.4);
    animation: hotspot-pulse 2s infinite;
    transition: background-color 0.8s ease;
}

.hotspot-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-accent);
    box-shadow: 0 0 10px var(--text-accent);
    transition: background-color 0.8s ease;
}

@keyframes hotspot-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hotspot-popover {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 260px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 15;
}

.hotspot-popover::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.hotspot-pin:hover .hotspot-popover,
.hotspot-pin.active .hotspot-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hotspot-popover h5 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    transition: color 0.8s ease;
}

.hotspot-popover p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hs-1 { top: 30%; left: 40%; }
.hs-2 { top: 60%; left: 75%; }
.hs-3 { top: 45%; left: 20%; }

/* ──────────────────────────────────────────────────────────────────────────
   SLIDE 4: ÚLOŽNÉ PROSTORY & SOLITÉRY
   ────────────────────────────────────────────────────────────────────────── */
.gallery-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
    height: 100%;
    max-height: calc(100vh - 160px);
}

.gallery-nav-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.gallery-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-tab .tab-coord {
    font-family: 'Syncopate', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--text-accent);
    opacity: 0.4;
    letter-spacing: 1px;
    margin-bottom: 3px;
    transition: all 0.4s ease;
}

.gallery-tab .tab-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.gallery-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(207, 161, 92, 0.4);
    transform: translateX(5px);
}

.gallery-tab.active {
    background: rgba(207, 161, 92, 0.06);
    border-color: rgba(207, 161, 92, 0.2);
    border-left-color: var(--text-accent);
    box-shadow: 0 4px 20px rgba(207, 161, 92, 0.05);
}

.gallery-tab.active .tab-coord {
    opacity: 0.8;
}

.gallery-tab.active .tab-label {
    color: #fff;
    text-shadow: 0 0 10px rgba(207, 161, 92, 0.2);
}

.gallery-content-side {
    position: relative;
    height: 100%;
    min-height: 400px;
    max-height: 480px;
}

.gallery-scroll-container {
    height: 100%;
    overflow-y: auto;
    padding-right: 12px;
    border-radius: 16px;
}

/* Custom premium scrollbar */
.gallery-scroll-container::-webkit-scrollbar {
    width: 4px;
}
.gallery-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 2px;
}
.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(207, 161, 92, 0.15);
    border-radius: 2px;
    transition: background 0.3s ease;
}
.gallery-scroll-container:hover::-webkit-scrollbar-thumb {
    background: rgba(207, 161, 92, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2px;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(30px);
    opacity: 0;
}

.slide.active .gallery-card {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.gallery-img-container {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #0d0f12;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover .gallery-img-container img {
    transform: scale(1.08);
}

/* Technické overlay kříže a souřadnice */
.gallery-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Syncopate', sans-serif;
    font-size: 7px;
    color: var(--text-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.gallery-card:hover::after {
    content: 'CNC OK';
    opacity: 0.6;
}

.gallery-card-info {
    padding: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.gallery-card-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.gallery-card-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────────────
   MASTER-TIER LIGHTBOX MODAL SYSTEM
   ────────────────────────────────────────────────────────────────────────── */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 13, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lightbox-content {
    position: relative;
    z-index: 100;
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-img-wrapper {
    position: relative;
    border: 1px solid rgba(207, 161, 92, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    max-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-caption {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 600px;
}

.lightbox-caption h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.lightbox-caption p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.lightbox-counter {
    display: inline-block;
    padding: 4px 12px;
    font-family: 'Syncopate', sans-serif;
    font-size: 9px;
    color: var(--text-accent);
    background: rgba(207, 161, 92, 0.08);
    border: 1px solid rgba(207, 161, 92, 0.2);
    border-radius: 20px;
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 150;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(207, 161, 92, 0.1);
    border-color: rgba(207, 161, 92, 0.4);
    color: var(--text-accent);
    box-shadow: 0 0 15px rgba(207, 161, 92, 0.2);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1024px) {
    .gallery-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-height: none;
    }
    .gallery-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .gallery-tab {
        flex: 1 1 150px;
    }
    .gallery-content-side {
        max-height: 400px;
    }
    .lightbox-prev { left: 15px; }
    .lightbox-next { right: 15px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   SLIDE 5: KAPACITA (B2B & STATS)
   ────────────────────────────────────────────────────────────────────────── */
.b2b-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    height: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(0.9);
    opacity: 0;
}

.slide.active .stat-card {
    transform: scale(1);
    opacity: 1;
}

.slide.active .stat-card:nth-child(1) { transition-delay: 0.3s; }
.slide.active .stat-card:nth-child(2) { transition-delay: 0.5s; }
.slide.active .stat-card:nth-child(3) { transition-delay: 0.7s; }
.slide.active .stat-card:nth-child(4) { transition-delay: 0.9s; }

.stat-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 24px;
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    transition: color 0.8s ease;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ──────────────────────────────────────────────────────────────────────────
   SLIDE 6: CESTA (Proces)
   ────────────────────────────────────────────────────────────────────────── */
.process-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.process-steps-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(50px);
    opacity: 0;
}

.slide.active .process-step {
    transform: translateY(0);
    opacity: 1;
}

.slide.active .process-step:nth-child(1) { transition-delay: 0.3s; }
.slide.active .process-step:nth-child(2) { transition-delay: 0.5s; }
.slide.active .process-step:nth-child(3) { transition-delay: 0.7s; }
.slide.active .process-step:nth-child(4) { transition-delay: 0.9s; }

.process-step:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.step-num {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(var(--accent-glow-rgb), 0.15);
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: color 0.8s ease;
}

.process-step:hover .step-num {
    color: rgba(var(--accent-glow-rgb), 0.35);
}

.step-icon {
    font-size: 24px;
    color: var(--text-accent);
    margin-bottom: 2rem;
    transition: color 0.8s ease;
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────────────
   SLIDE 7: KONTAKT
   ────────────────────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
    height: 100%;
    padding-bottom: 4rem;
}

.contact-info-side {
    max-width: 500px;
}

.contact-channels {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-accent);
    font-size: 16px;
    transition: color 0.8s ease;
}

.channel-text p:first-child {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.channel-text p:last-child {
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.slide.active .contact-form-card {
    transform: translateX(0);
    opacity: 1;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
[data-theme="light"] .form-input {
    background: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-glow);
    box-shadow: 0 0 10px var(--brand-blue-glow);
}

textarea.form-input {
    resize: none;
    height: 120px;
}

.btn-form-submit {
    width: 100%;
    padding: 1.2rem;
    border-radius: 50px;
    background: var(--text-accent);
    color: var(--bg-base);
    border: 1px solid var(--text-accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.8s ease;
    box-shadow: 0 10px 25px rgba(var(--accent-glow-rgb), 0.15);
}

.btn-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(var(--accent-glow-rgb), 0.35);
}

/* ──────────────────────────────────────────────────────────────────────────
   SIDEBAR DOTS & BOTTOM PROGRESS BAR
   ────────────────────────────────────────────────────────────────────────── */
.dot-navigation {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 100;
}

.dot-nav-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.dot-nav-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--text-accent);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.8s ease;
}

.dot-nav-item.active {
    background: var(--text-accent);
    opacity: 1;
    transform: scale(1.2);
}

.dot-nav-item.active::before {
    opacity: 1;
    transform: scale(1.2);
}

.progress-bar-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--text-accent) 50%, var(--brand-blue) 100%);
    width: 0%;
    z-index: 100;
    transition: width 0.8s cubic-bezier(0.19, 1, 0.22, 1), background 0.8s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   LIVE CNC G-CODE STREAM HUD (BOTTOM LEFT)
   ────────────────────────────────────────────────────────────────────────── */
.cnc-gcode-streamer {
    position: fixed;
    bottom: 2rem;
    left: 4rem;
    z-index: 50;
    font-family: monospace;
    font-size: 7.5px;
    line-height: 1.6;
    letter-spacing: 1px;
    color: var(--text-muted);
    pointer-events: none;
    max-height: 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0.4;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}

.cnc-line {
    white-space: nowrap;
    animation: line-fade-up 0.5s ease forwards;
}

.cnc-line .accent-gcode {
    color: var(--text-accent);
    font-weight: bold;
    transition: color 0.8s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   MOBILNÍ A TABLETOVÁ RESPONSIVITA
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .slide-content-wrapper {
        padding: 0 2rem;
        margin-top: 7rem;
    }

    .hero-grid, .about-grid, .kitchen-content-grid, .soliter-grid, .b2b-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
        overflow-y: auto;
    }

    .hero-visual-side {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .dot-navigation {
        right: 1.5rem;
    }

    .cnc-gcode-streamer {
        display: none; /* schovat zbytečný HUD na tabletu/mobilu */
    }
}

@media (max-width: 768px) {
    .nav-header {
        width: calc(100% - 2rem);
        margin-top: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-wrapper {
        padding: 0.6rem 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .about-title, .section-title-premium {
        font-size: 1.8rem;
    }

    .process-steps-wrap {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .furniture-cards-wrap {
        grid-template-columns: 1fr;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
}
