/* ======================================================
   1. ZMIENNE (ROOT) I USTAWIENIA BAZOWE
   ====================================================== */
   :root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --text-dark: #333;
    --text-light: #fff;
    --text-gray: #555;
    --text-light-gray: #aaa;
    --text-medium-gray: #666;
    --bg-light: #fff;
    --bg-dark: #1a1a1a;
    --bg-footer: #111;
    --bg-gray: #f9f9f9;
    --bg-light-gray: #f7f7f7;
    --border-light: #eee;
    --border-dark: #444;
    --facebook-color: #1877f2;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-fast: 0.3s;
    --transition-slow: 0.4s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    position: relative;
}

/* ======================================================
   2. NAWIGACJA (HEADER)
   ====================================================== */
header {
    background: transparent;
    padding: 1.5rem 150px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-slow) ease-in-out;
}

header.scrolled {
    background: rgba(26, 26, 26, 0.85);
    padding: 0.8rem 150px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 75px;
    width: auto;
    content: url('zdjęcia/startLogo.png'); 
    transition: all var(--transition-fast) ease;
}

header.scrolled .logo-img {
    height: 75px;
    content: url('zdjęcia/logo.png');
}

.menu {
    display: flex;
    gap: 30px;
}

nav .menu a {
    color: var(--text-dark); 
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav .menu a:hover {
    color: var(--primary-color);
}

header.scrolled nav .menu a {
    color: var(--text-light);
}

header.scrolled nav .menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
    position: relative;
    padding: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-slow);
}

header.scrolled .hamburger span {
    background: var(--text-light); 
}

.hamburger.toggle span {
    background: var(--text-light) !important;
}

/* ======================================================
   3. SEKCJE I TREŚĆ
   ====================================================== */
section {
    height: auto; 
    min-height: auto;
    padding: 60px 15px;
    width: 100%;
}

#home {
    padding: 0;
}

.hero {
    height: 100vh;
    background: url('zdjęcia/setra516.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    color: var(--text-light);
    padding: 0 150px;
}

.hero h2 {
    font-size: clamp(2.5rem, 6vw, 3rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content {
    max-width: 700px;
    margin-top: 60px;
}

.hero-sub {
    font-size: 1.2rem;
    margin: 20px 0 25px 0;
    color: #ddd;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: #000;
}

.offer-highlights {
    margin-top: 40px;
    background: var(--bg-gray);
    padding: 40px;
    border-left: 6px solid var(--primary-color);
    border-radius: 4px;
}

.offer-highlights ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.offer-highlights li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* ======================================================
   4. KONTAKT I FORMULARZ
   ====================================================== */
.contact-container {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px;
    border-radius: 8px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: #2b2b2b;
    color: var(--text-light);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
    transition: all var(--transition-fast) ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 400px;
}

.btn {
    text-decoration: none;
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* ======================================================
   5. STOPKA Z LOGO
   ====================================================== */
footer {
    background: var(--bg-footer);
    color: var(--text-light-gray);
    padding: 70px 150px 25px 150px;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-col a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover, .footer-col a:hover {
    color: var(--primary-color);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #222;
    font-size: 0.85rem;
}

.footer-col h4 {
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ======================================================
   6. PODSTRONY I ELEMENTY WSPÓŁDZIELONE
   ====================================================== */

/* Oferta */
.offer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.offer-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition-fast);
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.offer-box {
    padding: 35px;
}

.offer-photo {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.offer-list {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.offer-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    position: relative;
    padding-left: 25px;
}

.offer-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Flota */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 50px;
}

.fleet-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    background-color: transparent;
    aspect-ratio: 4 / 3; 
}

.fleet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    display: block;
    transition: transform var(--transition-slow) ease;
}

.fleet-item:hover img {
    transform: scale(1.1);
}

.fleet-name {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform var(--transition-fast) ease;
}

.fleet-item:hover .fleet-name {
    transform: translateY(0);
}

/* Współpraca */
#wspolpraca {
    padding: 90px 10%;
    background: var(--bg-light-gray);
    text-align: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step-box {
    background: var(--bg-light);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
    margin-bottom: 35px;
}

.step-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-box p {
    flex-grow: 1; 
    margin-bottom: 25px;
}

.step-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(2,0,0,0.15);
}

/* Detale kontaktowe */
.contact-name {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-light);
    text-transform: uppercase;
}

.contact-details p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.contact-details i {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.contact-details a:hover i.fa-facebook-f {
    background: var(--facebook-color);
    border-color: var(--facebook-color);
    color: var(--text-light);
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Baner podstron */
.hero-small {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('zdjęcia/setra516.webp') center/cover;
    color: var(--text-light);
    padding: 0 20px;
    margin-top: 0;
}

.hero-small h1 {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    margin-top: 60px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* RODO */
.rodo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-light-gray);
    text-align: left;
}

.rodo-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-bottom: 0;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.rodo-checkbox label {
    cursor: pointer;
    line-height: 1.5;
}

.rodo-checkbox label:hover {
    color: var(--text-light);
}

/* CTA */
.cta-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2, .cta-section h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--bg-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-medium-gray);
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline-dark {
    padding: 14px 30px;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all var(--transition-fast) ease;
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/* FAQ */
.faq-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--bg-dark);
    position: relative;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light); 
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.faq-item.appear {
    opacity: 1;
    transform: translateX(0);
}

.faq-item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.faq-item h3::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.7;
}

.faq-item p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-left: 32px;
}

/* ======================================================
   7. ANIMACJE
   ====================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1,
.hero-content h2,
.hero-content .hero-sub,
.hero-content .hero-buttons,
.hero-small h1 {
    opacity: 0; 
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1 { animation-delay: 0.1s; }
.hero-content h2 { animation-delay: 0.3s; }
.hero-content .hero-sub { animation-delay: 0.3s; }
.hero-content .hero-buttons { animation-delay: 0.5s; }
.hero-small h1 { animation-delay: 0.2s; }

.anim-element {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.anim-bottom { transform: translateY(40px); }
.anim-left { transform: translateX(-50px); }
.anim-right { transform: translateX(50px); }

.anim-element.anim-active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ======================================================
   8. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ====================================================== */
@media (max-width: 1400px) {
    .fleet-grid { gap: 20px; }
    .fleet-name { font-size: 0.95rem; padding: 10px 14px; }
}

@media (max-width: 1200px) {
    header, section, footer, .hero, header.scrolled { padding-left: 50px; padding-right: 50px; }
}

@media (max-width: 1100px) {
    .steps-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    section { padding: 80px 150px; }
    #home { padding: 0; }
}

@media (max-width: 1024px) {
    .fleet-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

@media (max-width: 768px) {
    header, header.scrolled { padding: 1rem 20px; }
    
    .hamburger { 
        display: flex; 
        padding: 20px;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77,0,0.175,1);
        z-index: 1500;
    }

    .menu.active { right: 0; }
    
    .menu.active a {
        color: var(--text-light) !important; 
        font-size: 1.5rem;
        margin: 15px 0;
        display: block;
        text-align: center;
    }

    section, footer, .hero { padding: 100px 20px 60px 20px; }
    .contact-container, .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-container { flex-direction: column; }
    .footer-logo { margin: 0 auto 25px auto; }

    .hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-6px, 7px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-6px, -7px); }
    
    .offer-row { grid-template-columns: 1fr; }
    .fleet-grid { gap: 15px; }
    .fleet-name { font-size: 0.85rem; padding: 8px 10px; }
    .faq-title { font-size: 1.6rem; }
    .faq-item h3 { font-size: 1.1rem; }
}

@media (max-width: 650px) {
    .steps-container { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .fleet-grid { grid-template-columns: 1fr; gap: 25px; }
    .fleet-name { font-size: 1rem; padding: 12px 16px; }
}

/* ======================================================
   9. DODATKOWA RESPONSYWNOŚĆ (BARDZO MAŁE EKRANY)
   ====================================================== */

@media (max-width: 600px) {
    /* Przywrócenie domyślnej pozycji obrazków */
    img, .fleet-item img, .offer-photo, .step-img {
        object-position: center; 
    }


    /* Przyciski w banerze głównym (Hero) mogą się już nie mieścić obok siebie */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .btn, 
    .hero-buttons .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    /* Delikatne zmniejszenie marginesów w sekcji z kartami ofert */
    .offer-box {
        padding: 25px 20px;
    }
    
    /* Mniejsze ikony w kontaktowych detalach */
    .contact-details i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {

    .hamburger { padding: 20px;}
    /* Utrzymanie domyślnej pozycji na najmniejszych urządzeniach */
    img, .fleet-item img, .offer-photo, .step-img {
        object-position: center; 
    }

    /* Ekstremalna redukcja paddingów dla głównych sekcji (żeby nie było "pusto") */
    section { 
        padding: 50px 15px; 
    }
    
    .hero {
        padding: 0 15px;
    }

    header, header.scrolled {
        padding: 1rem 15px;
    }

    /* Zmniejszenie logo dla zaoszczędzenia cennego miejsca na górze */
    .logo-img, header.scrolled .logo-img {
        height: 55px;
    }

    /* Korekta rozmiarów czcionek dla tytułów */
    .hero h2 {
        font-size: 2.2rem; /* Nadpisanie clamp dla bezpieczeństwa */
    }

    .hero-small h1 {
        font-size: 1.8rem;
    }

    .hero-sub {
        font-size: 1rem;
        margin: 15px 0 20px 0;
    }

    /* Sekcja CTA - przyciski zajmują całą szerokość ekranu dla wygody klikania */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
    }

    .cta-section h2, .cta-section h3 {
        font-size: 1.6rem;
    }

    /* Kontakt - ciaśniejsze ułożenie klocków */
    .contact-container {
        padding: 30px 20px;
        gap: 30px;
    }

    .contact-name {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .contact-details p, .contact-details a {
        font-size: 1rem;
    }

    /* Stopka */
    footer {
        padding: 50px 15px 20px 15px;
    }
    
    .footer-col h4 {
        font-size: 1.1rem;
    }
    
    .faq-title { 
        font-size: 1.4rem; 
        margin-bottom: 30px;
    }
}

/* ======================================================
   POPRAWKI HERO BANERA I RESPONSYWNOŚCI (ZOPTYMALIZOWANE)
   ====================================================== */

/* 1. GLOBALNE ZABEZPIECZENIE PRZED LATAJĄCĄ STRONĄ (IOS FIX) */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}
body {
    position: relative;
}
main, section, footer {
    overflow-x: hidden !important;
}

/* 2. TABLETY (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero, .hero-small, .hero-pracownicze {
        background-position: 65% center !important; 
    }
    .hero-content {
        margin-top: 100px; 
    }
    .hero-small h1, .hero-pracownicze h1 {
        transform: translateY(-40px);
    }
}

/* 3. TELEFONY (max-width: 768px) */
@media (max-width: 768px) {
    .hero, .hero-small, .hero-pracownicze {
        /* Poniższe linijki to ZŁOTY ŚRODEK. Obniżamy sekcję z 100vh na 65vh. 
           Dzięki temu przeglądarka musi mniej ucinać boki autokaru! */
        height: 65vh !important;
        min-height: 500px !important;
        background-position: 70% center !important; 
        
        /* Jeśli NAPRAWDĘ chcesz widzieć 100% zdjęcia i wolisz puste tło poniżej, 
           odkomentuj 3 poniższe linijki (usuń z nich znaki /* i */
        /* background-size: contain !important; */
        /* background-repeat: no-repeat !important; */
        /* background-color: #1a1a1a; */
    }
    
    .hero-content {
        /* Marginesy pomniejszone z 250px, ponieważ cała sekcja hero jest teraz niższa */
        margin-top: 120px; 
    }

    .hero-buttons {
        margin-top: 20px !important; 
    }

    .hero-small h1, .hero-pracownicze h1 {
        transform: translateY(-40px); 
    }

    .hero-small .action-btn-container,
    .hero-small .hero-buttons {
        margin-top: 120px !important; 
        transform: translateY(-40px); 
    }
}

/* 4. MAŁE TELEFONY (max-width: 480px) */
@media (max-width: 480px) {
    .hero, .hero-small, .hero-pracownicze {
        background-position: 65% center !important; 
    }
    
    .hero-content {
        margin-top: 100px; 
    }
    
    .hero-buttons {
        margin-top: 20px !important; 
    }

    .hero-small h1, .hero-pracownicze h1 {
        transform: translateY(-60px); 
        font-size: clamp(1.5rem, 5vw, 2rem); 
    }
    
    .hero-small .action-btn-container,
    .hero-small .hero-buttons {
        margin-top: 100px !important; 
        transform: translateY(-60px);
    }
}

/* 5. BARDZO MAŁE EKRANY np. Galaxy S10 (max-width: 360px) */
@media (max-width: 360px) {
    .hero-content {
        margin-top: 80px; 
    }
    
    .hero-buttons {
        margin-top: 20px !important; 
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
}

/* ======================================================
   ROZDZIELENIE STYLI: HOME (POD) vs PODSTRONY (NA)
   ====================================================== */

/* 1. UKRYWAMY OBRAZEK NA KOMPUTERACH (To naprawia rozjechany #home!) */
.mobile-hero-image {
    display: none;
}

@media (max-width: 768px) {
    /* --- A. STRONA GŁÓWNA (#home) - TEKST POD ZDJĘCIEM --- */
    #home .hero {
        background: var(--bg-light) !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }

    #home .mobile-hero-image {
        display: block !important; /* Włączamy obrazek TYLKO na telefonach */
        width: 100%;
        height: 60vh;
        object-fit: cover;
        object-position: 63%;
    }

    #home .hero-content {
        background: var(--bg-light) !important;
        padding: 40px 20px !important;
        text-align: center;
        margin-top: 0 !important;
        width: 100%;
    }

    /* Wymuszenie ciemnego tekstu na białym tle (tylko dla strony głównej) */
    #home .hero-content h1, 
    #home .hero-content h2 {
        color: var(--text-dark) !important;
        text-shadow: none !important;
    }

    #home .hero-content .hero-sub {
        color: var(--text-medium-gray) !important;
        text-shadow: none !important;
    }

    #home .hero-buttons {
        margin-top: 0 !important;
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    #home .hero-buttons .btn {
        width: 100%;
    }

    /* --- B. WSZYSTKIE POZOSTAŁE (Flota, Oferta) - TEKST NA ZDJĘCIU --- */
    .hero-small, .hero-pracownicze {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        height: 60vh !important; 
        min-height: 350px !important;
        background-size: cover !important;
        background-position: 63% center !important;
        padding: 0 20px !important;
        margin-top: 0 !important;
        position: relative;
    }

    /* Przyciemnienie tła na podstronach, by biały tekst był super czytelny */
    .hero-small::before, .hero-pracownicze::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 1;
    }

    .hero-small h1, .hero-pracownicze h1 {
        position: relative;
        z-index: 2;
        background: transparent !important;
        color: var(--text-light) !important;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.8) !important;
        font-size: 2.2rem !important;
        padding: 0 !important;
        margin-top: 60px !important; 
        transform: none !important;
        box-shadow: none !important;
    }
}

/* --- POPRAWKI DLA BARDZO MAŁYCH EKRANÓW (np. Galaxy S10) --- */
@media (max-width: 480px) {
    #home .mobile-hero-image {
        height: 35vh;
    }
    .hero-small, .hero-pracownicze {
        height: 45vh !important;
    }
    .hero-small h1, .hero-pracownicze h1 {
        font-size: 1.8rem !important;
    }
}

