﻿:root {
        --hero-primary: #1e3a5f;
        --hero-primary-dark: #142840;
        --hero-accent: #2563eb;
        --hero-accent-light: #3b82f6;
        --hero-white: #ffffff;
        --hero-text: #f8fafc;
        --hero-muted: #94a3b8;
        --hero-glass: rgba(255, 255, 255, 0.95);
    }

    .hero-section {
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 6rem 0 4rem;
        overflow: hidden;
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

   .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* Optymalizacja wydajności */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    
    /* Zapobiega rozmyciu przy scale */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

    @keyframes heroZoom {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            135deg,
            rgba(30, 58, 95, 0.92) 0%,
            rgba(30, 58, 95, 0.8) 50%,
            rgba(30, 58, 95, 0.88) 100%
        );
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1.25rem;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50px;
        color: var(--hero-white);
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    .hero-badge i {
        color: #fbbf24;
    }

    .hero-title {
        font-size: 3.25rem;
        font-weight: 800;
        color: var(--hero-white);
        line-height: 1.15;
        margin-bottom: 1.25rem;
        letter-spacing: -0.5px;
    }

    .text-gradient {
        background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        color: var(--hero-muted);
        max-width: 650px;
        margin: 0 auto 2rem;
        line-height: 1.7;
    }

    .search-card {
        background: var(--hero-glass);
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
    }

    .search-tabs {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }

    .tab-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.875rem 1.75rem;
        background: rgba(30, 58, 95, 0.05);
        border: 2px solid transparent;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--hero-primary);
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .tab-btn i {
        font-size: 1.2rem;
    }

    .tab-btn:hover {
        background: rgba(30, 58, 95, 0.1);
    }

    .tab-btn.active {
        background: var(--hero-primary);
        color: var(--hero-white);
        border-color: var(--hero-primary);
    }

    .search-form {
        margin-bottom: 0;
    }

    .search-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .search-field {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .field-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--hero-primary);
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .field-label i {
        color: var(--hero-accent);
    }

    .field-input {
        position: relative;
    }

    .field-input .form-control,
    .field-input .form-select {
        width: 100%;
        padding: 0.875rem 1rem;
        padding-right: 2.5rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 0.95rem;
        transition: all 0.25s ease;
        background: #fff;
    }

    .field-input .form-control:focus,
    .field-input .form-select:focus {
        border-color: var(--hero-accent);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
        outline: none;
    }

    .field-icon {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--hero-muted);
        pointer-events: none;
    }

    .field-suffix {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--hero-muted);
        font-weight: 600;
        font-size: 0.85rem;
        pointer-events: none;
    }

    .search-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .btn-search {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        padding: 1rem 2rem;
        background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-primary-dark) 100%);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 1.05rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn-search:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(30, 58, 95, 0.4);
    }

    .btn-advanced {
        padding: 1rem 1.5rem;
        background: transparent;
        color: var(--hero-primary);
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-advanced:hover {
        border-color: var(--hero-primary);
        background: rgba(30, 58, 95, 0.05);
    }

    .advanced-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 1.25rem;
        background: rgba(30, 58, 95, 0.03);
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    .advanced-grid .field-label {
        font-size: 0.8rem;
    }

    .advanced-grid .form-control,
    .advanced-grid .form-select {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .hero-stats {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
        margin: 2.5rem auto 0;
        padding: 1.5rem 2rem;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        max-width: 900px;
    }

    .stat-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        min-width: 140px;
    }

    .stat-box i {
        font-size: 1.75rem;
        color: #60a5fa;
        margin-bottom: 0.25rem;
    }

    .stat-num {
        font-size: 2rem;
        font-weight: 800;
        color: var(--hero-white);
        line-height: 1;
    }

    .stat-label {
        font-size: 0.85rem;
        color: var(--hero-muted);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.85rem;
        font-weight: 500;
        animation: bounce 2s ease infinite;
        cursor: pointer;
        z-index: 2;
    }

    .scroll-arrow {
        width: 32px;
        height: 32px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
    }

    .scroll-indicator:hover .scroll-arrow {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
    }

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

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .animate-fade-in {
        animation: fadeIn 0.8s ease forwards;
    }

    .animate-fade-in-up {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }

    .delay-1 { animation-delay: 0.15s; }
    .delay-2 { animation-delay: 0.3s; }
    .delay-3 { animation-delay: 0.45s; }

    @media (max-width: 1199px) {
        .search-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .field-lg {
            grid-column: span 2;
        }
        
        .advanced-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 991px) {
        .hero-section {
            min-height: auto;
            padding: 5rem 0 3rem;
        }

        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
        }

        .search-card {
            padding: 1.5rem;
        }

        .search-grid {
            grid-template-columns: 1fr;
        }

        .field-lg {
            grid-column: span 1;
        }

        .advanced-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .search-actions {
            flex-direction: column;
        }

        .btn-search,
        .btn-advanced {
            width: 100%;
        }
    }

    @media (max-width: 767px) {
        .hero-section {
            padding: 4rem 0 2.5rem;
        }

        .hero-title {
            font-size: 2rem;
        }

        .hero-stats {
            flex-direction: column;
            gap: 1.25rem;
        }

        .stat-box {
            flex-direction: row;
            gap: 0.75rem;
            min-width: auto;
            justify-content: flex-start;
        }

        .stat-box i {
            margin-bottom: 0;
        }

        .search-tabs {
            flex-direction: column;
        }

        .tab-btn {
            justify-content: center;
        }

        .advanced-grid {
            grid-template-columns: 1fr;
        }

        .scroll-indicator {
            display: none;
        }
    }

    @media (max-width: 480px) {
        .hero-title {
            font-size: 1.75rem;
        }

        .search-card {
            padding: 1.25rem;
            border-radius: 16px;
        }

        .btn-search {
            padding: 0.875rem 1.5rem;
            font-size: 0.95rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
        }
    }