
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            color: #333;
            line-height: 1.6;
            background-color: #f9f9f9;
        }

        /* dynamic header height (set by JS) - used to pull hero under the header */
        :root { --header-height: 50px; }
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Górny pasek */
        .top-bar {
            background: #2e7d32;
            padding: 0.3rem 0;
            font-size: 0.9rem;
            color: white;
        }
        
        .top-bar-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .language-selector {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        
        .language-selector a {
            color: #ffffff;
            text-decoration: none;
            display: flex;
            align-items: center;
            font-size: 0.8rem;
            padding: 0.2rem 0.5rem;
            border-radius: 3px;
            transition: background-color 0.3s;
        }
        
        .language-selector a:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .contact-top {
            display: flex;
            gap: 1.5rem;
        }
        
        .contact-top a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* Nagłówek */
        header {
            background: white;
            color: #2e7d32;
            padding: 0.5rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

/* Transparent header when at the very top of the page */
.header-transparent {
    background: transparent !important;
    box-shadow: none !important;
    color: white; /* keep nav items readable over hero */
}

/* Floating language switcher */
.lang-switcher {
    position: fixed;
    right: 10px;
    bottom: 5px;
    z-index: 20000;
    display: flex;
    align-items: center;
    gap: 10px;
    /* show the list on the left side of the toggle */
    flex-direction: row-reverse;
}

.lang-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2e7d32;
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.lang-list {
    position: absolute; /* position relative to .lang-switcher */
    right: 0; /* align the list's right edge with the switcher */
    bottom: calc(100% + 40px); /* place the list higher above the toggle with a larger gap */
    max-width: 300px;
    width: 100px;
    height: 220px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    transform: translateY(18px) translateX(6px);
    transition: transform 0.28s ease, opacity 0.28s ease;
    opacity: 0;
    pointer-events: none;
}

.lang-list ul { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.lang-list a { display: flex; align-items: center; gap: 8px; padding: 8px; color: #333; text-decoration: none; border-radius: 6px; }
.lang-list a img { width: 22px; height: auto; display: inline-block; }
.lang-list a:hover, .lang-list a.active { background: #f1f1f1; }

/* Visible state */
body.lang-open .lang-list { transform: translateY(0) translateX(0); opacity: 1; pointer-events: auto; }

/* small screens tweak */
@media (max-width: 480px) {
    .lang-list { width: 200px; height: 180px; }
    .lang-toggle { width: 44px; height: 44px; font-size: 18px; }
}

.header-transparent .logo span { color: rgba(255,255,255,0.95); }
.header-transparent .logo i { color: rgba(255,255,255,0.95); }
.header-transparent nav ul li a { color: rgba(255,255,255,0.95); }
.header-transparent nav ul li a:hover { color: rgba(255,255,255,0.9); }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 2rem;
            font-weight: bold;
            display: flex;
            align-items: center;
        }
        
        .logo span {
            color: #8d6e63;
            margin-left: 5px;
        }
        
        .logo i {
            margin-right: 10px;
            font-size: 2.2rem;
            color: #8d6e63;
        }

        /* Logo image sizing */
        .logo img {
            height: 56px;
            width: auto;
            display: block;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 1.5rem;
        }
        
        nav ul li a {
            color: #2e7d32;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            padding: 5px 10px;
            border-radius: 4px;
        }
        
        nav ul li a:hover {
            color: #8d6e63;
        }
        
        /* Sekcja hero - video background replacement */
        .hero {
            position: relative; /* establish positioning context for the video */
            overflow: visible; /* allow header to overlap slightly */
            background-color: #000; /* fallback color if video/poster fails */
            color: white;
            text-align: center;
            /* pull the hero up under the header by header height */
            margin-top: calc(var(--header-height) * -1.4);
            padding: calc(var(--header-height) + 15rem) 1rem 15rem 1rem;
            margin-bottom: 2rem;
        }

        /* make the <video> behave like a full-bleed background */
        .hero-video {
            position: absolute;
            top: 0; /* anchor video to top of hero so it starts directly under header */
            left: 50%;
            width: 100%;
            height: 100%;
            transform: translateX(-50%);
            object-fit: cover;
            object-position: center top;
            z-index: 0; /* sit behind the overlay and content */
            pointer-events: none; /* allow clicks on buttons/links above */
            /* slightly reduce brightness so overlay has less work to do */
            filter: brightness(0.85) contrast(0.98);
        }

        /* subtle dark overlay to keep text readable */

        /* subtle dark overlay to keep text readable */
        .hero::after {
            content: '';
            position: absolute;
            inset: 0;
            /* stronger darkening for better contrast over the video */
            background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));
            z-index: 1; /* above video */
            pointer-events: none;
        }

        /* ensure hero content is above video and overlay */
        .hero-content {
            position: relative;
            z-index: 2;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        
        .hero p {
            font-size: 1.5rem;
            max-width: 800px;
            margin: 0 auto 2rem;
        }
        
        .btn {
            display: inline-block;
            padding: 0.8rem 1.8rem;
            background-color: #8d6e63;
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: bold;
            transition: all 0.3s;
            border: 2px solid #8d6e63;
            margin: 0 10px;
        }
        
        .btn:hover {
            background-color: transparent;
            color: #8d6e63;
        }
        
        .btn-outline {
            background-color: transparent;
            color: #8d6e63;
        }
        
        .btn-outline:hover {
            background-color: #8d6e63;
            color: white;
        }
        
        /* Sekcje ogólne */
        section {
            padding: 5rem 0;
        }
        
        section h2 {
            text-align: center;
            margin-bottom: 2rem;
            color: #2e7d32;
            position: relative;
            font-size: 2.5rem;
        }
        
        section h2:after {
            content: '';
            display: block;
            width: 100px;
            height: 4px;
            background: #8d6e63;
            margin: 15px auto;
            border-radius: 2px;
        }
        
        /* O nas */
        .about-content {
            display: flex;
            flex-wrap: wrap;
            gap: 3rem;
            align-items: center;
        }
        
        .about-text {
            flex: 1;
            min-width: 300px;
        }
        
        .about-text p {
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            line-height: 1.8;
        }
        
        .about-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .stat {
            text-align: center;
            padding: 1.5rem;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            color: #8d6e63;
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            font-size: 1rem;
            color: #666;
        }
        
        .about-image {
            flex: 1;
            min-width: 300px;
            height: 400px;
            background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url("../img/about.webp");
            background-size: cover;
            background-position: center;
            border-radius: 10px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        /* Co nas wyróżnia */
        .features-section {
            background-color: #f5f5f5;
            padding: 5rem 0;
        }
        
        .features-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .feature-card {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
            text-align: center;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
        }
        
        .feature-card i {
            font-size: 3rem;
            color: #8d6e63;
            margin-bottom: 1rem;
        }
        
        .feature-card h3 {
            margin-bottom: 1rem;
            color: #2e7d32;
        }
        
        /* Sekcja produktów */
        .products-section {
            background-color: white;
            padding: 5rem 0;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .product-item {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: all 0.3s;
            text-align: center;
            border-left: 4px solid #8d6e63;
        }

        .product-image {
            width: 100%;
            height: 260px;
            overflow: hidden;
            border-radius: 8px;
            margin-bottom: 1rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.06);
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .product-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            background: #fff;
        }
        
        .product-item h3 {
            color: #2e7d32;
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }
        
        /* Sekcja galerii */
        .gallery-section {
            background-color: #f5f5f5;
            padding: 5rem 0;
        }
        
        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            height: 250px;
            cursor: pointer;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.1);
        }
        
        .gallery-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(46, 125, 50, 0.85);
            color: white;
            padding: 1rem;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        
        .gallery-item:hover .gallery-caption {
            transform: translateY(0);
        }
        
        .gallery-caption h3 {
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }
        
        .gallery-caption p {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .gallery-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }
        
        .modal-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 40px;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .modal-close:hover {
            color: #8d6e63;
        }
        
        .modal-caption {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            text-align: center;
            color: white;
            padding: 10px;
            background-color: rgba(0,0,0,0.7);
        }
        
        /* Sekcja produkcji */
        .production-section {
            background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
            color: white;
            padding: 5rem 0;
        }
        
        .production-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .production-item {
            text-align: center;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            transition: transform 0.3s;
        }
        
        .production-item:hover {
            transform: translateY(-10px);
        }
        
        .production-item i {
            font-size: 3rem;
            color: #c8e6c9;
            margin-bottom: 1rem;
        }
        
        .production-item h3 {
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }
        
        /* Kontakt */
        .contact-container {
            display: flex;
            flex-wrap: wrap;
            gap: 3rem;
        }
        
        .contact-info {
            flex: 1;
            min-width: 300px;
            background-color: #f9f9f9;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .contact-info h3 {
            color: #2e7d32;
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }
        
        .contact-details {
            margin-bottom: 2rem;
        }
        
        .contact-details p {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }
        
        .contact-details i {
            color: #8d6e63;
            font-size: 1.2rem;
            width: 25px;
        }
        
        .social-media {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }
        
        .social-media a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: #2e7d32;
            color: white;
            border-radius: 10%;
            transition: all 0.3s;
        }
        
        .social-media a:hover {
            background-color: #8d6e63;
            transform: translateY(-3px);
        }
        
        .contact-form {
            flex: 1;
            min-width: 300px;
            background-color: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .contact-form h3 {
            color: #2e7d32;
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #555;
            font-weight: 500;
        }
        
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: #8d6e63;
            outline: none;
        }
        
        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }
        
        .submit-btn {
            background-color: #8d6e63;
            color: white;
            border: none;
            padding: 0.8rem 1.8rem;
            border-radius: 30px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .submit-btn:hover {
            background-color: #2e7d32;
        }
        
        /* Stopka */
        footer {
            background-color: #2e7d32;
            color: white;
            padding: 3rem 0 1rem;
        }
        
        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-col h4 {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .footer-col h4:after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 2px;
            background-color: #8d6e63;
        }
        
        .footer-col ul {
            list-style: none;
        }
        
        .footer-col ul li {
            margin-bottom: 0.8rem;
        }
        
        .footer-col ul li a {
            color: #ffffff;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-col ul li a:hover {
            color: white;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        /* Responsywność */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
            }
            
            nav ul {
                margin-top: 1rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            nav ul li {
                margin: 0.5rem;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.2rem;
            }
            
            .top-bar-container {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .contact-top {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        
        @media (max-width: 576px) {
            section {
                padding: 3rem 0;
            }
            
            section h2 {
                font-size: 2rem;
            }
            
            
            .btn {
                display: block;
                margin: 10px auto;
                width: 80%;
            }
        }