        /* Podstawowe style */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* When the user scrolls down, make header fixed and compact */
        header.header--scrolled {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background-color: rgba(44,62,80,0.95); /* slightly translucent solid */
            box-shadow: 0 3px 8px rgba(0,0,0,0.15);
            padding: 0.4rem 0; /* shrink vertical padding */
            transition: padding 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
        }

        /* Make inner content scale down slightly when scrolled */
        header.header--scrolled .header-content {
            align-items: center;
            gap: 0.5rem;
        }

        header .logo img {
            height: 56px; /* default logo height */
            transition: height 200ms ease, transform 200ms ease, opacity 200ms ease;
            display: block;
        }

        /* When scrolled, visually hide the logo but keep its layout space to avoid CLS */
        header.header--scrolled .logo img {
            /* keep the image height so we don't collapse layout; visually shrink and fade */
            height: 56px; /* same as default, preserves reserved space */
            transform: scale(0.85);
            opacity: 0;
            transition: transform 200ms ease, opacity 200ms ease;
        }

        /* Make sure the container inside header still uses the page max-width */
        header.header--scrolled .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo h1 {
            font-size: 1.8rem;
        }
        
        .logo span {
            color: #3498db;
        }
        
        /* Language dropdown in nav */
        nav ul{display:flex;list-style:none;margin:0;padding:0}
        nav ul li{margin-left:1.5rem}
        nav ul li a{color:white;text-decoration:none}

        .lang-dropdown { position: relative; }
        .lang-toggle {
            background: transparent;
            color: white;
            border: 1px solid rgba(255,255,255,0.12);
            padding: 0.25rem 0.6rem;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 700;
        }
        .lang-toggle:focus { outline: 3px solid rgba(255,255,255,0.12); outline-offset: 2px; }
        .lang-menu {
            display: none;
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            background: #ffffff;
            color: #2c3e50;
            min-width: 220px;
            max-height: 280px; /* limit height so long lists scroll */
            border-radius: 6px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            padding: 0.4rem 0;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            z-index: 2000;
        }
        .lang-menu li { list-style: none; }
        .lang-menu a {
            display: block;
            padding: 0.5rem 1rem;
            color: inherit;
            text-decoration: none;
            font-weight: 600;
        }
        .lang-menu a:hover, .lang-menu a:focus { background: #f4f7fb; }
        .lang-dropdown.open .lang-menu { display: block; }

        /* Minimal custom scrollbar for modern browsers */
        .lang-menu::-webkit-scrollbar { width: 10px; }
        .lang-menu::-webkit-scrollbar-track { background: transparent; }
        .lang-menu::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; }
        
        /* navigation styles for larger UI remain in external CSS where needed */
        
        /* Sekcja hero */
        /* hero and button styles moved to critical inline CSS in the HTML head */
        
        /* Sekcja o firmie */
        .about {
            padding: 4rem 0;
            background-color: white;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            font-size: 2.25rem;
            color: #2c3e50;
        }
        
        .about-content {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2rem;
        }
        
        .about-text {
            flex: 1;
            min-width: 300px;
            font-size: 1.05rem;
            line-height: 1.8;
        }

        .about ul li {
            font-size: 1.05rem;
            margin-bottom: 0.5rem;
        }
        
        .about-image {
            flex: 1;
            min-width: 300px;
            text-align: center;
        }
        
        .about-image img {
            max-width: 100%;
            border-radius: 5px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        /* Contact section styles - increased size and contrast for readability */
        .contact-section {
            padding: 3rem 0;
            background-color: #ffffff;
            /* larger base font for contact block only */
            font-size: 1.125rem; /* ~18px */
            line-height: 1.7;
            color: #0f2430; /* darker, higher contrast than previous #2c3e50 */
        }

        .contact-block p {
            margin-bottom: 0.75rem;
            color: inherit; /* use the darker contact-section color */
        }

        .contact-block strong { font-weight: 700; color: #071923; }

        /* Make contact links more prominent and accessible */
        .contact-block a {
            color: #0b66b2; /* darker blue for contrast */
            text-decoration: none;
            font-weight: 600;
        }

        .contact-block a:hover,
        .contact-block a:focus {
            text-decoration: underline;
            outline: 3px solid rgba(11,102,178,0.15);
            outline-offset: 2px;
        }

        /* Contact grid: info + map */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            align-items: stretch;
        }

        .contact-map {
            min-height: 260px;
        }

        @media (max-width: 768px) {
            .contact-grid { grid-template-columns: 1fr; }
            .contact-map { min-height: 220px; }
        }
        
        /* Sekcja nowości */
        .new-products {
            padding: 4rem 0;
            background: #cfcfcf;
            background-image: url('../img/pobierz.webp');
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .product-card {
            background-color: white;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
        }
        
        .product-image {
            height: 200px;
            background-color: #ddd;
            background-size: cover;
            background-position: center;
        }
        
        .product-info {
            padding: 1.5rem;
        }
        
        .product-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: #2c3e50;
        }
        
        .product-date {
            color: #7f8c8d;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .product-description {
            color: #555;
        }

        /* Galeria */
        .gallery {
            padding: 3rem 0;
            background-color: #fff;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
        }

        .gallery-item {
            overflow: hidden;
            border-radius: 6px;
            background-color: #f4f4f4;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 300ms ease;
        }

        .gallery-item:hover img {
            transform: scale(1.05);
        }
        
        /* Sekcja kategorii */
        .categories {
            padding: 4rem 0;
            background-color: white;
        }
        
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.5rem;
        }
        
        .category-item {
            display: block; /* anchor behaves like a block */
            text-decoration: none;
            background-color: #f4f4f4;
            padding: 1.5rem;
            border-radius: 5px;
            text-align: center;
            transition: background-color 0.3s, color 0.3s;
            color: inherit;
            font-size: 1.15rem; /* slightly larger for readability */
            font-weight: 600;
        }

        .category-item:hover {
            /* subtle lift and slight darkening to preserve per-tile color */
            filter: brightness(0.95);
            transform: translateY(-4px);
            box-shadow: 0 6px 14px rgba(0,0,0,0.08);
        }

        /* Pastel palette for category tiles (keeps dark text for contrast) */
        .categories-grid .category-item:nth-child(1)  { background-color: #fdecec; color: #2c3e50; }
        .categories-grid .category-item:nth-child(2)  { background-color: #fff4e6; color: #2c3e50; }
        .categories-grid .category-item:nth-child(3)  { background-color: #e8fbf5; color: #2c3e50; }
        .categories-grid .category-item:nth-child(4)  { background-color: #e8f0ff; color: #2c3e50; }
        .categories-grid .category-item:nth-child(5)  { background-color: #f5e8ff; color: #2c3e50; }
        .categories-grid .category-item:nth-child(6)  { background-color: #e8ffe8; color: #2c3e50; }
        .categories-grid .category-item:nth-child(7)  { background-color: #fff0f4; color: #2c3e50; }
        .categories-grid .category-item:nth-child(8)  { background-color: #fff9e8; color: #2c3e50; }
        .categories-grid .category-item:nth-child(9)  { background-color: #e8f7ff; color: #2c3e50; }
        .categories-grid .category-item:nth-child(10) { background-color: #f0f8ff; color: #2c3e50; }
        .categories-grid .category-item:nth-child(11) { background-color: #fff0e8; color: #2c3e50; }
        .categories-grid .category-item:nth-child(12) { background-color: #f0fff4; color: #2c3e50; }
        .categories-grid .category-item:nth-child(13) { background-color: #f7e8ff; color: #2c3e50; }
        .categories-grid .category-item:nth-child(14) { background-color: #e8fff7; color: #2c3e50; }
        .categories-grid .category-item:nth-child(15) { background-color: #fff2e8; color: #2c3e50; }
        .categories-grid .category-item:nth-child(16) { background-color: #eaebfb; color: #2c3e50; }
        .categories-grid .category-item:nth-child(17) { background-color: #fff7e8; color: #2c3e50; }
        
        /* Stopka */
        footer {
            background-color: #2c3e50;
            color: white;
            padding: 3rem 0 1rem;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-section {
            flex: 1;
            min-width: 250px;
        }
        
        .footer-section h3 {
            margin-bottom: 1rem;
            color: #3498db;
        }
        
        .contact-info {
            list-style: none;
        }
        
        .contact-info li {
            margin-bottom: 0.5rem;
        }
        
        .copyright {
            text-align: center;
            padding-top: 1rem;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        /* Responsywność */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
            }
            
            nav ul {
                margin-top: 1rem;
                justify-content: center;
            }
            
            nav ul li {
                margin: 0 0.5rem;
            }
            
            .hero h2 {
                font-size: 2rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            /* scale back sizes on smaller screens */
            .category-item {
                font-size: 1rem;
            }
            .section-title {
                font-size: 1.8rem;
            }
            .about-text,
            .about ul li {
                font-size: 1rem;
            }
        }

        /* Gallery responsive columns */
        @media (max-width: 1024px) {
            .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }
        }