body {
    background-color: #0a0a0a;
}

/* --- Navigation: desktop menu + mobile hamburger --- */
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: #06b6d4;
}
.nav-link-label {
    font-weight: 600;
}
.nav-desc {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 400;
}
.nav-link:hover .nav-desc {
    color: rgba(6, 182, 212, 0.85);
}

/* On desktop hide nav descriptions under items (they stay only in mobile menu) */
@media (min-width: 1024px) {
    .nav-desc {
        display: none;
    }
}

/* Hamburger icon */
.nav-hamburger-line {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger-line:nth-child(1) { margin-bottom: 0.35rem; }
.nav-hamburger-line:nth-child(2) { margin-bottom: 0.35rem; }
.nav-main.is-open .nav-hamburger-line:nth-child(1) {
    transform: translateY(0.37rem) rotate(45deg);
}
.nav-main.is-open .nav-hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-main.is-open .nav-hamburger-line:nth-child(3) {
    transform: translateY(-0.37rem) rotate(-45deg);
}

/* Mobile panel */
.nav-mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
}
.nav-main.is-open .nav-mobile-panel {
    max-height: 90vh;
    opacity: 1;
}
.nav-mobile-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-mobile-link:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #06b6d4;
}
.nav-mobile-desc {
    font-size: 0.8rem;
    color: #9ca3af;
}
.nav-mobile-cta {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    transition: opacity 0.2s ease;
}
.nav-mobile-cta:hover {
    opacity: 0.9;
}

/* Desktop: menu visible, hamburger and mobile panel hidden */
@media (min-width: 1024px) {
    .nav-desktop {
        display: flex !important;
    }
    .nav-hamburger {
        display: none !important;
    }
    .nav-mobile-panel {
        display: none !important;
    }
}
/* Mobile: desktop menu hidden, hamburger visible */
@media (max-width: 1023px) {
    .nav-desktop {
        display: none !important;
    }
    .nav-hamburger {
        display: flex !important;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(6, 182, 212, 0.6);
    transform: translateY(-5px);
}

/* Spectacle Effect accent card */
.spectacle-card {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(236, 72, 153, 0.06) 100%);
}
.spectacle-card:hover {
    transform: none;
}

/* Package cards */
.package-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}
.package-card:hover {
    border-color: rgba(6, 182, 212, 0.6);
    transform: translateY(-5px);
}
.package-recommended {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}
.package-list {
    list-style: disc;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #d1d5db;
}
.package-list li {
    padding-left: 0.15rem;
    margin-bottom: 0.3rem;
}
.package-list li::marker {
    color: rgba(139, 92, 246, 0.5);
}
.package-recommended .package-list li::marker {
    color: rgba(139, 92, 246, 0.8);
}

.package-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    white-space: nowrap;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Custom kiosk card: 70% description / 30% button on desktop, button centered in column */
@media (min-width: 1024px) {
    .custom-kiosk-card {
        display: grid;
        grid-template-columns: 70% 30%;
        gap: 1.5rem;
        align-items: center;
    }
    .custom-kiosk-card .custom-kiosk-cta {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Kits section: strict two columns, no overlap (minmax allows left column to shrink) */
@media (min-width: 1024px) {
    .kits-two-cols {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* Schematic: fills right column, same height as left column (boxy), keeps aspect ratio */
.schematic-figure {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    height: 100%;
}
.schematic-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
@media (max-width: 1023px) {
    .schematic-img {
        max-width: 50%;
        width: auto;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Supplier logos: dark SVGs → white via filter (Safari-safe) */
.supplier-logo-link {
    display: inline-block;
    width: 10rem;
    height: 3.5rem;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.2s ease;
}
.supplier-logo-link:hover {
    opacity: 1;
}
.supplier-logo-iiyama {
    background-image: url("../img/iiyama_logo.svg");
}
.supplier-logo-yololiv {
    background-image: url("../img/ylololiv_logo.svg");
}

/* Hardware partners: one line (heading + logos) */
.supplier-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}
.supplier-partners-heading {
    font-size: 1rem;
    font-weight: 400;
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.supplier-partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem 3rem;
}

.style-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #1a1a1a;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.style-card:hover {
    transform: scale(1.03);
}

.style-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.style-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.style-card:hover .style-overlay {
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-logo-inline {
    display: inline-block;
    width: 4.68em;
    height: 2.8em;
    vertical-align: middle;
    margin-top: 0.4rem;
    margin-left: 0.2rem;
}

.gradient-logo-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
    filter: blur(5px);
}

.section-border {
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Sekcja AI Models – grafika w kolorach logo INFINI.TO (inline SVG) */
.ai-models-graphic-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
}

.ai-models-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
}

/* Sekcja About – tło z opacity */
.section-about-bg {
    position: relative;
    overflow: hidden;
}

.section-about-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/infinito_back.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
}

@media (max-width: 767px) {
    .section-about-bg::before {
        background-attachment: scroll;
        background-position: center center;
    }
}

/* Sticky Footer z efektem kurtyny (jak https://css-tricks.com/the-slideout-footer/) */
.main-content-curtain {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background-color: #0a0a0a;
}

.sticky-footer-banner {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    display: block;
    line-height: 0;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    transition: box-shadow 0.3s ease;
}

.sticky-footer-banner:hover {
    box-shadow: 0 -4px 24px rgba(6, 182, 212, 0.2);
}

.sticky-footer-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    vertical-align: bottom;
}

/* Before / After widget */
.before-after {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    user-select: none;
}

.before-after-before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-after-after {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(var(--position, 0.5) * 100%);
    overflow: hidden;
}

.before-after-after-img {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(100% / var(--position, 0.5));
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.before-after-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--position, 0.5) * 100%);
    width: 4px;
    margin-left: -2px;
    cursor: ew-resize;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
    pointer-events: none;
}

.before-after-handle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(139, 92, 246, 0.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.before-after-labels {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 14px;
    pointer-events: none;
    z-index: 1;
}

.before-after-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.95);
}

/* --- i18n GDPR / language banner --- */
.i18n-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 55%),
                radial-gradient(circle at top right, rgba(236, 72, 153, 0.25), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-top: 1px solid rgba(139, 92, 246, 0.45);
    backdrop-filter: blur(10px);
}
.i18n-banner-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.i18n-banner-text {
    flex: 1 1 220px;
    font-size: 0.85rem;
    color: #e5e7eb;
}
.i18n-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.i18n-banner-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}
.i18n-banner-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.i18n-banner-btn-primary {
    background: linear-gradient(to right, #06b6d4, #9333ea);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}
.i18n-banner-btn-secondary {
    background: rgba(31, 41, 55, 0.95);
    color: #e5e7eb;
}

/* Small non-blocking badge for active translation */
.i18n-section-badge {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9998;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

/* i18n fallback message when API fails */
.i18n-unavailable-msg {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #f59e0b;
}

/* ── Hero slider ────────────────────────────────────────────────────── */
.hero-slider {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
}
.hero-dot {
    height: 0.45rem;
    width: 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.3s ease;
}
.hero-dot.active {
    width: 1.4rem;
    background: rgba(255, 255, 255, 0.95);
}
.hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* ── Styles carousel ────────────────────────────────────────────────── */
.styles-carousel {
    position: relative;
    overflow: hidden;
}
.styles-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    will-change: transform;
}
.styles-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .styles-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Expanded image panel ───────────────────────────────────────────── */
.styles-expanded-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 10, 24, 0.93);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.styles-expanded-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.styles-expanded-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    padding: 1rem 0;
}
.styles-expanded-inner img {
    height: 100%;
    max-height: calc(100% - 2.5rem);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    animation: styleCardExpand 0.35s ease forwards;
}
.styles-expanded-label {
    color: #e5e7eb;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
@keyframes styleCardExpand {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
.style-card-close {
    display: flex;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    transition: background 0.2s ease, transform 0.15s ease;
    line-height: 1;
}
.style-card-close:hover {
    background: rgba(139, 92, 246, 0.75);
    transform: scale(1.1);
}
