html {
    border: none;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #f3e2dc;
    --secondary-color: #a99289;
    --accent-color: #6b4f4f;
    --text-color: #594440;
    --header-font: "Lora";
    --header-font-serif: "Lora", serif;
    --text-font: "Open Sans";
    --text-font-serif: "Open Sans", serif;
}
body {
    background-color: var(--primary-color);
    margin: 0;

}
header {
    padding: 25px;
}
.navbar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-gap: 10px;

}
.navbar li a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    font-family: var(--header-font);
}

.navbar li a:hover {
    color: var(--accent-color);
}
nav.navbar {
    display: grid;
}
.navlogo {
    text-align: center;
}
.linie-gradient {
    height: 4px;
    width: 80%;
    margin: 20px auto;
    background: linear-gradient(to right, transparent, black, transparent);
    border-radius: 2px;
    
}
.siatka-uslug {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 5em;
    align-items: stretch;
    justify-content: center;
}
.tytul-sekcji {
    text-align: center;
}
.usluga {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
}
.usluga-img {
    max-height: 300px;
    max-width: 225px;
    width: auto;
    object-fit: cover;
    margin: 0 auto;

}
.najazd:hover {
    box-shadow: 0px 5px 20px var(--accent-color);
    transform: scale(1.05);
    transition: 1s ease;
    border-radius: 15px;
}
.usluga-tytul {
    text-align: center;
}
#uslugi {
    max-width: 80%;
    margin: 0 auto;
    padding-bottom: 50px;
}
.ramka-img {
    border: 2px solid var(--accent-color);
    padding: 55px;
    margin: 0 auto;
}
.navname {
    font-size:x-large;
    font-weight: bold;
}
.navlogo {
    font-size: small;
}
.kontener-omnie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: minmax(100px, auto);
    max-width: 80%;
    margin: 0 auto;
    align-items: start;
}
.zdjecie-omnie {
    padding: 20px;
    max-width: 70%;
    height: auto;
}
div.zdjecie-omnie img{
    max-width: 100%;
    height: auto;
}
@media (min-width: 768px) {
    .opis-omnie {
        padding: 50px;
        left: 40px;
        top: 50px;
        z-index: 2;
        position: relative;
        background-color: var(--primary-color);
    
    }
}

.opis-uslugi {
    text-align: justify;
    margin: 20px 0px;
    height: 280px;
}
.opis-uslugi:last-child{
    margin-bottom: 0;
}
.zdjecie-omnie {
    display: inline-block;
    position: relative;
}
#cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}
#cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

#omnie {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-bottom: 30px;
    margin-bottom: 2em;
}

#omnie::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/img/las.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}
.header {
    font-family: var(--header-font-serif);
}
.text {
    font-family: var(--text-font-serif);
    font-size: 1.1em;
    line-height: 1.5em;
}
.anodec {
    text-decoration: none;
    color: inherit;
}
.m-logo {
    display: none;
}
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .navbar {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: space-evenly;
    }
    .logo {     
        display: none;
    }
    .m-logo {
        display: inline-block;
    }
    .navlogo.text.m-logo {
        padding-bottom: 10px;
    }
    .kontener-omnie {
        display: flex;
        flex-direction: column;
        padding: 20px;
        align-items: center;
    }

    .zdjecie-omnie {
        order: 1; 
        margin-top: 20px;
    }

    .opis-omnie {
        order: 2; 
        padding: 50px;
        z-index: 2;
        background-color: var(--primary-color);
    }

    
    .siatka-uslug {
        grid-template-columns: 1fr; 
        gap: 20px; 
    }

    .usluga {
        text-align: center; 
    }

    body {
        padding: 0;
        margin: 0;
    }

    section {
        padding: 20px;
    }
    .usluga-img1{
        width: 100%;
        height: auto;
    }
    .opis-uslugi {
        text-align: justify;
        margin: 20px 0px;
        height: auto;
    }
}
.btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    position: relative;
    height: 20px;
}
.ctabtn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.kontakt-tekst {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.kontakt-dane-wiersz {  
    display: flex;
    width: 100%;
    margin: 10px 0;
    align-items: center;
}
.kontakt-dane-ikona {
    margin-right: 10px;
}
.kontener-kontakt {
    padding: 20px 0px;
}
.kontener-cennik {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}
.footer {
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
}
.gallery {
    max-width: 500px;
    height: auto;
    object-fit: cover;
    
}
#gabinet {
    max-width: 80%;
    margin: 0 auto;
}
.gabinet-tekst {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ptext {
    margin-bottom: 15px;
    text-align: justify;
}
.ul {
    list-style-type: disc;
}
.li {
    margin-bottom: 10px;
    text-align: justify;
}
.h2 {
    font-size: 1em;
    font-family: var(--header-font-serif);
}
.opis-omnie-tytul {
    text-transform: uppercase;
    text-shadow: var(--primary-color);
    text-align: center;
}
.text-shadow {
    text-shadow: 0px 5px 20px var(--accent-color);
}


.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    display: none; 
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 3;
}

body:has(:nth-child(2):nth-of-type(1)) .scroll-to-top-btn {
    display: block;
    opacity: 1;
}

.scroll-to-top-btn:hover {
    background-color: var(--secondary-color);
}

a.disabled {
    color: gray; 
    text-decoration: none; 
    cursor: not-allowed; 
    pointer-events: none; 
    opacity: 0.6; 
}
.shadow {
    box-shadow: 0px 5px 20px var(--accent-color);
    transform: scale(1.05);
    transition: 1s ease;
    border-radius: 15px;
}
.p-r-10 {
    padding-right: 10px;
}