﻿/* ---------- STOPKA (FOOTER) ---------- */
.main-footer {
    background: #0f1a0f;
    color: #cddfcd;
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-info {
    flex: 2;
}

.footer-copyright-main {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-description, 
.footer-digital {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.3rem;
}

.footer-link-highlight {
    color: #bcd9aa;
}

.footer-nav-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-link {
    color: #c0dbc0;
    font-size: 0.85rem;
}

.main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.main-footer .footer-standards,
.main-footer .footer-case {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.main-footer .footer-case a {
    color: #bcd9aa;
    text-decoration: none;
}

.main-footer .footer-case a:hover {
    text-decoration: underline;
}

.main-footer .footer-link-main {
    font-size: 1rem;
    font-weight: 500;
    color: #e8f0e8;
    text-decoration: none;
    transition: color 0.2s;
}

.main-footer .footer-link-main:hover {
    color: #bcd9aa;
    text-decoration: underline;
}

/* ✅ POPRAWNIE ZAMKNIĘTY SELEKTOR */
.main-footer .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.8rem;
    font-size: 0.9rem;
}

.main-footer .footer-partner {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    letter-spacing: 0.3px;
}

.main-footer .footer-partner strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Responsywność */
@media (max-width: 720px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav-links {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .main-footer .separator {
        display: none;
    }
    
    .main-footer .footer-partner {
        text-align: center;
    }
}
        
    
    /* ---------- RESET & GLOBAL ---------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #2d5a2c;
            --primary-dark: #1e401e;
            --primary-light: #4a7c49;
            --gray-bg: #f5f7f2;
            --gray-border: #e2e8e0;
            --text-dark: #1a2c1a;
            --text-muted: #4a5a4a;
            --white: #ffffff;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
            background-color: var(--gray-bg);
            color: var(--text-dark);
            line-height: 1.5;
            scroll-behavior: smooth;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(circle at 20% 30%, rgba(45, 90, 44, 0.03) 1.5px, transparent 1.5px);
            background-size: 32px 32px;
            pointer-events: none;
            z-index: 0;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 32px;
            position: relative;
            z-index: 2;
        }

        h1, h2, h3 {
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        h1 {
            font-size: clamp(2.2rem, 5vw, 3.5rem);
            line-height: 1.2;
            margin-bottom: 1.25rem;
            color: var(--text-dark);
        }

        h2 {
            font-size: clamp(1.6rem, 4vw, 2.2rem);
            margin-bottom: 1.5rem;
            border-left: 4px solid var(--primary);
            padding-left: 1rem;
        }

        .section-title {
            text-align: center;
            border-left: none;
            padding-left: 0;
            margin-bottom: 2.5rem;
        }

        a {
            text-decoration: underline;
            text-underline-offset: 3px;
            color: var(--primary);
            transition: all 0.2s ease;
        }

        a:hover {
            color: var(--primary-dark);
            text-decoration-thickness: 2px;
        }

        .btn {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 12px 28px;
            border-radius: 40px;
            font-weight: 500;
            transition: 0.2s;
            border: none;
            cursor: pointer;
            text-decoration: none;
        }

        .btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            color: white;
            text-decoration: none;
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        .main-navbar {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.97);
            backdrop-filter: blur(8px);
            border-bottom: 1px solid var(--gray-border);
            box-shadow: 0 2px 12px rgba(0,0,0,0.02);
        }

        .nav-flex {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1.5rem;
            padding: 0.75rem 0;
        }

        .logo-nav img {
            max-height: 52px;
            width: auto;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            color: var(--text-dark);
            font-weight: 500;
            font-size: 0.95rem;
            padding: 0.4rem 0;
            border-bottom: 2px solid transparent;
            text-decoration: none;
        }

        .nav-links a:hover {
            border-bottom-color: var(--primary);
            color: var(--primary);
            text-decoration: none;
        }

        .nav-contact {
            background: var(--primary);
            color: white !important;
            padding: 0.5rem 1.5rem !important;
            border-radius: 40px;
            border-bottom: none !important;
        }

        .nav-contact:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .nav-flex {
                flex-direction: column;
                padding: 1rem 0;
            }
            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
                gap: 1.2rem;
            }
            .container {
                padding: 0 20px;
            }
        }

        .hero {
            position: relative;
            padding: 4rem 0 5rem;
            background: linear-gradient(135deg, #eef3ea 0%, #d9e6cf 100%);
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 0;
        }

        .hero-bg img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.12;
        }

        .hero .container {
            position: relative;
            z-index: 2;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .hero-content p {
            font-size: 1.1rem;
            color: var(--text-muted);
            margin-bottom: 1.8rem;
            max-width: 90%;
        }

        .hero-image {
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
        }

        .hero-image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        @media (max-width: 900px) {
            .hero-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .hero-content p {
                max-width: 100%;
            }
        }

        main {
            position: relative;
            z-index: 1;
        }
        
        section {
            padding: 4rem 0;
            border-bottom: 1px solid var(--gray-border);
            scroll-margin-top: 85px;
        }

        .bg-white {
            background: var(--white);
        }

        .bg-light {
            background: var(--gray-bg);
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: start;
        }

        .about-text p {
            margin-bottom: 1.2rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .stats-modern {
            background: linear-gradient(145deg, #ffffff, #f8faf5);
            border-radius: 32px;
            padding: 2rem;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.8rem;
            box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
            border: 1px solid var(--gray-border);
            position: relative;
            overflow: hidden;
        }
        .stats-modern::before {
            content: "";
            position: absolute;
            top: -30%;
            right: -20%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(45,90,44,0.03) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        .stats-modern::after {
            content: "";
            position: absolute;
            bottom: -30%;
            left: -20%;
            width: 180px;
            height: 180px;
            background: radial-gradient(circle, rgba(45,90,44,0.04) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        .stat-item-modern {
            text-align: center;
            position: relative;
            z-index: 2;
        }
        .stat-number-modern {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            display: block;
            line-height: 1.2;
        }
        .stat-label-modern {
            font-size: 0.85rem;
            color: var(--text-muted);
            letter-spacing: 0.3px;
        }

        @media (max-width: 768px) {
            .about-grid {
                grid-template-columns: 1fr;
            }
        }

        .services-cards {
            display: flex;
            flex-wrap: wrap;
            gap: 1.8rem;
            justify-content: center;
            margin: 2rem 0 1rem;
        }
        .service-tile {
            flex: 1;
            min-width: 200px;
            background: var(--white);
            border-radius: 28px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(0,0,0,0.04);
            border: 1px solid var(--gray-border);
        }
        .service-tile:hover {
            transform: translateY(-6px);
            box-shadow: 0 24px 36px -12px rgba(0,0,0,0.12);
            border-color: var(--primary-light);
        }
        .service-img {
            width: 100%;
            aspect-ratio: 4 / 3;
            background: #eef3e8;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .service-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        .service-tile:hover .service-img img {
            transform: scale(1.02);
        }
        .service-tile h3 {
            font-size: 1.3rem;
            padding: 1rem 1rem 0.3rem;
            text-align: center;
            color: var(--text-dark);
        }
        .service-tile p {
            padding: 0 1rem 1.2rem;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.4;
        }
        .service-tile a {
            display: block;
            text-decoration: none;
        }
        .service-tile a:hover {
            text-decoration: none;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.8rem;
            margin-top: 2rem;
        }

        .product-card {
            background: var(--white);
            border-radius: 20px;
            padding: 1.2rem;
            text-align: center;
            transition: all 0.25s;
            border: 1px solid var(--gray-border);
            box-shadow: 0 4px 12px rgba(0,0,0,0.02);
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
            border-color: var(--primary-light);
        }

        .product-card img {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: contain;
            border-radius: 16px;
            background: #fafefa;
        }

        .product-card h3 {
            font-size: 1rem;
            margin-top: 0.8rem;
            font-weight: 600;
        }

        .product-card a {
            display: block;
            color: var(--text-dark);
            text-decoration: none;
        }
        
        .product-card a:hover {
            text-decoration: none;
        }

        .categories-dropdown {
            margin: 2rem auto;
            max-width: 800px;
            text-align: center;
        }
        .dropdown-btn {
            width: 100%;
            background: var(--white);
            border: 1px solid var(--gray-border);
            border-radius: 60px;
            padding: 1rem 2rem;
            font-size: 1rem;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-dark);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }
        .dropdown-btn:hover {
            background: #f0f5ec;
            border-color: var(--primary-light);
        }
        .dropdown-icon {
            font-size: 0.8rem;
            transition: transform 0.3s;
            color: var(--primary);
        }
        .dropdown-btn.active .dropdown-icon {
            transform: rotate(180deg);
        }
        .dropdown-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-out;
            background: var(--white);
            border-radius: 28px;
            margin-top: 0.5rem;
            border: 1px solid var(--gray-border);
            text-align: left;
        }
        .dropdown-content.show {
            max-height: 800px;
            overflow-y: auto;
        }
        .categories-grid-drop {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 0.5rem;
            padding: 1.5rem;
        }
        .categories-grid-drop a {
            display: block;
            padding: 0.5rem 0.75rem;
            font-size: 0.85rem;
            color: var(--text-muted);
            border-radius: 8px;
            transition: 0.15s;
            text-decoration: none;
        }
        .categories-grid-drop a:hover {
            background: #eef3ea;
            color: var(--primary);
            padding-left: 1rem;
            text-decoration: none;
        }

        .definitions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.8rem;
            margin-top: 1rem;
        }

        .def-card {
            background: var(--white);
            border-radius: 20px;
            padding: 1.5rem;
            border-left: 3px solid var(--primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        }

        .def-card h3 {
            font-size: 1.2rem;
            margin-bottom: 0.6rem;
            color: var(--primary-dark);
        }

        .def-card p {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .faq-item {
            background: var(--white);
            border-radius: 16px;
            margin-bottom: 1rem;
            border: 1px solid var(--gray-border);
            overflow: hidden;
        }

        .faq-question {
            padding: 1.2rem 1.5rem;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--white);
        }

        .faq-question::after {
            content: "+";
            font-size: 1.2rem;
            color: var(--primary);
            font-weight: 400;
        }

        .faq-item.active .faq-question::after {
            content: "−";
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            padding: 0 1.5rem;
            transition: max-height 0.3s ease-out;
            color: var(--text-muted);
        }

        .faq-item.active .faq-answer {
            max-height: 300px;
            padding: 0 1.5rem 1.2rem 1.5rem;
            border-top: 1px solid var(--gray-border);
        }

        .lang-section {
            background: #1e2a1e;
            padding: 2rem 0;
        }

        .lang-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.6rem 1.2rem;
            list-style: none;
        }

        .lang-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #2a3a2a;
            padding: 5px 12px;
            border-radius: 40px;
            color: white;
            font-size: 0.8rem;
            transition: 0.2s;
            text-decoration: none;
        }

        .lang-item:hover {
            background: #3e5a3e;
            color: white;
            text-decoration: none;
        }

        .lang-item img {
            width: 18px;
            height: auto;
        }

        .main-footer {
            background: #0f1a0f;
            color: #cddfcd;
            padding: 2rem 0;
        }

        .footer-bottom-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 2rem;
        }

        .footer-info {
            flex: 2;
        }

        .footer-copyright-main {
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        .footer-description, .footer-digital {
            font-size: 0.8rem;
            opacity: 0.8;
            margin-top: 0.3rem;
        }

        .footer-link-highlight {
            color: #bcd9aa;
        }

        .footer-nav-links {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
        }

        .footer-link {
            color: #c0dbc0;
            font-size: 0.85rem;
        }

        @media (max-width: 720px) {
            .footer-bottom-content {
                flex-direction: column;
                text-align: center;
            }
            .footer-nav-links {
                justify-content: center;
            }
        }
        
        .main-footer .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.15);
            padding-top: 2rem;
        }
        
        .main-footer .footer-standards,
        .main-footer .footer-case {
            font-size: 0.75rem;
            opacity: 0.7;
            margin-top: 0.5rem;
        }
        
        .main-footer .footer-case a {
            color: #bcd9aa;
            text-decoration: none;
        }
        
        .main-footer .footer-case a:hover {
            text-decoration: underline;
        }
        
        .main-footer .footer-link-main {
            font-size: 1rem;
            font-weight: 500;
            color: #e8f0e8;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .main-footer .footer-link-main:hover {
            color: #bcd9aa;
            text-decoration: underline;
        }
        
        .main-footer .separator {
            color: rgba(255,255,255,0.4);
            margin: 0 0.8rem;
            font-size: 0.9rem;
        }
        
        .main-footer .footer-partner {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.5);
            margin-top: 1rem;
            letter-spacing: 0.3px;
        }
        
        .main-footer .footer-partner strong {
            color: rgba(255,255,255,0.7);
            font-weight: 500;
        }
        
        @media (max-width: 720px) {
            .main-footer .footer-nav-links {
                flex-direction: column;
                gap: 0.5rem;
                align-items: center;
            }
            .main-footer .separator {
                display: none;
            }
            .main-footer .footer-partner {
                text-align: center;
            }
        }
        /* Poprawka dla dropdown */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: var(--white);
    border-radius: 28px;
    margin-top: 0.5rem;
    border: 1px solid var(--gray-border);
    text-align: left;
}

.dropdown-content.show {
    max-height: 800px;
    overflow-y: auto;
}

.dropdown-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Poprawka dla FAQ - zapewnienie działania */
.faq-question {
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.2rem 1.5rem;
    border-top: 1px solid var(--gray-border);
}