/* ==========================================================
   OFERTA BLOCK - CAROUSEL CARDS
   ========================================================== */

/* Glass overlay na całą sekcję */
.oferta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(227, 6, 19, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.oferta-block {
    position: relative;
    background: #f6f3f2;
    overflow: hidden;
}

.oferta-block .section-title {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 3px solid #e30613;
    display: inline-block;
    padding-bottom: .2rem;
}

.oferta-block .section-description {
    max-width: 800px;
    color: #444;
    line-height: 1.6;
}

/* ==========================================================
   CARD STYLES
   ========================================================== */

.oferta-card {
    display: flex;
    flex-direction: column;
    height: 350px;
    border-radius: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s 
cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Glossy highlight na górze karty */
.oferta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.oferta-card:hover::before {
    opacity: 0.7;
}

/* USUWAM shimmer effect - był tutaj ::after */

.oferta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Card Image */
.oferta-card .card-image {
     width: 100%;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    height: 45%;
}

.oferta-card:hover .card-image {
    height: 25%; /* Po hover jeszcze mniej - 3/4 na tekst */
}

.oferta-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: blur(0px);
}

.oferta-card:hover .card-image img {
    transform: scale(1.1);
    filter: blur(2px);
}

/* Card Body */
.oferta-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.oferta-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.oferta-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 1rem;
    /* Więcej miejsca na tekst */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Zwiększone z 2 do 3 linii */
    -webkit-box-orient: vertical;
}

.oferta-card:hover .card-text {
    opacity: 1;
    max-height: 90px; /* Zwiększone z 60px - więcej miejsca na tekst */
}

/* Card Footer */
.oferta-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin-top: auto;
}

.oferta-card .card-footer img {
    width: 100px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.oferta-card:hover .card-footer img {
    opacity: 1;
    transform: translateX(0);
}

/* Button Circle */
.btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid currentColor;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-circle:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 20px currentColor;
}

.btn-circle i {
    transition: transform 0.3s ease;
}

.btn-circle:hover i {
    transform: scale(1.2);
}

/* ==========================================================
   COLOR VARIANTS
   ========================================================== */

.card-red {
    background: linear-gradient(135deg, 
        rgba(183, 32, 46, 0.9) 0%, 
        rgba(183, 32, 46, 0.95) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(183, 32, 46, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
}

.card-red .card-text,
.card-red .card-title {
    color: #fff;
}

.card-red .btn-circle {
    color: #fff;
    border-color: #fff;
}

.card-red .btn-circle:hover {
    background: #fff;
    color: #b7202e;
}

.card-white {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.95) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #000;
}

.card-white .card-text,
.card-white .card-title {
    color: #000;
}

.card-white .btn-circle {
    color: #000;
    border-color: #000;
}

.card-white .btn-circle:hover {
    background: #000;
    color: #fff;
}

.card-gray {
    background: linear-gradient(135deg, 
        rgba(217, 217, 217, 0.9) 0%, 
        rgba(217, 217, 217, 0.95) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #000;
}

.card-gray .card-text,
.card-gray .card-title {
    color: #000;
}

.card-gray .btn-circle {
    color: #000;
    border-color: #000;
}

.card-gray .btn-circle:hover {
    background: #000;
    color: #fff;
}

.card-black {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(30, 30, 30, 0.95) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #fff;
}

.card-black .card-text,
.card-black .card-title {
    color: #fff;
}

.card-black .btn-circle {
    color: #fff;
    border-color: #fff;
}

.card-black .btn-circle:hover {
    background: #fff;
    color: #000;
}

/* ==========================================================
   SWIPER NAVIGATION
   ========================================================== */

.swiper-button-next {
    right: -60px !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, 
        rgba(227, 6, 19, 0.9) 0%, 
        rgba(183, 32, 46, 0.95) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(227, 6, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.swiper-button-next:hover {
    background: linear-gradient(135deg, 
        rgba(227, 6, 19, 1) 0%, 
        rgba(183, 32, 46, 1) 100%
    );
    box-shadow: 
        0 12px 35px rgba(227, 6, 19, 0.4),
        0 0 30px rgba(227, 6, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    right: -55px !important;
}

.swiper-button-next::after {
    font-size: 18px !important;
    color: white;
    font-weight: bold;
}

/* Swiper Scrollbar */
.swiper-scrollbar {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 4px !important;
}

.swiper-scrollbar-drag {
    background: linear-gradient(90deg, 
        rgba(227, 6, 19, 0.8) 0%, 
        rgba(227, 6, 19, 1) 50%,
        rgba(227, 6, 19, 0.8) 100%
    ) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 
        0 2px 10px rgba(227, 6, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Card Animations - łagodniejsze, bez rozbłysków */
.oferta-card.animate-in {
    animation: subtleFadeIn 0.8s ease forwards;
}

@keyframes subtleFadeIn {
    from {
        transform: translateY(10px); /* Zmniejszone z 30px */
        opacity: 0.8; /* Bardziej subtelne */
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================
   BOTTOM BUTTON
   ========================================================== */

.przy-oferta .btn {
    font-weight: 600;
    border: 2px solid black;
    padding: 0.75rem 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0;
    color: black;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.przy-oferta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: black;
    transition: left 0.3s ease;
    z-index: -1;
}

.przy-oferta .btn:hover::before {
    left: 0;
}

.przy-oferta .btn:hover {
    color: white;
    border-color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media screen and (max-width: 992px) {
    .swiper-button-next {
        display: none !important;
    }
    
    .oferta-card {
        height: 35vh;
    }
    
    .oferta-card .card-image {
        height: 50%;
    }
}

@media screen and (max-width: 768px) {
    .oferta-card {
        height: 45vh;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .oferta-card .card-text {
        font-size: 0.85rem;
    }
    
    .przy-oferta .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-circle {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Floating glass particles animation */
@keyframes floatingGlass {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.3;
    }
}

.oferta-block .floating-glass {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatingGlass 4s infinite ease-in-out;
    pointer-events: none;
}

.oferta-block .floating-glass:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.oferta-block .floating-glass:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1.5s;
}

.oferta-block .floating-glass:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 3s;
}