/* Plik: style.css */

/* ==========================================================================
   1. IMPORT FONTÓW I ZMIENNE GLOBALNE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --bg-main: #FFFFFF;
    --bg-section: #F9F9F9;
    --text-main: #333333;
    --text-light: #FFFFFF;
    --accent-primary: #FFA500;
    --accent-hover: #E69500;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* ==========================================================================
   2. GLOBALNE USTAWIENIA BAZOWE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    /* Usunięto overflow-x: hidden, które psuło animacje */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 60px; line-height: 1.3; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }

p { margin-bottom: 15px; }

a {
    text-decoration: none;
    color: var(--accent-primary);
}

/* ==========================================================================
   3. GLOBALNE KOMPONENTY (Przyciski, Nagłówek, Stopka)
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover { background-color: var(--accent-hover); }

/* --- Nagłówek --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 30px; }
.nav-links a { color: var(--text-main); font-weight: 600; position: relative; padding-bottom: 5px; }
.nav-links a.active::after, .nav-links a:hover::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--accent-primary); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--text-main); transition: all 0.3s ease; }

/* --- Stopka --- */
footer { background-color: var(--text-main); color: var(--text-light); padding: 60px 0; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h3 { color: var(--text-light); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-light); opacity: 0.8; transition: opacity 0.3s ease; }
.footer-col ul a:hover { opacity: 1; }

.logo-footer img { filter: brightness(0) invert(1); margin-bottom: 15px; }

.social-icons a { display: inline-block; margin-right: 15px; font-size: 1.5rem; color: var(--text-light); opacity: 0.8; transition: 0.3s; }
.social-icons a:hover { opacity: 1; color: var(--accent-primary); }

/* ==========================================================================
   4. ELEMENTY STRONY GŁÓWNEJ (index)
   ========================================================================== */

/* --- Sekcja Hero (Wideo w tle) --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-light); padding: 0 20px; overflow: hidden; }
#hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -2; transform: translateX(-50%) translateY(-50%); object-fit: cover; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: -1; }
.hero-content { max-width: 800px; margin-left: 30px; }
.hero-content h1 { color: var(--text-light); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: #FFFFFF; }
.hero-content .btn { margin: 0 10px; }

/* --- Sekcja Usług --- */
#services { background-color: var(--bg-section); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { background-color: var(--bg-main); padding: 40px; text-align: center; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0,0,0,0.1); }
.service-card img { height: 60px; margin-bottom: 20px; }

/* --- Sekcja CTA --- */
.cta { background-color: var(--accent-primary); color: var(--text-light); text-align: center; }
.cta h2 { color: var(--text-light); }
.cta .btn { background-color: var(--text-light); color: var(--accent-primary); }

/* ==========================================================================
   5. STRONA OFERTY (oferta) - PRZYWRÓCONE!
   ========================================================================== */

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.offer-tile {
    height: 250px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-tile::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: background 0.3s ease;
    z-index: 1;
}

.offer-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.offer-tile:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}

.offer-tile h3 {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   6. KAFELKI PRODUKTÓW I REALIZACJI (Portfolio)
   ========================================================================== */

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-top: 20px; }
.portfolio-item { position: relative; display: block; height: 300px; border-radius: 15px; overflow: hidden; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 70%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 1; pointer-events: none; }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; opacity: 1; background: transparent; transition: bottom 0.3s ease; }
.portfolio-overlay h3 { color: #ffffff; font-size: 1.6rem; font-weight: 800; margin: 0; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); text-align: left; }
.portfolio-overlay p { color: #ddd; font-size: 0.95rem; margin-top: 5px; margin-bottom: 0; text-align: left; max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease; }
.portfolio-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay p { max-height: 100px; opacity: 1; margin-top: 10px; }
.portfolio-item:hover .portfolio-overlay { bottom: 10px; }

/* Filtry galerii */
.filter-buttons { text-align: center; margin-bottom: 40px; }
.filter-btn { margin: 5px; background: none; border: 2px solid var(--accent-primary); color: var(--accent-primary); }
.filter-btn.active, .filter-btn:hover { background: var(--accent-primary); color: var(--text-light); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { display: block; transition: transform 0.3s ease, opacity 0.3s ease; }
.gallery-item.hide { transform: scale(0.8); opacity: 0; width: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }
.gallery-item img { width: 100%; height: auto; border-radius: 10px; }

/* ==========================================================================
   7. PODSTRONY BAZOWE (Hero, Intro, Ikony)
   ========================================================================== */

/* --- Uniwersalny nagłówek podstron --- */
.hero-subpage { min-height: 60vh; position: relative; display: flex; align-items: center; justify-content: center; color: var(--text-light); padding: 100px 20px; background-size: cover; background-position: center; background-color: #000000; z-index: 1; }
.hero-subpage::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); z-index: -1; }
.hero-subpage .hero-content { position: relative; z-index: 2; max-width: 800px; text-align: center; margin: 0 auto; }
.hero-subpage h1, .hero-subpage p { color: #FFFFFF !important; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* --- Układ Tekst + Obrazek --- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-intro img { width: 100%; border-radius: 10px; }

/* --- Lista Ikon --- */
.icon-list { list-style: none; padding-left: 0; }
.icon-list li { font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: flex-start; }
.icon-list i { color: var(--accent-primary); margin-right: 15px; font-size: 1.3rem; margin-top: 5px; }

/* --- Boxy O Nas / Korzyści --- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.value-card { background-color: var(--bg-section); padding: 40px 30px; border-radius: 15px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border-bottom: 3px solid transparent; }
.value-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 3px solid var(--accent-primary); background-color: #fff; }
.value-card .icon-box { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 20px; background-color: #fff; width: 80px; height: 80px; line-height: 80px; border-radius: 50%; margin: 0 auto 20px auto; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* ==========================================================================
   8. STRONA O NAS (Specyficzne)
   ========================================================================== */

.text-highlight { color: var(--accent-primary); }
.highlight-marker { position: relative; z-index: 1; font-weight: bold; }
.highlight-marker::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 8px; background-color: rgba(255, 165, 0, 0.3); z-index: -1; }
.lead { font-size: 1.15rem; margin-bottom: 25px; color: #555; }
.about-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; padding: 20px; }
.about-image-wrapper img { position: relative; z-index: 2; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 100%; }
.deco-square { position: absolute; top: 0; right: 20px; width: 200px; height: 200px; background-color: var(--accent-primary); opacity: 0.15; border-radius: 10px; z-index: 1; transform: rotate(10deg); }

/* Oś czasu */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--accent-primary); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; background-color: var(--bg-main); border: 4px solid var(--accent-primary); top: 25px; border-radius: 50%; z-index: 1; }
.timeline-item.left::after { right: -12px; }
.timeline-item.right::after { left: -12px; }
.timeline-content { padding: 20px 30px; background-color: var(--bg-section); border-radius: 6px; }

/* Klienci (Slider) */
.clients-section { padding: 80px 0; overflow: hidden; background-color: var(--bg-main); }
.logo-slider { width: 100%; position: relative; display: flex; align-items: center; }
.logo-track { display: flex; animation: scrollLogos 40s linear infinite; flex-wrap: nowrap; }
.logo-slide { height: 70px; padding: 0 40px; flex-shrink: 0; }
.logo-slide img { height: 100%; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease; }
.logo-slide img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes scrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.logo-slider:hover .logo-track { animation-play-state: paused; }

/* ==========================================================================
   9. STRONA PRODUKTU (produkt.php)
   ========================================================================== */

.product-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.main-image-box { width: 100%; height: 400px; background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }
.main-image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.thumbnails { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.thumb-img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; border: 2px solid transparent; }
.thumb-img:hover, .thumb-img.active { opacity: 1; border-color: var(--accent-primary); }
.product-details h1 { font-size: 2.5rem; margin-bottom: 10px; text-align: left; }
.price-tag { font-size: 1.5rem; color: #555; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.price-tag span { color: var(--accent-primary); font-weight: 700; font-size: 2rem; margin-left: 10px; }
.realization-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.realization-tile { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; }
.realization-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.realization-tile:hover img { transform: scale(1.1); }
.realization-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; }
.realization-tile:hover .realization-overlay { opacity: 1; }
.realization-overlay i { color: white; font-size: 2rem; }
/* --- BREADCRUMBS (Nawigacja okruszkowa) --- */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #777;
}

.breadcrumbs a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs .divider {
    margin: 0 10px;
    font-size: 0.8rem;
    color: #ccc;
}

.breadcrumbs span {
    color: var(--accent-primary);
    font-weight: 600;
}

/* --- GWARANCJE (Trust Badges) --- */
.trust-badges {
    display: flex;
    gap: 25px;
    margin-top: 35px;
    border-top: 1px solid #eee;
    padding-top: 25px;
    flex-wrap: wrap;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
    font-weight: 600;
}

.trust-badges .badge i {
    color: var(--accent-primary);
    font-size: 1.3rem;
}

/* ==========================================================================
   10. ELEMENTY SPECJALNE PODSTRON (Tabele, Statystyki, Slidery)
   ========================================================================== */

/* --- Tabela Porównawcza (social.php) --- */
.table-responsive { overflow-x: auto; margin-top: 60px; padding: 20px 0; }
.table-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--text-main); }
.pricing-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; background-color: var(--bg-main); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center; }
.pricing-table thead { background-color: var(--text-main); color: var(--text-light); }
.pricing-table th { padding: 25px 20px; font-size: 1.2rem; font-family: var(--font-heading); font-weight: 700; border-bottom: 4px solid var(--accent-primary); }
.pricing-table th:first-child { background-color: #222; border-right: 1px solid rgba(255,255,255,0.1); }
.pricing-table tbody tr { transition: background-color 0.3s ease, transform 0.2s ease; }
.pricing-table tbody tr:hover { background-color: rgba(255, 165, 0, 0.05); transform: scale(1.01); box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; z-index: 10; }
.pricing-table td { padding: 20px; border-bottom: 1px solid #eee; border-right: 1px solid #eee; font-size: 0.95rem; vertical-align: middle; }
.pricing-table td:last-child { border-right: none; }
.pricing-table .feature-col { background-color: var(--bg-section); font-weight: bold; text-align: left; color: #444; border-right: 2px solid #ddd; }
.pricing-table .price-row td { background-color: #fafafa; }
.pricing-table .price-row td:not(.feature-col) { font-size: 1.5rem; font-weight: 800; color: var(--accent-primary); padding: 30px 20px; }
.additional-services { text-align: left; }
.additional-services ul { list-style: none; padding: 0; margin: 0; }
.additional-services li { margin-bottom: 8px; font-size: 0.9rem; display: flex; align-items: center; }
.additional-services li i { color: var(--accent-primary); margin-right: 10px; font-size: 0.8rem; }

/* --- Statystyki z licznikiem (samochody.php) --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.stat-box { padding: 20px; }
.stat-icon { font-size: 3.5rem; margin-bottom: 15px; color: var(--text-light); opacity: 0.9; }
.stat-number { font-size: 4rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; margin-bottom: 5px; text-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.stat-label { font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

/* --- Wgrywanie Pliku (samochody.php) --- */
.upload-form { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.file-upload-wrapper { position: relative; border: 2px dashed #ccc; border-radius: 8px; padding: 40px 20px; text-align: center; background-color: #fcfcfc; transition: all 0.3s ease; cursor: pointer; }
.file-upload-wrapper:hover { border-color: var(--accent-primary); background-color: #fffaf0; }
.file-upload-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon { display: block; font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 15px; }
.upload-text { font-weight: 600; color: var(--text-main); display: block; }

/* --- Slider Przed i Po --- */
.before-after-slider { position: relative; width: 100%; max-width: 700px; margin: 0 auto; overflow: hidden; border-radius: 10px; }
.before-image, .after-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.after-image { width: 50%; }
.slider-handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 4px; height: 100%; background-color: var(--bg-main); cursor: ew-resize; z-index: 10; }
.slider-handle::before { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--bg-main); color: var(--accent-primary); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 0 10px rgba(0,0,0,0.3); }

/* --- Banner Slider --- */
.banner-slider-section { width: 100%; margin-bottom: 20px; background: #000; }
.banner-slider { position: relative; width: 100%; max-height: 500px; overflow: hidden; }
.slide { display: none; width: 100%; }
.slide.active { display: block; animation: fadeEffect 1s; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prev-slide, .next-slide { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0; background-color: rgba(0,0,0,0.3); border: none; }
.next-slide { right: 0; border-radius: 3px 0 0 3px; }
.prev-slide:hover, .next-slide:hover { background-color: rgba(0,0,0,0.8); }
@keyframes fadeEffect { from {opacity: .4} to {opacity: 1} }

/* ==========================================================================
   11. KONTAKT I ANIMACJE
   ========================================================================== */

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.contact-info p { margin-bottom: 20px; }
.contact-info i { color: var(--accent-primary); margin-right: 10px; width: 20px; text-align: center; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: var(--font-body); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-primary); }
.error-message { color: red; font-size: 0.9rem; margin-top: 5px; }

/* Animacje wjazdu (Observer) */
.animate { opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate.visible { opacity: 1; transform: translateY(0); }

/* --- COOKIE BANNER --- */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background-color: var(--bg-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 20px;
    z-index: 9999;
    border-left: 4px solid var(--accent-primary);
    font-family: var(--font-body);
    transition: opacity 0.3s ease;
}

#cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    width: 100%;
}

.cookie-buttons .btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid #ccc;
}

.cookie-buttons .btn-outline:hover {
    background-color: #f4f4f4;
    color: var(--text-main);
}

/* ==========================================================================
   14. KOSZYK WYCEN W NAGŁÓWKU
   ========================================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px; /* Odstęp między koszykiem a hamburgerem */
}

.cart-icon {
    position: relative;
    color: var(--text-main);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cart-icon:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    background-color: var(--accent-primary);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid #fff; /* Biała obwódka dla lepszego kontrastu */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- GLOBALNY MODAL STATUSU WYSYŁKI --- */
#status-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); display: none; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; transition: opacity 0.3s ease;
}
#status-modal.visible { opacity: 1; }
.status-modal-content {
    background: #fff; padding: 40px 30px; border-radius: 15px;
    text-align: center; max-width: 400px; width: 90%;
    transform: translateY(20px); transition: transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
#status-modal.visible .status-modal-content { transform: translateY(0); }
.status-icon { font-size: 4.5rem; margin-bottom: 20px; }
.status-icon.success { color: #4BB543; }
.status-icon.error { color: #ff4d4d; }

/* Dostosowanie odstępów na telefonach */
@media (max-width: 768px) {
    .header-actions {
        gap: 15px;
    }
    .cart-icon {
        font-size: 1.3rem; /* Ciut mniejsza ikona na małych ekranach */
    }
}

/* Wersja mobilna banera */
@media (max-width: 480px) {
    #cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 15px 15px 0 0;
        border-left: none;
        border-top: 4px solid var(--accent-primary);
    }
}

/* ==========================================================================
   12. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */

/* Ekrany średnie (Tablety) */
@media (max-width: 768px) {
    /* Typografia i odstępy */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 40px;}
    section { padding: 50px 0; }
    .hero-subpage { min-height: 50vh; padding-top: 60px; padding-bottom: 60px; }

    /* Układy kolumnowe - zamiana na jedną kolumnę */
    .about-intro, 
    .contact-wrapper, 
    .product-wrapper { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }

    .portfolio-grid,
    .offer-grid { 
        grid-template-columns: 1fr; 
    }

    .portfolio-item { height: 250px; }
    .portfolio-overlay h3 { font-size: 1.4rem; }
    .portfolio-overlay p { max-height: 100px; opacity: 1; margin-top: 5px; }

    /* Nawigacja Mobilna */
    .nav-links {
        position: fixed; top: 80px; right: -100%;
        width: 100%; height: calc(100vh - 80px);
        background-color: var(--bg-main);
        flex-direction: column; align-items: center; padding-top: 50px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.nav-active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .hamburger { display: flex; }
    .hamburger.toggle .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .bar:nth-child(2) { opacity: 0; }
    .hamburger.toggle .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    /* Oś czasu na "O nas" */
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 10px; }
    .timeline-item.right { left: 0%; }
    .timeline-item.left::after, .timeline-item.right::after { left: 10px; }
    .deco-square { width: 150px; height: 150px; top: 10px; right: 10px; }

    /* Inne poprawki wizualne */
    .main-image-box { height: 300px; }
    .clients-section { padding: 50px 0; }
    .logo-slide { height: 50px; padding: 0 20px; }
    .logo-track { animation-duration: 25s; }
}

/* Małe ekrany (Telefony) */
@media (max-width: 480px) {
    .hero-content .btn { display: block; margin: 10px auto; width: 100%; }
    .stat-number { font-size: 3rem; }
    .pricing-table th, .pricing-table td { padding: 15px 10px; font-size: 0.85rem; }
/* Odklejenie galerii produktu na małych ekranach */
    .product-gallery { position: relative; top: 0; }
} /* Zamyka klamrę @media (max-width: 768px) */

/* ==========================================================================
   13. ROZWIJANE MENU (DROPDOWN)
   ========================================================================== */

.nav-links li.dropdown {
    position: relative;
}

/* Wersja na komputery */
.nav-links .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* Wyśrodkowanie i delikatne obniżenie */
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    list-style: none;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 1000;
    border-top: 3px solid var(--accent-primary);
}

/* Ozdobny trójkąt nad menu */
.nav-links .submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent var(--accent-primary) transparent;
}

/* Pojawianie się menu po najechaniu */
.nav-links li.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-links .submenu li {
    margin: 0; 
    text-align: center;
}

.nav-links .submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

/* Usuwamy pomarańczową kreskę z głównego menu dla podmenu */
.nav-links .submenu li a::after {
    display: none !important; 
}

.nav-links .submenu li a:hover,
.nav-links .submenu li a.active {
    background-color: var(--bg-section);
    color: var(--accent-primary);
}

/* Wersja mobilna dla Dropdown (Telefony i Tablety) */
@media (max-width: 768px) {
    /* Upewniamy się, że cały element wyśrodkowuje swoją zawartość */
    .nav-links li.dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Animacja obrotu strzałki */
    .nav-links li.dropdown > a i {
        transition: transform 0.3s ease;
    }
    
    .nav-links li.dropdown.active > a i {
        transform: rotate(180deg);
    }

    /* Estetyczny kafelek podmenu */
    .nav-links .submenu {
        position: static;
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border-top: none;
        background-color: var(--bg-section); /* Delikatne szare tło */
        border-radius: 10px; /* Zaokrąglone rogi */
        opacity: 1;
        visibility: visible;
        display: none; /* Domyślnie ukryte */
        padding: 10px 0;
        margin-top: 15px;
        margin-left: 0;
        border-left: none;
        width: 90%; /* Dopasowane do szerokości ekranu */
        max-width: 300px;
    }

    .nav-links .submenu::before {
        display: none; /* Ukrywamy trójkąt na telefonie */
    }

    .nav-links li.dropdown.active .submenu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .nav-links .submenu li {
        margin: 2px 0; /* Zmniejszamy ogromne odstępy z głównego menu */
    }

    .nav-links .submenu li a {
        padding: 12px 15px;
        font-size: 0.95rem;
        text-align: center; /* Wyśrodkowanie linków! */
        color: var(--text-main);
        border-radius: 5px;
        margin: 0 10px; /* Marginesy wewnątrz kafelka */
    }
    
    /* Efekt wciśnięcia / aktywnego linku w podmenu */
    .nav-links .submenu li a:hover,
    .nav-links .submenu li a.active {
        background-color: #ffffff; /* Podświetla się na czysto biało */
        color: var(--accent-primary);
    }
}
/* --- MODAL POTWIERDZENIA DODANIA --- */
#cart-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; transition: opacity 0.3s ease;
}
#cart-modal.visible { opacity: 1; }
.cart-modal-content {
    background: #fff; padding: 40px; border-radius: 15px;
    text-align: center; max-width: 450px; width: 90%;
    transform: translateY(20px); transition: transform 0.3s ease;
}
#cart-modal.visible .cart-modal-content { transform: translateY(0); }
.cart-modal-actions { display: flex; gap: 15px; margin-top: 25px; }

/* --- STYLIZACJA ELEMENTÓW KOSZYKA --- */
.cart-item-card {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; padding: 20px; border-radius: 10px;
    margin-bottom: 15px; border: 1px solid #eee; transition: transform 0.2s;
}
.cart-item-card:hover { transform: scale(1.01); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.btn-remove { color: #ff4d4d; cursor: pointer; background: none; border: none; font-size: 1.2rem; }
.btn-remove:hover { color: #cc0000; }

/* ==========================================================================
   15. SEKCJA FAQ / Q&A
   ========================================================================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-main);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid #eee;
}

.faq-item summary {
    padding: 20px 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Ukrywa domyślną strzałkę w Chrome/Safari */
}

.faq-item summary:hover,
.faq-item[open] summary {
    color: var(--accent-primary);
    background-color: #fafafa;
}

.faq-item summary i {
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

/* Obraca strzałkę o 180 stopni gdy odpowiedź jest otwarta */
.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 25px 25px 25px;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.faq-content p, 
.faq-content ul {
    margin-top: 20px;
    margin-bottom: 0;
}