/* ============================================
   hero-karuzela — fullwidth slider 21:9
   ============================================ */

.hero-karuzela__wrap {
    aspect-ratio: 21 / 9;
    min-height: 520px;
    max-height: 680px;
    background: #0A0A0A;
    overflow: hidden;
    position: relative;
}

/* ---- Slajd ---- */
.hero-karuzela__slajd {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 0;
}
.hero-karuzela__slajd--aktywny {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-karuzela__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: hkZoom 8s ease forwards;
}
@keyframes hkZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.00); }
}

.hero-karuzela__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10,10,10,0.58) 0%,
        rgba(10,10,10,0.26) 48%,
        rgba(10,10,10,0.00) 68%
    );
    z-index: 1;
}

/* ---- Szklany panel ---- */
.hero-karuzela__panel-wrap {
    position: absolute;
    top: 50%;
    left: clamp(24px, 4vw, 64px);
    transform: translateY(-50%);
    width: min(560px, 52%);
    z-index: 2;
}
.hero-karuzela__panel {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: clamp(28px, 3vw, 44px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 40px rgba(10,10,10,0.18);
}

.hero-karuzela__kicker {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #28538E;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-karuzela__kicker::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background: #28538E;
}

.hero-karuzela__tytul {
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: #0A0A0A;
}
.hero-karuzela__tytul em {
    font-style: normal;
    color: #28538E;
}

.hero-karuzela__opis {
    font-size: 0.97rem;
    line-height: 1.6;
    color: rgba(8, 47, 73, 0.78);
    max-width: 34rem;
    margin: 0;
}

/* Przyciski */
.hero-karuzela__btn--primary {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 50px;
    background: #28538E;
    color: white !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.hero-karuzela__btn--primary:hover {
    background: #1b3d6e;
    color: white;
    transform: translateY(-1px);
}
.hero-karuzela__btn--ghost {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 50px;
    border: 1px solid #0A0A0A;
    color: #0A0A0A;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.hero-karuzela__btn--ghost:hover {
    background: #0A0A0A;
    color: white;
}

/* ---- Nawigacja ---- */
.hero-karuzela__nav {
    position: absolute;
    bottom: 22px;
    right: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-karuzela__counter {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.72);
}
.hero-karuzela__dot {
    height: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    padding: 0;
    background: rgba(255, 255, 255, 0.38);
    width: 8px;
    transition: all 0.3s ease;
}
.hero-karuzela__dot--aktywny {
    background: white;
    width: 32px;
}

/* ---- Responsywność ---- */
@media (max-width: 991.98px) {
    .hero-karuzela__wrap {
        aspect-ratio: 16 / 9;
        min-height: 400px;
        max-height: 520px;
    }
    .hero-karuzela__panel-wrap {
        width: min(480px, 60%);
    }
}
@media (max-width: 767.98px) {
    .hero-karuzela__wrap {
        aspect-ratio: auto;
        min-height: 480px;
        max-height: none;
        border-radius: 16px !important;
    }
    .hero-karuzela__panel-wrap {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 1.5rem;
    }
    .hero-karuzela__slajd {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .hero-karuzela__slajd--aktywny {
        display: flex;
    }
    .hero-karuzela__bg {
        position: absolute;
        inset: 0;
        height: 100%;
    }
    .hero-karuzela__panel {
        border-radius: 12px;
        margin: 0 0 1rem;
    }
    .hero-karuzela__tytul {
        font-size: 1.5rem;
    }
}
