/* Style strony elementy-ogrodzen-frontowych – przeniesione z treści w CMS (30.10.2026) */
/* 1. ZMIENNE KOLORYSTYCZNE */
    :root {
        --primary: #313733;      
        --accent: #a70f27;        
        --bg-light: #f9f9f9;  
        --shadow: 0 10px 30px rgba(0,0,0,0.06);
        --card-radius: 20px;
    }

    /* 2. LOADER */
    #loader {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: #fff; z-index: 9999;
        display: flex; justify-content: center; align-items: center;
        transition: opacity 0.4s ease;
    }
    #loader.fade-out { opacity: 0; pointer-events: none; }
    .spinner {
        width: 40px; height: 40px; border: 4px solid #f3f3f3;
        border-top: 4px solid var(--accent); border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

    /* 3. HEADER Z PASTYLKAMI */
    .reiter-nav-header {
        text-align: center;
        margin: 40px 0 50px 0; /* Margines dopasowany do podstrony */
        padding: 0 15px;
    }

    .nav-title {
        font-family: 'Rajdhani', sans-serif;
        font-weight: 700;
        font-size: 2.8rem;
        color: var(--primary);
        margin-bottom: 20px;
    }
    
    .nav-subtitle {
        font-weight: 600;
        font-size: 2rem;
        color: var(--primary);
        margin-bottom: 30px;
        font-family: 'Rajdhani', sans-serif;
    }

    .reiter-pills-container {
        display: inline-flex;
        background: #fff;
        padding: 5px;
        border-radius: 50px;
        border: 1px solid #eee;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        gap: 10px;
    }

    .nav-pill {
        padding: 14px 35px;
        font-size: 1.1rem;
        font-weight: 700;
        font-family: 'Rajdhani', sans-serif;
        text-decoration: none !important;
        border-radius: 40px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        color: #666;
    }

    .nav-pill.inactive:hover {
        background: var(--bg-light);
        color: #000;
    }

    .nav-pill.active {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 4px 15px rgba(167, 15, 39, 0.3);
    }

    /* 4. SIATKA KAFELKÓW */
    .reiter-grid-container {
        max-width: 1300px;
        margin: 0 auto;
        padding: 0 20px 80px 20px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
        gap: 50px; 
        justify-content: center;
    }

    /* Styl Karty */
    .soft-card {
        background: #fff;
        border-radius: var(--card-radius);
        text-decoration: none;
        color: var(--primary);
        display: flex;
        flex-direction: column;
        padding: 0; 
        box-shadow: var(--shadow);
        border: 1px solid #f0f0f0;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        overflow: hidden;
        height: 100%;
    }

    .soft-card:hover {
        transform: translateY(-10px);
        border-color: var(--accent);
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    }

    /* Kontener na zdjęcie */
    .card-img-wrapper {
        width: 100%;
        height: 240px; 
        position: relative;
        overflow: hidden;
        background: #fff;
    }

    .soft-card img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        display: block;
        padding: 0; 
        transition: transform 0.6s ease;
    }

    .soft-card:hover img {
        transform: scale(1.05);
    }

    /* Tytuł */
    .card-content {
        padding: 25px 20px;
        width: 100%;
        text-align: center;
        background: #fff;
        border-top: 1px solid #f9f9f9;
        margin-top: auto;
    }

    .card-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        line-height: 1.2;
    }

    /* Sekcja specjalna */
    .special-section {
        background-color: #FAFAFA;
        padding: 60px 0;
        margin-top: 20px;
        border-top: 1px solid #eee;
        width: 100%;
    }
    
    /* SEO FOOTER */
    .reiter-seo-footer {
        background-color: #fafafa;
        padding: 60px 20px;
        margin-top: 60px;
        border-top: 1px solid #f0f0f0;
        font-family: inherit;
        clear: both;
    }

    .reiter-seo-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .seo-main-title {
        color: #888888;
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 30px;
        letter-spacing: 0.5px;
        line-height: 1.4;
    }

    .seo-text-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .seo-column h3 {
        font-size: 1.05rem;
        color: #999999;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .seo-column p {
        color: #777777;
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
        text-align: justify;
    }

    .seo-link {
        color: #777777; 
        font-weight: 700; 
        text-decoration: underline; 
        text-decoration-color: #ccc; 
        transition: all 0.3s ease;
    }

    .seo-link:hover {
        color: #a70f27;
        text-decoration-color: #a70f27;
    }

/* MOBILE TWEAKS */
    @media (max-width: 768px) {
        .nav-title { font-size: 2rem; margin-bottom: 15px; }
        .nav-subtitle { font-size: 1.6rem; margin-bottom: 20px; }
        
        /* Grid - 2 kolumny na mobile wyglądają lepiej przy małych elementach, 
           ale 1 kolumna (minmax 160px) jest bezpieczniejsza. Zostawiam jak było. */
        .reiter-grid-container {
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 15px; 
        }
        
        .card-img-wrapper { height: 160px; }
        .card-content { padding: 15px 10px; }
        .card-title { font-size: 1.1rem; }
        
        /* SEO MOBILE */
        .seo-text-grid { grid-template-columns: 1fr; gap: 30px; }
        .seo-column p { text-align: left; }

        /* NAPRAWA PIGUŁEK (POZIOMO NA MOBILE) */
        .reiter-pills-container {
            display: inline-flex;       /* Układ w linii */
            flex-direction: row;        /* Poziomo */
            flex-wrap: nowrap;          /* Zablokuj łamanie do nowej linii */
            justify-content: center;    /* Wyśrodkuj */
            width: auto;
            max-width: 100%;            /* Nie wychodź poza ekran */
            overflow-x: auto;           /* W razie skrajnie małego ekranu - przewijanie */
            gap: 5px;                   /* Mniejszy odstęp między guzikami */
        }

        .nav-pill {
            padding: 10px 15px;         /* Dużo mniejszy padding niż na PC */
            /*font-size: 0.85rem;      */   /* Mniejsza czcionka, żeby weszły dwa obok siebie */
            white-space: nowrap;        /* Tekst zawsze w jednej linii */
            width: auto;                /* Szerokość naturalna */
            margin: 0;
        }
    }
