:root {
    --primary: #313733;      
    --accent: #a70f27;    
    --bg-light: #f9f9f9;  
    --bg-accent-light: #fbe8ea; 
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}
body {
    font-family: 'Rajdhani', system-ui, sans-serif;
    color: var(--primary);
    line-height: 1.6;
    margin: 0;
    font-weight: 500; 
}
.product-section {
    max-width: 1200px; margin: 0 auto;
    padding: 100px 20px; overflow: hidden; 
    position: relative; /* Ważne dla pozycjonowania */
}
h2, h3, h4 { font-weight: 700; }
.section-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 10px;
}
.section-subtitle {
    text-align: center; color: #555; max-width: 600px;
    margin: 0 auto 50px auto; font-size: 1.2rem; font-weight: 400;
}

/* --- SEKCJA 1 (Zig-Zag) --- */
.feature-row {
    display: flex; align-items: center; gap: 60px; margin-bottom: 80px;
}
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-image { flex: 1; }
.feature-image img {
    width: 100%; height: auto; border-radius: 12px;
    box-shadow: var(--shadow); transition: transform 0.3s;
}
.feature-image img:hover { transform: scale(1.02); }
.feature-list { list-style: none; padding: 0; margin-top: 20px; }
.feature-list li {
    margin-bottom: 12px; padding-left: 25px; position: relative;
    font-size: 1.05rem; font-weight: 400;
}
.feature-list li::before {
    content: "✓"; color: var(--accent); position: absolute;
    left: 0; font-weight: bold;
}
.highlight { font-weight: 700; color: var(--primary); }

/* --- KARUZELE (SWIPER) --- */
.swiper { padding-bottom: 50px !important; }
.swiper-pagination-bullet-active {
    background: var(--accent) !important; width: 20px; border-radius: 5px;
}
.swiper-tech, .swiper-automation {
    padding-top: 10px; margin-top: -10px;
}

/* 1. Ustawienie slajdów, aby miały równą wysokość */
.swiper-automation .swiper-slide {
    height: auto;      /* Pozwala slajdom dopasować się do najdłuższego rodzica */
    display: flex;     /* Zamienia slajd w kontener flex */
    justify-content: center; /* Centruje kartę w poziomie (opcjonalne) */
}

/* 2. Rozciągnięcie karty na całą wysokość slajdu */
.swiper-automation .benefit-card {
    width: 100%;       /* Karta zajmuje całą szerokość slajdu */
    height: 100%;      /* Karta rozciąga się na 100% wysokości slajdu */
    display: flex;     /* Ustawiamy flex wewnątrz karty, aby ładnie ułożyć treść */
    flex-direction: column;
    justify-content: flex-start; /* Treść zaczyna się od góry */
}


/* --- KARTY BENEFITÓW + IKONY --- */
.benefit-card {
    background: white; padding: 30px; border-radius: 20px;
    box-shadow: var(--shadow); height: 100%; border: 2px solid transparent;
    transition: 0.3s; display: flex; flex-direction: column;
}
.benefit-card:hover { border-color: var(--accent); transform: translateY(-5px); }

/* Styl dla obrazków w HTML */
.benefit-icon-img {
    width: 48px; 
    height: 48px;
    margin-bottom: 20px;
    display: block;
}
/* Większe ikony w sekcji wsparcia */
.benefit-icon-img.large {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px auto;
}

.benefit-title { font-size: 1.5rem; margin: 0 0 15px 0; font-weight: 700; }
.benefit-text { color: #555; flex-grow: 1; font-size: 1rem; font-weight: 400; }
.highlight-spec {
    background: var(--bg-accent-light); color: var(--accent);
    padding: 2px 8px; border-radius: 4px; font-weight: 600;
}


/* Ustawienie kafelka jako punktu odniesienia */
.benefit-card {
    position: relative; 
    overflow: hidden; /* Żeby nic nie wystawało */
}

/* Styl samego oznaczenia (badge) */
.smart-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.06); /* Bardzo jasny szary */
    color: #555;
    font-size: 0.75rem; /* Mały, czytelny tekst */
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px; /* Zaokrąglone rogi */
    border: 1px solid rgba(0,0,0,0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}


/* --- OŚ CZASU --- */
.process-steps { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-item::after {
    content: ''; position: absolute; top: 25px; right: -50%; width: 100%; height: 2px;
    background: #ddd; z-index: -1;
}
.step-item:last-child::after { display: none; }
.step-number {
    width: 50px; height: 50px; background: var(--accent); color: white;
    font-weight: 700; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 20px auto; font-size: 1.2rem;
    position: relative; z-index: 1;
}
.step-title { font-weight: 700; margin-bottom: 10px; font-size: 1.1rem; }
.step-desc { font-size: 0.95rem; color: #555; font-weight: 400;}

/* --- UNIKALNA SEKCJA KOLORÓW (Zmienione nazwy klas) --- */
.desc-color-card {
    height: 350px; border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    background: white;
}
.desc-color-preview { flex: 2; background-size: cover; background-position: center; }
.desc-color-info { 
    flex: 1; padding: 15px; text-align: center; 
    display: flex; flex-direction: column; justify-content: center; 
}
.desc-color-name { font-weight: 700; font-size: 1.2rem; }
.desc-color-ral { font-weight: 400; font-size: 0.9rem; color: #666; margin-top: 4px; }
.desc-color-ral .group { font-weight: 700; color: var(--primary); }

.desc-swiper-colors .swiper-slide {
    width: 80%; max-width: 320px; height: auto;
    transition: transform 0.4s, opacity 0.4s;
    transform: scale(0.9); opacity: 0.6; 
}
.desc-swiper-colors .swiper-slide-active {
    transform: scale(1); opacity: 1; 
}

/* --- Specyfikacja --- */
.spec-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 60px;
}
.spec-image {
    height: 500px; background-size: 300%; background-position: center;
    border-radius: 12px; box-shadow: var(--shadow);
    transition: background-size 0.4s ease;
}
.spec-image:hover { background-size: 310%; }
.spec-details h2 { font-size: 2rem; margin-bottom: 20px; }
#specification-table table {
    width: 100%; border-collapse: collapse; font-size: 1rem; font-weight: 400;
}
#specification-table th, #specification-table td {
    padding: 12px 15px; border-bottom: 1px solid #eee; text-align: left;
}
#specification-table th { background: var(--bg-light); font-weight: 600; }
#specification-table tr:hover { background-color: var(--bg-accent-light); }

/* --- OPINIE --- */
.review-card {
    background: #fff; padding: 30px; border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-style: italic; font-weight: 400;
}
.review-stars { color: #FFD700; margin-bottom: 15px; }
.review-author {
    font-weight: 700; margin-top: 20px;
    font-style: normal; color: var(--primary);
}

/* --- INSTRUKCJE --- */
.manuals-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px;
}
.manual-card-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px; background: #fff; border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-decoration: none;
    color: inherit; transition: transform 0.3s ease; height: 100%; text-align: center;
}
.manual-card-item:hover {
    transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.manual-title-text {
    font-weight: 600; font-size: 1.1rem; line-height: 1.4; margin-top: 10px;
}

/* --- FAQ --- */
.accordion { max-width: 900px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid #e0e0e0; }
.accordion-item button {
    all: unset; display: flex; justify-content: space-between;
    align-items: center; width: 100%; padding: 20px 0;
    font-size: 1.3rem; font-weight: 600; cursor: pointer; color: var(--primary);
}
.accordion-item .icon {
    display: block; width: 20px; height: 20px;
    transition: transform 0.3s; position: relative;
}
.accordion-item .icon::before, .accordion-item .icon::after {
    content: ''; position: absolute; background: var(--accent);
    top: 50%; left: 0; width: 100%; height: 2px;
}
.accordion-item .icon::after { transform: rotate(90deg); }
.accordion-item button[aria-expanded="true"] .icon::after { transform: rotate(0deg); }
.accordion-content {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
    font-size: 1rem; font-weight: 400;
}
.accordion-content p { padding: 0 0 20px 0; margin: 0; }

/* --- FLOATING CTA BUTTON --- */
.floating-cta-button {
    all: unset; box-sizing: border-box; pointer-events: auto; 
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; margin: 0 auto;
    width: fit-content; max-width: 90vw; z-index: 1000;
    background: rgba(255, 255, 255, 0.7); 
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #313733; padding: 12px 30px; border-radius: 50px; 
    font-weight: 700; font-size: 1.2rem; cursor: pointer; text-decoration: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0,0,0,0.2); 
    border: 2px solid rgba(255, 255, 255, 0.8);
    
    /* Startowy stan: ukryty pod ekranem */
    bottom: -100px;
    opacity: 0; 
    visibility: hidden;
    
    transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease-out, visibility 0s 0.5s, box-shadow 0.3s ease-out;
    will-change: bottom, opacity;
}

/* Klasa dodawana przez JS gdy przycisk ma się pokazać */
.floating-cta-button.is-visible {
    opacity: 1; visibility: visible; bottom: 20px;
bottom: calc(15px + env(safe-area-inset-bottom));
    transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease-out, visibility 0s 0s, box-shadow 0.3s ease-out;
}

/* Klasa dodawana gdy dojedziemy do stopki (koniec sekcji) - wymuszamy ukrycie */
.floating-cta-button.force-hide {
    bottom: -100px !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.floating-cta-button:hover {
    background: #fff; 
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0,0,0,0.25);
    bottom: 23px; 
bottom: calc(18px + env(safe-area-inset-bottom));
}

.cta-icon-img {
    width: 1.3rem; height: 1.3rem; margin-right: 0; vertical-align: middle;
}

.static-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 50px; /* Zaokrąglone boki */
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.static-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    border-color: #ccc;
}

.static-google-btn img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}



.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; /* Tło na czas ładowania/braku wideo */
    border-radius: 15px; /* Dopasowanie do stylu obrazków */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



/* 1. Zmuszamy slajdy, aby miały wysokość rodzica (czyli najwyższego slajdu w rzędzie) */
.swiper-tech .swiper-slide {
    height: auto;
    display: flex; /* To kluczowe, zamienia slajd w kontener flex */
}

/* 2. Rozciągamy kartę na 100% wysokości slajdu */
.swiper-tech .benefit-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column; /* Układamy treść pionowo */
    justify-content: flex-start; /* Treść zaczyna się od góry */
}

/* Dostosowanie dla urządzeń mobilnych - jeśli chcesz, żeby wideo było na górze */
@media (max-width: 768px) {
    .feature-row.reverse-mobile {
        flex-direction: column-reverse;
    }
}


/* Kontener siatki */
.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolumny na PC */
    gap: 25px;
    margin-top: 30px;
}

/* Karta produktu */
.cross-sell-card {
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.cross-sell-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #eee;
    background: #fff;
}

/* Zdjęcie */
.cross-sell-image {
    width: 100%;
    height: 200px; /* Stała wysokość zdjęcia */
    overflow: hidden;
    background: #fff;
}

.cross-sell-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wypełnia obszar bez zniekształceń */
    transition: transform 0.5s ease;
}

.cross-sell-card:hover .cross-sell-image img {
    transform: scale(1.05); /* Lekki zoom zdjęcia po najechaniu */
}

/* Treść */
.cross-sell-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cross-sell-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222;
}

.cross-sell-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Przycisk linku */
.cross-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a70f27; /* Kolor akcentu (możesz zmienić na swój firmowy) */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- FIX DLA PIONOWEGO WIDEO (SHORTS) --- */
.vertical-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 340px; /* Maksymalna szerokość (jak smartfon) */
    margin: 0 auto;   /* Wyśrodkowanie w kontenerze */
    background: #000; /* Czarne tło, zanim wideo się załaduje */
    border-radius: 20px; /* Zaokrąglone rogi */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); /* Ładny cień */
    display: block; /* Wymuszenie bloku */
}

/* Ta sztuczka wymusza proporcje 9:16 (Pionowe) */
.vertical-video-wrapper::before {
    content: "";
    display: block;
    padding-top: 177.77%; /* (16 / 9) * 100 = 177.77% */
}

.vertical-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* RESPONSYWNOŚĆ */

/* Tablet i duży telefon (2 kolumny) */
@media (max-width: 1024px) {
    .cross-sell-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}



/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    /* 1. Tytuły mniejsze na telefonie */
    .section-title { font-size: 1.8rem; }
    
    /* 2. Sekcja zyg-zag (zdjęcie-tekst) w kolumnie */
    .feature-row, .feature-row:nth-child(even) {
        flex-direction: column; gap: 30px; margin-bottom: 50px;
    }
    .feature-image { order: -1; } /* Zdjęcie zawsze nad tekstem */
    
    /* 3. Oś czasu (kroki) w pionie */
    .process-steps { flex-direction: column; gap: 0; }
    .step-item { display: flex; text-align: left; margin-bottom: 30px; gap: 20px; }
    .step-item::after {
        width: 2px; height: 100%; top: 50px; left: 25px; right: auto;
    }
    .step-number { margin: 0; flex-shrink: 0; }
    
    /* 4. Specyfikacja - obrazek mniejszy */
    .spec-grid { grid-template-columns: 1fr; }
    .spec-image { height: 250px; }
    
    /* --- POPRAWKA DLA SEKCJI WSPARCIA (MANUALS) --- */
    .manuals-grid { 
        /* Wymuszamy jedną kolumnę */
        grid-template-columns: 1fr !important; 
        gap: 15px; 
    }
    
    .manual-card-item {
        /* Zabezpieczenie przed wychodzeniem poza ekran */
        width: 100%;
        box-sizing: border-box;
        padding: 15px; /* Nieco mniejszy padding */
    }
    
    /* Zmniejszamy ikonę na telefonie, żeby nie rozpychała karty */
    .benefit-icon-img.large {
        width: 48px;  /* Było 64px */
        height: 48px; /* Było 64px */
        margin-bottom: 10px;
    }
    
    /* 5. Przycisk CTA mniejszy */
    .floating-cta-button { 
        font-size: 1rem; 
        padding: 10px 20px; 
        width: 90%; /* Szerokość dopasowana do ekranu */
        max-width: 300px;
        gap: 8px;
    }
    .cross-sell-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na małych ekranach dla czytelności */
        gap: 30px;
    }
    .cross-sell-image {
        height: 250px; /* Wyższe zdjęcia na mobile */
    }
/* Znajdź to wewnątrz @media (max-width: 768px) */
    
    .feature-image { 
        order: -1;       /* Przesuwa zdjęcie nad tekst */
        width: 100%;     /* KLUCZOWE: Wymusza szerokość, żeby wideo miało z czego wyliczyć wysokość */
        display: block;  /* Upewniamy się, że zachowuje się jak blok */
    }
}





