body {
    color: white;
    /* Inter byl ustawiony, ale nigdy nieladowany - przegladarka i tak brala systemowy.
       Zamiast dociagac font z zewnatrz, uzywamy rodzimego kroju kazdego systemu. */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    position: initial;
}

header {
    position: fixed;
    z-index: 1000;
    width: 100%;
}

footer {
    color: black;
    font-size: 20px;
    font-weight: bold;
    padding: 25px 0;
    background-color: #f2a70c;
}

footer a {
    color: black;
}

.main-photo {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("./../img/backgroud-photo.png");
    height: 500px;
    width: 100%;
}

.main-photo-black {
    width: 100%;
    height: 500px;
    backdrop-filter: brightness(0.5);
    background-color: rgba(0, 0, 0, 0.35); /* zapas dla przegladarek bez backdrop-filter */
}

body > main > .segment:nth-child(odd) {
    background-color: #021b29;
}

body > main > .segment:nth-child(even) {
    background-color: #01141f;
}

.segment {
    padding: 50px 0;
}

.segment img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.offer-title {
    color: #f2a70c;
}

.cennik {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cennik li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(242, 167, 12, 0.25);
}

.cennik li:last-child {
    border-bottom: 0;
}

.cennik strong {
    color: #f2a70c;
    white-space: nowrap;
}

.logo-div {
    margin: 10px;
    padding: 10px;
    background-color: #f2a70c;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: black;
}

.logo-div > img {
    width: 35px;
    height: 35px;
    margin-right: 10px;
}

.contact-button {
    margin: 10px;
    font-size: 16px;
    padding: 10px;
    background-color: #f2a70c;
    border-radius: 25px;
    color: black;
    display: flex;
    font-weight: bold;
    align-items: center;
}

/* Wjazd sekcji z boku. Przesuniecie dziala TYLKO gdy JavaScript wystartowal
   (klasa .js na <html>). Bez tego warunku wylaczony albo niezaladowany skrypt
   zostawial cala tresc wypchnieta poza ekran - strona wygladala na pusta. */
.js .show-slide {
    position: relative;
    transition-duration: 1.5s;
}

.js .show-slide:nth-child(odd) {
    transform: translateX(-125%);
}

.js .show-slide:nth-child(even) {
    transform: translateX(125%);
}

.js .fadeIn {
    transform: translateX(0) !important;
}

.main-photo-black h1 {
    /* bylo sztywne 100px - na telefonie napis rozjezdzal uklad */
    font-size: clamp(2.25rem, 11vw, 100px);
    margin: 0;
}

@media (max-width: 768px) {
    /* background-attachment: fixed potrafi sie zaciac albo rozjechac na iOS */
    .main-photo {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .show-slide {
        transition-duration: 0s;
        transform: none !important;
    }
}
