/* ==========================================================================
   Inclify — warstwa bazowa (nawigacja, siatka, komponenty sprzed redesignu).
   Wcześniej wklejana inline w <head> na każdej podstronie (917 linii na
   żądanie); teraz osobny plik, żeby przeglądarka mogła ją cache'ować.
   Ładowana PRZED styles/site.css — .in-* nadpisuje to, co tu jest.
   ========================================================================== */

/* Footer Styles */
    .footer {
        background: #1e2430;
        color: #fff;
    }
    
    .footer-logo {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
        padding: 0;
    }
    
    .footer-logo img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        display: block;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .footer-logo span {
        font-weight: 600;
        color: #fff;
        font-size: 1.25rem;
        line-height: 1;
        margin-left: 0.75rem;
        padding: 0;
        display: block;
        white-space: nowrap;
    }
    
    .footer .footer-logo + p {
        margin-top: 0.5rem;
        margin-bottom: 0;
        display: block;
    }
    
    /* Header and Navigation Styles */
    .sticky-nav {
        position: sticky;
        top: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .nav-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0;
    }
    
    .logo {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    
    .logo img {
        height: 40px;
        width: auto;
        margin-right: 0.5rem;
    }
    
    .logo span {
        font-weight: 600;
        color: var(--bs-primary);
        font-size: 1.25rem;
    }
    
    .nav-links {
        display: flex;
        align-items: center;
    }
    
    .nav-link {
        margin: 0 1rem;
        color: #495057;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }
    
    .nav-link:hover, 
    .nav-link.active {
        color: var(--bs-primary);
    }
    
    /* Dropdown Styles */
    .dropdown {
        position: relative;
        display: inline-block;
    }
    
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #fff;
        min-width: 160px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0.5rem;
        z-index: 10;
        padding: 0.5rem 0;
    }
    
    .dropdown-content::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
        background: transparent;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        color: #495057;
        padding: 0.75rem 1rem;
        text-decoration: none;
        display: block;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .dropdown-content a:hover {
        background-color: rgba(13,110,253,0.1);
        color: var(--bs-primary);
    }
    
    /* Mobile Navigation Styles */
    .mobile-nav-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--bs-primary);
    }
    
    .close-icon {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    @media (max-width: 767.98px) {
        .mobile-nav-toggle {
            display: block;
            z-index: 1001;
        }
        
        .mobile-nav-toggle.active .hamburger-icon {
            display: none;
        }
        
        .mobile-nav-toggle.active .close-icon {
            display: inline-block;
        }
        
        .nav-links {
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            width: 75%;
            max-width: 300px;
            background: #fff;
            flex-direction: column;
            align-items: flex-start;
            padding: 5rem 1.5rem 2rem;
            /* transform zamiast right:-100% — panel poza ekranem nie tworzy
               poziomego scrolla na całym dokumencie */
            transform: translateX(100%);
            visibility: hidden;
            transition: transform 0.3s ease, visibility 0s linear 0.3s;
            overflow-y: auto;
            z-index: 999;
        }
        
        .nav-links.active {
            transform: translateX(0);
            visibility: visible;
            transition: transform 0.3s ease, visibility 0s linear 0s;
        }
        
        .mobile-menu-overlay.active {
            display: block;
        }
        
        .nav-link {
            margin: 0.5rem 0;
            width: 100%;
            padding: 0.5rem 0;
        }
        
        .dropdown {
            width: 100%;
        }
        
        .dropdown-content {
            position: static;
            box-shadow: none;
            border-left: 3px solid var(--bs-primary);
            border-radius: 0;
            margin: 0.5rem 0 0.5rem 1rem;
            padding: 0;
            display: none;
        }
        
        .dropdown.active .dropdown-content {
            display: block;
        }
    }

    /* Base styles */
    :root {
        --bs-primary: #0d6efd;
        --bs-secondary: #2c3e50;
        --bs-success: #27ae60;
        --bs-info: #3498db;
        --bs-warning: #f1c40f;
        --bs-danger: #e74c3c;
        --bs-light: #f8f9fa;
        --bs-dark: #2c3e50;
        --section-padding-y: 6rem;
        --section-padding-y-sm: 4rem;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        color: var(--bs-dark);
        line-height: 1.6;
        background-color: #fff;
    }

    /* Main content spacing */
    .main-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .main-content > section {
        margin-bottom: 4rem;
    }

    .main-content > section:last-child {
        margin-bottom: 0;
    }

    /* Section spacing */
    .section-padding {
        padding-top: var(--section-padding-y);
        padding-bottom: var(--section-padding-y);
    }

    @media (max-width: 767.98px) {
        .section-padding {
            padding-top: var(--section-padding-y-sm);
            padding-bottom: var(--section-padding-y-sm);
        }
    }
    
    /* Correct gradient definition */
    .bg-gradient-primary {
        background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    }
    
    /* Utility Classes */
    .hover-lift {
        transition: transform 0.2s ease-in-out;
    }
    .hover-lift:hover {
        transform: translateY(-5px);
    }
    
    .text-gradient {
        background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        font-weight: 700;
        line-height: 1.2;
    }

    .display-1, .display-2, .display-3, .display-4 {
        font-weight: 800;
    }

    /* Hero section */
    .hero {
        position: relative;
        min-height: 50vh;
        display: flex;
        align-items: center;
        overflow: hidden;
        background-color: var(--bs-dark);
        padding: 3rem 0;
    }

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

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

    .hero-video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2;
    }

    .hero-content {
        position: relative;
        z-index: 3;
        padding: 2rem 0;
    }

    /* Navigation */
    .sticky-nav {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }

    .logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--bs-dark);
        font-weight: 700;
        font-size: 1.5rem;
    }

    .logo img {
        height: 40px;
        margin-right: 0.5rem;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-link {
        color: var(--bs-dark);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        position: relative;
        padding: 0.5rem 0;
    }

    .nav-link:hover {
        color: var(--bs-primary);
    }

    .nav-link.active {
        color: var(--bs-primary);
        font-weight: 700;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--bs-primary);
    }

    /* Dropdown */
    .dropdown {
        position: relative;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        padding: 0.5rem 0;
        z-index: 1000;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        display: block;
        padding: 0.5rem 1rem;
        color: var(--bs-dark);
        text-decoration: none;
        transition: background-color 0.2s;
    }

    .dropdown-content a:hover {
        background-color: var(--bs-light);
    }

    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--bs-dark);
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    /* Cards */
    .card {
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        border: none;
        border-radius: 8px;
        overflow: hidden;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .card img {
        height: 200px;
        object-fit: cover;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        border-radius: 6px;
        transition: all 0.2s ease-in-out;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1.5;
    }
    
    .btn-lg {
        padding: 0.85rem 1.75rem;
        font-size: 1.1rem;
    }

    .btn-primary {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
        color: #fff;
    }

    .btn-primary:hover {
        background-color: #1e2430;
        border-color: #1e2430;
        transform: translateY(-2px);
    }

    .btn-outline-primary {
        color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

    .btn-outline-primary:hover {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
        color: #fff;
        transform: translateY(-2px);
    }

    .btn-light {
        background-color: #fff;
        border-color: #fff;
        color: var(--bs-dark);
    }

    .btn-light:hover {
        background-color: #f8f9fa;
        border-color: #f8f9fa;
        transform: translateY(-2px);
    }
    
    .btn-outline-light {
        color: #fff;
        border-color: #fff;
    }
    
    .btn-outline-light:hover {
        color: var(--bs-dark);
        background-color: #fff;
        border-color: #fff;
        transform: translateY(-2px);
    }

    /* Footer */
    .footer {
        background-color: var(--bs-dark);
        color: white;
        padding: 4rem 0 2rem;
    }

    .footer-logo {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .footer-logo img {
        height: 40px;
        margin-right: 0.5rem;
        width: auto;
    }

    .footer-logo span {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
    }

    .footer-links h5 {
        color: white;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    .footer-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.2s;
    }

    .footer-links a:hover {
        color: white;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
        margin-top: 3rem;
    }

    /* Responsive Design */
    @media (max-width: 991.98px) {
        .mobile-nav-toggle {
            display: block;
        }

        .nav-links {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            max-width: 400px;
            height: 100vh;
            background: white;
            flex-direction: column;
            padding: 2rem;
            transition: right 0.3s ease-in-out;
            z-index: 999;
            align-items: flex-start;
        }

        .nav-links.active {
            right: 0;
        }

        .mobile-menu-overlay.active {
            display: block;
        }

        .nav-link {
            margin: 0.5rem 0;
            padding: 0.5rem 0;
            width: 100%;
        }

        .dropdown {
            width: 100%;
        }

        .dropdown-content {
            position: static;
            box-shadow: none;
            padding-left: 1rem;
            display: none;
            border-left: 2px solid var(--bs-light);
        }

        .dropdown.active .dropdown-content {
            display: block;
        }
    }

    @media (max-width: 767.98px) {
        .section-padding {
            padding-top: var(--section-padding-y-sm);
            padding-bottom: var(--section-padding-y-sm);
        }

        .hero {
            min-height: 35vh;
            padding: 2rem 0;
        }

        .display-1 {
            font-size: 2.5rem;
        }

        .display-2 {
            font-size: 2rem;
        }

        .display-3 {
            font-size: 1.75rem;
        }

        .display-4 {
            font-size: 1.5rem;
        }
    }

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

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

    /* Print styles */
    @media print {
        .no-print {
            display: none !important;
        }
        
        body {
            font-size: 12pt;
        }
        
        a {
            text-decoration: none !important;
            color: black !important;
        }
        
        .container {
            width: 100%;
            max-width: none;
        }
    }

    /* Shared Page Layout Enhancements */
    :root {
        --gradient-dark: linear-gradient(135deg, #0f172a 0%, #172b4d 55%, #0b1530 100%);
        --gradient-light: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(129, 140, 248, 0.12));
        --ink-primary: #0f172a;
        --ink-muted: rgba(15, 23, 42, 0.65);
        --accent-blue: #3b82f6;
    }

    .page-hero {
        position: relative;
        padding: clamp(4.5rem, 6vw, 6.5rem) 0;
        overflow: hidden;
    }

    .page-hero--dark {
        background: var(--gradient-dark);
        color: #fff;
    }

    .page-hero--light {
        background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 100%);
        color: var(--ink-primary);
    }

    .page-hero__badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.95rem;
        border-radius: 999px;
        letter-spacing: 0.2em;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.15);
        text-transform: uppercase;
    }

    .page-hero--light .page-hero__badge {
        background: rgba(59, 130, 246, 0.12);
        color: var(--accent-blue);
    }

    .page-hero__title {
        font-size: clamp(2.6rem, 4.5vw, 3.8rem);
        font-weight: 700;
        line-height: 1.1;
    }

    .page-hero__subtitle {
        font-size: clamp(1.15rem, 2vw, 1.3rem);
        color: rgba(255, 255, 255, 0.75);
        max-width: 620px;
    }

    .page-hero--light .page-hero__subtitle {
        color: var(--ink-muted);
    }

    .page-hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .page-hero__stat-group {
        display: flex;
        flex-wrap: wrap;
        gap: 1.75rem;
    }

    .page-hero__stat {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .page-hero__stat-value {
        font-size: 2rem;
        font-weight: 700;
    }

    .page-hero__stat-label {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .page-hero--light .page-hero__stat-label {
        color: var(--ink-muted);
    }

    .page-section {
        padding: clamp(4rem, 6vw, 6rem) 0;
    }

    .page-section--light {
        background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
    }

    .page-section__intro {
        max-width: 680px;
    }

    .page-section__title {
        font-size: clamp(2.15rem, 3.7vw, 3rem);
        font-weight: 700;
        color: var(--ink-primary);
    }

    .page-section__subtitle {
        font-size: 1.1rem;
        color: var(--ink-muted);
    }

    .cta-primary {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.75rem 1.6rem;
        border-radius: 0.9rem;
        background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
        color: #fff !important;
        font-weight: 600;
        border: none;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        text-decoration: none;
    }

    .cta-outline {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.75rem 1.6rem;
        border-radius: 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.5);
        color: inherit;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.08);
        text-decoration: none;
        transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    }

    .page-hero--light .cta-outline {
        border-color: rgba(59, 130, 246, 0.35);
        background: rgba(59, 130, 246, 0.08);
        color: var(--accent-blue);
    }

    .cta-primary:hover,
    .cta-outline:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 35px -25px rgba(15, 23, 42, 0.35);
    }

    .info-card {
        background: #fff;
        border-radius: 1.5rem;
        padding: 2.5rem 2rem;
        border: 1px solid rgba(15, 23, 42, 0.05);
        box-shadow: 0 24px 60px -40px rgba(15, 23, 42, 0.35);
    }

    .info-card--highlight {
        background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(129, 140, 248, 0.16));
        border-color: rgba(59, 130, 246, 0.25);
    }

    @media (max-width: 991.98px) {
        .page-hero {
            padding: 4rem 0;
        }

        .page-hero__stat-group {
            gap: 1rem;
        }
    }

    @media (max-width: 575.98px) {
        .page-hero {
            padding: 3.5rem 0;
        }

        .page-hero__actions {
            width: 100%;
        }

        .page-hero__actions .btn,
        .page-hero__actions .cta-primary,
        .page-hero__actions .cta-outline {
            width: 100%;
            justify-content: center;
        }
    }
