/* Custom CSS for ELEKTROMARHEFKA */

/* Base styles */
:root {
    --navy: #1e3a8a;
    --yellow: #facc15;
    --yellow-dark: #eab308;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--yellow);
}

/* Focus styles – len klávesnica (nie klik myšou / dotyk) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

#navbar button,
#navbar a {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile menu – fullscreen portal + clip-path z hamburgera */
#mobile-menu-toggle {
    position: relative;
    z-index: 53;
}

.hamburger {
    display: inline-block;
    cursor: pointer;
    transition-property: opacity;
    transition-duration: 0.15s;
    transition-timing-function: linear;
}

.hamburger-box {
    width: 22px;
    height: 16px;
    display: inline-block;
    position: relative;
    transition: transform 0.12s ease;
}

#mobile-menu-toggle:active .hamburger-box {
    transform: scale(0.92);
}

.hamburger-inner {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 22px;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
    position: absolute;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease,
        top 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        bottom 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -6px;
}

.hamburger-inner::after {
    bottom: -6px;
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.06s;
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition-delay: 0s;
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition-delay: 0.06s;
}

#mobile-menu-toggle[aria-expanded="false"] .hamburger-inner,
#mobile-menu-toggle[aria-expanded="false"] .hamburger-inner::before,
#mobile-menu-toggle[aria-expanded="false"] .hamburger-inner::after {
    transition-delay: 0.08s;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(3, 7, 18, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Prémiové fullscreen mobilné menu – fade + scale (transform/opacity only, GPU-friendly) */
.mobile-menu-portal {
    position: fixed;
    inset: 0;
    z-index: 45;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    transition:
        opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
    visibility: hidden;
    background:
        radial-gradient(circle at 18% 0%, rgba(250, 204, 21, 0.14), transparent 55%),
        linear-gradient(180deg, #0b1220 0%, #0f1b3d 55%, #0b1220 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mobile-menu-portal.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.mobile-menu-portal.is-closing {
    pointer-events: none;
    opacity: 0;
    transform: scale(0.97) translateY(6px);
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.mobile-menu-portal__panel {
    height: 100%;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(4rem + env(safe-area-inset-top, 0px));
}

.mobile-menu-panel__inner {
    position: relative;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

/* Grid hlavnej navigácie */
.mobile-nav-grid {
    margin-top: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.35);
    color: #facc15;
}

.mobile-nav-link:active {
    transform: scale(0.97);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, #facc15, #eab308);
    border-color: transparent;
    color: #1e3a8a;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.28);
}

/* Vizuálna sekcia s kartami (blog + galéria) */
.mobile-highlights-heading {
    margin: 1.75rem 0 0.75rem;
    padding: 0 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.55);
}

.mobile-highlight-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.mobile-highlight-card:hover,
.mobile-highlight-card:focus-visible {
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.25), 0 12px 28px rgba(250, 204, 21, 0.18);
}

.mobile-highlight-card:active {
    transform: scale(0.98);
}

.mobile-highlight-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-highlight-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0) 40%, rgba(11, 18, 32, 0.92) 100%);
}

.mobile-highlight-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(11, 18, 32, 0.25);
}

.mobile-highlight-card__label {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1e3a8a;
    background: #facc15;
}

.mobile-highlight-card__title {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

/* Prihlásenie / registrácia / účet */
.mobile-menu-auth-block {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mobile-menu-auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.mobile-menu-auth-link:hover,
.mobile-menu-auth-link:focus-visible {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.4);
}

.mobile-menu-auth-link--ghost {
    background: transparent;
}

.mobile-menu-auth-link--cta {
    color: #1e3a8a;
    background: linear-gradient(135deg, #facc15, #eab308);
    border-color: transparent;
}

.mobile-menu-auth-link--cta:hover,
.mobile-menu-auth-link--cta:focus-visible {
    color: #1e3a8a;
    filter: brightness(1.05);
}

/* Stagger vstupu/výstupu položiek menu (grid, karty, auth blok) */
.mobile-menu-divider {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
    pointer-events: none;
    transition:
        opacity 0.36s ease,
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-divider.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mobile-menu-item {
    opacity: 0;
    transform: translateY(-12px) scale(0.94);
    pointer-events: none;
    transition:
        opacity 0.38s ease,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mobile-menu-item.is-leaving,
.mobile-menu-portal.is-closing .mobile-menu-item {
    opacity: 0 !important;
    transform: translateY(-18px) scale(0.88) !important;
    transition-duration: 0.24s !important;
    pointer-events: none !important;
}

.mobile-menu-divider.is-leaving,
.mobile-menu-portal.is-closing .mobile-menu-divider {
    opacity: 0 !important;
    transform: translateY(-14px) scale(0.9) !important;
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
    pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-backdrop {
        transition: none;
    }

    .mobile-menu-portal,
    .mobile-menu-portal.is-open,
    .mobile-menu-portal.is-closing {
        transition: none;
    }

    .mobile-menu-portal:not(.is-open) {
        visibility: hidden;
    }

    .mobile-menu-portal.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .mobile-menu-item,
    .mobile-menu-divider,
    .mobile-nav-link,
    .mobile-highlight-card,
    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        opacity: 1;
        transform: none;
        transition: none !important;
    }

    .hamburger-box {
        transition: none;
    }
}

/* Button hover effects */
.btn-primary {
    background-color: var(--navy);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--yellow);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--navy);
    color: white;
    transform: translateY(-2px);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Product card styles */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

/* Image lazy loading */
.lazy {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.lazy.loaded {
    filter: blur(0);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--navy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Notification styles */
.notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form validation styles */
.form-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Breadcrumb styles */
.breadcrumb {
    display: flex;
    align-items: center;
    space-x: 2px;
}

.breadcrumb-item {
    color: var(--gray-500);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: var(--gray-400);
}

.breadcrumb-item:last-child {
    color: var(--navy);
    font-weight: 500;
}

/* Rating stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: #d1d5db;
    font-size: 16px;
}

.star.filled {
    color: var(--yellow);
}

.star.half {
    position: relative;
}

.star.half::before {
    content: '\f089';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    color: var(--yellow);
}

/* Table styles */
.table-responsive {
    overflow-x: auto;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th,
.table-custom td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table-custom th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.table-custom tbody tr:hover {
    background-color: var(--gray-50);
}

/* Modal styles */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalFadeIn 0.3s ease;
}

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

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

.search-suggestion-item:hover {
    background-color: var(--gray-50);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Cart dropdown */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-price {
    font-weight: 600;
    color: var(--navy);
}

/* Gallery styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-media-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f3f4f6;
}

.gallery-item .gallery-media-thumb > img,
.gallery-item .gallery-media-thumb__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-media-thumb > img,
.gallery-item:hover .gallery-media-thumb__image {
    transform: scale(1.08);
}

.gallery-item .gallery-media-thumb .em-video-player--preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-item .gallery-media-thumb .em-video-player--preview .em-video-player__stage,
.gallery-item .gallery-media-thumb .em-video-player--preview .em-video-player__stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Legacy gallery grid (ak sa ešte niekde používa priamy img v .gallery-item) */
.gallery-item > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* Testimonial styles */
.testimonial-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: var(--yellow);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--navy), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --navy: #000033;
        --yellow: #ffff00;
    }
    
    .btn-primary {
        border: 2px solid var(--yellow);
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Hero slider — plynulé video (GPU vrstva + cover do prvého framu) */
.hero-slider .hero-slide {
    transition: none;
}

.hero-slider .hero-slide.is-animating {
    transition: opacity 0.4s ease-in-out;
}

.hero-slider {
    background-color: #1e3a8a;
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* ===== Banik-like: roztiahnutý header hore → stiahnutie po scrolle ===== */
.site-header-nav {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    transition:
        padding 0.5s ease,
        background-color 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease,
        backdrop-filter 0.5s ease,
        -webkit-backdrop-filter 0.5s ease;
}

.site-header-nav__row {
    min-height: 4rem;
    transition: min-height 0.5s ease;
}

#navbar[data-home-nav].is-expanded,
#navbar[data-auth-nav].is-expanded {
    padding-block: 0;
}

/* Desktop: expanded = úplne transparentný */
@media (min-width: 768px) {
    #navbar[data-home-nav].is-expanded,
    #navbar[data-auth-nav].is-expanded {
        padding-block: 2.5rem;
        background-color: transparent !important;
        border-bottom-color: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #navbar[data-home-nav].is-expanded .site-header-nav__row,
    #navbar[data-auth-nav].is-expanded .site-header-nav__row {
        min-height: 4.5rem;
    }

    /* Domov scrolled = jemný biely glass */
    #navbar[data-home-nav].navbar-scrolled {
        padding-block: 0;
        background-color: rgba(255, 255, 255, 0.82) !important;
        border-bottom-color: rgba(229, 231, 235, 0.85) !important;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
        backdrop-filter: blur(12px) saturate(1.15) !important;
        -webkit-backdrop-filter: blur(12px) saturate(1.15) !important;
    }

    /* Auth scrolled = jemný tmavý glass */
    #navbar[data-auth-nav].navbar-scrolled {
        padding-block: 0;
        background-color: rgba(15, 23, 42, 0.75) !important;
        border-bottom-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22) !important;
        backdrop-filter: blur(12px) saturate(1.1) !important;
        -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
    }
}

@media (min-width: 1024px) {
    #navbar[data-home-nav].is-expanded,
    #navbar[data-auth-nav].is-expanded {
        padding-block: 3.25rem;
    }
}

#navbar[data-home-nav].navbar-scrolled .site-header-nav__row,
#navbar[data-auth-nav].navbar-scrolled .site-header-nav__row,
#navbar[data-home-nav] .site-header-nav__row,
#navbar[data-auth-nav] .site-header-nav__row {
    min-height: 4rem;
}

@media (min-width: 768px) {
    #navbar[data-home-nav].is-expanded .site-header-nav__row,
    #navbar[data-auth-nav].is-expanded .site-header-nav__row {
        min-height: 4.5rem;
    }
}

.site-header-brand-img {
    transition: height 0.5s ease, max-width 0.5s ease;
    height: var(--logo-h, 40px);
    max-width: min(46vw, var(--logo-mw, 220px));
}

/* Väčšie logo len desktop expand */
@media (min-width: 768px) {
    #navbar[data-home-nav].is-expanded .site-header-brand-img,
    #navbar[data-auth-nav].is-expanded .site-header-brand-img {
        height: var(--logo-h-lg, 56px);
        max-width: var(--logo-mw-lg, 280px);
    }

    #navbar[data-home-nav].is-expanded .site-header-logo-frame,
    #navbar[data-auth-nav].is-expanded .site-header-logo-frame {
        transition: height 0.5s ease, width 0.5s ease;
        height: var(--logo-h-lg, 56px) !important;
        width: var(--logo-mw-lg, 280px) !important;
    }
}

/* Mobile homepage: stabilný biely bar; auth: tmavý glass */
@media (max-width: 767px) {
    #navbar[data-home-nav],
    #navbar[data-home-nav].is-expanded,
    #navbar[data-home-nav].navbar-scrolled {
        background-color: rgba(255, 255, 255, 0.97) !important;
        border-bottom-color: rgb(243 244 246) !important;
        box-shadow: 0 1px 3px rgb(0 0 0 / 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding-block: 0 !important;
    }

    #navbar[data-auth-nav],
    #navbar[data-auth-nav].is-expanded,
    #navbar[data-auth-nav].navbar-scrolled {
        padding-block: 0 !important;
        background-color: rgba(15, 23, 42, 0.78) !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    #navbar[data-home-nav] .site-header-brand-img,
    #navbar[data-auth-nav] .site-header-brand-img {
        height: var(--logo-h, 40px) !important;
        max-width: min(42vw, var(--logo-mw, 220px)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-nav,
    .site-header-nav__row,
    .site-header-brand-img {
        transition: none !important;
    }
}

.hero-slider .hero-slide-video {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s ease;
    will-change: opacity;
}

.hero-slider .hero-slide-video.is-ready {
    opacity: 1;
    will-change: auto;
}

.hero-slider .hero-video-cover {
    transition: opacity 0.45s ease, visibility 0.45s ease;
    opacity: 1;
    visibility: visible;
}

.hero-slider .hero-video-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.hero-slider .hero-video-play {
    pointer-events: auto;
}

.hero-slider .hero-video-play.hidden {
    display: none !important;
}

/* Reduced motion support */
@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;
    }

    .hero-slider .hero-slide-video,
    .hero-slider .hero-video-cover {
        transition: none !important;
    }
}
