/* =========================================
   1. USTAWIENIA & ZMIENNE
   ========================================= */
:root {
    --yellow: #FF0000;           /* ZMIENIONO: Czysty czerwony */
    --yellow-dark: #CC0000;      /* ZMIENIONO: Ciemna czerwień */
    --dark: #121212;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;
    --font-main: 'Poppins', sans-serif;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-grey { background-color: var(--light-grey); }
.center { text-align: center; }

/* =========================================
   2. NAWIGACJA
   ========================================= */
.navbar {
    background: var(--dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--yellow);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-weight: 900; font-size: 1.5rem; color: var(--white); 
    text-decoration: none; text-transform: uppercase; 
}
.logo span { color: var(--yellow); }

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 500; }

.nav-phone {
    background: var(--yellow); color: var(--white); /* ZMIENIONO: color na white dla kontrastu */
    padding: 10px 18px; border-radius: 50px;
    text-decoration: none; font-weight: 800;
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap; flex-shrink: 0;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 80vh; min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('../images/warsztat1.webp') center/cover;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); text-align: center;
}

.hero-badge {
    background: var(--yellow); color: var(--white); /* ZMIENIONO: color na white */
    padding: 8px 20px; border-radius: 50px;
    font-weight: 800; margin-bottom: 20px; display: inline-block;
}

.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 15px; }
.hero h1 span { color: var(--yellow); }
.hero-desc { max-width: 700px; margin: 0 auto 35px; font-size: 1.1rem; }

.btn-call-hero {
    background: var(--yellow); color: var(--white); /* ZMIENIONO: color na white */
    padding: 18px 35px; border-radius: 12px;
    text-decoration: none; font-weight: 900;
    display: inline-flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3); /* ZMIENIONO: cień na czerwony */
}

.icon-pulse {
    background: var(--dark); color: var(--yellow);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: pulse 2s infinite; flex-shrink: 0;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); } /* ZMIENIONO: poświata czerwona */
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* =========================================
   4. SEKCJE TREŚCI
   ========================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.section-title { font-size: 2.2rem; margin-bottom: 20px; }
.check-list div { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 600; }
.check-list i { color: var(--yellow-dark); }

.img-responsive { width: 100%; border-radius: 15px; box-shadow: 15px 15px 0 var(--yellow); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.service-card { 
    background: var(--white); padding: 35px; border-radius: 15px; 
    text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.service-card i { font-size: 2.5rem; color: var(--yellow-dark); margin-bottom: 15px; }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.img-shadow-box img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; }

/* =========================================
   5. FAQ - AKORDEON
   ========================================= */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); margin-bottom: 15px; border-radius: 10px; overflow: hidden; }
.faq-question {
    width: 100%; padding: 20px; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; font-size: 1.1rem; cursor: pointer; text-align: left;
}
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s ease; background: #fafafa; }
.faq-answer p { padding: 20px; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* =========================================
   6. STOPKA
   ========================================= */
.footer { background: var(--dark); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--yellow); margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; color: #777; }

/* =========================================
   7. SLIDER OBSZARU DZIAŁANIA (TABS & SLIDERS)
   ========================================= */
.districts-section {
    background-color: var(--white);
    overflow: hidden;
}

.districts-desc {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #666;
}

/* --- PRZYCISKI PRZEŁĄCZANIA (ZAKŁADKI) --- */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    border: 2px solid var(--dark);
    background: transparent;
    color: var(--dark);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.tab-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--white); /* ZMIENIONO: tekst na biały na czerwonym tle */
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3); /* ZMIENIONO: cień czerwony */
}

/* --- SLIDER KONSTRUKCJA --- */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 10px;
}

.districts-slider {
    display: none; /* Domyślnie ukryte */
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.districts-slider.active {
    display: flex; /* Tylko aktywny slider jest widoczny */
}

.districts-slider::-webkit-scrollbar {
    display: none;
}

.districts-slider .district-item {
    flex: 0 0 220px;
    background: var(--light-grey);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.districts-slider .district-item:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--white); /* ZMIENIONO: tekst na biały przy hoverze */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.1); /* ZMIENIONO: cień czerwony */
}

/* --- STRZAŁKI --- */
.slider-arrow {
    background: var(--dark);
    color: var(--yellow);
    border: none;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0;
}

.slider-arrow:hover {
    background: var(--yellow);
    color: var(--white); /* ZMIENIONO: kolor ikony na biały przy hoverze */
    transform: scale(1.1);
}

/* =========================================
   8. DODATKI DLA PODSTRON & SEO
   ========================================= */
.subpage .section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-top: 10px;
    line-height: 1.2;
}

.subpage .section-title strong {
    color: var(--yellow-dark);
    display: block;
}

.lead { font-size: 1.2rem; font-weight: 500; color: #444; margin-bottom: 20px; }
.cta-inline { margin-top: 30px; }

.text-content-limit {
    max-width: 850px;
    margin: 0 auto;
    text-align: justify;
}

.text-content-limit h2 { margin-bottom: 30px; text-align: center; }
.text-content-limit p { margin-bottom: 20px; }

/* =========================================
   9. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================= */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-badge {
        display: table;
        margin: 0 auto 15px;
    }
    
    .subpage .section-title, .cta-inline { text-align: center; }

    .slider-arrow { display: none !important; }
    
    .slider-wrapper { padding: 0; margin: 0 -15px; }

    .districts-slider {
        gap: 10px;
        padding: 10px 15px;
        scroll-snap-type: x mandatory;
    }

    .districts-slider .district-item {
        flex: 0 0 160px;
        min-height: 50px;
        padding: 15px 10px;
        font-size: 0.85rem;
        scroll-snap-align: center;
    }
    
    .tabs-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .section-padding { padding: 50px 0; }
    .logo { font-size: 1.2rem; }
    .nav-phone { font-size: 0.85rem; padding: 8px 12px; }
    .hero h1 { font-size: 1.8rem; }
    .btn-call-hero { width: 100%; justify-content: center; }
    .photo-strip { grid-template-columns: 1fr; }
}


/* Stylistyka Cennika Akordeonowego RIMUS-GO */
:root {
    --primary-red: #e31e24;
    --card-bg: #ffffff;
}

.price-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--card-bg);
    border-left: 5px solid var(--primary-red);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.15);
}

.accordion-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    user-select: none;
}

.accordion-header i.fa-chevron-down {
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.accordion-header i:first-child {
    margin-right: 10px;
    color: var(--primary-red);
}

.accordion-item.active .accordion-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background: #fff;
}

.accordion-item.active .accordion-content {
    /* Zwiększony limit, aby na mobilu nic się nie ucięło */
    max-height: 1200px; 
}

/* Tabele */
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table tr {
    border-bottom: 1px solid #eee;
}

.price-table td {
    padding: 15px 25px;
    color: #444;
}

.price-table td:last-child {
    text-align: right;
    font-weight: 900;
    color: var(--primary-red);
    white-space: nowrap;
}

/* Blok promocji wewnątrz cennika */
.promo-box {
    padding: 20px 25px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
}

.promo-box i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

/* Responsywność mobilna */
@media (max-width: 600px) {
    .accordion-header {
        padding: 15px 15px;
        font-size: 0.95rem;
    }
    .price-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    .promo-box {
        padding: 15px;
        font-size: 0.85rem;
    }
}

/* Resetowanie kolorów linków i FAQ na mobilu */
.faq-question, 
.faq-answer p, 
.accordion-header span {
    color: #333333 !important; /* Lub inny kolor pasujący do Twojej strony */
    text-decoration: none !important;
}

/* Wyłączenie automatycznego kolorowania numerów telefonów/dat przez przeglądarki */
[href^="tel"], 
[href^="sms"] {
    color: inherit !important;
    text-decoration: none !important;
}

/* Specyficzne dla sekcji FAQ jeśli używasz buttonów */
.faq-question {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
}