:root {
    --primary-red: #d90429;
    --dark-red: #8d0801;
    --soft-white: #f8f9fa;
    --dark-grey: #2b2d42;
    --text-grey: #6c757d;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    color: var(--dark-grey);
    max-width: 100%;
    position: relative;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.page-wrapper {
    overflow-x: hidden; /* To "uwięzi" animacje AOS i marginesy wierszy */
    width: 100%;
    position: relative;
}

.hero-section {
    margin-top: -50px;
}

/* Margines dla urządzeń mobilnych (ekrany mniejsze niż 768px) */
@media (max-width: 768px) {
    .hero-section {
        margin-top: -10px; /* Twoja pożądana wartość na telefon */
    }
}

/* --- Globalne Odstępy --- */
section {
    padding: 120px 0; /* Dużo oddechu góra/dół */
    position: relative;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* --- Navbar --- */
.navbar {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-red) !important;
    font-weight: 900;
}
.nav-link {
    font-weight: 600;
    color: var(--dark-grey) !important;
    margin: 0 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.nav-link:hover {
    color: var(--primary-red) !important;
}
.btn-nav-call {
    background: var(--primary-red);
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px;
    transition: 0.3s;
}
.btn-nav-call:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

/* POPRAWKI CSS DLA SLIDERA */
.hero-section {
position: relative;
height: 90vh;
min-height: 700px;
overflow: hidden;
background: #000; /* Tło pod sliderem */
}

/* Ustawienie slidera jako tło */
#heroCarousel {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}

#heroCarousel .carousel-inner, 
#heroCarousel .carousel-item, 
#heroCarousel img {
height: 100%;
object-fit: cover; /* Ważne: zdjęcie wypełnia całą przestrzeń */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* gradient */
.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.133) 0%,
        rgba(0, 0, 0, 0.172) 40%,
        rgba(0, 0, 0, 0.12) 65%,
        rgba(227, 227, 227, 0.1) 100%
    );
}

/* blur tylko po lewej */
.hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    mask-image: linear-gradient(
        90deg,
        black 0%,
        black 45%,
        transparent 75%
    );
}


.hero-content-wrapper {
position: relative;
z-index: 3; /* Nad sliderem i nad overlayem */
height: 100%;
display: flex;
align-items: center;
}

.hero-title {
font-size: 4.5rem;
font-weight: 900;
text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Delikatny cień dla pewności czytelności */
}

/* Styl dla napisu 24/7, żeby był czytelniejszy */
.hero-title span {
display: inline-block;
background: rgba(217, 4, 41, 0.15);
padding: 0 15px;
border-radius: 10px;
backdrop-filter: blur(5px);
}
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    z-index: 1;
}

/* Gradient Overlay - przyciemnienie, ale stylowe (od lewej do prawej) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 5px 15px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-text {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

/* --- Statystyki (Floating Cards) --- */
.stats-container {
    margin-top: -80px; /* Nachodzi na hero section */
    position: relative;
    z-index: 10;
}
.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    border-bottom: 5px solid var(--primary-red);
}
.stat-card:hover {
    transform: translateY(-10px);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 5px;
}

/* --- Tła Ozdobne (Patterny) --- */
.bg-dots {
    background-image: radial-gradient(#d90429 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}

/* --- Karty Usług --- */
.service-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 30px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}
.service-box:hover {
    box-shadow: 0 30px 50px rgba(0,0,0,0.08);
    transform: translateY(-10px);
    border-color: transparent;
}
.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(217, 4, 41, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: 0.3s;
}
.service-box:hover .icon-box {
    background: var(--primary-red);
    color: white;
}

/* --- Sekcja Mechanika (Tekst + Obraz) --- */
.mechanic-img-wrapper {
    position: relative;
}
.mechanic-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary-red);
    border-radius: 20px;
    z-index: -1;
}
.repair-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    font-weight: 500;
}
.repair-list i {
    color: var(--primary-red);
    margin-right: 15px;
    font-size: 1.2rem;
    background: rgba(217, 4, 41, 0.1);
    padding: 5px;
    border-radius: 50%;
}

/* --- CTA Banner --- */
.cta-section {
    background: var(--dark-grey);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 50px solid rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}
/* galeria  */
.gallery-card {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        aspect-ratio: 4 / 3; /* To zapewnia idealną symetrię każdego zdjęcia */
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Zdjęcie wypełnia kadr bez rozciągania */
        transition: transform 0.6s ease;
    }
    
    .gallery-overlay {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(217, 4, 41, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 2rem;
        opacity: 0;
        transition: 0.4s ease;
    }
    
    .gallery-card:hover img {
        transform: scale(1.1);
    }
    
    .gallery-card:hover .gallery-overlay {
        opacity: 1;
    }
    .seo-clean-text p {
        font-size: 1.15rem;
        color: #6c757d;
        line-height: 1.8;
        margin-bottom: 1.5rem;
        font-weight: 400;
    }
    
    .fw-600 { font-weight: 600; }

    /* Miasta jako lekkie "pigułki" */
    .city-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .city-tags span {
        font-size: 0.9rem;
        font-weight: 600;
        color: #495057;
        padding: 5px 0;
        margin-right: 15px;
        position: relative;
    }
    /* Kropka separatora między miastami */
    .city-tags span:not(:last-child)::after {
        content: '•';
        color: #d90429;
        margin-left: 15px;
    }

    /* Drogi w minimalistycznym gridzie */
    .road-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
    .road-item {
        border: 1px solid #dee2e6;
        padding: 8px;
        text-align: center;
        font-weight: 700;
        font-size: 0.9rem;
        border-radius: 4px;
        color: #2b2d42;
        transition: all 0.3s;
    }
    .road-item:hover {
        border-color: #d90429;
        color: #d90429;
    }

    .ls-2 { letter-spacing: 2px; }

/* --- Responsywność --- */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    section { padding: 80px 0; }
    .stats-container { margin-top: 50px; }
}
@media (max-width: 768px) {
    .hero-section {
        height: auto !important; /* Pozwalamy sekcji rosnąć wraz z tekstem */
        min-height: 80vh;
        padding-top: 50px; /* Dodatkowy odstęp od menu */
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 2.2rem !important; /* Znacznie mniejszy napis na telefonie */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-text {
        font-size: 1.1rem !important;
        margin-bottom: 25px;
    }

    /* Zmniejszamy margines statystyk, żeby nie nachodziły za mocno na małym ekranie */
    .stats-container {
        margin-top: -40px; 
    }
}

.row {
    margin-left: 0;
    margin-right: 0;
}