/* ==========================================================================
   CSS Proměnné & Design Systém (Cinematic & High Contrast)
   ========================================================================== */
:root {
    --brand-blue: #0C304C;
    --brand-blue-hover: #15446c;
    --brand-gold: #CAA240;
    --brand-gold-hover: #dbb24c;
    --brand-bg: #F5F1E5;

    --blue-50: #e6ebef;
    --blue-100: #cddae3;
    --blue-500: var(--brand-blue);
    --blue-600: var(--brand-blue);
    --blue-800: var(--brand-blue-hover);
    --bg-main: var(--brand-bg);
    --nav-bg: rgba(245, 241, 229, 0.85);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(12, 48, 76, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(12, 48, 76, 0.03);
    --glass-hover-shadow: 0 15px 40px rgba(12, 48, 76, 0.06);

    --text-primary: var(--brand-blue);
    --text-secondary: #3b5c77;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', 'Merriweather', Georgia, serif;

    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

/* Invert logos back to original or grayscale for light mode */
.brand-logo {
    filter: grayscale(100%) opacity(0.6);
}
.brand-logo:hover {
    filter: none;
}

/* ==========================================================================
   Základní Reset & Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(12, 48, 76, 0.04), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(202, 162, 64, 0.04), transparent 30%);
    background-attachment: fixed;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Accessibility: Skip to main content */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 1.5rem;
    background: var(--brand-blue);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 12px 12px;
    z-index: 10001;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(12, 48, 76, 0.35);
    border: 1px solid var(--brand-gold);
    border-top: none;
    transition: top 0.25s ease;
}
.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
h2.section-title {
    font-size: clamp(1.85rem, 5vw, 2.5rem);
    margin-bottom: var(--space-xl);
    text-align: center;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Komponenty
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-lg);
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(12, 48, 76, 0.4);
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(12, 48, 76, 0.6); }

.text-gradient-custom {
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold), var(--brand-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline; padding-bottom: 0.15em; margin-bottom: -0.15em;
    filter: drop-shadow(0 0 18px rgba(202, 162, 64, 0.35)) drop-shadow(0 0 6px rgba(12, 48, 76, 0.25));
}

/* ==========================================================================
   Rozbalovací (Expandable) Karty
   ========================================================================== */
.expandable-card { position: relative; cursor: pointer; }
.expandable-card h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); color: var(--text-primary); }
.expandable-card .summary { color: var(--text-secondary); margin-bottom: 0; transition: margin 0.4s ease; }
.expandable-card .extra-content { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.4s ease; color: var(--text-secondary); }
.expandable-card .extra-content ul { list-style: none; padding-left: 0; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.expandable-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-hover-shadow);
    border-color: rgba(255, 255, 255, 0.15);
}
.expandable-card:hover .summary { margin-bottom: 1rem; }
.expandable-card:hover .extra-content { max-height: 300px; opacity: 1; margin-top: 1rem; }

/* ==========================================================================
   Navigace & Apple-style Pill Menu
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #F5F1E5;
    border-bottom: 1px solid rgba(16, 48, 80, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.navbar.scrolled {
    background: #F5F1E5;
    box-shadow: 0 4px 30px rgba(16, 48, 80, 0.05);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(12, 48, 76, 0.04);
    pointer-events: none;
    z-index: 1001;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-gold) 100%);
    transition: width 0.08s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

/* Logo vlevo */
.logo-wrapper { display: flex; align-items: center; gap: 0.8rem; justify-self: start; text-decoration: none; }

/* Pill menu uprostřed */
.nav-pill {
    justify-self: center;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 100px;
    padding: 0.35rem 0.5rem;
    backdrop-filter: blur(20px);
}
.nav-links { list-style: none; display: flex; gap: 0.25rem; }
.nav-links a {
    display: block;
    color: rgba(15,23,42,0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
}
.nav-links a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-blue) 100%);
    box-shadow: 0 0 8px rgba(202, 162, 64, 0.4), 0 0 16px rgba(12, 48, 76, 0.4);
    transform: translateY(-1px);
}

/* Nav Right wrapper */
.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}
.social-icon-btn svg {
    transition: transform 0.3s ease;
}
.social-icon-btn:hover {
    color: #ffffff;
    transform: scale(1.08);
}
.social-icon-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.45);
}
.social-icon-btn.instagram:hover {
    background: linear-gradient(45deg, #f9ce3f, #e1306c, #833ab4);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.45);
}
.social-icon-btn.tiktok:hover {
    background: #010101;
    border-color: #010101;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), -2px -2px 8px rgba(37, 244, 238, 0.4), 2px 2px 8px rgba(254, 44, 85, 0.4);
}
.social-icon-btn:hover svg {
    transform: scale(1.1);
}

/* CTA tlačítko */
.nav-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-800) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 15px rgba(12, 48, 76, 0.35);
    white-space: nowrap;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(12, 48, 76, 0.6); }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-current-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}
.lang-current-btn:hover { background: rgba(255,255,255,0.1); transform: scale(1.08); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 23, 42, 0.96); /* Elegant dark slate background */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}
body.light-mode .lang-dropdown {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.15);
}
.lang-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8) !important; /* Force white text */
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-main);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}
body.light-mode .lang-option {
    color: rgba(255, 255, 255, 0.8) !important;
}
.lang-option:hover,
body.light-mode .lang-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
.lang-option.active {
    color: #60a5fa !important; /* Glowing blue */
    font-weight: 600;
}
/* ==========================================================================
   Hero Sekce & Scroll Down Arrow
   ========================================================================== */
.hero-section { min-height: 100vh; min-height: 100svh; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--space-md) + 60px) var(--space-md) var(--space-md) var(--space-md); position: relative; overflow: hidden; }
.hero-bg-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('media/hero-papirnictvi.webp'); background-size: cover; background-position: center; z-index: 0; opacity: 0.22; filter: brightness(1.05) contrast(0.95); }
.hero-content { width: 100%; max-width: 900px; margin: 0 auto; z-index: 10; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.apple-heading { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; margin-bottom: 1rem; color: var(--text-primary); text-align: center; word-break: break-word; }
.hero-content p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 1rem; text-align: center; }

.hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1rem; width: 100%; }
.scroll-down-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.scroll-down-btn:hover { color: var(--text-primary); }
.bounce-arrow { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* ==========================================================================
   O Nás Sekce
   ========================================================================== */
.about-section { padding: var(--space-xl) 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.about-text h2 { font-size: 2rem; margin-bottom: var(--space-md); color: var(--text-primary); }
.about-text p { margin-bottom: var(--space-md); color: var(--text-secondary); }
.about-stats { display: flex; flex-wrap: wrap; gap: var(--space-lg); justify-content: space-around; align-items: center; }
.stat { text-align: center; }
.stat-number { display: inline-flex; justify-content: center; align-items: baseline; font-size: 3rem; font-weight: 700; background: linear-gradient(135deg, var(--blue-500) 0%, #60a5fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.875rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* ==========================================================================
   Značky (Brands) Sekce — Cinematic 3D Carousel
   ========================================================================== */

/* ── Section wrapper ── */
.brands-section {
    padding: 100px 0 2rem;  /* 100px = navbar (60px) + extra breathing room */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ── Header ── */
.brands-section-header {
    position: relative;
    z-index: 2;
    padding: 0 var(--space-md) 1.25rem;
    flex-shrink: 0;
}
.brands-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: 0.5rem;
}
.brands-title {
    margin-bottom: 0.5rem !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
}
.brands-subtitle {
    font-size: 0.9rem;
    color: rgba(12, 48, 76, 0.65); /* Soft Navy blue for high contrast on light cream background */
    letter-spacing: 0.02em;
    margin: 0;
    font-weight: 500;
}

/* ── 3D Scene ── */
.carousel-scene {
    position: relative;
    width: 100%;
    /* clamp: min 340px, ideally viewport minus header (~230px) and padding, max 480px */
    height: clamp(340px, calc(100vh - 280px), 480px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* never clip 3D cards */
}

/* Ambient glow rings */
.carousel-glow-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1px solid;
    animation: carousel-ring-pulse 4s ease-in-out infinite;
}
.carousel-glow-ring--outer {
    width: 700px;
    height: 700px;
    border-color: rgba(59, 130, 246, 0.08);
    animation-delay: 0s;
}
.carousel-glow-ring--inner {
    width: 460px;
    height: 460px;
    border-color: rgba(139, 92, 246, 0.12);
    animation-delay: -2s;
}
@keyframes carousel-ring-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.02); }
}

/* Center glow */
.carousel-center-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(139,92,246,0.08) 50%, transparent 70%);
    pointer-events: none;
    animation: carousel-center-breathe 5s ease-in-out infinite;
}
@keyframes carousel-center-breathe {
    0%, 100% { transform: scale(1);    opacity: 0.8; }
    50%       { transform: scale(1.15); opacity: 1;   }
}

/* Drag hint */
.carousel-drag-hint {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(15, 23, 42, 0.45);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease;
    animation: hint-fade 3s ease-in-out 1.5s forwards;
}
@keyframes hint-fade {
    0%   { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}


/* ── 2D Simulated Carousel Stage ── */
.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* NO perspective — pure 2D so text is never blurred */
    cursor: grab;
    overflow: hidden;
}
.carousel-3d-wrapper:active,
.carousel-3d-wrapper.is-dragging { cursor: grabbing; }

.carousel-3d-stage {
    position: relative;
    width: 0;
    height: 0;
    /* NO preserve-3d, NO will-change — pure 2D */
}

/* ── Individual Brand Card (flat 2D) ── */
.carousel-brand-card {
    position: absolute;
    width: 160px;
    height: 190px;
    left: -80px;
    top: -95px;
    /* JS positions with translate() + scale() — zero 3D */
    transition: none;
    cursor: pointer;
}

.carousel-brand-inner {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem 1rem 1.25rem;
    position: relative;
    overflow: hidden;
    /* Isolate from parent 3-D context so text is rasterised on its own flat layer */
    transform-style: flat;
    /* Force the browser to paint this element at full pixel precision */
    will-change: auto;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s cubic-bezier(0.25,1,0.5,1);
}
/* Shimmer on hover */
.carousel-brand-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
}
/* Front-facing card gets elevated */
.carousel-brand-card.is-front .carousel-brand-inner {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
    box-shadow:
        0 0 0 1px rgba(59,130,246,0.3),
        0 20px 60px rgba(0,0,0,0.6),
        0 0 40px rgba(59,130,246,0.15),
        inset 0 1px 0 rgba(255,255,255,0.12);
}
.carousel-brand-card.is-front .carousel-brand-inner::before { opacity: 1; }

.carousel-brand-inner:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(59,130,246,0.2);
    transform: scale(1.06) translateY(-4px);
}

/* Logo wrap */
.carousel-brand-logo-wrap {
    width: 90px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Some official brand marks are white-on-transparent (designed for a dark
   header bar) and disappear against this section's light card background —
   give those a small dark chip to sit on instead of altering the artwork. */
.carousel-brand-logo-wrap--dark-chip {
    background: var(--brand-blue);
    border-radius: 10px;
    padding: 8px 10px;
}

.carousel-brand-logo {
    max-width: 90px;
    max-height: 44px;
    object-fit: contain;
    display: block;
    opacity: 0.65;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s cubic-bezier(0.25,1,0.5,1);
}
.carousel-brand-card.is-front .carousel-brand-logo,
.carousel-brand-inner:hover .carousel-brand-logo {
    opacity: 1;
    transform: scale(1.08);
}

/* Text logo fallback */
.carousel-brand-logo-wrap--text {
    width: 90px;
    height: 50px;
}
.carousel-brand-text-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(255,255,255,0.55);
    transition: color 0.4s ease;
    font-family: var(--font-main);
}
.carousel-brand-card.is-front .carousel-brand-text-logo,
.carousel-brand-inner:hover .carousel-brand-text-logo {
    color: rgba(255,255,255,0.95);
}

/* Brand name */
.carousel-brand-name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    transition: color 0.4s ease;
}
.carousel-brand-card.is-front .carousel-brand-name,
.carousel-brand-inner:hover .carousel-brand-name {
    color: rgba(255,255,255,0.9);
}

/* Tagline */
.carousel-brand-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.4;
    padding: 0 0.25rem;
    transition: color 0.4s ease;
}
.carousel-brand-card.is-front .carousel-brand-tagline,
.carousel-brand-inner:hover .carousel-brand-tagline {
    color: rgba(255,255,255,0.5);
}

/* ── Floating particles ── */
.carousel-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.carousel-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: particle-drift linear infinite;
}
@keyframes particle-drift {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-220px) translateX(var(--dx, 20px)) scale(0.3); opacity: 0; }
}

/* Default light mode styles for carousel cards */
.carousel-brand-inner {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.carousel-brand-card.is-front .carousel-brand-inner {
    background: #ffffff !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.carousel-brand-logo {
    filter: grayscale(100%) opacity(0.75);
}
.carousel-brand-card.is-front .carousel-brand-logo,
.carousel-brand-inner:hover .carousel-brand-logo {
    filter: none;
}
.carousel-brand-name { color: #0f172a !important; font-weight: 700; font-family: var(--font-main) !important; }
.carousel-brand-card.is-front .carousel-brand-name,
.carousel-brand-inner:hover .carousel-brand-name { color: #0f172a !important; }
.carousel-brand-tagline { color: #334155 !important; font-weight: 500; font-family: var(--font-main) !important; }
.carousel-brand-card.is-front .carousel-brand-tagline,
.carousel-brand-inner:hover .carousel-brand-tagline { color: #1e293b !important; }
.carousel-particle { background: rgba(15, 23, 42, 0.15); }
.carousel-center-glow { opacity: 0.15; }

/* Stylized Typographic Logo inside carousel */
.carousel-brand-logo-wrap--text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    border-radius: 12px;
    width: 95px;
    height: 48px;
    padding: 0.25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 10px rgba(37,99,235,0.15);
    transition: transform 0.4s ease;
}
.carousel-brand-inner:hover .carousel-brand-logo-wrap--text {
    transform: scale(1.06);
}
.carousel-brand-text-logo {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Other Suppliers Section */
.other-suppliers-container {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.other-suppliers-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0f172a 0%, var(--blue-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.other-suppliers-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.suppliers-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1000px;
    margin: 0 auto;
}
.supplier-tag {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
}
.supplier-tag:hover {
    color: var(--blue-600);
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .brands-section { padding: 80px 0 1.5rem; }
    .carousel-brand-card { width: 130px; height: 155px; left: -65px; top: -77px; }
    .carousel-glow-ring--outer { width: 500px; height: 500px; }
    .carousel-glow-ring--inner { width: 330px; height: 330px; }
}


/* ==========================================================================
   Sortiment Sekce
   ========================================================================== */
.assortment-section { padding: var(--space-xl) 0; }
.assortment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-lg); align-items: start; }

/* ==========================================================================
   B2B Kalkulačka
   ========================================================================== */
.b2b-section { padding: var(--space-xl) 0; }
.b2b-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none !important;
    background: transparent !important;
    padding: 3rem var(--space-lg);
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(12, 48, 76, 0.15), 0 0 25px rgba(202, 162, 64, 0.15) !important;
    animation: b2b-pulse-glow 4s ease-in-out infinite alternate;
}

/* The rotating conic gradient border track */
.b2b-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 300%;
    background: conic-gradient(
        from 0deg,
        transparent 25%,
        var(--brand-blue) 40%,
        var(--brand-gold) 50%,
        var(--brand-blue) 60%,
        transparent 75%
    );
    transform: translate(-50%, -50%);
    animation: rotate-glow 6s linear infinite;
    z-index: -2;
    pointer-events: none;
}

/* The inner card background overlay */
.b2b-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #ffffff; /* Solid background to block the rotating glow from showing inside the card */
    border-radius: 22px;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotate-glow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes b2b-pulse-glow {
    0% {
        box-shadow: 0 20px 50px rgba(12, 48, 76, 0.12), 0 0 20px rgba(202, 162, 64, 0.12) !important;
    }
    100% {
        box-shadow: 0 20px 50px rgba(12, 48, 76, 0.22), 0 0 40px rgba(202, 162, 64, 0.32) !important;
    }
}
.b2b-subtitle { text-align: center; color: var(--text-secondary); margin-top: -2rem; margin-bottom: 2rem; font-size: 1.1rem; }
.b2b-disclaimer {
    display: block;
    max-width: 600px;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    color: #b45309; /* warm dark amber */
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    background: rgba(245, 158, 11, 0.08); /* very soft amber background */
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    line-height: 1.5;
}
.calculator-container { max-width: 620px; margin: 0 auto; text-align: center; }
.slider-wrapper { margin-bottom: 2.5rem; }
.slider-wrapper label { display: block; font-size: 1.2rem; margin-bottom: 1.25rem; color: var(--text-primary); }
.slider-wrapper label strong:first-of-type { color: var(--blue-500); }
.calculator-results { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.result-box h3 { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 5px; outline: none; border: 1px solid var(--glass-border); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 25px; height: 25px; border-radius: 50%; background: var(--blue-500); cursor: pointer; box-shadow: 0 0 15px rgba(59, 130, 246, 0.8); transition: transform 0.2s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.result-box { flex: 1; min-width: 220px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.result-box.highlight { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.1); box-shadow: 0 0 30px rgba(59,130,246,0.1); }
/* Zabránění zalamování "Kč" */
.result-number { font-size: 3rem; font-weight: 700; white-space: nowrap; line-height: 1; margin-top: 0.5rem; color: var(--text-primary); }

/* ==========================================================================
   Recenze - Marquee
   ========================================================================== */
.reviews-section { padding: var(--space-xl) 0; overflow: hidden; }
.marquee-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    white-space: nowrap;
    position: relative;
    padding: 1.5rem 0;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.marquee-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.marquee-wrapper:active {
    cursor: grabbing;
}
.marquee-wrapper::before, .marquee-wrapper::after { display: none; }
.marquee-content {
    display: inline-flex;
    gap: var(--space-lg);
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    /* CSS infinite auto-scroll — pauses when user hovers */
    animation: marquee-scroll 80s linear infinite;
}
.marquee-wrapper:hover .marquee-content,
.marquee-wrapper.is-dragging .marquee-content {
    animation-play-state: paused;
}
.review-card {
    min-width: 320px;
    max-width: 380px;
    white-space: normal;
    flex-shrink: 0;
    padding: 1.5rem;
}
.review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}
.stars {
    color: #F59E0B;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}
.review-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand-blue);
    background: rgba(12, 48, 76, 0.06);
    border: 1px solid rgba(12, 48, 76, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
}
.review-text {
    font-style: italic;
    color: var(--text-primary);
    font-size: 0.97rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 500;
}
.review-author { font-weight: 700; color: var(--text-primary); font-size: 0.9rem; }
.review-role { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Pobočky (Branches) - Tabs & Maps
   ========================================================================== */
.branches-section { padding: var(--space-xl) 0; }
.branch-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.tab-btn { padding: 0.75rem 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 30px; color: var(--text-secondary); font-size: 1rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s ease; }
.tab-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.tab-btn.active { background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-800) 100%); color: white; border-color: transparent; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }

.branch-content-container { padding: 0; overflow: hidden; }
.branch-panel { display: none; grid-template-columns: 1fr; }
.branch-panel.active { display: grid; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.branch-info { padding: var(--space-lg); display: flex; flex-direction: column; }
.branch-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.branch-info h3 { font-size: 1.5rem; color: var(--text-primary); margin: 0; }
.btn-navigate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--blue-600);
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(12, 48, 76, 0.15);
}
.btn-navigate:hover {
    background: var(--blue-800);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 48, 76, 0.3);
}
.btn-navigate-large {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: 30px;
    justify-content: center;
    margin-top: 1.5rem;
    background: var(--blue-600);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(12, 48, 76, 0.2);
}
.btn-navigate-large:hover {
    background: var(--blue-800);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(12, 48, 76, 0.35);
}
.branch-info p { color: var(--text-secondary); margin-bottom: 0.5rem; }
.branch-info strong { color: var(--text-primary); }
.tel-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.tel-link:hover,
.tel-link:focus-visible {
    color: var(--brand-gold, #f39c12);
    border-bottom-color: var(--brand-gold, #f39c12);
    text-decoration: none;
}
.branch-desc { margin-top: 1.5rem; font-style: italic; line-height: 1.7; flex-grow: 1; }
.branch-media { display: flex; flex-direction: column; border-left: 1px solid var(--glass-border); height: 100%; }
.branch-map { height: 300px; width: 100%; filter: grayscale(50%) contrast(1.2); }
.branch-map iframe { display: block; width: 100%; height: 100%; }
.branch-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem; background: rgba(0,0,0,0.2); border-top: 1px solid var(--glass-border); flex-grow: 1; }
.branch-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: transform 0.4s ease; cursor: pointer; }
.branch-photo:hover { transform: scale(1.05); }

/* ==========================================================================
   Footer & Utility Classes
   ========================================================================== */
.footer { text-align: center; padding: var(--space-lg) 0; border-top: 1px solid var(--glass-border); color: var(--text-secondary); margin-top: var(--space-xl); }

/* ===== Scroll Efekty ===== */
/* 1. Fade + Slide Up (základní) */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-in-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* 2. Scale Reveal - sekce se lehce přiblíží */
.scale-reveal {
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.scale-reveal.is-visible { opacity: 1; transform: scale(1) translateY(0); }

/* 3. Staggered karty – vyjíždí kaskádovitě */
.stagger-child {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.stagger-child.is-visible { opacity: 1; transform: translateY(0) scale(1); }
/* Zpoždění pro každou kartu */
.stagger-child:nth-child(1) { transition-delay: 0s; }
.stagger-child:nth-child(2) { transition-delay: 0.12s; }
.stagger-child:nth-child(3) { transition-delay: 0.24s; }
.stagger-child:nth-child(4) { transition-delay: 0.36s; }
.stagger-child:nth-child(5) { transition-delay: 0.48s; }
.stagger-child:nth-child(6) { transition-delay: 0.60s; }

/* 4. Slide from Left/Right pro O nás */
.slide-from-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-from-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-from-left.is-visible, .slide-from-right.is-visible { opacity: 1; transform: translateX(0); }

/* Parallax kontejner pro hero video */
.hero-video { will-change: transform; }

/* ==========================================================================
   ✂️ Scissors Scroll Section (Red Bull Style)
   ========================================================================== */
.scissors-scroll-section {
    height: 100vh;
    position: relative;
}
.scissors-sticky {
    position: relative;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(202, 162, 64, 0.08) 0%, transparent 70%);
}

/* Paper strip */
.paper-strip-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 92vw);
    height: clamp(110px, 18vw, 160px);
    display: flex;
    overflow: visible;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 20px 35px rgba(12, 48, 76, 0.25)) drop-shadow(0 0 10px rgba(202, 162, 64, 0.15));
}
.paper-half {
    height: 100%;
    width: 50%;
    background-color: #FAF5E8; /* Warm brand cream paper */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    transition: none;
}
.paper-left { 
    clip-path: polygon(
        2% 5%, 15% 2%, 35% 6%, 55% 1%, 75% 5%, 95% 2%, 100% 0%,
        100% 100%,
        95% 98%, 75% 95%, 55% 99%, 35% 96%, 15% 98%, 2% 95%,
        0% 80%, 3% 60%, 0% 40%, 2% 20%
    );
}
.paper-right { 
    clip-path: polygon(
        0% 0%, 5% 3%, 25% 0%, 45% 4%, 65% 1%, 85% 5%, 98% 2%,
        100% 20%, 97% 40%, 100% 60%, 98% 80%,
        98% 95%, 85% 98%, 65% 95%, 45% 99%, 25% 96%, 5% 98%, 0% 100%
    );
}

/* Scissors */
.scissors-scene {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}
.scissors-hero-img {
    width: 320px;
    max-width: 35vw;
    min-width: 200px;
    filter: sepia(0.85) hue-rotate(-12deg) saturate(2.2) brightness(0.9) contrast(1.1) drop-shadow(0 20px 40px rgba(12, 48, 76, 0.35)) drop-shadow(0 0 20px rgba(202, 162, 64, 0.25));
    will-change: transform;
    display: block;
    user-select: none;
}

/* Final Background Text */
.scissors-final-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.smoke-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    max-width: 1400px;
    z-index: -1;
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    filter: blur(20px);
}
body.light-mode .smoke-effect {
    mix-blend-mode: multiply;
    filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.1) blur(20px);
}
.scissors-final-text .apple-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 0;
    color: #ffffff;
    text-shadow: 0 5px 30px rgba(0,0,0,0.9), 0 0 60px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    will-change: transform, opacity;
}
.akce-subtitle {
    display: block;
    font-size: 0.45em;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.5em;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.glow-text {
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(202, 162, 64, 0.8), 0 0 20px rgba(12, 48, 76, 0.6), 0 0 35px rgba(202, 162, 64, 0.7);
    animation: glow-pulse 2s infinite alternate;
}
@keyframes glow-pulse {
    from { text-shadow: 0 0 10px rgba(202, 162, 64, 0.6), 0 0 20px rgba(12, 48, 76, 0.4), 0 0 30px rgba(202, 162, 64, 0.5); }
    to { text-shadow: 0 0 15px rgba(202, 162, 64, 0.9), 0 0 25px rgba(12, 48, 76, 0.7), 0 0 45px rgba(202, 162, 64, 0.9); }
}
.glow-text-bz {
    position: relative;
    display: inline; padding-bottom: 0.15em; margin-bottom: -0.15em;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-pulse-bz 2.5s ease-in-out infinite alternate;
}
@keyframes glow-pulse-bz {
    from {
        filter: drop-shadow(0 0 4px rgba(12, 48, 76, 0.2))
                drop-shadow(0 0 10px rgba(202, 162, 64, 0.15));
    }
    to {
        filter: drop-shadow(0 0 12px rgba(12, 48, 76, 0.5))
                drop-shadow(0 0 24px rgba(202, 162, 64, 0.45));
    }
}


.glow-text-yb {
    position: relative;
    display: inline; padding-bottom: 0.15em; margin-bottom: -0.15em;
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-pulse-yb 2.5s ease-in-out infinite alternate;
}
@keyframes glow-pulse-yb {
    from {
        filter: drop-shadow(0 0 4px rgba(202, 162, 64, 0.2))
                drop-shadow(0 0 10px rgba(12, 48, 76, 0.15));
    }
    to {
        filter: drop-shadow(0 0 12px rgba(202, 162, 64, 0.55))
                drop-shadow(0 0 24px rgba(12, 48, 76, 0.45));
    }
}

@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
    .branch-panel { grid-template-columns: 1fr 1fr; }
    .branch-map { height: 100%; min-height: 350px; flex-grow: 1; }
    .branch-photos { padding: 2rem; gap: 1.5rem; }
    .branch-photo { height: 220px; }
}



/* ==========================================================================
   HERO TYPOGRAPHY UPGRADE
   ========================================================================== */
.hero-headline {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.hero-content .hero-subline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    max-width: 680px;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   O Nás Section (Side-by-Side Grid & Fading Slideshow Layout)
   ========================================================================== */
.about-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}
.about-modern-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 900px) {
    .about-modern-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
.about-narrative-wrap {
    display: flex;
    flex-direction: column;
}
.about-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: 0.75rem;
}
.about-story-text p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.about-story-text p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Stats Row */
.about-stats-row {
    display: flex;
    gap: 3.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}
@media (max-width: 768px) {
    .about-stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        text-align: center;
        padding-top: 1.5rem;
    }
    .about-stat-number {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .about-stat-label {
        font-size: 0.72rem;
    }
}
.about-stat-item {
    display: flex;
    flex-direction: column;
}
.about-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.about-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Slideshow Container */
.about-slideshow-wrap {
    position: relative;
    width: 100%;
}
.about-slideshow-frame {
    width: 100%;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 0;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
@media (max-width: 900px) {
    .about-slideshow-frame {
        height: 350px;
    }
}
.about-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}
.about-slide-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}
.about-slide-img.active {
    opacity: 1;
    z-index: 2;
}





/* ==========================================================================
   BENTO GRID — Sortiment
   ========================================================================== */
.assortment-section { padding: var(--space-xl) 0; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}
.bento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    background-color: #0c101d; /* Solid dark background to prevent light background show-through */
    transition: transform 0.5s cubic-bezier(0.25,1,0.5,1), box-shadow 0.5s, border-color 0.4s;
}
.bento-card:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 25px 60px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.15); }
.bento-card--office     { grid-column: span 8; grid-row: span 2; }
.bento-card--school     { grid-column: span 4; grid-row: span 2; }
.bento-card--toys       { grid-column: span 5; grid-row: span 2; }
.bento-card--creative   { grid-column: span 4; grid-row: span 2; }
.bento-card--calendars  { grid-column: span 3; grid-row: span 2; }
.bento-card--gastro     { grid-column: span 4; grid-row: span 1; }
.bento-card--party      { grid-column: span 4; grid-row: span 1; }
.bento-card--packaging  { grid-column: span 4; grid-row: span 1; }
.bento-card--forms      { grid-column: span 4; grid-row: span 1; }
.bento-card--kids       { grid-column: span 5; grid-row: span 1; }
.bento-card--themed     { grid-column: span 3; grid-row: span 1; }
.bento-card--services   { grid-column: span 12; grid-row: span 2; }

@media (min-width: 769px) and (max-width: 1024px) {
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        grid-auto-rows: auto;
    }
    .bento-card {
        height: auto;
        min-height: 150px;
    }
    .bento-card-content {
        padding: 1.25rem;
    }
    .bento-desc {
        display: none; /* Hide description for cleaner tablet layout */
    }
    .bento-card--office { grid-column: span 4 !important; min-height: 160px !important; grid-row: auto !important; }
    .bento-card--school { grid-column: span 4 !important; min-height: 160px !important; grid-row: auto !important; }
    .bento-card--toys   { grid-column: span 2 !important; grid-row: auto !important; }
    .bento-card--creative { grid-column: span 2 !important; grid-row: auto !important; }
    .bento-card--calendars { grid-column: span 2 !important; grid-row: auto !important; }
    .bento-card--gastro { grid-column: span 2 !important; grid-row: auto !important; }
    .bento-card--party  { grid-column: span 2 !important; grid-row: auto !important; }
    .bento-card--packaging { grid-column: span 2 !important; grid-row: auto !important; }
    .bento-card--forms  { grid-column: span 2 !important; grid-row: auto !important; }
    .bento-card--kids   { grid-column: span 2 !important; grid-row: auto !important; }
    .bento-card--themed { grid-column: span 4 !important; min-height: 120px !important; grid-row: auto !important; }
    .bento-card--services {
        grid-column: span 4 !important;
        min-height: 240px !important;
        grid-row: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .bento-card--services .bento-title {
        margin-bottom: 0.5rem;
    }
    .bento-card--services .bento-desc {
        display: block;
        font-size: 0.8rem;
    }
    .bento-card--services .bento-collage {
        display: none;
    }
}
.bento-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25,1,0.5,1), opacity 0.4s;
    opacity: 0.85; /* Increased opacity for richer colors and contrast */
}
.bento-card:hover .bento-card-bg { transform: scale(1.07); opacity: 0.85; }
.bento-card--office .bento-card-bg { background: linear-gradient(135deg, rgba(30,58,95,0.75) 0%, rgba(13,27,42,0.8) 100%), url('media/bento-kancelar.webp') center/cover; }
.bento-card--school .bento-card-bg { background: linear-gradient(135deg, rgba(13,34,64,0.75) 0%, rgba(26,42,74,0.8) 100%), url('media/bento-skola.webp') center/cover; }
.bento-card--toys .bento-card-bg { background: linear-gradient(135deg, rgba(99,102,241,0.7) 0%, rgba(67,56,202,0.75) 100%), url('media/kolaz-2.webp') center/cover; }
.bento-card--creative .bento-card-bg { background: linear-gradient(135deg, rgba(26,74,42,0.7) 0%, rgba(13,42,26,0.75) 100%), url('media/bento-kreativni.webp') center/cover; }
.bento-card--calendars .bento-card-bg { background: linear-gradient(135deg, rgba(192,38,211,0.7) 0%, rgba(134,25,143,0.75) 100%), url('media/bento-pera.webp') center/cover; }
.bento-card--gastro .bento-card-bg    { background: linear-gradient(135deg, rgba(217,119,6,0.7) 0%, rgba(180,83,9,0.75) 100%), url('media/kolaz-1.webp') center/cover; }
.bento-card--party .bento-card-bg     { background: linear-gradient(135deg, rgba(219,39,119,0.7) 0%, rgba(190,24,93,0.75) 100%), url('media/kolaz-3.webp') center/cover; }
.bento-card--packaging .bento-card-bg { background: linear-gradient(135deg, rgba(15,118,110,0.7) 0%, rgba(4,120,87,0.75) 100%), url('media/kolaz-2.webp') center/cover; }
.bento-card--forms .bento-card-bg     { background: linear-gradient(135deg, rgba(55,65,81,0.8) 0%, rgba(17,24,39,0.85) 100%), url('media/bento-kancelar.webp') center/cover; }
.bento-card--kids .bento-card-bg      { background: linear-gradient(135deg, rgba(234,88,12,0.7) 0%, rgba(194,65,12,0.75) 100%), url('media/bento-skola.webp') center/cover; }
.bento-card--themed .bento-card-bg    { background: linear-gradient(135deg, rgba(124,58,237,0.7) 0%, rgba(91,33,182,0.75) 100%), url('media/bento-kreativni.webp') center/cover; }
.bento-card--services .bento-card-bg  { background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,41,59,0.9) 100%), url('media/prodejna-interier.webp') center/cover; }

.bento-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.75rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 3;
}
.bento-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-gold);
    margin-bottom: 0.4rem;
}
.bento-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 0.5rem; }
.bento-desc  { font-size: 0.88rem; color: rgba(255,255,255,0.85); line-height: 1.55; }
.bento-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(59,130,246,0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
    pointer-events: none;
}
.bento-card:hover .bento-card-glow { opacity: 1; }

/* ==========================================================================
   HI-FI SLIDER & ODOMETER
   ========================================================================== */
.hifi-slider-wrapper { max-width: 620px; margin: 0 auto 2.5rem; }
.hifi-slider-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 0.85rem; color: var(--text-secondary);
    margin-bottom: 1rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.hifi-slider-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }

.hifi-slider-track-wrap { position: relative; height: 6px; background: rgba(0, 0, 0, 0.08); border-radius: 10px; }
.hifi-slider { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: none; height: 100%; margin: 0; z-index: 2; }
.hifi-slider-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--blue-600), #8b5cf6); border-radius: 10px; transition: width 0.05s; pointer-events: none; }
.hifi-slider-fill::after {
    content: '';
    position: absolute; right: -8px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3), 0 0 15px rgba(59,130,246,0.6);
}
.hifi-slider-ticks {
    display: flex; justify-content: space-between;
    font-size: 0.7rem; color: var(--text-secondary); letter-spacing: 0.05em;
    margin-top: 0.75rem;
}

/* Odometer */
.odometer-wrap { display: flex; justify-content: center; align-items: center; padding: 0.5rem 0; }
.odometer { display: flex; align-items: baseline; gap: 0.1rem; font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; overflow: hidden; }
.odo-col {
    position: relative; overflow: hidden;
    height: 3.6rem; /* matches font-size * line-height */
    display: flex; align-items: flex-end;
    padding-right: 0.08em;
}
.odo-col span { display: block; transition: transform 0.35s cubic-bezier(0.25,1,0.5,1); }
.odo-dot { color: rgba(15, 23, 42, 0.4); font-size: 2.5rem; line-height: 1; }
.odo-unit { font-size: 1.2rem; font-weight: 600; color: var(--text-secondary); margin-left: 0.25rem; }

/* ==========================================================================
   BIGSTAT SLIDES — dramatické jednotlivé statistiky
   ========================================================================== */
.about-slide--bigstat {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #050505;
    position: relative;
    overflow: hidden;
}
/* Jemný radial glow v pozadí */
.about-slide--bigstat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37,99,235,0.1) 0%, transparent 65%);
    pointer-events: none;
}
#stat-slide-branches::before { background: radial-gradient(ellipse at center, rgba(192,38,211,0.1) 0%, transparent 65%); }
#stat-slide-products::before  { background: radial-gradient(ellipse at center, rgba(99,102,241,0.1) 0%, transparent 65%); }

/* Reveal wrapper — výchozí stav: schovaný dole */
.bigstat-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(80px);
    /* Transition se aplikuje pouze pokud má is-active */
    transition: opacity 0.7s cubic-bezier(0.25,1,0.5,1), transform 0.7s cubic-bezier(0.25,1,0.5,1);
}
/* Aktivní stav — JS přidá .is-active na .about-slide--bigstat */
.about-slide--bigstat.is-active .bigstat-reveal {
    opacity: 1;
    transform: translateY(0);
}
/* Exit stav — JS přidá .is-exiting pro odlétání nahoru */
.about-slide--bigstat.is-exiting .bigstat-reveal {
    opacity: 0;
    transform: translateY(-70px);
}

/* Obrovské číslo */
.bigstat-number {
    display: flex;
    align-items: baseline;
    gap: 0.15em;
    font-size: clamp(6rem, 18vw, 16rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.9;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: transform;
}
/* Zvláštní barvy pro každý slide */
#stat-slide-years .bigstat-number   { background: linear-gradient(135deg, #facc15 0%, #f97316 100%); -webkit-background-clip: text; }
#stat-slide-branches .bigstat-number { background: linear-gradient(135deg, #a78bfa 0%, #c026d3 100%); -webkit-background-clip: text; }
#stat-slide-products .bigstat-number { background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%); -webkit-background-clip: text; }

.bigstat-suffix {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    /* Inherit gradient from parent */
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bigstat-static { /* pro číslo bez counteru — stejný styl */ }

/* Label pod číslem */
.bigstat-label {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

/* Scroll hint */
.bigstat-scroll-hint {
    margin-top: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.2);
    animation: shimmer-hint 2.5s ease-in-out infinite;
}

/* Formátování 12.000 — JS nastaví jako "12 000", CSS nic extra nepotřebuje */

/* ==========================================================================
   RESPONSIVE FINAL
   ========================================================================== */
@media (max-width: 768px) {
    .about-slide { padding: 4rem 1.5rem; gap: 2rem; flex-direction: column; }
    .about-huge-title { font-size: clamp(2.8rem, 10vw, 5rem); }
    .about-slide-visual { width: 100%; max-width: 100%; height: 200px; }
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        grid-auto-rows: auto;
    }
    .bento-card {
        height: auto;
        min-height: 140px;
        border-radius: 16px;
    }
    .bento-card-content {
        padding: 1.25rem;
    }
    .bento-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.2rem;
    }
    .bento-title {
        font-size: 1.15rem;
        margin-bottom: 0;
    }
    .bento-desc {
        display: none; /* Hide descriptions to prevent text clutter on mobile grid tiles */
    }
    
    /* Grid structure / alignment */
    .bento-card--office { grid-column: span 2; min-height: 160px; }
    .bento-card--school { grid-column: span 2; min-height: 160px; }
    .bento-card--toys   { grid-column: span 1; }
    .bento-card--creative { grid-column: span 1; }
    .bento-card--calendars { grid-column: span 1; }
    .bento-card--gastro { grid-column: span 1; }
    .bento-card--party  { grid-column: span 1; }
    .bento-card--packaging { grid-column: span 1; }
    .bento-card--forms  { grid-column: span 1; }
    .bento-card--kids   { grid-column: span 1; }
    .bento-card--themed { grid-column: span 2; min-height: 120px; }
    
    .bento-card--services {
        grid-column: span 2;
        min-height: 240px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .bento-card--services .bento-title {
        margin-bottom: 0.5rem;
    }
    .bento-card--services .bento-desc {
        display: block;
        font-size: 0.8rem;
    }
    .bento-card--services .bento-collage {
        display: none;
    }
    .bigstat-number { font-size: clamp(5rem, 20vw, 8rem); }
}

/* ==========================================================================
   SLIDE SNAP DOTS — navigační tečky
   ========================================================================== */
.about-snap-dots {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    pointer-events: all;
}
.about-snap-dot {
    width: 6px;
    height: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.3s cubic-bezier(0.25,1,0.5,1),
                height 0.3s cubic-bezier(0.25,1,0.5,1),
                background 0.3s ease;
}
.about-snap-dot.is-active {
    height: 22px;
    background: #fff;
}
.about-snap-dot:hover:not(.is-active) {
    background: rgba(255,255,255,0.55);
}
@media (max-width: 768px) {
    .about-snap-dots { right: 1rem; }
}

/* ==========================================================================
   BRAND LOGO (CRISPY SMOOTH)
   ========================================================================== */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.logo-wrapper:hover {
    transform: scale(1.02);
}

.brand-logo-img {
    height: 64px; /* Zvětšeno z 48px na 64px */
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: left center;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: var(--brand-blue);
    text-shadow: none;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ==========================================================================
   AWARD WINNING BENTO MODAL
   ========================================================================== */
.bento-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    padding: 2rem;
}
.bento-modal.is-active {
    pointer-events: all;
}

.bento-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.bento-modal.is-active .bento-modal-backdrop {
    opacity: 1;
}

.bento-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
body.light-mode .bento-modal-content {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,244,248,0.95));
    border-color: rgba(0,0,0,0.05);
}

.bento-modal.is-active .bento-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.btn-close-modal {
    position: sticky;
    top: 1.5rem;
    left: calc(100% - 4rem);
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s, transform 0.3s;
}
body.light-mode .btn-close-modal {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #000;
}
.btn-close-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.bento-modal-body {
    padding: 0 4rem 4rem 4rem;
}

/* Modal Content Styling */
.modal-hero {
    margin-bottom: 3rem;
    text-align: center;
}
.modal-eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-gold); /* High-contrast Gold for dark modal backdrop */
    margin-bottom: 1rem;
    display: block;
}
body.light-mode .modal-eyebrow {
    color: var(--brand-blue); /* Navy blue for light modal backdrop */
}
.modal-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}
body.light-mode .modal-title { color: #000; }
.modal-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto;
}
body.light-mode .modal-desc { color: rgba(0,0,0,0.7); }

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}
/* Accordion subcategories inside bento modal */
.modal-feature-card {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
body.light-mode .modal-feature-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}
.modal-feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--brand-gold);
    box-shadow: 0 15px 30px rgba(12, 48, 76, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.light-mode .modal-feature-card:hover {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: 0 15px 30px rgba(12, 48, 76, 0.05);
}

/* Luxurious focus state: dim inactive cards, scale active one */
.modal-grid.has-expanded-item .modal-feature-card {
    opacity: 0.35;
    transform: scale(0.96);
}
.modal-grid.has-expanded-item .modal-feature-card:not(.is-expanded):hover {
    opacity: 0.6;
    transform: scale(0.98) translateY(-2px);
}
.modal-grid.has-expanded-item .modal-feature-card.is-expanded {
    opacity: 1;
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--brand-gold);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 25px rgba(202, 162, 64, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.light-mode .modal-grid.has-expanded-item .modal-feature-card.is-expanded {
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(12, 48, 76, 0.08), 0 0 25px rgba(202, 162, 64, 0.05);
}

/* Master-detail layout inside bento modal when a card is expanded */
@media (min-width: 769px) {
    .modal-grid.has-expanded-item {
        grid-template-columns: 1.25fr 1fr;
        align-items: start;
    }
    .modal-grid.has-expanded-item .modal-feature-card.is-expanded {
        grid-column: 1;
        grid-row: 1 / span 15;
        transform: scale(1.01);
    }
    .modal-grid.has-expanded-item .modal-feature-card:not(.is-expanded) {
        grid-column: 2;
        grid-row: auto;
        transform: scale(0.97);
    }
}
.modal-feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.modal-feature-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    transition: color 0.3s ease;
}
body.light-mode .modal-feature-title { color: #000; }
.modal-feature-card:hover .modal-feature-title {
    color: var(--brand-gold);
}

/* Expansion indicator arrow */
.modal-feature-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}
body.light-mode .modal-feature-arrow { color: rgba(0, 0, 0, 0.4); }
.modal-feature-card:hover .modal-feature-arrow {
    color: var(--brand-gold);
}
.modal-feature-card.is-expanded .modal-feature-arrow {
    transform: rotate(180deg);
    color: var(--brand-gold);
}

/* Collapsible content area */
.modal-feature-collapse {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), margin-top 0.4s ease;
    margin-top: 0;
}
.modal-feature-card.is-expanded .modal-feature-collapse {
    max-height: 1000px; /* Increased from 600px to prevent clipping tags inside very long subcategories */
    opacity: 1;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.light-mode .modal-feature-card.is-expanded .modal-feature-collapse {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.modal-feature-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
    text-align: left;
}
body.light-mode .modal-feature-desc { color: rgba(0, 0, 0, 0.75); }
.modal-feature-desc p {
    margin-bottom: 0.75rem;
}
.modal-feature-desc p:last-child {
    margin-bottom: 0;
}
.modal-feature-desc strong {
    color: var(--brand-gold);
    font-weight: 700;
}
.modal-feature-desc em {
    color: #fff;
    font-style: normal;
    font-weight: 600;
}
body.light-mode .modal-feature-desc em { color: #000; }

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.modal-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(202, 162, 64, 0.15);
    border: 1px solid rgba(202, 162, 64, 0.3);
    color: #f3d077;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
body.light-mode .modal-tag {
    background: rgba(202, 162, 64, 0.1);
    color: #b28e35;
}

@media (max-width: 768px) {
    .bento-modal { padding: 0.75rem; }
    .bento-modal-content { height: 95vh; border-radius: 24px; }
    .bento-modal-body { padding: 0 1rem 1.5rem 1rem; }
    .btn-close-modal { left: calc(100% - 3rem); top: 0.75rem; width: 36px; height: 36px; }
    .modal-grid { grid-template-columns: 1fr; gap: 1rem; }
    .modal-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .modal-desc { font-size: 1.05rem; }
}

/* ==========================================================================
   BENTO SERVICES COLLAGE
   ========================================================================== */
.bento-card--services {
    overflow: hidden;
}
.bento-collage {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}
.collage-img {
    position: absolute;
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    background: #0f172a;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s, box-shadow 0.4s;
}
body.light-mode .collage-img {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.collage-img.img-1 {
    transform: translate(-50px, -15px) rotate(-14deg);
    z-index: 1;
}
.collage-img.img-2 {
    transform: translate(0px, 15px) rotate(6deg) scale(1.05);
    z-index: 3;
    border-color: rgba(255,255,255,0.45);
}
body.light-mode .collage-img.img-2 {
    border-color: rgba(0,0,0,0.2);
}
.collage-img.img-3 {
    transform: translate(50px, -20px) rotate(-6deg);
    z-index: 2;
}

.bento-card--services:hover .collage-img.img-1 {
    transform: translate(-80px, -25px) rotate(-24deg) scale(1.08);
    box-shadow: 0 20px 45px rgba(0,0,0,0.8);
}
.bento-card--services:hover .collage-img.img-2 {
    transform: translate(0px, 20px) rotate(0deg) scale(1.15);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    border-color: #60a5fa;
}
.bento-card--services:hover .collage-img.img-3 {
    transform: translate(80px, -30px) rotate(14deg) scale(1.08);
    box-shadow: 0 20px 45px rgba(0,0,0,0.8);
}

@media (max-width: 900px) {
    .bento-collage {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 2.5rem auto 1rem auto;
        width: 100%;
        max-width: 320px;
    }
    .bento-card--services .bento-desc {
        max-width: 100% !important;
    }
}

/* Ensure technical parts of the page use the clean sans-serif font */
.hifi-slider-label, 
.hifi-slider-value, 
.hifi-slider-ticks, 
.result-box h3, 
.odometer, 
.odo-unit,
.tab-btn,
.nav-links,
.nav-cta,
.lang-current-btn,
.lang-dropdown,
.lang-option,
.btn-navigate,
.btn-navigate-large,
.btn-primary,
.social-icon-btn,
.stat-years,
.about-stat-number,
.about-stat-label,
.bento-eyebrow,
.bento-desc,
.modal-tag,
.suppliers-tag-cloud,
.footer {
    font-family: var(--font-main) !important;
}


/* ==========================================================================
   MOBILE NAVIGATION FIXES
   ========================================================================== */
@media (max-width: 900px) {
    .nav-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 0.5rem 1rem !important;
        gap: 0.5rem !important;
    }
    .brand-logo-img {
        height: 44px !important;
    }
    .logo-text {
        font-size: 1.35rem !important;
    }
    .nav-pill {
        order: 3;
        width: 100%;
        margin-top: 0.2rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        padding: 0.25rem;
    }
    .nav-links {
        display: inline-flex;
        min-width: max-content;
        padding-bottom: 2px;
    }
    .nav-links a {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    .social-links-nav {
        display: none !important;
    }
    .nav-cta {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }
    .hero-section {
        padding-top: 115px !important;
    }
    .apple-heading {
        font-size: clamp(2rem, 7vw, 3.2rem);
    }
    .hero-content p {
        font-size: 1rem;
    }
    .brands-section {
        padding-top: 2rem;
    }
}

/* Custom footer styling for logo and testament */
.footer {
    background: #F5F1E5 !important;
    border-top: 1px solid rgba(16, 48, 80, 0.08) !important;
    padding: 3rem 0 2rem 0 !important;
    margin-top: 5rem !important;
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-brand {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-logo-img {
    height: 350px; /* Enlarge the logo 5x to ensure subtexts are highly legible */
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.03);
}

.footer-testament {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--brand-blue);
    font-weight: 500;
}

.footer-social-links {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
    margin: 0.25rem 0;
}
.footer-social-links .social-icon-btn {
    width: 42px;
    height: 42px;
    background: rgba(12, 48, 76, 0.04);
    border: 1px solid rgba(12, 48, 76, 0.12);
    color: var(--brand-blue);
}
.footer-social-links .social-icon-btn:hover {
    color: #ffffff;
}

.footer-google-source {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.35rem 0 0.5rem 0;
    min-height: 42px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: -0.25rem;
}

.footer-link {
    font-size: 0.95rem;
    color: var(--brand-blue);
    text-decoration: none;
    opacity: 0.85;
    font-weight: 500;
    transition: opacity 0.2s, color 0.2s;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--brand-blue);
    opacity: 0.75;
    border-top: 1px solid rgba(12, 48, 76, 0.1);
    width: 100%;
    padding-top: 1.5rem;
    margin: 0;
}

.footer-legal {
    font-size: 0.8rem;
    color: var(--brand-blue);
    opacity: 0.6;
    width: 100%;
    margin: 0.35rem 0 0;
}

/* ==========================================================================
   FAQ ACCORDION SECTION (SEO Optimization)
   ========================================================================== */
.faq-section {
    margin-top: 6rem;
    padding-bottom: 2rem;
}

.faq-section .brands-subtitle {
    text-align: center;
    margin: 1rem auto 0 auto;
    max-width: 800px;
}

.faq-grid {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
}

.faq-item {
    background: rgba(12, 48, 76, 0.02);
    border: 1px solid rgba(12, 48, 76, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 15px 35px rgba(12, 48, 76, 0.06);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-blue);
    user-select: none;
    transition: color 0.3s ease;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-content {
    padding: 0 1.75rem 1.5rem 1.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    border-top: 1px solid rgba(12, 48, 76, 0.04);
    padding-top: 1rem;
}

/* Expanded Accordion state */
.faq-item.is-active {
    background: #ffffff;
    border-color: var(--brand-gold);
    box-shadow: 0 20px 40px rgba(12, 48, 76, 0.08), 0 0 15px rgba(202, 162, 64, 0.04);
}

.faq-item.is-active .faq-question {
    color: var(--brand-blue-hover);
}

.faq-item.is-active .faq-answer {
    max-height: 350px; /* Safe expanded limit */
    opacity: 1;
}

.faq-item.is-active .faq-icon {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .faq-section {
        margin-top: 4rem;
    }
    .faq-question {
        padding: 1.1rem 1.25rem;
        font-size: 1rem;
    }
    .faq-answer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.92rem;
        padding-top: 0.8rem;
    }
}

/* ==========================================================================
   SCROLL INTERACTIVE PARKER PEN
   ========================================================================== */
.about-scroll-pen-container {
    position: relative;
    width: 100%;
    height: 180px;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    pointer-events: none;
    perspective: 1000px;
}

.about-scroll-pen {
    width: 320px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 15px 30px rgba(12, 48, 76, 0.08));
    transform-style: preserve-3d;
    transform: rotate(-20deg) rotateY(0deg);
    will-change: transform;
}

@media (max-width: 900px) {
    .about-scroll-pen-container {
        height: 140px;
        margin-top: 1.5rem;
    }
    .about-scroll-pen {
        width: 240px;
    }
}



/* ==========================================================================
   MODAL SERVICE IMAGE CARDS ENHANCEMENTS
   ========================================================================== */
.modal-feature-card--with-img {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-feature-card--with-img {
        flex-direction: column;
    }
}

.modal-feature-img-wrap {
    width: 140px;
    height: 140px;
    min-width: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .modal-feature-img-wrap {
        width: 100%;
        height: 180px;
    }
}

.modal-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modal-feature-card:hover .modal-feature-img {
    transform: scale(1.06);
}

.modal-feature-content-wrap {
    flex: 1;
    width: 100%;
}

/* ==========================================================================
   FOOTER COOKIE LINK BUTTON
   ========================================================================== */
.footer-link-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: var(--text-secondary);
    padding: 0;
    transition: color 0.25s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-link-btn:hover {
    color: var(--brand-blue);
}
.footer-sep {
    color: rgba(12, 48, 76, 0.3);
    margin: 0 0.5rem;
}

/* ==========================================================================
   EU COOKIES BANNER & TRIGGER (GDPR / ePrivacy Compliant)
   ========================================================================== */
.cookie-floating-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 241, 229, 0.95);
    border: 1px solid rgba(12, 48, 76, 0.15);
    box-shadow: 0 6px 20px rgba(12, 48, 76, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 99990;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.cookie-floating-btn:hover {
    transform: scale(1.15) rotate(15deg);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(12, 48, 76, 0.22);
}
.cookie-banner.is-visible ~ .cookie-floating-btn {
    opacity: 0;
    pointer-events: none;
}

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 3rem);
    max-width: 1100px;
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.cookie-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(245, 241, 229, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(16, 48, 80, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(12, 48, 76, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.cookie-banner-text-wrap {
    flex: 1;
}
.cookie-banner-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.35rem;
}
.cookie-banner-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Cookie Buttons */
.btn-cookie {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    text-align: center;
}
.btn-cookie:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1a4d74 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(12, 48, 76, 0.25);
}
.btn-cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(12, 48, 76, 0.35);
    background: linear-gradient(135deg, #134267 0%, var(--brand-blue) 100%);
}

.btn-cookie-reject {
    background: rgba(12, 48, 76, 0.06);
    color: var(--brand-blue);
    border: 1px solid rgba(12, 48, 76, 0.15);
}
.btn-cookie-reject:hover {
    background: rgba(12, 48, 76, 0.12);
    border-color: rgba(12, 48, 76, 0.3);
    color: var(--brand-blue-hover);
    transform: translateY(-1px);
}

.btn-cookie-settings {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(12, 48, 76, 0.12);
}
.btn-cookie-settings:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--brand-blue);
    border-color: var(--brand-gold);
}

.btn-cookie-save {
    background: rgba(12, 48, 76, 0.08);
    color: var(--brand-blue);
    border: 1px solid rgba(12, 48, 76, 0.18);
}
.btn-cookie-save:hover {
    background: rgba(12, 48, 76, 0.15);
    color: var(--brand-blue-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   EU COOKIES PREFERENCES MODAL
   ========================================================================== */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 1.5rem;
}
.cookie-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: #FAF7EE;
    border: 1px solid rgba(16, 48, 80, 0.15);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
.cookie-modal.is-open .cookie-modal-dialog {
    transform: scale(1) translateY(0);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.cookie-modal-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0;
}

.cookie-modal-close-btn {
    background: rgba(12, 48, 76, 0.05);
    border: 1px solid rgba(12, 48, 76, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.cookie-modal-close-btn:hover {
    background: rgba(12, 48, 76, 0.12);
    color: var(--brand-blue);
    transform: rotate(90deg);
}

.cookie-modal-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cookie-categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cookie-cat-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(12, 48, 76, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.25s ease;
}
.cookie-cat-item:hover {
    background: #ffffff;
    border-color: rgba(202, 162, 64, 0.4);
    box-shadow: 0 4px 15px rgba(12, 48, 76, 0.04);
}

.cookie-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.cookie-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.cookie-cat-title-wrap strong {
    font-size: 1rem;
    color: var(--brand-blue);
}

.cookie-cat-badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(12, 48, 76, 0.08);
    color: var(--brand-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.cookie-cat-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* Accessible Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 34px;
}
.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.cookie-switch input:checked + .cookie-slider {
    background-color: var(--brand-blue);
}
.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
}
.cookie-slider.disabled {
    background-color: var(--brand-blue);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(12, 48, 76, 0.08);
}

/* Responsive adjustments for mobile & tablet */
@media (max-width: 900px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }
    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .cookie-banner-actions .btn-cookie-settings {
        grid-column: 1 / -1;
    }
    .cookie-modal-dialog {
        padding: 1.5rem;
    }
    .cookie-modal-footer {
        flex-direction: column-reverse;
        gap: 0.6rem;
    }
    .cookie-modal-footer .btn-cookie {
        width: 100%;
    }
}

/* Modal containment */
.bento-modal-content,
.cookie-modal-dialog {
    overscroll-behavior: contain;
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 0.5rem 1.15rem;
        font-size: 0.9rem;
    }
    .branch-photos {
        padding: 1rem;
        gap: 0.75rem;
    }
    .branch-photo {
        height: 140px;
        border-radius: 10px;
    }
    .review-card {
        min-width: min(320px, calc(100vw - 2.5rem));
    }
    .result-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .brand-logo-img {
        height: 38px !important;
    }
    .logo-text {
        font-size: 1.2rem !important;
    }
    .nav-cta {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }
    .branch-photos {
        grid-template-columns: 1fr 1fr;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    .branch-photo {
        height: 120px;
    }
    .branch-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .btn-navigate {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner {
        bottom: 0.75rem;
        width: calc(100% - 1.5rem);
    }
    .cookie-banner-actions {
        grid-template-columns: 1fr;
    }
    .hero-ai-badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.65rem;
    }
    .bento-card {
        min-height: 130px;
    }
    .bento-card-content {
        padding: 1rem;
    }
    .bento-title {
        font-size: 1.05rem;
    }
    .footer-logo-img {
        height: 220px;
    }
    .footer-testament {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   DYNAMIC TOP ANNOUNCEMENT BAR & BRANCH SPECIAL NOTICES
   ========================================================================== */
.top-announcement-bar {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #15456b 100%);
    color: #FFFFFF;
    padding: 0.65rem 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(12, 48, 76, 0.2);
    animation: slideDown 0.4s ease;
}
.announcement-badge {
    background: var(--brand-gold);
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.branch-special-notice {
    margin-top: 1rem;
    padding: 0.85rem 1.15rem;
    background: rgba(202, 162, 64, 0.15);
    border: 1px solid rgba(202, 162, 64, 0.4);
    border-radius: 12px;
    color: var(--brand-blue);
    font-size: 0.88rem;
    line-height: 1.5;
}

#main-content:focus {
    outline: none;
}

/* ============================================================
   PRINT STYLESHEET (Clean layout for branch addresses, contacts & hours)
   ============================================================ */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #111111 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
        background: #ffffff !important;
        color: #111111 !important;
        font-size: 11pt !important;
        line-height: 1.45 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hide interactive, animated or non-printable chrome */
    .navbar,
    #scroll-progress-bar,
    .top-announcement-bar,
    .cookie-banner,
    .cookie-modal,
    .cookie-floating-btn,
    .bento-modal,
    .skip-to-content,
    .custom-cursor,
    .scissors-section,
    .brands-carousel-3d-wrap,
    .carousel-particles,
    .b2b-calc-wrap,
    .reviews-track,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-cta-gold,
    .scroll-down-btn,
    .bounce-arrow,
    .lang-selector,
    .tab-nav,
    .branch-tabs-nav,
    video,
    canvas,
    iframe {
        display: none !important;
    }

    /* Clean hero section */
    .hero-section {
        padding: 1rem 0 !important;
        min-height: auto !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    /* Ensure all 5 branch panels print cleanly without being hidden by tab selection */
    .branch-panel {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 2rem !important;
        padding-bottom: 1.5rem !important;
        border-bottom: 1px solid #d0d7de !important;
    }

    .branches-grid,
    .branch-grid,
    .branch-layout,
    .about-grid,
    .bento-grid {
        display: block !important;
    }

    .branch-card,
    .bento-card,
    .faq-item {
        page-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #e1e4e8 !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }

    /* Make sure FAQ answers are visible in print */
    .faq-answer,
    .faq-collapse {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Phone numbers and email addresses legible in print */
    a[href^="tel:"]::after {
        content: " (" attr(href) ")";
        font-size: 85%;
        color: #555555 !important;
    }

    a[href^="mailto:"]::after {
        content: " (" attr(href) ")";
        font-size: 85%;
        color: #555555 !important;
    }

    /* Headings page break handling */
    h1, h2, h3, h4 {
        page-break-after: avoid;
        break-after: avoid;
        color: #0C304C !important;
    }

    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}


/* Kontakt v patičce — e-mail a telefon byly na webu dosud pouze u jednotlivých
   poboček, takže obecná poptávka (zejména B2B) neměla kam mířit. */
.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.65rem;
}
.footer-link--strong { font-weight: 600; }

/* Uživatelé, kteří si v systému vyžádali omezení pohybu, dostanou statickou
   stránku. Web má 14 animací a 72 přechodů, což u vestibulárních potíží
   není jen estetická otázka (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto !important; }
    .reviews-track,
    .carousel-track { animation: none !important; }
}

/* Mapy se načítají až na kliknutí (click-to-load). Vložený Google Maps iframe
   zakládá cookies na doméně google.com hned při načtení stránky, tedy dřív,
   než návštěvník cokoli odsouhlasí v cookie liště. Placeholder to odkládá
   na skutečný projev vůle. */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 1.25rem;
    border: 1px dashed rgba(12, 48, 76, 0.28);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(12, 48, 76, 0.045) 0%, rgba(202, 162, 64, 0.06) 100%),
        var(--color-bg, #F5F1E5);
    color: #0C304C;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.map-placeholder:hover,
.map-placeholder:focus-visible {
    border-color: rgba(202, 162, 64, 0.75);
    background-color: rgba(202, 162, 64, 0.08);
}
.map-placeholder-icon { color: #CAA240; }
.map-placeholder-label { font-weight: 650; font-size: 0.98rem; letter-spacing: -0.01em; }
.map-placeholder-note { font-size: 0.78rem; opacity: 0.72; max-width: 22ch; line-height: 1.4; }
.branch-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   MOBILNÍ NAVIGACE — viditelnost posledních položek
   Pilulka se na úzkých displejích vodorovně posouvá, ale bez jakéhokoli
   náznaku: „Pobočky“, tedy cíl hlavního CTA celého webu, končily mimo
   obraz a nic nenapovídalo, že tam ještě něco je.
   ========================================================================== */
@media (max-width: 900px) {
    .nav-pill {
        /* Zeslabení pravého okraje = vizuální signál „scrolluje se“.
           Jakmile je pilulka doscrollovaná na konec, JS třídou is-scrolled-end
           masku vypne, aby poslední položka nebyla vybledlá. */
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
                mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .nav-pill::-webkit-scrollbar { display: none; }
    .nav-pill.is-scrolled-end {
        -webkit-mask-image: none;
                mask-image: none;
    }
    .nav-links a { scroll-snap-align: start; }
}

/* Pod 430 px se šest položek při zúžení odsazení vejde celé, takže
   posouvání většinou vůbec není potřeba. */
@media (max-width: 430px) {
    .nav-links { gap: 0.1rem; }
    .nav-links a {
        padding: 0.4rem 0.42rem !important;
        font-size: 0.74rem !important;
        letter-spacing: -0.01em;
    }
}
