
/* =========================================
   1. ZMIENNE
   ========================================= */
:root {
    --color-primary: #006837;
    --color-primary-dark: #003c29;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f4f4;
    --color-border: #dddddd;
    --color-bg-grey: #e6e6e6;
    
    --container-width: 1440px;
    --header-height: 100px;
}

body.high-contrast {
    --color-primary: #ffff00;
    --color-primary-dark: #ffcc00;
    --color-text: #ffffff;
    --color-text-light: #ffffff;
    --color-bg: #000000;
    --color-bg-alt: #1a1a1a;
    --color-border: #ffff00;
    --color-bg-grey: #000;
}

/* =========================================
   2. RESET & BAZA
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   3. DOSTĘPNOŚĆ (WCAG)
   ========================================= */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* =========================================
   4. UKŁAD & PASEK UE
   ========================================= */
.container {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
}

.eu-bar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.eu-logos {
    max-height: 90px;
    margin: 0 auto;
}

/* =========================================
   5. HEADER & NAWIGACJA
   ========================================= */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    padding: 4px;
    height: 80px;
    min-width: 100px;
}

.main-nav ul {
    display: flex;
    gap: 6rem;
}

.main-nav > ul > li > a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a:focus::after,
.main-nav > ul > li > a[aria-current="page"]::after {
    width: 100%;
}

.main-nav > ul > li > a:hover {
    color: var(--color-primary);
}

@media (max-width: 1300px) {
    .main-nav ul {
        gap: 25px; 
    }

    .main-nav > ul > li > a {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
    
    .main-nav ul {
        gap: 25px;
    }
}

/* =========================================
   6. DROPDOWN (PODMENU)
   ========================================= */
.main-nav li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 300px;
    background-color: var(--color-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 0 0 4px 4px;
    
    display: none !important;
    flex-direction: column;
    gap: 0 !important;
    padding: 0 !important;
    padding: 0 !important;
    z-index: 2000;
    border: 1px solid transparent;
}

.has-dropdown:hover .dropdown-menu {
    display: flex !important;
}

.dropdown-menu a {
    display: block;
    padding: 25px 20px;
    font-size: 1rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-bg-alt);
    transition: all 0.2s;

    text-transform: none;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    padding-left: 20px;
}

body.high-contrast .dropdown-menu a:hover {
    background-color: var(--color-primary);
    color: #000;
    font-weight: bold;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* =========================================
   7. PRZYCISK KONTRASTU
   ========================================= */
.btn-contrast {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-left: 20px;
    transition: 0.3s;
}

.btn-contrast:hover {
    background: var(--color-primary);
    color: #fff;
}

body.high-contrast .btn-contrast {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

body.high-contrast .btn-contrast:hover {
    background: var(--color-primary);
    color: #000;
}



@media (max-width: 768px) {
    .btn-contrast {
        margin-right: 35px;
    }
}

/* =========================================
   8. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    background: linear-gradient(
        to right, 
        var(--color-bg) 50%, 
        var(--color-bg-grey) 50%
    );
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.text-left { text-align: right; }
.text-right { text-align: left; }

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
    max-width: 400px;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text, .hero-text p {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    }

    .hero-image img {
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }

   .text-left, .text-right {
    text-align: center;
   } 

}



.hero-image img:hover {
    transform: scale(1.03);
}

/* =========================================
   SEKCJA KATEGORII
   ========================================= */

.categories-section {
    background-color: var(--color-primary-dark);
    padding-bottom: 5rem; 
    position: relative;
}

.categories-header {
    text-align: center;
    transform: translateY(-50%);
    margin-bottom: 3rem;
    z-index: 10;
}

.btn-full-offer {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 1rem 3.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1); 
    transition: background 0.3s, transform 0.2s;
}

.btn-full-offer:hover {
    background-color: #eee;
    transform: scale(1.05);
    color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.categories-grid {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: 100%; 
}

.product-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-height: 100%;
    width: auto;
}

.product-card h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-header {
        transform: translateY(-30%);
    }
}

body.high-contrast .categories-section {
    background-color: #000;
    border-top: 2px solid var(--color-primary);
}
body.high-contrast .btn-full-offer {
    background-color: #000;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
body.high-contrast .product-card {
    background-color: #000;
    border: 2px solid var(--color-primary);
}
body.high-contrast .product-card h3 {
    color: #fff;
}

body.high-contrast .categories-grid .product-card .card-image {
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid var(--color-primary);
}

/* =========================================
    SEKCJA INFO
   ========================================= */
.info-section {
    background-color: var(--color-bg);
    padding: 4rem 0;
    text-align: center;
}

.lead-text {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--color-text);
    max-width: 1000px; 
    margin: 0 auto; 
    line-height: 1.6;
}

/* =========================================
   SEKCJA KOLORY
   ========================================= */

.colors-section {
    background-color: var(--color-bg-grey); 
    padding: 5rem 0;
    text-align: left;
}

.section-title-box {
    background-color: var(--color-primary-dark);
    display: block;
    width: fit-content;
    padding: 20px 250px 20px max(20px, calc((100% - 1440px) / 2 + 20px));
    
    margin-bottom: 50px;
    margin-left: 0;
    border-radius: 0 5px 5px 0; 
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}

.section-title-box h2 {
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 3rem;
    letter-spacing: 1px;
    margin-left: 30px;
}

.colors-layout {
    display: flex;
    justify-content: center;
    gap: 250px;
}

.color-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    justify-content: space-between;
}

.color-group h3 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--color-text);
}

.swatches-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, min-content);
    gap: 25px;
    justify-content: center;
}

.note {
    font-size: 0.9rem;
    margin: 2rem 0 1rem 0;
    color: var(--color-text);
    font-style: italic;
}

.swatches-column-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
}


.swatches-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
}

.swatch-texture {
    width: 110px;
    height: 110px;
    
    border-radius: 4px;
    
    border: 4px solid #fff; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    
    position: relative;
    cursor: help;
    transition: transform 0.2s, box-shadow 0.2s;

    box-sizing: border-box;
    flex-shrink: 0;
}

.swatch-texture:hover {
    transform: scale(1.05); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    z-index: 10;
}



.swatch-texture::after {
    content: attr(data-tooltip);
    
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.swatch-texture:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 125%; 
}

.colors-on-request {
    margin-top: 40px;
}

.small-label {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.swatches-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.swatch-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

@media (max-width: 768px) {
    .colors-layout {
        flex-direction: column;
        gap: 50px;
    }
    
    .swatches-column-vertical {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .section-title-box{
        padding: 15px 30px 15px 20px;
        font-size: clamp(1.2rem, 2vw + 0.5rem, 1.8rem);
        text-wrap: balance;
        border-radius: 0;

    }
}

@media (max-width: 1460px) {
    .section-title-box {
        padding-left: 40px; 
    }
}

body.high-contrast .section-title-box {
    border: 2px solid var(--color-primary);
    background-color: #000;
}
body.high-contrast .section-title-box h2 {
    color: var(--color-primary);
}

body.high-contrast .swatch-texture {
    border-color: #fff; 
}

/* =========================================
    SEKCJA FORMATY
   ========================================= */

.formats-section {
    background-color: var(--color-bg);
    padding: 4rem 0;
    text-align: left;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 5rem;
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
}

.format-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--color-text);
}

.badge {
    background-color: var(--color-primary-dark); 
    color: #fff;
    font-weight: 600;
    padding: 4px 0; 
    width: 40px; 
    text-align: center;
    margin-right: 15px; 
    border-radius: 2px;
    display: inline-block;
    font-size: 0.9rem;
}

.formats-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 0;
    border-top: 1px solid #eee;
    
    align-items: flex-end;
    width: 100%;
    margin: 0;
}

.icon-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.icon-item img {
    margin-bottom: 1.5rem;
    width: auto;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.icon-item img.size-a4 {
    height: 180px; 
}

.icon-item img.size-a5 {
    height: 125px;
}

.icon-item img.size-c6 {
    height: 100px;
}

.icon-item:hover img {
    transform: translateY(-5px);
}

.icon-item p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--color-text);
}

.icon-item small {
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 300px;
    }
    
    .formats-icons {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
    }

    .icon-item img {
        margin-bottom: 0.5rem;
    }

    .format-row {
        margin-left: 4rem;
    }
}

body.high-contrast .badge {
    border: 2px solid #fff;
    background-color: #000;
    color: var(--color-primary);
}

body.high-contrast .icon-item img {
    filter: invert(1);
}

/* =========================================
   SEKCJA CECHY (Ciemna zieleń)
   ========================================= */

.features-section {
    background-color: var(--color-primary-dark); 
    padding: 6rem 0;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 4rem 6rem; 
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.feature-icon {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    
    background-color: #fff;
    border-radius: 30px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .features-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

body.high-contrast .features-section {
    background-color: #000;
    border-top: 2px solid var(--color-primary);
}


body.high-contrast .feature-icon {
    border: 3px solid var(--color-primary);
    background-color: #000;
}


body.high-contrast .feature-icon img {
    filter: invert(1);
}

/* =========================================
   SEKCJA FILTRATOR 
   ========================================= */

.finder-section {
    background-color: var(--color-bg-alt);
    padding: 5rem 0;
    border-top: 1px solid #ddd;
}

.finder-header {
    text-align: center;
    margin-bottom: 3rem;
}

.finder-header h2 {
    color: var(--color-primary-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.finder-header p {
    color: var(--color-text-light);
}

.finder-form {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.filter-group {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-group h3 {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.options-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.option-btn {
    position: relative;
    cursor: pointer;
}

.hidden-section {
    display: none;
    opacity: 0;
    pointer-events: none;
}

#tube-group {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
}

#tube-group.hidden-section {
    opacity: 0;
    max-height: 0;
    margin: 0;
}

.option-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-btn span {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: #fff;
    transition: all 0.2s ease;
    font-weight: 500;
}

.option-btn:hover span {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.option-btn input:checked + span {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 104, 55, 0.3);
    transform: translateY(-2px);
}

.finder-action {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-filter {
    background-color: var(--color-primary-dark);
    color: #fff;
    border: none;
    padding: 1rem 4rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-filter:hover {
    background-color: var(--color-primary);
}



@media (max-width: 768px) {
    .finder-form {
        padding: 1.5rem;
    }
    
    .options-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .option-btn span {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .btn-filter {
        width: 100%;
    }
}

body.high-contrast .finder-form {
    background-color: #000;
    border: 2px solid var(--color-primary);
}
body.high-contrast .option-btn span {
    background-color: #000;
    color: #fff;
    border-color: #fff;
}
body.high-contrast .option-btn input:checked + span {
    background-color: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    font-weight: bold;
}

/* =========================================
   STOPKA / FOOTER
   ========================================= */

.site-footer {
    background-color: #e5e5e5;
    color: #333;
    padding: 4rem 0 1rem 0;
    font-size: 1.1rem;
    border-top: 5px solid #fff;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hours-block {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.icon-box img {
    width: 30px;
    height: auto;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 40px;
}

.contact-icon {
    width: 30px;
    height: auto;
}

.footer-col a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-horizontal-nav {
    margin: 3rem 0;
    padding: 1.5rem 0;
    
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.footer-horizontal-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-horizontal-nav a {
    text-decoration: none;
    color: #444; 
    font-weight: 600; 
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.footer-horizontal-nav a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.interactive-map-container {
    width: 100%;
    height: 300px;
    
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden; 
    background-color: #eee;
}

.interactive-map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.map-text-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #333;
    text-decoration: underline;
}

.map-text-link:hover {
    color: var(--color-primary);
}

.map-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    font-size: 0.8rem;
    color: var(--color-primary);
    border-radius: 2px;
    font-weight: bold;
}

.footer-funds-banner {
    margin: 2rem 0;
    text-align: center;
}

.footer-funds-banner img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hours-block, .contact-row {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-horizontal-nav ul {
        flex-direction: column; /* Na telefonie jeden pod drugim */
        align-items: center;
        gap: 1rem;
    }
}

body.high-contrast .site-footer {
    background-color: #000;
    border-top: 2px solid var(--color-primary);
    color: #fff;
}
body.high-contrast .footer-col a {
    color: var(--color-primary);
}
body.high-contrast .map-link, 
body.high-contrast .footer-horizontal-nav {
    border-color: var(--color-primary);
}

body.high-contrast .footer-horizontal-nav a {
    color: var(--color-primary);
}
body.high-contrast .footer-horizontal-nav a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

body.high-contrast .interactive-map-container {
    border-color: var(--color-primary);
    filter: grayscale(100%) invert(100%);
}

/* =========================================
   RESPANSYWNOŚĆ (MOBILE)
   ========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
    .hero-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .hero-section {
        background: var(--color-bg-alt);
        padding: 3rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image { 
        order: -1; 
        margin-bottom: 2rem; 
        margin: 0 auto;
    }
    
    /* .text-left, .text-right { text-align: center; }

    .site-header { height: auto; padding: 10px 0; }
    .site-header .container { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 10px; }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        width: 100%;
        text-align: center;
    }
    
    .has-dropdown:hover .dropdown-menu { display: flex; } */
}


/* =========================================
   o-nas
   ========================================= */

.subpage-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subpage-hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.about-content-section {
    padding-bottom: 5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    color: var(--color-primary-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: var(--color-text);
    text-align: justify;
}

.about-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.check-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.check-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.check-list li::before {
    content: "✔";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 0 auto;
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}



@media (max-width: 768px) {
    .subpage-hero {
        height: 250px;
    }
    
    .subpage-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
}

.quote-section {
    background-color: var(--color-bg-alt);
    padding: 4rem 0;
    text-align: center;
    margin-top: 2rem;
    border-top: 4px solid var(--color-primary);
}

.quote-section blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary-dark);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- WYSOKI KONTRAST --- */
body.high-contrast .hero-overlay {
    background: rgba(0, 0, 0, 0.9);
}
body.high-contrast .quote-section {
    background-color: #000;
    border-color: var(--color-primary);
}

body.high-contrast .quote-section blockquote {
    color: var(--color-primary);
}

.eu-teaser-section {
    padding: 5rem 0;
    background-color: var(--color-bg);
    border-top: 1px solid #eee;
}

.eu-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 4rem;
    align-items: center;
}

.eu-text h2 {
    color: var(--color-primary-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.eu-text p {
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-eu-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
    transition: all 0.2s;
}

.btn-eu-more:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary-dark);
    transform: translateX(5px);
}

.eu-logos-big img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- RESPANSYWNOŚĆ --- */
@media (max-width: 768px) {
    .eu-content-wrapper {
        grid-template-columns: 1fr; 
        gap: 2rem;
        text-align: center;
    }
    
    .eu-logos-big {
        order: -1; 
    }
}

/* =========================================
   SUB-NAVIGACJA 
   ========================================= */
.offer-subnav {
    background-color: var(--color-bg);
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    /* position: sticky; top: var(--header-height); z-index: 900; */
}

.subnav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subnav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
    flex-wrap: wrap;
}

.subnav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s;
}

.subnav-links a:hover {
    color: var(--color-primary);
}

.search-widget {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-widget label {
    font-size: 0.9rem;
    font-weight: 600;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    width: 200px;
}

.search-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--color-bg);
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background-color: var(--color-bg-alt);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #eee;
    padding: 2px;
}

.search-result-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Responsywność */
@media (max-width: 1024px) {
    .subnav-container {
        flex-direction: column;
        gap: 15px;
    }
    .subnav-links {
        justify-content: center;
    }
}

/* =========================================
   SEKCJA NOWOŚCI (NEWS)
   ========================================= */

.news-section {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

body.high-contrast .news-section {
    background-color: #000;
}

/* =========================================
   Products layout
   ========================================= */

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
}

.product-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 20px;
    
    transition: box-shadow 0.3s;

    position: relative;
}

.product-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.prod-img {
    width: 40%;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    height: 180px;
}

.prod-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prod-info {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.prod-info h3 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.prod-info .desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-reset {
    align-self: flex-end;
    margin-top: auto;
    
    background-color: #f5f5f5;
    color: var(--color-text);
    padding: 5px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.btn-reset:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-reset::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* --- RESPANSYWNOŚĆ --- */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-item {
        flex-direction: column;
        text-align: center;
    }

    .prod-img, .prod-info {
        width: 100%;
    }

    .prod-info h3 {
        margin-top: 15px;
    }
    
    .btn-reset {
        align-self: center;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
}

body.high-contrast .product-item {
    background-color: #000000;
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

body.high-contrast .prod-img {
    background-color: #000000;
    border-right: 1px solid var(--color-primary);
}

body.high-contrast .prod-info h3 {
    color: var(--color-primary);
    border-bottom-color: #fff;
}

body.high-contrast .prod-info .desc {
    color: #ffffff;
}

body.high-contrast .btn-reset {
    background-color: #000000;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-weight: bold;
}

body.high-contrast .btn-reset:hover {
    background-color: var(--color-primary);
    color: #000000;
}

/*  ===============================
    PRODUCT PHP
    =============================== */

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
    position: relative;
}

.single-product-section > .container a {
    color: var(--color-text-light);
    text-decoration: none;
    margin: 1rem 0;
    display: inline-block;

}

.product-gallery {
    position: -webkit-sticky;
    position: sticky;
    top: 7rem;
    max-height: 200vh;
}

.product-gallery .main-image {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;

}

.main-image img {
    height: 100%;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: space-around;
    justify-items: stretch;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.category-badge {
    background: var(--color-bg-grey);
    padding: 5px 10px; border-radius: 4px;
    font-size: 0.8rem; text-transform: uppercase;
    color: var(--color-text-light);
}

.specs-table {
    margin: 20px 0;
}

.specs-table table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse; }

.specs-table th, .specs-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-text-light);
    text-align: left; 
}

.specs-table th {
    width: 40%;
    color: var(--color-text-light) !important;
    font-weight: normal;
}

.description ul, .product-details-grid ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.description li {
    margin-bottom: 5px;
}

.description ul ul {
    list-style-type: circle;
    margin-top: 5px;
}

.product-details-grid h3, 
.product-details-grid h1 {
    margin: 8px 0;
    color: var(--color-primary);
}

.color-item {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}

.door-variants-section {
    margin: 30px 0;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.variant-card {
    background-color: var(--color-bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.variant-img-wrapper {
    background-color: var(--color-bg-alt);
    padding: 1.4rem;
    text-align: center;
}

.variant-info {
    padding: 1rem;
}

.variant-info strong {
    font-size: 1.1rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
}

.variant-info span {
    color: var(--color-text-light);
}

.dimensions-section {
    margin: 10px 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin: 10px 0;
}

.module-card {
    text-align: center;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--color-bg);
}

.module-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: var(--color-primary);
}

.module-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.module-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.module-specs-table {
    width: 100%;
    font-size: 0.9em;
    border-collapse: separate;
    border-spacing: 0 5px;
}

.module-specs-table td {
    padding: 3px;
    text-align: left; 
}

.module-specs-table td:last-child {
    text-align: right;
    font-weight: bold;
}

.module-specs-table tr:nth-child(odd) {
    background-color: var(--color-bg-alt);
}

.addon-box {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--color-bg-alt); 
    border-left: 5px solid var(--color-primary);
    border-radius: 4px;
}

.addon-title {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.3em;
}

.addon-desc {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.addon-gallery {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.addon-img-wrapper {
    flex: 1;
    min-width: 200px; 
    background: var(--color-bg);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.addon-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}


@media (max-width: 1170px) {
    .product-details-grid { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
}

/*  ===============================
    OFFER JEDNORODZINNA    
    =============================== */

.category-header-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    gap: 3rem;
}

.header-icon {
    flex: 0 0 300px;
}
.header-icon img {
    max-width: 100%;
    height: auto;
    margin-left: 20rem;
}

.header-banner {
    flex: 0.5;
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 3rem 4rem;
    text-align: left;
    text-transform: uppercase;
}

.header-banner h1 {
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
}

.category-content-section {
    padding: 3rem 0;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 380px 1fr; 
    gap: 2rem;
    align-items: start;
}

.filter-box {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 2rem;
    text-align: left;
}

.filter-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #444;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 0.95rem;
}

.filter-group input {
    margin-right: 10px;
}

.btn-filter-apply {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn-filter-apply:hover {
    background: #fff;
    color: var(--color-primary-dark);
}

@media (max-width: 1080px) {
    .header-icon img{
        margin-left: 8rem;
    }
}

@media (max-width: 900px) {
    .category-header-split {
        flex-direction: column;
        text-align: center;
    }
    .header-banner {
        width: 100%;
        text-align: center;
    }
    
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-filter {
        order: -1;
    }

    .header-icon img{
        margin: 0 auto;
    }
}

body.high-contrast .header-banner,
body.high-contrast .filter-box {
    background-color: #000;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

body.high-contrast .header-icon {
    filter: invert(1);
}

body.high-contrast .filter-group h3 {
    color: #fff;
}

/* =========================================
   SEKCJA REALIZACJE (GALERIA)
   ========================================= */

.gallery-section {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 104, 55, 0.85);
    color: #fff;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.location-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

body.high-contrast .gallery-item {
    border: 2px solid var(--color-primary);
    height: auto;
    display: flex;
    flex-direction: column;
}

body.high-contrast .gallery-img-wrapper {
    height: 250px;
    border-bottom: 2px solid var(--color-primary);
}

body.high-contrast .gallery-img-wrapper img {
    filter: grayscale(100%);
}

body.high-contrast .gallery-overlay {
    position: static;
    opacity: 1;
    background: #000;
    color: var(--color-primary);
    height: auto;
    padding: 15px;
}

body.high-contrast .overlay-content {
    transform: none;
}

body.high-contrast .location-badge {
    border: 1px solid var(--color-primary);
    background: transparent;
}

/* =========================================
   OFFER SECTION
   ========================================= */

.order-section {
    background-color: var(--color-bg); 
    padding: 5rem 0;
    text-align: left;
}

.order-text {
    margin: 0 5rem;
}

.order-text h2 {
    color: var(--color-primary-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.btn-contact {
    display: block;
    width: fit-content;
    margin: 3rem auto;
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 1rem 3.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1); 
    transition: background 0.3s, transform 0.2s;
}

.btn-contact:hover {
    background-color: var(--color-bg-alt);
    transform: scale(1.05);
    color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* =========================================
   FUNDUSZE EUROPEJSKIE (strona)
   ========================================= */

.subpage-hero.small-hero {
    background-color: var(--color-primary-dark);
    color: #fff;
    text-align: center;
    background-image: none; 
}

.eu-project-section {
    padding: 4rem 0;
    background-color: #fff;
}


.project-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.project-title {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    font-weight: 700;
}

/* Treść główna */
.project-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.section-label {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--color-text);
    font-weight: 600;
}

.project-goals-list {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.project-goals-list li {
    margin-bottom: 0.8rem;
    padding-left: 10px;
}

.project-footer-info {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-primary);
}

.hashtags {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 2rem;
    display: flex;
    gap: 15px;
}

.finance-box {
    background-color: var(--color-bg-alt);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
}

.finance-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
    flex-wrap: wrap;
}

.finance-row .label {
    font-weight: 500;
}

.finance-row .amount {
    font-weight: 700;
}

.finance-row.highlight {
    color: var(--color-primary-dark);
    font-size: 1.2rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    .project-title {
        font-size: 1.4rem;
    }
    
    .project-content {
        padding: 0 10px;
    }
    
    .finance-row {
        flex-direction: column;
        gap: 5px;
    }
}

body.high-contrast .eu-project-section {
    background-color: #000;
}
body.high-contrast .finance-box {
    background-color: #000;
    border: 1px solid #fff;
    border-left: 5px solid var(--color-primary);
}
body.high-contrast .project-title {
    color: var(--color-primary);
}

/* =========================================
   STRONA KONTAKT
   ========================================= */

.contact-section {
    padding: 4rem 0;
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.company-address h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
    text-transform: uppercase;
}

.company-address {
    font-style: normal;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

.text-col strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
}

.text-col a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.text-col a:hover {
    color: var(--color-primary);
}

.map-wrapper {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 5px solid #fff;
    background: #eee;
}

.board-section {
    background-color: var(--color-bg-alt);
    padding: 4rem 0;
    text-align: center;
}

.board-member h3 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.members-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.member {
    display: flex;
    flex-direction: column;
}

.member a {
    color: var(--color-text-light);
}

.bank-info {
    margin-bottom: 4rem;
}

.account-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 10px 0;
    font-family: monospace;
}

.distributor-box {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ccc;
}

.distributor-box h4 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--color-text);
}

.distributor-box a {
    font-weight: bold;
    color: #0056b3;
}

.rodo-section {
    padding: 4rem 0;
    font-size: 0.9rem;
    color: #555;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.rodo-section h3, .rodo-section h4 {
    color: #000;
    margin-bottom: 1rem;
}

.rodo-content ol {
    margin-left: 20px;
    line-height: 1.6;
}

.rodo-content li {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .members-row {
        flex-direction: column;
        gap: 2rem;
    }
}

.rodo-list-main {
    margin-left: 20px;
    line-height: 1.6;
}

.rodo-list-main > li {
    margin-bottom: 15px;
    font-weight: 500; 
}

.rodo-list-main ol {
    margin-top: 10px;
    margin-left: 20px;
    font-weight: 400;
    color: var(--color-text-light); 
}

.rodo-list-main ol li {
    margin-bottom: 5px;
}

body.high-contrast .contact-section,
body.high-contrast .rodo-section {
    background-color: #000;
    color: #f5f5f5;
}
body.high-contrast .rodo-section h3,
body.high-contrast .rodo-section h4 {
    color: #ffcc00;
}

body.high-contrast .contact-icon {
    color: var(--color-primary);
}

body.high-contrast .map-wrapper {
    filter: invert(1) grayscale(1);
    border-color: var(--color-primary);
}

body.high-contrast .distributor-box a {
    color: #8cb4ff;
    text-decoration: underline;
}


/* --- HAMBURGER MENU (MOBILE) --- */

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}


@media (max-width: 900px) {
    
    .hamburger {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2001;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 2000;
    }

    .main-nav ul {
        background-color: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        
        display: none;
        flex-direction: column;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
    }

    .main-nav li a {
        display: flex;             
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 15px 0;           
        line-height: normal;
        font-size: 1.1rem;
    }

    .main-nav ul.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .dropdown-menu {
        display: none;
        background-color: #f9f9f9;
        box-shadow: none;
        border: none;
    }
    
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .site-header {
        position: relative;
    }

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 80px;
    }

    .logo {
        z-index: 2001;
        position: relative;
    }

   /* .logo img {
        height: 35px;
        width: auto;
    } */

    .btn-contrast {
        margin-left: auto;
        z-index: 2001;
    }

    .dropdown-menu li a {
        padding: 12px 0;
        font-size: 1rem;
    }

}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

body.high-contrast .hamburger .bar {
    background-color: var(--color-primary);
    border: 1px solid #000;
}
body.high-contrast .main-nav ul.active {
    background-color: #000;
    border-bottom: 2px solid var(--color-primary);
}