﻿/* ==========================================================================
   1. ZMIENNE I RESET
   ========================================================================== */
:root {
    --corten: #b87333;
    --corten-hover: #d2691e;
    --antracyt: #2a2a2a;
    --black: #1a1a1a;
    --white: #ffffff;
    --bg-light: #f4f4f4;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background: var(--white);
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAWIGACJA I HEADER
   ========================================================================== */
.main-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-dark.webp') center/cover no-repeat;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.navigation-bar { background: url('../img/tlonav.jpg') center/cover no-repeat; position: fixed; top: 0; width: 100%; z-index: 2000; border-bottom: 2px solid rgba(255,255,255,0.2); }

.hamburger {
    display: none; /* Ukrywamy hamburger na komputerach */
}
.header-content {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; height: 90px;
}

.logo img { max-height: 60px; }

/* Menu Desktop */
.main-ul { display: flex; list-style: none; }
.main-ul li { position: relative; }
.main-ul li a {
    color: var(--white); text-decoration: none; padding: 35px 20px;
    display: block; font-weight: 700; font-size: 1.3rem; text-transform: uppercase;
    transition: var(--transition);
}

.main-ul li a:hover, .main-ul li.selected > a { color: var(--corten); }

/* Dropdown */
.dropdown {
    position: absolute; top: 90px; left: 0; background: var(--black);
    min-width: 220px; display: none; list-style: none; border-top: 3px solid var(--corten);
}
.dropdown li a { padding: 15px 20px; text-transform: none; border-bottom: 1px solid #222; }
.has-sub:hover .dropdown { display: block; }

/* Hero Text */
.hero-text-container {
    max-width: 1200px; margin: 150px auto 0; padding: 0 20px; color: var(--white);
}
.hero-text-container .captionTitle h1{ font-size: clamp(2.8rem, 5vw, 4.2rem) !important; font-weight: 900; line-height: 1.1; margin-bottom: 20px; } .hero-text-container .header-seo-text { font-size: 1.5rem !important; max-width: 600px; line-height: 1.6; }

/* ==========================================================================
/* ==========================================================================
   SEKCJA SPECJALNA: OBRZEŻA THEME (PODSTRONA PRODUKTOWA)
   ========================================================================== */
/* ==========================================================================
   OBRZEŻA THEME - NAPRAWIONE STYLE
   ========================================================================== */

main.obrzeza-theme { 
    width: 95% !important; 
    max-width: 1400px !important; 
    margin: 40px auto !important; 
}

/* SIATKA PRODUKTÓW */
.obrzeza-theme .product-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.obrzeza-theme .product-card {
    position: relative; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #fff;
    text-align: center;
    padding-bottom: 15px;
}

.obrzeza-theme .img-container { aspect-ratio: 1/1; overflow: hidden; }
.obrzeza-theme .product-card img { width: 100% !important; height: 100% !important; object-fit: cover; transition: 0.5s; }
.obrzeza-theme .product-card:hover img { transform: scale(1.08); }

/* ODZNAKA BESTSELLER */
.obrzeza-theme .badge-bestseller {
    position: absolute; top: 15px; right: -5px; background: var(--corten); color: #fff;
    padding: 5px 15px; font-weight: 800; z-index: 10; border-radius: 2px 0 0 2px;
}
/* ==========================================================================
   STYL PRZYCISKU: WYBIERZ KOLOR (.btn-card)
   ========================================================================== */

.obrzeza-theme .btn-card {
    display: block;                /* Zajmuje całą dostępną szerokość wewnątrz figcaption */
    text-align: center;
    background: var(--antracyt);   /* Podstawowy elegancki kolor */
    color: var(--white) !important;
    text-decoration: none;
    padding: 14px 20px;
    margin-top: 15px;
    border-radius: 4px;            /* Spójne z Twoim systemem montażu */
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    border: 2px solid var(--antracyt);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* EFEKT PO NAJECHANIU MYSZKĄ */
.obrzeza-theme .btn-card:hover {
    background: var(--corten);     /* Zmiana na kolor miedzi/corten */
    border-color: var(--corten);
    transform: translateY(-3px);   /* Delikatne uniesienie */
    box-shadow: 0 6px 15px rgba(184, 115, 51, 0.3); /* Subtelna poświata w kolorze corten */
    letter-spacing: 1px;           /* Lekkie rozszerzenie liter przy hoverze */
}

/* EFEKT KLIKNIĘCIA */
.obrzeza-theme .btn-card:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* DODATKOWE DOPASOWANIE DLA MOBILE */
@media (max-width: 480px) {
    .obrzeza-theme .btn-card {
        padding: 12px 15px;
        font-size: 1.2rem;
    }
}

/* JAKOŚĆ I CERTYFIKAT */
/* ==========================================================================
   NOWY UKŁAD: 3 PUNKTY + 3 CERTYFIKATY (WYSKALOWANE)
   ========================================================================== */

/* ==========================================================================
   WYSKALOWANE CERTYFIKATY (FIX)
   ========================================================================== */

.quality-badges-section {
    background: #fff;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
}

/* Używamy Twojej klasy z HTML: quality-info-grid */
.quality-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.quality-item-v2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.badge-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* SKALOWANIE KONTENERA ZDJĘCIA */
.mini-cert {
    width: 100%;
    max-width: 200px; /* Szerokość certyfikatu */
    height: 250px;    /* STAŁA WYSOKOŚĆ - to wyrówna zdjęcia w pionie */
    margin: 10px auto 0;
    border: 5px solid #f9f9f9;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* SKALOWANIE SAMEGO OBRAZKA */
.mini-cert img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* Pokaże cały dokument bez ucinania */
    display: block;
    padding: 5px; /* Oddech od ramek */
}

.quality-item-v2 p {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #666;
    min-height: 50px; /* Trzyma równe odstępy nad zdjęciami */
    margin-bottom: 10px;
}

.quality-icon {
    min-width: 50px;
    height: 50px;
    background: var(--antracyt);
    color: var(--corten);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 6px;
    border-bottom: 3px solid var(--corten);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .quality-info-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .mini-cert {
        max-width: 250px;
        height: 300px;
    }
}


/* MONTAŻ GRID */
.obrzeza-theme .montaz-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px 0;
}
.obrzeza-theme .step-card { position: relative; text-align: center; }
.obrzeza-theme .step-badge {
    position: absolute; top: 10px; left: 10px; background: var(--corten); color: #fff;
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.obrzeza-theme .step-card img { width: 100% !important; border-radius: 8px; margin-bottom: 10px; }

/* PRZYCISK PULSUJĄCY */
.obrzeza-theme .cta-action { text-align: center; padding: 40px 0; }
.obrzeza-theme .btn-obrzeza {
    display: inline-block; background: var(--corten) !important; color: #fff !important;
    padding: 20px 50px; font-weight: 900; text-decoration: none; border-radius: 4px;
    text-transform: uppercase; animation: pulse-wave 2s infinite;
}

@keyframes pulse-wave {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(190, 107, 65, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(190, 107, 65, 0); }
    100% { transform: scale(1); }
}

/* MOBILKI */
@media (max-width: 992px) {
    .obrzeza-theme .product-showcase { grid-template-columns: repeat(2, 1fr); }
    .obrzeza-theme .montaz-grid { grid-template-columns: 1fr; }
    .obrzeza-theme .quality-container { flex-direction: column; text-align: center; }
    .obrzeza-theme .quality-item { flex-direction: column; align-items: center; }
}
/* ==========================================================================
   TABELA MODELI I CEN - INNOVAL
   ========================================================================== */

.price-list-section {
    margin: 80px 0;
}

.table-container {
    width: 100%;
    overflow-x: auto; /* Kluczowe: pozwala przesuwać tabelę palcem na telefonie */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    margin-top: 30px;
}

.obrzeza-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Gwarantuje, że dane się nie ścisną za mocno */
    text-align: left;
}

/* NAGŁÓWEK TABELI */
.obrzeza-table thead tr {
    background: var(--antracyt);
    color: var(--white);
}

.obrzeza-table th {
    padding: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* KOMÓRKI TABELI */
.obrzeza-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.5rem;
    color: #444;
    vertical-align: middle;
}

/* STYLIZACJA CENY */
.obrzeza-table td strong {
    color: var(--corten);
    font-size: 1.8rem;
    font-weight: 900;
}

/* EFEKT WIERSZY */
.obrzeza-table tbody tr:nth-child(even) {
    background-color: #fafafa; /* Delikatne pasy dla lepszej czytelności */
}

.obrzeza-table tbody tr:hover {
    background-color: #fff9f5; /* Subtelny kolor corten przy najechaniu */
}

/* OSTATNI WIERSZ */
.obrzeza-table tr:last-child td {
    border-bottom: none;
}

/* DODATKOWE OZDOBNIKI DLA MODELI */
.obrzeza-table td:first-child {
    font-weight: 700;
    color: var(--antracyt);
}

/* RESPONSYWNOŚĆ (TYLKO DLA TABELI) */
@media (max-width: 768px) {
    .obrzeza-table td, .obrzeza-table th {
        padding: 15px;
        font-size: 1.4rem;
    }
    .obrzeza-table td strong {
        font-size: 1.6rem;
    }
}




SEKCJA GALERII - REALIZACJE ========================================================================== */ .gallery-section { margin: 80px 0; padding: 0 10px; } .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); /* 4 kolumny na desktopie */ gap: 20px; margin-top: 40px; } .gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; /* Stałe proporcje zdjęć (elegancki prostokąt) */ box-shadow: 0 4px 15px rgba(0,0,0,0.1); background: #eee; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .gallery-item a { display: block; width: 100%; height: 100%; } .gallery-item img { width: 100%; height: 100%; object-fit: cover; /* Wypełnia ramkę bez deformacji */ display: block; transition: filter 0.3s ease, transform 0.5s ease; } /* EFEKTY HOVER */ .gallery-item:hover { transform: translateY(-8px); /* Lekkie uniesienie */ box-shadow: 0 12px 25px rgba(0,0,0,0.15); } .gallery-item:hover img { transform: scale(1.1); /* Delikatne zbliżenie zdjęcia */ filter: brightness(1.1); } /* Nakładka z ikonką lupy (opcjonalnie, dla lepszego UX) */ .gallery-item::after { content: '\f00e'; /* Ikona lupy FontAwesome */ font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 2.5rem; opacity: 0; transition: 0.3s; pointer-events: none; text-shadow: 0 2px 10px rgba(0,0,0,0.5); } .gallery-item:hover::after { opacity: 1; } /* RESPONSYWNOŚĆ GALERII */ @media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */ } } @media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; /* 1 kolumna na małych telefonach */ gap: 15px; } .gallery-item { aspect-ratio: 16 / 9; /* Inne proporcje na mobile, żeby zdjęcia były większe */ } }

/* ==========================================================================
   5. FOOTER I IKONY
   ========================================================================== */
.main-footer { background: var(--black); color: #999; padding: 60px 0 0; margin-top: 100px; }
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px 40px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
}
.footer-column h3 { color: var(--white); margin-bottom: 20px; border-left: 3px solid var(--corten); padding-left: 15px; }

.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-icon {
    width: 40px; height: 40px; background: #333; color: white;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; border-radius: 50%; transition: 0.3s;
}
.social-icon:hover { background: var(--corten); transform: translateY(-3px); }

.footer-bottom { background: #111; padding: 20px; text-align: center; font-size: 1.2rem; }

/* ==========================================================================
   6. RWD (MOBILNE)
   ========================================================================== */
@media (max-width: 1100px) {
    .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .hamburger span { width: 30px; height: 3px; background: white; transition: 0.3s; }
   .hamburger { 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer; 
        z-index: 2100; /* Musi być wyżej niż nav-menu */
        padding: 10px;
        position: relative;
    }

    .hamburger span { 
        width: 30px; 
        height: 3px; 
        background: white; /* Kolor kresek gdy menu jest zamknięte */
        transition: all 0.3s ease-in-out; 
        display: block;
        transform-origin: center;
    }
    
    /* KLUCZ: Zmiana koloru na czarny po otwarciu, żeby widzieć krzyżyk na białym tle menu */
    .hamburger.active span {
        background: #000; 
    }

    /* Tworzenie krzyżyka (X) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); padding-top: 100px; transition: 0.4s; z-index: 1999;
    }
    .nav-menu.active { right: 0; box-shadow: -5px 0 15px rgba(0,0,0,0.3); }
    .main-ul { flex-direction: column; }
    .main-ul li a { color: var(--black); padding: 15px 30px; border-bottom: 1px solid #eee; }
    
    .dropdown { position: static; display: none; background: #f9f9f9; }
    
    .product-row, .product-row.reverse { grid-template-columns: 1fr; gap: 30px; }
    .info-grid { grid-template-columns: 1fr; }
}
/* Pokazywanie submenu na mobile po kliknięciu */
    .nav-menu .has-sub.open .dropdown {
        display: block !important;
        width: 100%;
    }
/* Profesjonalna strzałka V przy submenu */
    .has-sub > a::after {
        content: "\f078"; /* Kod ikony chevron-down w FontAwesome */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1rem;
        margin-left: 8px;
        display: inline-block;
        transition: transform 0.3s ease; /* Animacja obrotu */
    }

    /* Obrót strzałki po otwarciu menu */
    .has-sub.open > a::after {
        transform: rotate(180deg);
        color: var(--corten);
    }
    
