/*
Theme Name: JCB Powerslide
Description: Custom theme for JCB 3CX PRO Powerslide landing page
Version: 1.5
*/

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Excavator Slider Section Styles */
        .excavator-slider-section {
            position: relative;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        }

        .slider-container {
            height: 100vh;
            position: relative;
            overflow: hidden;
            min-height: 600px;
        }

        .excavator-stage {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            width: min(80vw, 800px);
            height: min(60vh, 600px);
        }

        .excavator-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            opacity: 0;
            transform: scale(0.8) rotateY(45deg);
            transition: all 1.5s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .excavator-navigation {
    position: absolute;
    bottom: clamp(30px, 6vh, 50px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(15px, 3vw, 20px);
    z-index: 10;
}

.excavator-navigation .nav-button {
    width: clamp(45px, 8vw, 55px);
    height: clamp(45px, 8vw, 55px);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.excavator-navigation .nav-button:hover {
    border-color: #f9b104;
    background: #f9b104;
    transform: scale(1.1);
}

.excavator-navigation .nav-button:hover svg {
    color: white;
}

.excavator-navigation .nav-button svg {
    width: clamp(20px, 4vw, 24px);
    height: clamp(20px, 4vw, 24px);
    color: #666;
    transition: color 0.3s ease;
}

.excavator-navigation .nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.excavator-navigation .nav-button:disabled:hover {
    border-color: #e0e0e0;
    background: white;
    transform: none;
}

.excavator-navigation .nav-button:disabled svg {
    color: #666;
}

.excavator-dots {
    display: flex;
    gap: clamp(8px, 1.5vw, 12px);
    justify-content: center;
}

/* Usunięcie starych stylów dla .navigation i .nav-dot */
.navigation {
    display: none;
}

/* Dostosowanie na urządzenia mobilne */
@media (max-width: 768px) {
    .excavator-navigation {
        bottom: 20px;
    }
}

/* Dla urządzeń dotykowych */
@media (hover: none) and (pointer: coarse) {
    .excavator-navigation .nav-button:hover {
        transform: none;
    }
}

        .excavator-image.active {
            opacity: 1;
            transform: scale(1) rotateY(0deg);
        }

        .specs-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 3;
        }

        .spec-point {
            position: absolute;
            opacity: 0;
            transform: scale(0);
        }

        .spec-point.active {
            opacity: 1;
            transform: scale(1);
            transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .spec-dot {
            width: clamp(10px, 1.2vw, 14px);
            height: clamp(10px, 1.2vw, 14px);
            background: #f9b104;
            border-radius: 50%;
            position: relative;
            cursor: pointer;
            box-shadow: 0 0 0 0 rgba(249, 177, 4, 0.7);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(249, 177, 4, 0.7);
            }
            70% {
                box-shadow: 0 0 0 clamp(15px, 2.5vw, 25px) rgba(249, 177, 4, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(249, 177, 4, 0);
            }
        }

        .spec-label {
            position: absolute;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid #e9ecef;
            padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
            border-radius: clamp(8px, 1.5vw, 12px);
            backdrop-filter: blur(20px);
            width: clamp(140px, 25vw, 180px);
            transform: translateY(-50%);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }



        .spec-title {
            font-size: clamp(10px, 1.8vw, 12px);
            font-weight: 600;
            color: #6c757d;
            margin-bottom: clamp(2px, 0.5vw, 4px);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .spec-value {
            font-size: clamp(18px, 3.5vw, 22px);
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 0;
        }

        /* Mobile-first responsive positioning */
        .spec-1 { 
            top: 35%; 
            left: 8%; 
        }
        .spec-1 .spec-label { 
            left: clamp(25px, 6vw, 35px); 
        }

        .spec-2 { 
            top: 50%; 
            right: 8%; 
        }
        .spec-2 .spec-label { 
            right: clamp(25px, 6vw, 35px); 
        }

        .spec-3 { 
            bottom: 15%; 
            left: 12%; 
        }
        .spec-3 .spec-label { 
            left: clamp(25px, 6vw, 35px); 
        }

        .navigation {
            position: absolute;
            bottom: clamp(30px, 6vh, 50px);
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: clamp(15px, 4vw, 20px);
            z-index: 10;
        }

        .nav-dot {
            width: clamp(8px, 1.5vw, 10px);
            height: clamp(8px, 1.5vw, 10px);
            border-radius: 50%;
            background: #dee2e6;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .nav-dot.active {
            background: #f9b104;
            transform: scale(1.3);
        }

        .slide-counter {
            position: absolute;
            top: clamp(30px, 6vh, 50px);
            right: clamp(20px, 5vw, 50px);
            font-size: clamp(14px, 2.5vw, 16px);
            font-weight: 400;
            color: #6c757d;
            z-index: 10;
        }

        .slide-counter .current {
            color: #f9b104;
            font-weight: 700;
        }

        .model-title {
            position: absolute;
            top: clamp(30px, 6vh, 50px);
            left: clamp(20px, 5vw, 50px);
            z-index: 10;
        }

        .model-name {
            font-size: clamp(24px, 5vw, 36px);
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: clamp(5px, 1.5vw, 8px);
            opacity: 0;
            transform: translateY(30px);
            transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .model-name.active {
            opacity: 1;
            transform: translateY(0);
        }

        .model-subtitle {
            font-size: clamp(11px, 2.2vw, 14px);
            color: #6c757d;
            font-weight: 500;
            opacity: 0;
            transform: translateY(20px);
            transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
        }

        .model-subtitle.active {
            opacity: 1;
            transform: translateY(0);
        }

        .background-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.03;
            background-image: 
                radial-gradient(circle at 25% 25%, #f9b104 1px, transparent 1px),
                radial-gradient(circle at 75% 75%, #6c757d 1px, transparent 1px);
            background-size: clamp(40px, 12vw, 80px) clamp(40px, 12vw, 80px);
            animation: float 10s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            pointer-events: none;
            transition: opacity 1s ease-in-out;
        }

        .slide.active {
            opacity: 1;
            pointer-events: all;
        }

        /* Hover effects */
        .spec-point:hover .spec-dot {
            transform: scale(1.15);
            background: #1a1a1a;
        }

        /* Tablet adjustments for slider */
        @media (max-width: 1024px) and (min-width: 769px) {
            .excavator-stage {
                width: 70vw;
                height: 50vh;
            }
        }

/* Mobile adjustments for slider */
        @media (max-width: 768px) {
            .slider-container {
                min-height: 500px;
            }
            
            .excavator-stage {
                width: 90vw;
                height: 40vh;
                min-height: 200px;
            }
            
            .spec-label {
                backdrop-filter: blur(15px);
                border-radius: 10px;
            }
            
            .spec-label::before {
                display: none;
            }
            
            /* Nowe pozycje parametrów na mobile - nie przysłaniają koparki */
            .spec-1 { 
                top: 5%; 
                left: 5%; 
            }
            
            .spec-2 { 
                top: 5%; 
                right: 5%; 
            }
            
            .spec-3 { 
                bottom: 10%; 
                left: 50%;
                transform: translateX(-50%);
            }
            
            /* Pozycjonowanie etykiet */
            .spec-1 .spec-label { 
                left: clamp(20px, 5vw, 30px); 
            }
            
            .spec-2 .spec-label { 
                right: clamp(20px, 5vw, 30px); 
            }
            
            .spec-3 .spec-label { 
                left: 50%;
                transform: translateX(-50%) translateY(-50%);
            }
            
            .model-title {
                left: 20px;
                top: 20px;
            }
            
            .slide-counter {
                right: 20px;
                top: 20px;
            }
            
            /* Reduce hover effects on mobile */
            .spec-point:hover .spec-label {
                transform: translateY(-50%);
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            }
            
            .spec-point:hover .spec-3 .spec-label {
                transform: translateX(-50%) translateY(-50%);
            }
        }

        /* Small mobile adjustments for slider */
        @media (max-width: 480px) {
            .slider-container {
                min-height: 450px;
            }
            
            .excavator-stage {
                height: 35vh;
                min-height: 180px;
            }
            
            .navigation {
                bottom: 20px;
            }
            
            .spec-label {
                width: calc(100vw - 50px);
                max-width: 140px;
                font-size: 14px;
            }
            
            /* Jeszcze bardziej kompaktowe pozycje na bardzo małych ekranach */
            .spec-1 { 
                top: 2%; 
                left: 2%; 
            }
            
            .spec-2 { 
                top: 2%; 
                right: 2%; 
            }
            
            .spec-3 { 
                bottom: 5%; 
                left: 50%;
            }
            
            .spec-1 .spec-label,
            .spec-2 .spec-label {
                width: calc(45vw - 20px);
                max-width: 120px;
            }
            
            .spec-1 .spec-label { 
                left: 15px; 
            }
            
            .spec-2 .spec-label { 
                right: 15px; 
                top:-50px;
            }
        }

        /* Landscape mobile for slider */
        @media (max-width: 768px) and (orientation: landscape) {
            .slider-container {
                min-height: 400px;
            }
            
            .excavator-stage {
                height: 60vh;
            }
            
            .model-title {
                top: 15px;
                left: 15px;
            }
            
            .slide-counter {
                top: 15px;
                right: 15px;
            }
            
            .navigation {
                bottom: 15px;
            }
        }

        /* Touch device optimizations for slider */
        @media (hover: none) and (pointer: coarse) {
            .spec-point {
                touch-action: manipulation;
            }
            
            .spec-dot {
                width: 16px;
                height: 16px;
            }
            
            .nav-dot {
                width: 12px;
                height: 12px;
            }
            
            /* Remove hover effects on touch devices */
            .spec-point:hover .spec-label,
            .spec-point:hover .spec-dot {
                transform: none;
                border-color: #e9ecef;
                background: #f9b104;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            }
        }

        body {
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            overflow-x: hidden;
            color: white;
        }

        .hero-video-section {
            position: relative;
            width: 100vw;
            height: 100vh;
            overflow: hidden;
        }

        .video-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .hero-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        /* Responsive video source selection */
        .video-landscape {
            display: block;
        }

        .video-portrait {
            display: none;
        }

        /* Portrait orientation (mobile vertical) */
        @media (orientation: portrait) and (max-width: 768px) {
            .video-landscape {
                display: none;
            }
            
            .video-portrait {
                display: block;
            }
        }

        .hero-content {
            position: absolute;
            bottom: clamp(100px, 15vh, 150px);
            left: 50%;
            transform: translateX(-50%);
            z-index: 3;
            text-align: center;
            max-width: 400px;
            padding: 0 clamp(20px, 5vw, 40px);
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
        }

        .hero-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: clamp(12px, 3vw, 16px) clamp(24px, 5vw, 32px);
            font-size: clamp(14px, 2.5vw, 16px);
            font-weight: 600;
            text-decoration: none;
            border-radius: clamp(8px, 2vw, 12px);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            backdrop-filter: blur(20px);
            border: 1px solid transparent;
            background: #f9b104;
            color: #1a1a1a;
            box-shadow: 0 4px 20px rgba(249, 177, 4, 0.3);
        }

        .hero-button:hover {
            background: #e6a000;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(249, 177, 4, 0.4);
        }

        .scroll-indicator {
            position: absolute;
            bottom: clamp(20px, 4vh, 30px);
            left: 50%;
            transform: translateX(-50%);
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.7;
            animation: bounce 2s infinite;
        }

        .scroll-arrow {
            width: clamp(20px, 4vw, 24px);
            height: clamp(20px, 4vw, 24px);
            border: 2px solid white;
            border-top: none;
            border-left: none;
            transform: rotate(45deg);
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            40% {
                transform: translateX(-50%) translateY(-10px);
            }
            60% {
                transform: translateX(-50%) translateY(-5px);
            }
        }

        /* Video controls (optional - hidden by default) */
/* Lepsze style dla video controls */
.video-controls {
    position: absolute;
    bottom: clamp(20px, 3vh, 30px);
    right: clamp(20px, 3vw, 30px);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.control-button {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.control-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.control-button svg {
    width: clamp(16px, 3vw, 20px);
    height: clamp(16px, 3vw, 20px);
    fill: currentColor;
}

/* Style specjalne dla przycisku mute */
#muteBtn {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Stan wyciszenia */
#muteBtn.muted {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.3);
}

#muteBtn.muted:hover {
    background: rgba(220, 53, 69, 1);
}

/* Stan z dźwiękiem */
#muteBtn.unmuted {
    background: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 0.3);
}

#muteBtn.unmuted:hover {
    background: rgba(40, 167, 69, 1);
}

        /* Mobile optimizations */
        @media (max-width: 768px) {
            .hero-content {
                padding: 0 20px;
                max-width: 280px;
                bottom: clamp(80px, 12vh, 120px);
            }
            
            .hero-button {
                width: 100%;
                max-width: 240px;
                min-width: 240px;
                justify-content: center;
            }
            
            .video-controls {
                bottom: 15px;
                right: 15px;
            }
            
            .scroll-indicator {
                bottom: 15px;
            }
        }

        /* Prevent video flicker on load */
        .hero-video {
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .hero-video.loaded {
            opacity: 1;
        }


.audio-button-container {
    position: relative;
    display: inline-block;
}

.audio-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(10px);
}

.audio-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.audio-tooltip.show {
    opacity: 1;
    visibility: visible;
    animation: tooltipSlideIn 0.4s ease-out, tooltipPulse 3s ease-in-out;
}

@keyframes tooltipSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tooltipPulse {
    0%, 100% { opacity: 1; }
    15%, 35%, 55% { opacity: 0.8; }
    25%, 45%, 65% { opacity: 1; }
}

/* Responsywność */
@media (max-width: 768px) {
    .audio-tooltip {
        font-size: 12px;
        padding: 6px 12px;
        bottom: calc(100% + 12px);
    }
    
    .audio-tooltip::after {
        border-width: 5px;
    }
}

@media (max-width: 480px) {
    .audio-tooltip {
        position: fixed;
        bottom: auto;
        top: 80px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 200px;
        text-align: center;
        font-size: 11px;
    }
    
    .audio-tooltip::after {
        display: none;
    }
}

/* Dla urządzeń dotykowych */
@media (hover: none) and (pointer: coarse) {
    .audio-tooltip {
        font-size: 12px;
        padding: 8px 12px;
    }
}
</style>

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: none; /* Ukryj domyślnie */
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    z-index: 0;
}


/* kolejna */

.about-section {
            background: #ffffff;
            padding: clamp(80px, 15vh, 120px) 0;
            font-family: 'Montserrat', sans-serif;
            position: relative;
        }

        .about-image-container {
            width: 100%;
            max-width: 750px;
            margin: 0 auto clamp(40px, 8vh, 80px) auto;
            padding: 0 clamp(20px, 5vw, 40px);
        }

        .about-image-container:last-child {
            margin: clamp(40px, 8vh, 80px) auto 0 auto;
        }

        .about-image {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .about-image:hover {
            transform: translateY(-2px);
        }

        .about-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 clamp(20px, 5vw, 40px);
            text-align: center;
        }

        .about-title {
            font-size: clamp(36px, 6vw, 60px);
            font-weight: 700;
            color: #1a1a1a;
            line-height: 1.2;
            margin-bottom: clamp(30px, 5vh, 50px);
            letter-spacing: -0.02em;
        }

        .about-description {
            font-size: clamp(18px, 3.5vw, 24px);
            line-height: 1.6;
            color: #4a4a4a;
            max-width: 900px;
            margin: 0 auto;
            font-weight: 400;
        }

        .highlight {
            color: #1a1a1a;
            font-weight: 600;
        }

        .strong-highlight {
            color: #1a1a1a;
            font-weight: 700;
        }

        /* Dodatkowe elementy wizualne */
        .about-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, #f9b104 0%, #e6a000 100%);
            border-radius: 2px;
        }

        .about-container {
            position: relative;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .about-section {
                padding: clamp(60px, 12vh, 80px) 0;
            }
            
            .about-title {
                margin-bottom: clamp(25px, 4vh, 35px);
            }

            .about-image-container {
                margin-bottom: clamp(30px, 6vh, 50px);
            }

            .about-image-container:last-child {
                margin-top: clamp(30px, 6vh, 50px);
            }

            .about-image {
                border-radius: 12px;
            }
        }

        /* Małe ekrany */
        @media (max-width: 480px) {
            .about-image-container {
                margin-bottom: clamp(25px, 5vh, 40px);
            }

            .about-image-container:last-child {
                margin-top: clamp(25px, 5vh, 40px);
            }

            .about-image {
                border-radius: 8px;
            }
        }

        /* Efekt fade-in dla animacji */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

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

        /* kolejne */

        .features-section {
            background: #ffffff;
            padding: clamp(120px, 20vh, 180px) 0;
            font-family: 'Montserrat', sans-serif;
            overflow: hidden;
            position: relative;
            min-height: 100vh;
            background-image: url('assets/images/features_bg.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }

        .features-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.0);
            z-index: 1;
        }

        .features-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 clamp(20px, 5vw, 40px);
            position: relative;
            z-index: 2;
            overflow: visible;
        }

        .features-header {
            text-align: center;
            margin-bottom: clamp(60px, 10vh, 100px);
        }

        .features-title {
            font-size: clamp(36px, 6vw, 60px);
            font-weight: 700;
            color: #1a1a1a;
            line-height: 1.2;
            margin-bottom: clamp(20px, 3vh, 30px);
            letter-spacing: -0.02em;
        }

        .features-subtitle {
            font-size: clamp(16px, 3vw, 20px);
            color: #666;
            font-weight: 400;
            line-height: 1.6;
            max-width: 600px;
            margin: 0 auto;
        }

        .features-slider {
            position: relative;
            overflow: visible;
            margin: 0 -20px;
            padding: 20px 0 40px;
        }

        .features-track {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            gap: clamp(20px, 4vw, 40px);
            padding: 30px 20px 40px;
        }

        .feature-card {
            flex: 0 0 clamp(280px, 45vw, 400px);
            background: #ffffff;
            border-radius: clamp(16px, 3vw, 24px);
            padding: clamp(30px, 5vw, 40px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            border: 1px solid #f0f0f0;
            transition: all 0.3s ease;
            position: relative;
            overflow: visible;
            margin-bottom: 20px;
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
            border-color: #f9b104;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #f9b104, #e6a000);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .feature-icon {
            width: clamp(80px, 15vw, 120px);
            height: clamp(80px, 15vw, 120px);
            background: white;
            border-radius: clamp(12px, 2vw, 16px);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: clamp(20px, 4vw, 30px);
            position: relative;
            overflow: hidden;
            border: 1px solid #f0f0f0;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .feature-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .feature-card:hover .feature-icon img {
            transform: scale(1.05);
        }

        .feature-icon::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(249, 177, 4, 0.2), rgba(230, 160, 0, 0.2));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .feature-card:hover .feature-icon::after {
            opacity: 1;
        }

        .feature-title {
            font-size: clamp(20px, 4vw, 24px);
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: clamp(12px, 2vw, 16px);
            line-height: 1.3;
        }

        .feature-description {
            font-size: clamp(14px, 2.5vw, 16px);
            color: #666;
            line-height: 1.6;
            font-weight: 400;
        }

        .feature-accent {
            color: #f9b104;
            font-weight: 600;
        }

        .features-navigation {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: clamp(15px, 3vw, 20px);
            margin-top: clamp(40px, 6vh, 60px);
        }

        .nav-button {
            width: clamp(45px, 8vw, 55px);
            height: clamp(45px, 8vw, 55px);
            border: 2px solid #e0e0e0;
            border-radius: 50%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .nav-button:hover {
            border-color: #f9b104;
            background: #f9b104;
            transform: scale(1.1);
        }

        .nav-button:hover svg {
            color: white;
        }

        .nav-button svg {
            width: clamp(20px, 4vw, 24px);
            height: clamp(20px, 4vw, 24px);
            color: #666;
            transition: color 0.3s ease;
        }

        .nav-button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none;
        }

        .nav-button:disabled:hover {
            border-color: #e0e0e0;
            background: white;
            transform: none;
        }

        .nav-button:disabled svg {
            color: #666;
        }

        .features-dots {
            display: flex;
            gap: clamp(8px, 1.5vw, 12px);
            justify-content: center;
        }

        .dot {
            width: clamp(8px, 1.5vw, 10px);
            height: clamp(8px, 1.5vw, 10px);
            border-radius: 50%;
            background: #e0e0e0;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: #f9b104;
            transform: scale(1.3);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .features-section {
                padding: clamp(100px, 18vh, 150px) 0;
                background-attachment: scroll;
            }
            
            .feature-card {
                flex: 0 0 85vw;
            }
            
            .features-track {
                gap: 20px;
            }
            
            .features-navigation {
                margin-top: 40px;
            }
            
            .feature-icon {
                width: clamp(100px, 20vw, 150px);
                height: clamp(100px, 20vw, 150px);
            }
        }

        @media (max-width: 480px) {
            .features-section {
                padding: clamp(80px, 15vh, 120px) 0;
                min-height: 100vh;
                background-attachment: scroll;
            }
            
            .feature-card {
                flex: 0 0 90vw;
            }
            
            .feature-icon {
                width: clamp(80px, 18vw, 120px);
                height: clamp(80px, 18vw, 120px);
            }
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            .feature-card:hover {
                transform: none;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
                border-color: #f0f0f0;
            }
            
            .feature-card:hover::before {
                transform: scaleX(0);
            }
            
            .feature-card:hover .feature-icon::after {
                transform: scale(1.5);
                opacity: 0.1;
            }
            
            .nav-button:hover {
                transform: none;
            }
        }

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

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

        /* grid */

        /* Grid Section - kompletny CSS z poprawkami */
.grid-section {
    background: #ffffff;
    padding: clamp(80px, 15vh, 120px) 0;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.grid-header {
    text-align: center;
    margin-bottom: clamp(60px, 10vh, 80px);
}

.grid-title {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: clamp(20px, 3vh, 30px);
    letter-spacing: -0.02em;
}

.grid-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: #666;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(20px, 4vw, 40px);
    min-height: 600px;
}

.grid-box {
    background: #ffffff;
    border-radius: clamp(16px, 3vw, 24px);
    padding: clamp(30px, 5vw, 40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: #f9b104;
}

.grid-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f9b104, #e6a000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.grid-box:hover::before {
    transform: scaleX(1);
}

.grid-box-large {
    grid-row: 1 / 3;
    grid-column: 1;
}

.grid-box-small-1 {
    grid-row: 1;
    grid-column: 2;
}

.grid-box-small-2 {
    grid-row: 2;
    grid-column: 2;
}

/* Style dla pierwszego kafelka z obrazkiem w tle - bez hover i niższy gradient */
.grid-box-large.grid-box-background {
    padding: 0;
    background-image: url('assets/images/bg_card1.jpg'); /* Zamień na swoją ścieżkę */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Niższy gradient - tylko 35% wysokości */
.grid-box-large.grid-box-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.85) 60%, 
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.grid-box-background .box-content {
    position: relative;
    z-index: 2;
    padding: clamp(30px, 5vw, 40px);
    margin-top: auto;
}

/* Ukryj standardową ikonę w boxie z tłem */
.grid-box-background .box-icon {
    display: none;
}

.grid-box-background .box-title {
    color: #1a1a1a;
    margin-bottom: clamp(12px, 2vw, 16px);
}

.grid-box-background .box-description {
    color: #4a4a4a;
}

/* Usuń hover dla boxa z tłem */
.grid-box-background:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #f0f0f0;
}

.grid-box-background:hover::before {
    transform: scaleX(0);
}

/* Zaktualizowane style dla ikon - teraz duże zdjęcia produktowe */
.box-icon {
    width: 100%; /* Pełna szerokość boxa */
    height: clamp(120px, 15vw, 200px); /* Większa wysokość */
    background: #ffffff; /* Białe tło */
    border-radius: 0; /* Bez zaokrąglonych rogów */
    border: none; /* Bez ramek */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(20px, 4vw, 30px);
    position: relative;
    overflow: hidden;
}

.box-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zachowaj proporcje, pokaż cały obraz */
    object-position: center;
    transition: transform 0.3s ease;
}

.grid-box:hover .box-icon img {
    transform: scale(1.05);
}

.box-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: clamp(12px, 2vw, 16px);
    line-height: 1.3;
}

.box-description {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #666;
    line-height: 1.6;
    font-weight: 400;
    flex-grow: 1;
}

.box-accent {
    color: #f9b104;
    font-weight: 600;
}

/* Style dla większych ikon w dużym boxie */
.grid-box-large .box-icon {
    height: clamp(150px, 20vw, 250px);
}

.grid-box-large .box-title {
    font-size: clamp(28px, 5vw, 36px);
}

.grid-box-large .box-description {
    font-size: clamp(16px, 3vw, 18px);
    max-width: 80%;
}

/* Style dla kafelka ze zdjęciem (bez tekstu) */
.grid-box-image {
    padding: 0;
    overflow: hidden;
}

.box-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.grid-box-image:hover .box-full-image {
    transform: scale(1.05);
}

/* Zachowaj efekt hover dla ramki w boxie ze zdjęciem */
.grid-box-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: #f9b104;
}

.grid-box-image:hover::before {
    transform: scaleX(1);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
    }

    .grid-box-large {
        grid-row: 1;
        grid-column: 1;
    }

    .grid-box-small-1 {
        grid-row: 2;
        grid-column: 1;
    }

    .grid-box-small-2 {
        grid-row: 3;
        grid-column: 1;
    }

    .grid-box-large .box-description {
        max-width: 100%;
    }
    
    .box-icon {
        height: clamp(100px, 20vw, 150px);
    }
    
    .grid-box-large .box-icon {
        height: clamp(120px, 25vw, 180px);
    }
    
    /* Na mobile gradient może być nieco wyższy */
    .grid-box-large.grid-box-background::after {
        height: 40%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .grid-box:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-color: #f0f0f0;
    }

    .grid-box:hover::before {
        transform: scaleX(0);
    }
    
    .grid-box:hover .box-icon img {
        transform: none;
    }
    
    .grid-box-image:hover .box-full-image {
        transform: none;
    }
}

/* uzupelnienie */

/* POPRAWKA WYSOKOŚCI OBRAZKA W GRID NA MOBILE */

/* Zwiększ wysokość grid-box na mobile */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
        min-height: auto; /* Usuń stałą wysokość */
    }

    /* Zwiększ wysokość kafelka z obrazkiem tła na mobile */
    .grid-box-large.grid-box-background {
        min-height: 550px; /* Zwiększona wysokość na mobile */
        height: auto; /* Pozwól na automatyczne dopasowanie */
    }
    
    /* Zwiększ gradient na mobile dla lepszej czytelności */
    .grid-box-large.grid-box-background::after {
        height: 50%; /* Zwiększ z 40% do 50% na mobile */
        background: linear-gradient(to top, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(255, 255, 255, 0.80) 70%, 
            rgba(255, 255, 255, 0) 100%);
    }
    
    /* Popraw pozycjonowanie contentu */
    .grid-box-background .box-content {
        position: relative;
        z-index: 2;
        padding: clamp(40px, 8vw, 50px); /* Zwiększ padding */
        margin-top: auto;
        min-height: 250px; /* Zapewnij minimum miejsca na tekst */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    /* Dostosuj czcionki na mobile */
    .grid-box-background .box-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: clamp(16px, 4vw, 20px);
        line-height: 1.2;
    }
    
    .grid-box-background .box-description {
        font-size: clamp(16px, 4vw, 18px);
        line-height: 1.5;
    }
}

/* Dla bardzo małych ekranów */
@media (max-width: 480px) {
    .grid-box-large.grid-box-background {
        min-height: 550px; /* Nieco mniejsza wysokość na bardzo małych ekranach */
    }
    
    .grid-box-background .box-content {
        padding: clamp(30px, 6vw, 40px);
        min-height: 180px;
    }
    
    /* Jeszcze większy gradient na małych ekranach */
    .grid-box-large.grid-box-background::after {
        height: 55%;
    }
}

/* Landscape mobile - specjalna obsługa */
@media (max-width: 768px) and (orientation: landscape) {
    .grid-box-large.grid-box-background {
        min-height: 400px; /* Mniejsza wysokość w landscape */
    }
    
    .grid-box-large.grid-box-background::after {
        height: 45%;
    }
}

/* Dodatkowe poprawki dla lepszego układu tekstu */
@media (max-width: 768px) {
    .grid-box-background .box-title {
        color: #1a1a1a;
        margin-bottom: clamp(12px, 3vw, 16px);
        font-weight: 700; /* Pogrub tytuł dla lepszej czytelności */
    }

    .grid-box-background .box-description {
        color: #2a2a2a; /* Ciemniejszy kolor dla lepszej czytelności */
        font-weight: 500;
    }

    .grid-box-background .box-accent {
        color: #1a1a1a;
        font-weight: 700;
    }
}

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

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

/* Hero Background Section - tylko zdjęcie */
        .hero-background-section {
            position: relative;
            width: 100%;
            height: 100vh;
            min-height: 600px;
            overflow: hidden;
            background-image: url('assets/images/bg_hero_big.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
        }

        .hero-background-section2 {
            position: relative;
            width: 100%;
            height: 100vh;
            min-height: 600px;
            overflow: hidden;
            background-image: url('assets/images/bg_hero_big2.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-background-section {
                height: 80vh;
                min-height: 500px;
                background-attachment: scroll; /* Na mobile scroll zamiast fixed */
            }
        }

        @media (max-width: 480px) {
            .hero-background-section {
                height: 70vh;
                min-height: 400px;
            }
        }

        /* Landscape mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .hero-background-section {
                height: 100vh;
                min-height: 400px;
            }
        }

                /* Responsive */
        @media (max-width: 768px) {
            .hero-background-section2 {
                height: 80vh;
                min-height: 500px;
                background-attachment: scroll; /* Na mobile scroll zamiast fixed */
            }
        }

        @media (max-width: 480px) {
            .hero-background-section2 {
                height: 70vh;
                min-height: 400px;
            }
        }

        /* Landscape mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .hero-background-section2 {
                height: 100vh;
                min-height: 400px;
            }
        }

        /* kontakt */

         /* Contact Section */
        .contact-section {
            background: #ffffff;
            padding: clamp(80px, 15vh, 120px) 0;
            font-family: 'Montserrat', sans-serif;
            position: relative;
        }

        .contact-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 clamp(20px, 5vw, 40px);
        }

        .contact-header {
            text-align: center;
            margin-bottom: clamp(50px, 8vh, 80px);
        }

        .contact-title {
            font-size: clamp(36px, 6vw, 60px);
            font-weight: 700;
            color: #1a1a1a;
            line-height: 1.2;
            margin-bottom: clamp(20px, 3vh, 30px);
            letter-spacing: -0.02em;
        }

        .contact-subtitle {
            font-size: clamp(16px, 3vw, 20px);
            color: #666;
            font-weight: 400;
            line-height: 1.6;
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-accent {
            color: #f9b104;
            font-weight: 600;
        }


        /* Footer Section */
        .footer-section {
            position: relative;
            width: 100%;
            height: clamp(200px, 30vh, 400px);
            overflow: hidden;
            background-image: url('assets/images/footer.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .form-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .contact-form {
                padding: clamp(30px, 5vw, 40px);
            }
            
            .footer-section {
                height: clamp(150px, 25vh, 250px);
            }
        }

        @media (max-width: 480px) {
            .footer-section {
                height: clamp(120px, 20vh, 200px);
            }
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            .form-button:hover {
                transform: none;
                background: #f9b104;
                box-shadow: 0 4px 20px rgba(249, 177, 4, 0.3);
            }
        }

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

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


/* pattern */

.decorative-pattern {
    position: fixed;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

.decorative-pattern img {
    width: clamp(200px, 25vw, 400px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(249, 177, 4, 0.2));
}

/* Pozycjonowanie z prawej strony */
.decorative-pattern-right {
    right: -100px;
    top: 50%;
    transform: translateY(-50%) scale(0.8) rotate(15deg);
}

.decorative-pattern-right.visible {
    right: -50px;
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

/* Pozycjonowanie z lewej strony */
.decorative-pattern-left {
    left: -100px;
    top: 50%;
    transform: translateY(-50%) scale(0.8) rotate(-15deg) scaleX(-1);
}

.decorative-pattern-left.visible {
    left: -50px;
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg) scaleX(-1);
}

/* Animacje dla różnych wzorów */
.decorative-pattern[data-pattern="1"] {
    animation-delay: 0.2s;
}

.decorative-pattern[data-pattern="2"] {
    animation-delay: 0.4s;
}

.decorative-pattern[data-pattern="3"] {
    animation-delay: 0.6s;
}

/* Efekt pulsowania dla aktywnych wzorów */
.decorative-pattern.visible img {
    animation: gentlePulse 8s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { 
        filter: drop-shadow(0 4px 20px rgba(249, 177, 4, 0.2));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 8px 30px rgba(249, 177, 4, 0.3));
        transform: scale(1.02);
    }
}

/* Responsywność */
@media (max-width: 1024px) {
    .decorative-pattern img {
        width: clamp(150px, 20vw, 300px);
    }
    
    .decorative-pattern-right.visible {
        right: -40px;
    }
    
    .decorative-pattern-left.visible {
        left: -40px;
    }
}

@media (max-width: 768px) {
    .decorative-pattern img {
        width: clamp(120px, 18vw, 200px);
    }
    
    .decorative-pattern-right.visible {
        right: -30px;
        opacity: 0.6;
    }
    
    .decorative-pattern-left.visible {
        left: -30px;
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .decorative-pattern {
        display: none; /* Ukryj na bardzo małych ekranach */
    }
}

/* Dla urządzeń dotykowych - mniej animacji */
@media (hover: none) and (pointer: coarse) {
    .decorative-pattern.visible img {
        animation: none;
    }
}

/* CF7 */

/* Contact Form 7 - Kompletne style */
.contact-form {
    background: #ffffff;
    border-radius: clamp(16px, 3vw, 24px);
    padding: clamp(40px, 6vw, 60px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Wrapper dla Contact Form 7 */
.wpcf7 {
    margin: 0;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f9b104, #e6a000);
}

/* Grid Layout */
.wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 32px);
    margin: 0;
}

/* Wrapper dla pól formularza */
.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

/* Full width elementy */
.wpcf7-form-control-wrap.full-width,
.custom-acceptance,
.wpcf7-submit {
    grid-column: 1 / -1;
}

/* Labels */
.wpcf7-form label {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

/* Inputy, selecty, textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    padding: clamp(14px, 2.5vw, 18px);
    border: 2px solid #e9ecef;
    border-radius: clamp(8px, 1.5vw, 12px);
    font-size: clamp(14px, 2.5vw, 16px);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #f9b104;
    box-shadow: 0 0 0 3px rgba(249, 177, 4, 0.1);
}

/* Textarea */
.wpcf7-form textarea {
    min-height: clamp(120px, 20vw, 150px);
    resize: vertical;
    font-family: 'Montserrat', sans-serif;
}

/* Select */
.wpcf7-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: clamp(16px, 3vw, 20px);
    background: #f9b104;
    color: #1a1a1a;
    border: none;
    border-radius: clamp(8px, 2vw, 12px);
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249, 177, 4, 0.3);
    margin-top: clamp(16px, 3vw, 24px);
}

.wpcf7-form input[type="submit"]:hover {
    background: #e6a000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 177, 4, 0.4);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Checkboxy - Custom Acceptance - NOWE PODEJŚCIE */
.custom-acceptance {
    border: 1px solid #e9ecef;
    border-radius: clamp(8px, 1.5vw, 12px);
    background: #fafafa;
    padding: clamp(16px, 3vw, 20px);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(12px, 2vw, 16px);
    align-items: flex-start;
}

.custom-acceptance .wpcf7-list-item label {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

/* Opcjonalnie - hover na całym obszarze */
.custom-acceptance:hover {
    background: #f5f5f5;
    border-color: #f9b104;
}

.custom-acceptance:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

.custom-acceptance:last-of-type {
    margin-bottom: clamp(24px, 4vw, 32px);
}

/* Ukryj domyślny wrapper CF7 dla checkboxów */
.custom-acceptance .wpcf7-form-control-wrap {
    display: contents;
}

.custom-acceptance .wpcf7-list-item {
    display: contents;
}

.custom-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: clamp(20px, 3vw, 24px);
    height: clamp(20px, 3vw, 24px);
    border: 2px solid #d4d4d4;
    border-radius: clamp(4px, 1vw, 6px);
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 2px 0 0 0;
    grid-column: 1;
    margin-right: 5px;
}

.custom-acceptance input[type="checkbox"]:hover {
    border-color: #f9b104;
    box-shadow: 0 0 0 3px rgba(249, 177, 4, 0.1);
}

.custom-acceptance input[type="checkbox"]:checked {
    background: #f9b104;
    border-color: #f9b104;
    animation: checkboxPulse 0.3s ease;
}

.custom-acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: solid #1a1a1a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmarkSlide 0.3s ease 0.1s both;
}

.custom-acceptance .form-checkbox-label {
    font-size: clamp(14px, 2.5vw, 15px);
    color: #4a4a4a;
    line-height: 1.6;
    grid-column: 2;
    cursor: pointer;
}

.custom-acceptance .form-checkbox-label .required-field {
    color: #f9b104;
    font-weight: 600;
}

.custom-acceptance .form-checkbox-label a {
    color: #f9b104;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-acceptance .form-checkbox-label a:hover {
    color: #e6a000;
    text-decoration: underline;
}


/* Error Messages */
.wpcf7-not-valid-tip {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: clamp(6px, 1vw, 8px);
    padding: clamp(10px, 1.5vw, 12px);
    color: #c53030;
    font-size: clamp(12px, 2vw, 14px);
    margin-top: clamp(8px, 1vw, 10px);
    position: relative;
    animation: errorSlideIn 0.3s ease;
}

.wpcf7-not-valid-tip::before {
    content: '⚠';
    margin-right: 8px;
    font-weight: bold;
}

@keyframes errorSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #fed7d7 !important;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1) !important;
    animation: fieldErrorShake 0.5s ease;
}

@keyframes fieldErrorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success Message */
.wpcf7-mail-sent-ok {
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    border: 2px solid #9ae6b4;
    border-radius: clamp(12px, 2vw, 16px);
    padding: clamp(32px, 5vw, 40px);
    text-align: center;
    color: #22543d;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    position: relative;
    animation: successFadeIn 0.8s ease;
    box-shadow: 0 10px 40px rgba(34, 84, 61, 0.1);
    margin: clamp(20px, 4vw, 30px) 0;
    grid-column: 1 / -1;
}

.wpcf7-mail-sent-ok::before {
    content: '✓';
    display: block;
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    background: #48bb78;
    color: white;
    border-radius: 50%;
    font-size: clamp(32px, 6vw, 40px);
    line-height: clamp(60px, 10vw, 80px);
    margin: 0 auto clamp(20px, 4vw, 24px) auto;
    animation: successIconBounce 0.8s ease 0.3s both;
}

@keyframes successFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes successIconBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Inne komunikaty */
.wpcf7-response-output {
    margin: clamp(20px, 4vw, 30px) 0;
    padding: clamp(20px, 6vw, 24px);
    border-radius: clamp(8px, 1.5vw, 12px);
    font-weight: 500;
    text-align: center;
    animation: messageSlideUp 0.5s ease;
    grid-column: 1 / -1;
    background-color:#EDEDED;
    color:#1a1a1a;
}

@keyframes messageSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpcf7-mail-sent-ng {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.wpcf7-validation-errors {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.wpcf7-spam-blocked {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

/* Loading State */
.wpcf7-form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.wpcf7-form.submitting input[type="submit"] {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Ukryj formularz po wysłaniu */
.wpcf7-mail-sent-ok + .wpcf7-form {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wpcf7-form {
        grid-template-columns: 1fr;
        gap: clamp(20px, 4vw, 24px);
    }
    
    .wpcf7-form-control-wrap:has(textarea),
    .custom-acceptance,
    .wpcf7-submit {
        grid-column: 1;
    }
    
    .custom-acceptance {
        margin-bottom: clamp(16px, 3vw, 20px);
    }
    
    .wpcf7-list-item {
        gap: clamp(10px, 2vw, 12px);
    }
    
    .wpcf7-list-item input[type="checkbox"] {
        margin-top: 4px;
    }
}

/* konkurs */

/* Styl numerowanej listy dla sekcji konkursu */
.konkurs-grid-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 35px;
    color: #666 !important;
    padding: clamp(30px, 5vw, 40px);
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

.konkurs-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f9b104, #e6a000);
}

/* Reset domyślnych stylów list */
.konkurs-grid-item ol,
.konkurs-grid-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Numerowana lista zasad */
.konkurs-rules-list {
    counter-reset: rule-counter;
    margin: clamp(24px, 4vw, 32px) 0;
}

.konkurs-rules-list li {
    counter-increment: rule-counter;
    position: relative;
    padding: clamp(16px, 3vw, 20px) 0 clamp(16px, 3vw, 20px) clamp(60px, 10vw, 80px);
    margin-bottom: clamp(12px, 2vw, 16px);
    border-left: 3px solid #f9f9f9;
    background: linear-gradient(to right, rgba(249, 177, 4, 0.02) 0%, transparent 100%);
    border-radius: 0 clamp(8px, 1.5vw, 12px) clamp(8px, 1.5vw, 12px) 0;
    transition: all 0.3s ease;
}

.konkurs-rules-list li:hover {
    border-left-color: #f9b104;
    background: linear-gradient(to right, rgba(249, 177, 4, 0.05) 0%, transparent 100%);
    transform: translateX(5px);
}

/* Numer w kółku */
.konkurs-rules-list li::before {
    content: counter(rule-counter);
    position: absolute;
    left: clamp(-15px, -2.5vw, -20px);
    top: clamp(16px, 3vw, 20px);
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    background: linear-gradient(135deg, #f9b104 0%, #e6a000 100%);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(14px, 2.5vw, 16px);
    box-shadow: 0 3px 15px rgba(249, 177, 4, 0.3);
    transition: all 0.3s ease;
}

.konkurs-rules-list li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(249, 177, 4, 0.4);
}

/* Tekst w liście */
.konkurs-rules-list li p {
    margin: 0;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.6;
    color: #4a4a4a;
    font-weight: 400;
}

/* Akcenty w tekście */
.konkurs-rules-list li strong,
.konkurs-rules-list li .rule-accent {
    color: #1a1a1a;
    font-weight: 600;
}

.konkurs-rules-list li .rule-highlight {
    color: #f9b104;
    font-weight: 600;
}

/* Style dla nagłówków w sekcji konkursu */
.konkurs-grid-item h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: clamp(24px, 4vw, 32px);
    text-align: center;
    position: relative;
}

.konkurs-grid-item h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(80px, 15vw, 120px);
    height: 3px;
    background: linear-gradient(90deg, #f9b104, #e6a000);
    border-radius: 2px;
}

.konkurs-grid-item h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 600;
    color: #1a1a1a;
    margin: clamp(32px, 6vw, 48px) 0 clamp(16px, 3vw, 24px) 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(249, 177, 4, 0.1) 0%, transparent 100%);
    padding: clamp(16px, 3vw, 20px);
    border-radius: clamp(8px, 1.5vw, 12px);
    border-left: 4px solid #f9b104;
}

/* Responsywność */
@media (max-width: 768px) {
    .konkurs-rules-list li {
        padding-left: clamp(50px, 12vw, 60px);
    }
    
    .konkurs-rules-list li::before {
        left: clamp(-12px, -3vw, -15px);
        width: clamp(24px, 6vw, 30px);
        height: clamp(24px, 6vw, 30px);
        font-size: clamp(12px, 3vw, 14px);
    }
}

@media (max-width: 480px) {
    .konkurs-grid-item {
        padding: clamp(20px, 5vw, 30px);
    }
    
    .konkurs-rules-list li {
        padding-left: clamp(45px, 10vw, 50px);
        border-radius: 0 8px 8px 0;
    }
    
    .konkurs-rules-list li::before {
        left: -10px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Sekcja nagród */
.konkurs-awards {
    margin: clamp(40px, 6vw, 60px) 0 clamp(32px, 5vw, 48px) 0;
}

.konkurs-awards h3 {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: clamp(24px, 4vw, 32px);
    text-align: center;
    position: relative;
}

.konkurs-awards h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 12vw, 100px);
    height: 3px;
    background: linear-gradient(90deg, #f9b104, #e6a000);
    border-radius: 2px;
}

/* Lista nagród */
.konkurs-awards-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.konkurs-awards-list li {
    position: relative;
    padding: clamp(16px, 3vw, 20px) 0 clamp(16px, 3vw, 20px) clamp(60px, 10vw, 80px);
    margin-bottom: clamp(16px, 3vw, 20px);
    background: linear-gradient(135deg, rgba(249, 177, 4, 0.05) 0%, rgba(230, 160, 0, 0.02) 100%);
    border-radius: clamp(8px, 1.5vw, 12px);
    border: 1px solid rgba(249, 177, 4, 0.1);
    transition: all 0.3s ease;
}

.konkurs-awards-list li:hover {
    background: linear-gradient(135deg, rgba(249, 177, 4, 0.08) 0%, rgba(230, 160, 0, 0.04) 100%);
    border-color: rgba(249, 177, 4, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(249, 177, 4, 0.1);
}

/* Ikony miejsc */
.konkurs-awards-list li:nth-child(1)::before {
    content: '🥇';
    font-size: clamp(20px, 4vw, 28px);
}

.konkurs-awards-list li:nth-child(2)::before {
    content: '🥈';
    font-size: clamp(20px, 4vw, 28px);
}

.konkurs-awards-list li:nth-child(3)::before {
    content: '🥉';
    font-size: clamp(20px, 4vw, 28px);
}

.konkurs-awards-list li::before {
    position: absolute;
    left: clamp(16px, 3vw, 24px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(32px, 5vw, 40px);
    height: clamp(32px, 5vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tekst nagród */
.konkurs-awards-list li .award-place {
    font-weight: 700;
    color: #1a1a1a;
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
    display: block;
}

.konkurs-awards-list li .award-description {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

/* Sekcje informacyjne */
.konkurs-info-section {
    margin: clamp(32px, 5vw, 48px) 0;
    padding: clamp(24px, 4vw, 32px);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.02) 0%, transparent 100%);
    border-radius: clamp(12px, 2vw, 16px);
    border-left: 4px solid #f9b104;
}

.konkurs-info-section h3 {
    font-size: clamp(20px, 3.5vw, 24px);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: clamp(16px, 3vw, 20px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
}

.konkurs-info-section h3::before {
    content: '';
    width: clamp(6px, 1vw, 8px);
    height: clamp(6px, 1vw, 8px);
    background: #f9b104;
    border-radius: 50%;
    flex-shrink: 0;
}

.konkurs-info-section p {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

.konkurs-info-section .info-highlight {
    color: #1a1a1a;
    font-weight: 600;
}

.konkurs-info-section .info-accent {
    color: #f9b104;
    font-weight: 600;
}

/* Specjalny styl dla daty */
.konkurs-date {
    background: linear-gradient(135deg, #f9b104 0%, #e6a000 100%);
    color: #1a1a1a;
    border-left: none;
}

.konkurs-date h3 {
    color: #1a1a1a;
    font-weight: 700;
}

.konkurs-date h3::before {
    background: #1a1a1a;
}

.konkurs-date p {
    color: #1a1a1a;
    font-weight: 500;
}

/* przycisk konkurs */

/* Przycisk "Weź udział w konkursie" - z wysoką specyficznością */
.konkurs-grid-item .konkurs-button,
.konkurs .konkurs-button,
a.konkurs-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: clamp(8px, 1.5vw, 12px) !important;
    padding: clamp(14px, 3vw, 18px) clamp(28px, 5vw, 36px) !important;
    font-size: clamp(15px, 2.8vw, 18px) !important;
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
    text-decoration: none !important;
    border-radius: clamp(10px, 2vw, 14px) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* Styl - białe tło, czarny outline */
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.1) !important;
    
    /* Margin top */
    margin-top: clamp(32px, 5vw, 48px) !important;
    
    /* MIGAJĄCA ANIMACJA - przyciąga uwagę */
    animation: konkursButtonPulse 2s ease-in-out infinite, konkursButtonGlow 3s ease-in-out infinite !important;
    
    /* Dodatkowy efekt świecenia */
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.1), 0 0 0 0 rgba(249, 177, 4, 0.7) !important;
}

/* ANIMACJE PRZYCIĄGAJĄCE UWAGĘ */
@keyframes konkursButtonPulse {
    0%, 100% { 
        transform: scale(1);
        border-color: #1a1a1a;
    }
    25% { 
        transform: scale(1.05);
        border-color: #f9b104;
    }
    50% { 
        transform: scale(1);
        border-color: #1a1a1a;
    }
    75% { 
        transform: scale(1.03);
        border-color: #f9b104;
    }
}

@keyframes konkursButtonGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(26, 26, 26, 0.1), 0 0 0 0 rgba(249, 177, 4, 0);
    }
    50% { 
        box-shadow: 0 4px 15px rgba(26, 26, 26, 0.1), 0 0 0 8px rgba(249, 177, 4, 0.3);
    }
}

@keyframes konkursButtonShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Efekt hover z wyższą specyficznością */
.konkurs-grid-item .konkurs-button:hover,
.konkurs .konkurs-button:hover,
a.konkurs-button:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #f9b104 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.2), 0 0 20px rgba(249, 177, 4, 0.4) !important;
    animation: none !important; /* Zatrzymaj animację przy hover */
}

/* Efekt active/kliknięcia */
.konkurs-grid-item .konkurs-button:active,
.konkurs .konkurs-button:active,
a.konkurs-button:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.15) !important;
}

/* Ikona strzałki z wysoką specyficznością */
.konkurs-grid-item .konkurs-button svg,
.konkurs .konkurs-button svg,
a.konkurs-button svg {
    width: clamp(16px, 3vw, 20px) !important;
    height: clamp(16px, 3vw, 20px) !important;
    transition: transform 0.3s ease !important;
    fill: none !important;
    stroke: currentColor !important;
}

.konkurs-grid-item .konkurs-button:hover svg,
.konkurs .konkurs-button:hover svg,
a.konkurs-button:hover svg {
    transform: translateX(5px) !important;
}

/* Dodatkowy efekt błyszku */
.konkurs-grid-item .konkurs-button::before,
.konkurs .konkurs-button::before,
a.konkurs-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(249, 177, 4, 0.3), transparent) !important;
    animation: konkursButtonShine 3s ease-in-out infinite !important;
    animation-delay: 1s !important;
}

/* Wariant z kontenerem dla centrowania */
.konkurs-button-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: clamp(32px, 5vw, 48px) !important;
}

/* Responsywność z wysoką specyficznością */
@media (max-width: 768px) {
    .konkurs-grid-item .konkurs-button,
    .konkurs .konkurs-button,
    a.konkurs-button {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
        margin-top: clamp(28px, 4vw, 36px) !important;
    }
    
    .konkurs-button-container {
        margin-top: clamp(28px, 4vw, 36px) !important;
    }
}

@media (max-width: 480px) {
    .konkurs-grid-item .konkurs-button,
    .konkurs .konkurs-button,
    a.konkurs-button {
        max-width: 280px !important;
        margin-top: clamp(24px, 4vw, 32px) !important;
        padding: clamp(16px, 4vw, 20px) clamp(24px, 6vw, 32px) !important;
    }
    
    .konkurs-button-container {
        margin-top: clamp(24px, 4vw, 32px) !important;
    }
}

/* Dla urządzeń dotykowych - zachowaj animacje */
@media (hover: none) and (pointer: coarse) {
    .konkurs-grid-item .konkurs-button,
    .konkurs .konkurs-button,
    a.konkurs-button {
        /* Zachowaj animacje pulsowania nawet na touch */
        animation: konkursButtonPulse 2s ease-in-out infinite, konkursButtonGlow 3s ease-in-out infinite !important;
    }
    
    .konkurs-grid-item .konkurs-button:hover,
    .konkurs .konkurs-button:hover,
    a.konkurs-button:hover {
        transform: none !important;
        background: #ffffff !important;
        color: #1a1a1a !important;
        border-color: #1a1a1a !important;
        box-shadow: 0 4px 15px rgba(26, 26, 26, 0.1) !important;
    }
    
    .konkurs-grid-item .konkurs-button:hover svg,
    .konkurs .konkurs-button:hover svg,
    a.konkurs-button:hover svg {
        transform: none !important;
    }
    
    /* Efekt dotknięcia */
    .konkurs-grid-item .konkurs-button:active,
    .konkurs .konkurs-button:active,
    a.konkurs-button:active {
        background: #f5f5f5 !important;
        transform: scale(0.98) !important;
        animation: none !important;
    }
}

/* Animacja fade-in dla przycisku z opóźnieniem */
.konkurs-grid-item .konkurs-button,
.konkurs .konkurs-button,
a.konkurs-button {
    opacity: 1 !important;
    animation: konkursButtonPulse 2s ease-in-out infinite, konkursButtonGlow 3s ease-in-out infinite, buttonFadeIn 0.6s ease forwards !important;
    animation-delay: 0s, 0s, 1.2s !important; /* Fade-in z opóźnieniem */
}

@keyframes buttonFadeIn {
    to {
        opacity: 1 !important;
    }
}

/* Focus dla dostępności */
.konkurs-grid-item .konkurs-button:focus,
.konkurs .konkurs-button:focus,
a.konkurs-button:focus {
    outline: 3px solid #f9b104 !important;
    outline-offset: 3px !important;
    animation: none !important; /* Zatrzymaj animację przy focus */
}

/* Dodatkowa animacja przy scroll into view */
.konkurs-button.in-view {
    animation: konkursButtonPulse 2s ease-in-out infinite, konkursButtonGlow 3s ease-in-out infinite, konkursButtonBounce 0.8s ease-out !important;
}

@keyframes konkursButtonBounce {
    0% {
        transform: translateY(50px) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
    }
    80% {
        transform: translateY(5px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .konkurs-awards-list li {
        padding-left: clamp(50px, 12vw, 60px);
    }
    
    .konkurs-awards-list li::before {
        left: clamp(12px, 3vw, 16px);
        width: clamp(28px, 6vw, 32px);
        height: clamp(28px, 6vw, 32px);
        font-size: clamp(18px, 4vw, 24px);
    }
}

@media (max-width: 480px) {
    .konkurs-awards-list li {
        padding-left: clamp(45px, 10vw, 50px);
    }
    
    .konkurs-awards-list li::before {
        left: 10px;
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

/* Animacja fade-in dla elementów listy */
.konkurs-rules-list li {
    opacity: 0;
    transform: translateY(20px);
    animation: listItemFadeIn 0.6s ease forwards;
}

.konkurs-rules-list li:nth-child(1) { animation-delay: 0.1s; }
.konkurs-rules-list li:nth-child(2) { animation-delay: 0.2s; }
.konkurs-rules-list li:nth-child(3) { animation-delay: 0.3s; }
.konkurs-rules-list li:nth-child(4) { animation-delay: 0.4s; }

/* Animacje dla nowych sekcji */
.konkurs-awards-list li {
    opacity: 0;
    transform: translateY(20px);
    animation: listItemFadeIn 0.6s ease forwards;
}

.konkurs-awards-list li:nth-child(1) { animation-delay: 0.5s; }
.konkurs-awards-list li:nth-child(2) { animation-delay: 0.6s; }
.konkurs-awards-list li:nth-child(3) { animation-delay: 0.7s; }

.konkurs-info-section {
    opacity: 0;
    transform: translateY(20px);
    animation: listItemFadeIn 0.6s ease forwards;
}

.konkurs-info-section:nth-of-type(1) { animation-delay: 0.8s; }
.konkurs-info-section:nth-of-type(2) { animation-delay: 0.9s; }

@keyframes listItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* yt movie */

 .video-grid-item {
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 35px;
        }

        .video-grid-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
        }

        .video-placeholder {
            position: relative;
            width: 100%;
            height: 450px;
            background-image: url('https://img.youtube.com/vi/YOUTUBE_VIDEO_ID/maxresdefault.jpg');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .video-placeholder::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            transition: background 0.3s ease;
        }

        .video-grid-item:hover .video-placeholder::before {
            background: rgba(0, 0, 0, 0.2);
        }

        .play-button {
            position: relative;
            z-index: 2;
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .play-button:hover {
            background: rgba(255, 255, 255, 1);
            transform: scale(1.15);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        }

        .play-icon {
            width: 0;
            height: 0;
            border-left: 24px solid #ff6b35;
            border-top: 15px solid transparent;
            border-bottom: 15px solid transparent;
            margin-left: 6px;
        }

        .video-content {
            display: none;
        }

        .video-title {
            display: none;
        }

        .video-description {
            display: none;
        }

        .video-badge {
            display: none;
        }

        .youtube-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }

        .youtube-wrapper {
            position: relative;
            width: 100%;
            max-width: 900px;
            aspect-ratio: 16/9;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
        }

        .close-button {
            position: absolute;
            top: -40px;
            right: 0;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #333;
            transition: all 0.3s ease;
        }

        .close-button:hover {
            background: rgba(255, 255, 255, 1);
            transform: scale(1.1);
        }

        .youtube-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .video-placeholder {
                height: 150px;
            }
            
            .play-button {
                width: 70px;
                height: 70px;
            }
            
            .play-icon {
                border-left-width: 20px;
                border-top-width: 12px;
                border-bottom-width: 12px;
                margin-left: 5px;
            }
        }

        /* Preloader container */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        /* Ukryj preloader */
        .preloader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        /* Logo JCB */
        .preloader-logo {
            width: clamp(120px, 20vw, 200px);
            height: auto;
            margin-bottom: 30px;
            animation: logoFadeIn 1s ease-in-out;
        }

        /* Spinner - koło ładowania */
        .preloader-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #e0e0e0;
            border-top: 4px solid #f9b104;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        /* Tekst ładowania */
        .preloader-text {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(14px, 3vw, 16px);
            color: #666;
            font-weight: 500;
            text-align: center;
            animation: textPulse 2s ease-in-out infinite;
        }

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

        /* Animacja logo */
        @keyframes logoFadeIn {
            0% {
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* Animacja tekstu */
        @keyframes textPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        /* Responsywność */
        @media (max-width: 768px) {
            .preloader-spinner {
                width: 40px;
                height: 40px;
                border-width: 3px;
            }
        }

