
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #080808;
    color: white;
}

/* MENU */

nav {
    background-color: #080808;
    padding: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 2px solid red;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
}

nav a:hover {
    color: red;
}

/* ZDJĘCIE GŁÓWNE */

.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 72px);
    background-image: url("tlo.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* NAPIS NA DOLE */

.tekst {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

h1 {
    color: white;
    font-size: clamp(24px, 3vw, 38px);
}

h1 span {
    color: #e52222;
}

h2 {
    color: silver;
    font-size: 24px;
    margin-top: 8px;
}

p {
    font-size: 18px;
    margin-top: 8px;
}

/* PRZYCISK */

.przycisk {
    display: inline-block;
    background-color: #c91c24;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
}

.przycisk:hover {
    background-color: #8b1015;
}

/* WERSJA NA TELEFON */

@media (max-width: 768px) {
    nav {
        gap: 15px;
        padding: 15px;
    }

    nav a {
        font-size: 14px;
    }

    .hero {
        min-height: 0;
        padding-top: 56.28%;
        background-position: top center;
    }

    .tekst {
        position: relative;
        background: #080808;
    }

    h2 {
        font-size: 18px;
    }
}

/* ZAKŁADKA O NAS */

nav a.active {
    color: #e52222;
}

.onas {
    padding: 70px 8%;
    text-align: center;
    max-width: 1400px;
    margin: auto;
}

.onas h1 {
    font-size: 45px;
    letter-spacing: 5px;
}

.linia {
    width: 80px;
    height: 4px;
    background-color: red;
    margin: 20px auto 40px;
}

.onas p {
    color: #cccccc;
    line-height: 1.8;
    font-size: 18px;
}

.zalety {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 50px 0;
}

.karta {
    background-color: #191919;
    padding: 35px 20px;
    border-bottom: 3px solid red;
    border-radius: 8px;
    transition: 0.3s;
}

.karta:hover {
    transform: translateY(-10px);
    background-color: #252525;
}

@media (max-width: 768px) {
    .zalety {
        grid-template-columns: 1fr;
    }
}

/* PRZYKLEJONE MENU */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}


/* PRZYCISK POWROTU NA GÓRĘ */

#powrot {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: #c91c24;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(255,0,0,0.2);
}

#powrot.widoczny {
    opacity: 1;
    visibility: visible;
}

#powrot:hover {
    background: #ff3030;
    transform: translateY(-5px);
}


/* PASEK POSTĘPU */

#pasek-postepu {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(
        90deg, #8b0000, #ff3333
    );
    z-index: 2000;
}


/* ANIMACJE POJAWIANIA SIĘ */

.animacja {
    opacity: 0;
    translate: 0 35px;
    transition:
        opacity 0.7s ease,
        translate 0.7s ease;
}

.animacja.pokaz {
    opacity: 1;
    translate: 0 0;
}


/* MENU MOBILNE */

#hamburger {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 15px;
}

@media (max-width: 768px) {

    nav:has(#hamburger) {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 12px;
    }

    #hamburger {
        display: block;
        align-self: flex-end;
    }

    nav:has(#hamburger) a {
        display: none;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #333;
    }

    nav.otwarte a {
        display: block;
    }

    #powrot {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
    }
}


/* OGRANICZENIE ANIMACJI */

@media (prefers-reduced-motion: reduce) {

    .animacja,
    .animacja.pokaz {
        opacity: 1;
        translate: none;
        transition: none;
    }

    #powrot {
        transition: none;
    }
}

/* PRZEŁĄCZNIK JĘZYKÓW */

.jezyki {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: 25px;
}

.jezyk-btn {
    background: #191919;
    color: silver;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.jezyk-btn:hover {
    border-color: #e52222;
    color: white;
}

.jezyk-btn.wybrany {
    background: #c91c24;
    color: white;
    border-color: #e52222;
    box-shadow: 0 0 12px rgba(255,0,0,0.3);
}

@media (max-width: 768px) {

    .jezyki {
        margin: 10px 0;
    }

}

/* WSPÓLNE MENU I PRZYCISKI JĘZYKOWE */

nav {
    flex-wrap: wrap;
    gap: 20px;
}

nav .jezyki {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: 15px;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

nav .jezyk-btn {
    display: inline-block !important;
    background: #191919;
    color: white;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    visibility: visible !important;
    opacity: 1 !important;
}

nav .jezyk-btn:hover {
    background: #333;
    border-color: #e52222;
}

nav .jezyk-btn.wybrany {
    background: #c91c24;
    border-color: #e52222;
    color: white;
}

@media (max-width: 768px) {

    nav {
        gap: 12px;
    }

    nav .jezyki {
        margin: 10px 0;
    }

}
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    height: auto;
}

nav a[href="galeria.html"] {
    visibility: visible;
    opacity: 1;
    white-space: nowrap;
}

nav .jezyki {
    flex-shrink: 0;
}
/* PROFESJONALNA STOPKA SKARLOS TRANSPORT */

footer.stopka-firmowa {
    background: #101010;
    color: white;
    border-top: 3px solid #e52222;
    padding: 0;
    margin: 0;
    text-align: left;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.stopka-firmowa .stopka-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: auto;
    padding: 60px 5%;
}

.stopka-firmowa .stopka-kolumna {
    min-width: 0;
}


/* LOGO TEKSTOWE */

.stopka-firmowa .stopka-logo {
    font-size: 42px;
    font-weight: 900;
    color: #dddddd;
    letter-spacing: 2px;
}

.stopka-firmowa .stopka-logo span {
    color: #e52222;
}

.stopka-firmowa .stopka-transport {
    font-size: 13px;
    letter-spacing: 8px;
    color: #dddddd;
    margin-bottom: 25px;
}


/* NAGŁÓWKI */

.stopka-firmowa h3 {
    color: white;
    font-size: 22px;
    margin: 0 0 15px;
}

.stopka-firmowa .stopka-linia {
    width: 45px;
    height: 3px;
    background: #e52222;
    margin-bottom: 25px;
}


/* TEKST */

.stopka-firmowa p {
    font-size: 15px;
    color: #aaaaaa;
    line-height: 1.8;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}


/* LINKI */

.stopka-firmowa a {
    display: block;
    width: fit-content;
    color: #bbbbbb;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 13px;
    transition: 0.3s;
}

.stopka-firmowa a:hover {
    color: #e52222;
    transform: translateX(5px);
}


/* PRZYCISK KONTAKTOWY */

.stopka-firmowa a.stopka-przycisk {
    display: inline-block;
    background: #c91c24;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.stopka-firmowa a.stopka-przycisk:hover {
    background: #e52222;
    color: white;
    transform: translateY(-3px);
}


/* DOLNA CZĘŚĆ STOPKI */

.stopka-firmowa .stopka-dol {
    border-top: 1px solid #333;
    background: #080808;
    text-align: center;
    padding: 20px;
}

.stopka-firmowa .stopka-dol p {
    margin: 0;
    color: #888888;
    font-size: 13px;
}


/* TABLETY */

@media (max-width: 1000px) {

    .stopka-firmowa .stopka-container {
        gap: 30px;
    }

    .stopka-firmowa .stopka-logo {
        font-size: 34px;
    }

}


/* TELEFONY */

@media (max-width: 768px) {

    .stopka-firmowa .stopka-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 25px;
        text-align: center;
    }

    .stopka-firmowa .stopka-linia {
        margin: 15px auto 25px;
    }

    .stopka-firmowa a {
        margin-left: auto;
        margin-right: auto;
    }

    .stopka-firmowa .stopka-logo {
        font-size: 38px;
    }

}

/* WERSJA MOBILNA SKARLOS TRANSPORT */

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.mobile-pasek {
    display: none;
}


/* TELEFONY I TABLETY */

@media (max-width: 900px) {

    .mobile-pasek {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #111111;
        padding: 15px 20px;
        border-bottom: 2px solid #e52222;
    }

    .mobile-logo {
        color: #dddddd;
        font-size: 25px;
        font-weight: 900;
        text-decoration: none;
        letter-spacing: 2px;
    }

    .mobile-logo span {
        color: #e52222;
    }

    .mobile-przycisk {
        background: #222222;
        color: white;
        border: 1px solid #555;
        border-radius: 6px;
        font-size: 28px;
        padding: 5px 12px;
        cursor: pointer;
    }

    nav.menu-mobilne {
        display: none !important;
        position: static;
        width: 100%;
        height: auto;
        padding: 15px;
        box-sizing: border-box;
        background: #151515;
    }

    nav.menu-mobilne.otwarte {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav.menu-mobilne a {
        display: block !important;
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #333;
        font-size: 16px;
        margin: 0;
    }

    nav.menu-mobilne .jezyki {
        display: flex !important;
        justify-content: center;
        margin: 20px 0 5px;
    }


    /* STRONA GŁÓWNA */

    .hero {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        background-image: none !important;
    }

    .hero::before {
        content: "";
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: url("tlo.png") center / contain no-repeat;
    }

    .hero .tekst {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 25px 20px !important;
        text-align: center;
    }

    .hero .tekst h1 {
        font-size: 32px !important;
        line-height: 1.2;
    }

    .hero .tekst p {
        font-size: 16px !important;
        line-height: 1.6;
    }


    /* POZOSTAŁE ZAKŁADKI */

    .onas-container,
    .uslugi-container,
    .kontakt-container,
    .warunki {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 90% !important;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        gap: 25px;
    }

    .kalkulator-container {
        width: 100%;
        box-sizing: border-box;
        padding: 25px 15px;
    }

    .kalkulator {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .formularz input,
    .formularz select,
    .formularz textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .mapa iframe {
        width: 100%;
        height: 300px;
    }

    footer.stopka-firmowa .stopka-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .stopka-firmowa .stopka-linia {
        margin-left: auto;
        margin-right: auto;
    }

    .stopka-firmowa a {
        margin-left: auto;
        margin-right: auto;
    }

}


/* MAŁE TELEFONY */

@media (max-width: 480px) {

    .hero .tekst h1 {
        font-size: 27px !important;
    }

    .onas-naglowek h1,
    .uslugi-naglowek h1,
    .kontakt-naglowek h1,
    .galeria-naglowek h1,
    .kalkulator-naglowek h1,
    .kariera h1 {
        font-size: 28px !important;
        overflow-wrap: break-word;
    }

    .galeria-grid {
        grid-template-columns: 1fr !important;
    }

    .przycisk {
        max-width: 100%;
        box-sizing: border-box;
        font-size: 14px;
    }

}

/* Oryginalne logo w stopce */

.stopka-logo-obraz {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stopka-logo-obraz:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #ff000060);
}

@media (max-width: 768px) {

    .stopka-logo-obraz {
        width: 250px;
        margin: 0 auto 20px;
    }

}

/* Usunięcie napisu ze stopki */

.stopka-logo {
    font-size: 0 !important;
}

.stopka-logo span {
    font-size: 0 !important;
}

.stopka-transport {
    display: none !important;
}

.stopka-logo img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

/* Poprawione wyrównanie stopki */

.stopka-firmowa .stopka-kolumna {
    text-align: center !important;
    min-width: 0;
}

.stopka-firmowa .stopka-logo-obraz {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 25px;
}

.stopka-firmowa .stopka-linia {
    margin: 15px auto 25px !important;
}

.stopka-firmowa .stopka-kolumna p {
    text-align: center !important;
}

.stopka-firmowa .stopka-kolumna a {
    text-align: center !important;
}

.stopka-firmowa .stopka-kolumna ul {
    padding: 0;
    list-style: none;
    text-align: center;
}

.stopka-firmowa .stopka-kolumna li {
    text-align: center;
}

.stopka-firmowa .stopka-przycisk {
    display: inline-block;
    margin: 20px auto 0;
}

.stopka-firmowa .stopka-container {
    align-items: start;
}

@media (max-width: 768px) {

    .stopka-firmowa .stopka-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}

/* Wyśrodkowanie telefonu i adresu e-mail */

.stopka-firmowa a[href^="tel:"],
.stopka-firmowa a[href^="mailto:"] {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 5px auto 15px !important;
    padding: 0 !important;
    float: none !important;
}

/* Oryginalne logo w menu mobilnym */

.mobile-logo {
    display: flex !important;
    align-items: center;
    font-size: 0 !important;
}

.mobile-logo .logo-mobilne {
    display: block !important;
    width: 150px !important;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

.mobile-pasek {
    align-items: center;
    justify-content: space-between;
}
