        /* Podstawowe style */
        /* Local Raleway font faces (loaded from css/webfonts) */
        @font-face {
            font-family: 'RalewayLocal';
            src: url('webfonts/Raleway-Regular.ttf') format('truetype');
            font-weight: 400;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'RalewayLocal';
            src: url('webfonts/Raleway-Medium.ttf') format('truetype');
            font-weight: 500;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'RalewayLocal';
            src: url('webfonts/Raleway-Bold.ttf') format('truetype');
            font-weight: 700;
            font-style: normal;
            font-display: swap;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'RalewayLocal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f9;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Nagłówek */
        header {
            background-color: #2c3e50;
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: relative; /* keep in flow by default */
            transition: background-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
        }

        /* Transparent header when page is at very top */
        header.header--transparent {
            background-color: transparent;
            box-shadow: none;
            color: white; /* keep text white over hero */
            position: absolute; /* float over hero so background shows through */
            left: 0;
            right: 0;
            z-index: 10;
        }

        /* 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, fade and scale the logo out completely */
        header.header--scrolled .logo img {
            height: 0;
            transform: scale(0);
            opacity: 0;
            overflow: hidden;
        }

        /* 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;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 1.5rem;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        nav ul li a:hover {
            color: #3498db;
        }
        
        /* Sekcja hero */
        .hero {
            /* Use correct relative path from css/ to img/ and lighter overlay so image remains visible */
            background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('../img/header-image.webp') center/cover no-repeat;
            color: white;
            text-align: center;
            padding: 5rem 0;
            /* Ensure the hero is tall enough for the background to show and center content vertically */
            min-height: 60vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .hero h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto 2rem;
        }
        
        .btn {
            display: inline-block;
            background-color: #3498db;
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .btn:hover {
            background-color: #2980b9;
        }
        
        /* 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);
        }
        
        /* Sekcja nowości */
        .new-products {
            padding: 4rem 0;
            background: #cfcfcf;
            background-image: url('../img/pobierz.png');
            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;
            }
        }