/* ==========================================================================
   KARUZELA (HERO SLIDER) - POPRAWIONA STRUKTURA
   ========================================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #f3f3f3; 
    border-bottom: 1px solid #e5e5e5;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-color: #f3f3f3;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Blok tekstu */
.slide-content {
    flex: 1;
    max-width: 50%;
    padding: 0 40px;
    margin-left: 5%;
    color: #132b5d;
    z-index: 10;
    text-align: left;
}

.slide-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #132b5d;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #4a5568;
}

/* Przyciski */
.slide-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: #cf142b;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(207, 20, 43, 0.2);
}

.slide-btn:hover {
    background-color: #a50f22;
    transform: translateY(-2px);
}

/* Blok obrazka */
.slide-image {
    flex: 1;
    max-width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    align-items: flex-end;
}

.slide-image img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
}

/* Strzałki nawigacyjne */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(19, 43, 93, 0.05);
    color: #132b5d;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s;
    border-radius: 0 4px 4px 0;
}

.carousel-arrow.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.carousel-arrow:hover {
    background: #132b5d;
    color: #ffffff;
}

/* KROPKI - POZYCJONOWANIE ABSOLUTNE (NA OBRAZKU) */
.carousel-dots {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 999 !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    list-style: none !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 20px !important;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: #132b5d;
    transform: scale(1.3);
}

/* ==========================================================================
   WIDOK MOBILNY
   ========================================================================== */
@media (max-width: 768px) {
    .hero-carousel {
        height: auto;
        min-height: 500px;
    }
    
    .carousel-slide {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: relative;
    }
    
    .carousel-slide:not(.active) {
        display: none !important;
    }

    .slide-content {
        max-width: 100%;
        padding: 30px 20px 20px 20px !important;
        margin-left: 0;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .slide-btn {
        padding: 10px 25px;
        font-size: 0.8rem;
    }
    
    .slide-image {
        max-width: 100%;
        height: 220px;
        padding-bottom: 0 !important; /* Usunięto padding */
    }
    
    .carousel-arrow {
        display: none !important;
    }
}