﻿ 
   /* ==========================================================================
   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);
}
.captionTitle { font-size: 4.5rem; text-transform: uppercase; font-weight: 900; margin-bottom: 15px; }
.header-seo-text { font-size: 1.8rem; max-width: 700px; color: #ccc; }

.news-page .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* ==========================================================================
   HERO SECTION (Nagłówek pod Headerem)
   ========================================================================== */

.news-hero {
    width: 100%;
    background-color: var(--antracyt);
    padding: 80px 0;
    text-align: center;
}

.news-hero h2 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
}

.news-hero p {
    font-size: 1.8rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   STRUKTURA ARTYKUŁÓW (Grid & Tekst)
   ========================================================================== */

.news-item-detail {
    padding: 100px 0;
    background: var(--white);
}

.bg-light {
    background: var(--bg-light);
}

.grid-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.news-text, .news-image {
    flex: 1;
    min-width: 320px;
}

.news-text h3 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--antracyt);
    margin-bottom: 15px;
    font-weight: 800;
}

.news-text .lead {
    font-size: 1.8rem;
    color: var(--corten);
    font-weight: 600;
    margin-bottom: 25px;
}

/* Tagi techniczne pod SEO */
.tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(184, 115, 51, 0.1);
    color: var(--corten);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.tech-tag.eco {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

/* ==========================================================================
   SPECYFIKACJA TECHNICZNA I MODUŁY AI
   ========================================================================== */

.tech-specs {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spec-line {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.45rem;
    line-height: 1.5;
}

.spec-line:last-child { border-bottom: none; }

.spec-line strong {
    width: 170px;
    flex-shrink: 0;
    color: var(--antracyt);
}

.spec-line span {
    flex: 1;
    color: #4a5568;
}

/* Niebieski Box AI (SGE Readiness) */
.ai-info-box {
    background: #f0f7ff;
    border-left: 5px solid #3b82f6;
    padding: 20px;
    margin-top: 35px;
    display: flex;
    gap: 15px;
    border-radius: 0 10px 10px 0;
}

.ai-info-box i {
    color: #3b82f6;
    font-size: 2rem;
}

.ai-info-box span {
    font-size: 1.4rem;
    color: #1e40af;
    line-height: 1.5;
}

/* Boxy ze statystykami */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 3px solid var(--corten);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.stat-box strong {
    display: block;
    font-size: 2.8rem;
    color: var(--antracyt);
}

.stat-box span {
    font-size: 1.2rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   ELEMENTY GRAFICZNE (Zdjęcia & Stamp)
   ========================================================================== */

.news-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.news-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.news-image:hover img {
    transform: scale(1.03);
}

.patent-stamp {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: var(--corten);
    color: white;
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(184, 115, 51, 0.4);
    z-index: 2;
}

/* ==========================================================================
   RESPONSYWNOŚĆ (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 992px) {
    .grid-2 {
        gap: 40px;
    }
    
    .news-item-detail.reverse .grid-2 {
        flex-direction: column-reverse;
    }
    
    .news-item-detail {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .spec-line {
        flex-direction: column;
    }
    
    .spec-line strong {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .news-hero h2 {
        font-size: 2.5rem !important;
    }
}

/* ==========================================================================
   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);
    }
    
