:root{
    --color1: rgb(42, 48, 57);

    --color2: #fff;

    --color3: #9a884b;

    --font-title:  "Cormorant Garamond", serif;

    --font-subtitle: "Inter" , sans-serif;


}

/* body komentarz */



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;

}

body {
    position: relative;
    z-index: 0;
    height: 100%;
    background-color: var(--color1);
    background-image:
            radial-gradient(circle at 10% 10%, rgba(255, 234, 93, 0.45) 0, transparent 55%),
            radial-gradient(circle at 85% 90%, var(--color1), transparent 55%);
    background-repeat: no-repeat;
    overflow-x:  hidden;

}


/* "tło" jako pseudo-element, który możemy obracać */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;

    width: 520px;
    height: 520px;

    background-image: url("images/logo-white-scale.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 1;
    filter: brightness(2);

    pointer-events: none;
    z-index: -1;

    transform-style: preserve-3d;

    /* UWAGA: żadnego transform tutaj! */
    animation: bgSpin 10s linear infinite;
}

@keyframes bgSpin {
    from {
        transform: translate(-50%, -50%) rotateY(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateY(360deg);
    }
}

.body-image{
    position: absolute;
    bottom:5rem;
    left:50%;
    transform:translate(-50%,-50%);
}



            /*NAVBAR-------------*/

.navbar {
    height:5rem;
    display: flex;
    flex-direction: row;
    align-items: center;

    position: sticky;
    top: 0;
    z-index:10;
    width: 100%;
    font-size: 1.2rem;
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 5rem);

    background-color: rgba(154, 136, 76, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);


}

.navbar ul {
    display:flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    list-style-type: none;
    z-index:10;
    margin:0 auto;

}

.navbar ul li a{
    color: var(--color2);
    font-family: "Cormorant Garamond", serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    z-index:10;
    filter: brightness(2);
}

.navbar a .logo{

    width:auto;
    object-fit: cover;
    z-index:10;
    cursor: pointer;
    filter: brightness(2);
    height: clamp(3.5rem, 8vw, 4.5rem);
}

.phone-icon-wrapper{
    display: flex;
    flex-wrap: nowrap;
}

.phone-icon-wrapper a{
    cursor: pointer;
}



.phone-icon-wrapper svg{
    width:1.25rem;
    height:1.25rem;
    color:white;
    margin:0.1rem 0.5rem 0 0;
}

.navbar .phone-number{
    color:white;
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;

}




/*BURGER-------------*/

.burger {
    display: none;                 /* pokażemy go dopiero w media query */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    width: 2.4rem;
    height: 2.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 11;                   /* nad tłem navbara */
}

.burger span {
    display: block;
    width: 1.6rem;
    height: 1px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.4s ease, opacity 0.4s ease, width 0.4s ease;
}

/* animacja w X po otwarciu menu */
.navbar.nav-open .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar.nav-open .burger span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.navbar.nav-open .burger span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}



                    /*
                    MAIN SECTION------------
                    */



.main{

    display: flex;
    flex-direction: column;
    gap:4rem;
}



                    /*HERO-SECTION------------*/



.hero-section{
    position:relative;
    width: 100%;
    background-color: transparent;
    margin-top:-5rem;
    height: 650px;       /* hero zawsze wysoki, ale nie przesadnie */
    overflow: hidden;


}

.hero-section img{
    height:100%;
    width:100%;
    opacity: 1;
    filter: brightness(0.9);
    object-fit: cover;
    position:relative;


}

.hero-section:after{

    content: "";
    height:auto;
    min-height: min(80vh, 650px);
    position: absolute;
    inset: 0;              /* top:0; right:0; bottom:0; left:0 */
    background: rgba(27, 27, 27, 0.3);
    pointer-events: none;
    filter:blur(10px);
    box-shadow: inset 0 0 400px rgba(245, 245, 245, 0.1);
    z-index:2;
}


.hero-section h1{
    position: absolute;
    left: 10rem;                          /* procentowo – trzyma się względnej pozycji */
    bottom: 10rem;
    font-family: "Cormorant Garamond", serif;

    padding: 20px;
    color:white;
    border-radius:3rem;


    font-size:  4rem;
    font-weight: 500;
    z-index: 10;

    text-shadow:
            0 4px 12px rgba(0,0,0,0.8),
            0 0 25px rgba(0,0,0,0.7);  /* mocny cień podnosi kontrast na zdjęciu */

}



                        /*FUTURE-HOUSE-SECTION------------*/

.future-section{
    display: flex;
    flex-direction: column;
    overflow:hidden;
}

.future-house-container{
    display: flex;

    margin:0 5rem;
    gap:1rem;

}


.future-house-wrapper{
    display: flex;
    height:100%;
    width:100%;

}


.future-house-container div img{
    width:100%;
    height:100%;
    object-fit: cover;
    border: 2px #9a884b solid;
    box-shadow: 0 0 10px #9a884b;
    filter:brightness(0.9);
}

/* kontener karty */
.future-info-wrapper {
    border:2px #9a884b solid;
    height: 32rem; /* stała wysokość – dzięki temu wiemy kiedy overflowuje */
    width: 100%;
    background: radial-gradient(circle at 0 0, rgba(255, 234, 93, 0.1) 0, transparent 55%),
    rgba(20, 22, 28, 0.95);
    border-radius: 1rem;
    box-shadow: 0 0 10px #9a884b;
    font-weight: 500;
    font-family: var(--font-subtitle), sans-serif;
    overflow:hidden;
}

/* WEWNĘTRZNY DIV – tu robimy scroll */
.future-info-wrapper > div {
    padding: 0 3rem;
    border-radius: 1rem;
    height: 96%;
    color: white;
    border: #9a884b 2px solid;
    margin: .5rem;

    overflow-y: auto;   /* 👈 pionowy scrollbar gdy potrzeba */
    overflow-x: hidden; /* 👈 brak scrolla poziomego */
}


.future-info-wrapper div h2{
    text-align:center;
    padding:1.5rem;
    font-weight: 500;
    font-family: var(--font-title), serif;
    font-size: 2rem;
    text-shadow:1px 1px 2px #9a884b;
    color: #e4d39a;

}

.future-info-wrapper > div::-webkit-scrollbar {
    margin:.3rem 1rem;
    width: 5px;
}

.future-info-wrapper > div::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin:.4rem 0;
    padding-right:1rem;

}

.future-info-wrapper > div::-webkit-scrollbar-thumb {
    background: #9a884b;
    border-radius: 8px;

}

.future-info-wrapper > div::-webkit-scrollbar-thumb:hover {
    background: #bca55a;

}

.future-info-wrapper div ul{
    display: flex;
    flex-direction: column;
    gap:0;
    list-style-type: none;
    box-shadow: 0 0 2px #9a884b;
    padding:1rem;

}

.future-info-wrapper div ul li span{
    font-weight:bold;

    font-family: var(--font-subtitle), sans-serif;
    font-size: 1rem;

    color: #e4d39a;
}



.future-info-wrapper div a{

    text-decoration: underline;
    display: inline-block;
    width: 100%;
    text-align:center;
    cursor:pointer;
    font-weight: 500;
    font-family: var(--font-subtitle), sans-serif;
    font-size: 1.1rem;
    color: #e4d39a;
    padding-bottom:.8rem;

}

.future-info-wrapper div p{
    line-height: 1.35rem;

    font-family: var(--font-subtitle), sans-serif;
    font-size: 1rem;
    box-shadow: 0 0 2px #9a884b;
    padding:.5rem;

}

.swiper {
    width: 50%;
    height: 510px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}



                   /* STANDARD-SECTION---------*/



.standard-section{
    color:white;
    height:35rem;
    background-image: url("images/Happy-family.jpg"); /* ścieżka do pliku */
    background-size: cover;         /* dopasuj do całej sekcji */
    background-position: center;    /* wyśrodkuj obraz */
    background-repeat: no-repeat;
}


.standard-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* tu ustawiasz kolor + przezroczystość */
    box-shadow: inset 0 0 400px rgba(245, 245, 245, 0.27), 0 0 20px #9a884b ;
}

.standard-info{
    position: relative;
    margin:0 2rem;
    padding:1rem;
    line-height: 1.5;
    text-shadow:
            0 4px 12px rgba(0,0,0,0.8),
            0 0 25px rgba(0,0,0,0.7);  /* mocny cień podnosi kontrast na zdjęciu */
}

.standard-info h2{
    font-weight: 500;
    font-family: var(--font-title), serif;
    font-size: 3rem;
    padding:8rem 5rem 5rem;

}




                        /*O-NAS-SECTION-----------*/




.o-nas-section{

    height:auto;

    display: flex;
    color:white;
    border-radius: .5rem;
    gap: .2rem;
    margin:0 5rem;
    border:#9a884b 2px solid;
    background: radial-gradient(circle at 0 0, rgba(255, 234, 93, 0.1) 0, transparent 55%),
    rgba(20, 22, 28, 0.95);
    box-shadow: 0 0 10px #9a884b;
}

.o-nas-container{
    width: 50%;
    line-height: 1.7;
    font-size:1.2rem;
    padding:1rem;
    border-radius: .5rem;
}

.o-nas-container h2{
    text-align:center;
    font-weight: 500;
    font-family: var(--font-title), serif;
    font-size: 3rem;
    text-shadow:1px 1px 2px #9a884b;
    color: #e4d39a;
}


.o-nas-container p{
    font-weight: 300;
    font-family: var(--font-subtitle), sans-serif;
    font-size: 1rem;
    box-shadow: 0 0 2px #9a884b;
    padding:2rem 1rem;
    text-shadow:1px 1px 2px #9a884b;
    height:84%;
}

.o-nas-container p span{
    font-weight:bold;
    color: #e4d39a;
}


.o-nas-image-wrapper{
    width:50%;
    height: auto;
    box-shadow:0 0 2px #9a884b;
}

.o-nas-image-wrapper div{
    height: auto;
    margin: 1rem 1rem;

}

.o-nas-image-wrapper img{
    width:100%;
    height:33rem;
    object-fit: cover;
    border: #9a884b 2px solid;
    box-shadow:0 0 10px #9a884b;
}




                        /*PAST-HOUSE-SECTION------------*/




.past-house-container{
    display:flex;
    flex-direction: column;
    border: #9a884b 2px solid;
    box-shadow:0 0 10px #9a884b;
    margin: 1rem 5rem;
    border-radius: .5rem;
    background: radial-gradient(circle at 0 0, rgba(255, 234, 93, 0.1) 0, transparent 55%),
    rgba(20, 22, 28, 0.95);
}

.past-house-container div h2{
    padding: 1rem;
    font-size: 2.3rem;
    font-weight: 500;
    color: #e4d39a;
    font-family: "Cormorant Garamond", serif;
    text-align: center;
    text-transform: uppercase;
    text-shadow:1px 1px 2px #9a884b;

}


.past-house-container .past-house-image-wrapper{
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    padding:0 1rem 1rem 1rem;
    justify-content: space-between;
    border-radius: .5rem;
}

.past-house-container .past-house-image-wrapper .past-house{
    display:flex;
    position:relative;

    height:30rem;
    width:100%;
    flex-wrap:nowrap;
}

.past-house-container .past-house-image-wrapper div img{

    width:100%;
    height:100%;
    object-fit: cover;
    border: #9a884b 1px solid;
    filter: grayscale(10%) brightness(0.85);
    cursor:pointer;
    transition: filter 0.3s ease;
}

.past-house-container .past-house-image-wrapper div img:hover{
    filter:grayscale(5%) brightness(1);
}



.past-house-container .past-house-image-wrapper .past-info-container{
    position: absolute;
    height:20%;
    width:100%;
    padding:2rem;
    background: rgba(25, 25, 25, 0.6);
    bottom:0;
    font-family: "DM Serif Text", serif;
    font-weight:normal;
    font-size: 1.3rem;
    overflow: hidden;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    gap: .5rem;

    transition: height 0.6s ease,  background-color 0.6s ease;
}


.past-house-container .past-house-image-wrapper .past-info-container.open{
    height: 80%;
    background: rgba(25, 25, 25, 0.85);
}


.past-info-header{
    display:flex;
    align-items: center;
    flex-direction: row;
    gap: 10rem;


}


.past-info-container h3{

    font-size: 1.5rem;

    cursor:pointer;
    color: whitesmoke;
    margin:0;
    font-family: "Cormorant Garamond", serif;

}



.past-arrow{
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    transition: transform 0.6s ease;
    color:white;
    position:absolute;
    right: 2rem;
    top:1.5rem;
}

.past-info-container.open .past-arrow{
    transform: rotate(180deg);
    top:.5rem;
}

/* szczegóły – początkowo lekko ukryte (fade-in) */
.past-info-details{
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 0.95rem;
    color: white;

}


.past-info-details p{
    padding: .3rem;
    line-height: 20px;
    font-family: "Inter" , sans-serif;
    font-size: 0.9rem;
    font-weight: 300;

}

.past-info-details p span{

    font-family: "Inter" , sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: #e4d39a;
}

/* po otwarciu */
.past-info-container.open .past-info-details{
    opacity: 1;
    transform: translateY(0);
}












                    /*FADE-IN-ANIMATION-------*/



.reveal{
    transform: translateY(20px);
    opacity:0;
    transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}


.reveal--visible{
    transform: translateY(0);
    opacity:1;
}


.reveal.delay-1 {
    transition-delay: .4s;
}
.reveal.delay-2 {
    transition-delay: .8s;
}
.reveal.delay-3 {
    transition-delay: 1s;
}





                        /*LOGO-ANIMATION----------*/



.logo-bg {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: -1;
    perspective: 800px; /* dodaje efekt głębi */
}

.logo-bg img {
    width: 500px;
    animation: spin3d 5s linear infinite;
    transform-style: preserve-3d;
}

@keyframes spin3d {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}










                /*FOOTER----------------*/


footer{
    background-color: rgba(20, 22, 28, 0.99);;
    color:white;
    opacity:0.95;
    padding:4rem;
    font-family: "Cormorant Garamond", serif;
}


.footer-container{

    width:90%;
    height:100%;
    display: flex;
    justify-content: center;
    margin:0 auto;
    gap:3rem;
    flex-wrap:nowrap;
    text-shadow:
            0 0 2px rgba(0,0,0,0.8),
            0 0 2px rgba(0,0,0,0.7);
}

.footer-info{

    display:flex;
    flex-direction: column;
    margin:0;
}

footer div h2{
    margin-bottom:2rem;

    cursor:pointer;

    font-weight: 400;
    font-family: var(--font-title), serif;
    font-size: 2.6rem;

}

footer div a, footer div p{
    color:white;
    text-decoration: none;
    margin-bottom:.5rem;
    cursor:pointer;
    font-weight: 300;
    font-family: var(--font-subtitle), sans-serif;
    font-size: 1.15rem;
}


#oferty, #o-nas {
    scroll-margin-top: 8rem;  /* albo 6–7rem, jeśli navbar jest wyższy */
}

@media (max-width: 1290px) {

    .o-nas-container p{

        font-size:.96rem;
        padding:.9rem 1rem;

    }
}

/*MEDIA________--------*/

@media (max-width: 1200px) {

    .hero-section {

        height: 650px; /* hero zawsze wysoki, ale nie przesadnie */

    }


    .hero-section h1 {

        left: 8rem;
        bottom: 10rem;
    }


    .future-house-container{


        margin:0 3rem;

    }


    .future-info-wrapper{
        height: 32rem;
        width: 100%;
    }

    .future-info-wrapper div{
        padding:0 2rem;
        height: 96%;
        margin:.5rem;
    }

    .future-info-wrapper div h2{

        padding:.95rem;

        font-size: 1.8rem;


    }

    .future-info-wrapper div ul{
        font-size:.95rem;
        padding:.85rem;

    }

    .future-info-wrapper div ul li span{

        font-size: .95rem;
    }



    .future-info-wrapper div a{
        font-size: 1rem;

    }

    .future-info-wrapper div p{
        line-height: 1.25rem;
        font-size: .9rem;

        padding:.85rem;

    }



    /*O-NAS-SECTION-----------*/




    .o-nas-section{

        gap: .2rem;
        margin:0 3rem;

    }




    .o-nas-container p{

        font-size:.93rem;
        padding:.9rem 1rem;

    }





    /*PAST-HOUSE-SECTION------------*/




    .past-house-container{

        margin: 0 3rem;
    }


}


@media (max-width: 1050px) {


    /*NAVBAR-------------*/


    .navbar ul {
        gap: 2rem;

    }

    .navbar ul li a{

        font-weight: 500;
        font-size: .9rem;
    }


    .phone-icon-wrapper svg{

        width:1rem;
        height:1rem;
    }

    .navbar .phone-number{
        font-size: 1rem;

    }




    .hero-section h1 {
        font-size: 3.5rem;
        left: 7rem;
        bottom: 10rem;
    }




    .future-house-container{
        display: flex;

        margin:0 2rem;
        gap:1rem;
    }

    .o-nas-section{

        display: flex;
        flex-direction: column;
        gap: .2rem;
        margin:0 1rem;

    }


    .o-nas-container p{


        padding:.89rem 1rem;

    }



    .o-nas-container{
        width: 100%;
    }



    .o-nas-container h2{

        font-size: 3rem;

    }


    .o-nas-container p{

        font-size: 1rem;
        padding:2rem 1rem;
    }


    .o-nas-image-wrapper{
        width:100%;
        height: auto;
    }

    .o-nas-image-wrapper div{
        height: auto;

        margin: 1rem 1rem;

    }

    .o-nas-image-wrapper img{
        width:100%;
        height:20rem;

    }


    .past-house-container{

        margin: 1rem 2rem;
    }

    .past-house-container div h2{
        padding: 1rem;
        font-size: 2.1rem;

    }



}



@media (max-width: 900px) {

    .future-house-container{
        display: flex;
        flex-direction: column;

        margin:0 4rem;
        gap:.5rem;
    }

    .swiper {
        width: 95%;
        height: 400px;


    }

    /* kontener karty */
    .future-info-wrapper {
        border:2px #9a884b solid;
        height: 450px; /* stała wysokość – dzięki temu wiemy kiedy overflowuje */
        width: 100%;

    }




    .past-house-container{

        margin: 1rem 1rem;
    }

    .past-house-container div h2{
        padding: .9rem;
        font-size: 2rem;

    }


    .past-house-container .past-house-image-wrapper{

        padding:0 .8rem .8rem .8rem;
    }

    .past-house-container .past-house-image-wrapper .past-house{


        height:26rem;
        width:100%;

    }



    .past-house-container .past-house-image-wrapper .past-info-container{
        height:20%;
        width:100%;
        padding:2rem 1.5rem;
    }



    .past-info-header{
        gap: 10rem;
    }


    .past-info-container h3{

        font-size: 1.2rem;

    }



    .past-arrow{
        font-size: 2.4rem;

        right: 2rem;
        top:1.7rem;
    }

    .past-info-container.open .past-arrow{
        top:.7rem;
    }

    /* szczegóły – początkowo lekko ukryte (fade-in) */
    .past-info-details{

        font-size: 0.95rem;
    }


    .past-info-details p{
        padding: .3rem;
        line-height: 15px;

        font-size: 0.8rem;

    }

    .past-info-details p span{

        font-size: .8rem;
    }



    .footer-container {

        width: 90%;

    }


    footer div h2{
        margin-bottom:2rem;

        font-size: 2rem;

    }

    footer div a, footer div p{

        font-size: 1rem;
    }
}



@media (max-width: 800px) {

    .navbar {
        gap: 1rem;
        padding-inline: 1.5rem;
    }

    /* pokaż burgera */
    .burger {
        display: flex;
        margin-left:auto;

    }

    /* menu – schowane domyślnie, pokazuje się po kliknięciu */
    .navbar ul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(240px, 70vw);

        margin: 0;
        padding: 5rem 1.5rem 2rem; /* miejsce na górze, żeby nie wchodzić na navbar */
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;

        background: rgba(15, 17, 22, 0.95);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-left: 1px solid rgba(154, 136, 75, 0.7);
        box-shadow: -12px 0 25px rgba(0,0,0,0.6);

        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .4s ease, opacity .3s ease;
        z-index: 10;
    }

    /* kiedy navbar ma klasę .nav-open – wysuwamy menu */
    .navbar.nav-open ul {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar ul li a {
        font-size: 0.95rem;
    }

    /* opcjonalnie: telefon przesunąć trochę bliżej środka */
    .phone-icon-wrapper {
        display:none;
    }





    .hero-section h1 {
        font-size: 3rem;
        left: 6rem;
        bottom: 12rem;
    }


    .standard-info h2{

        font-size: 2.5rem;
        padding:5rem 4rem;
    }






}


@media (max-width: 700px) {

    .main{


        gap:3rem;
    }


    .hero-section {

        height: 640px; /* hero zawsze wysoki, ale nie przesadnie */

    }


    .hero-section h1 {
        font-size: 2.5rem;
        left: 4rem;
        bottom: 15rem;
    }


    .future-house-container{


        margin:0 1rem;
        gap:.5rem;
    }

    .standard-info{

        line-height: 1.4;

    }


    .standard-info h2{

        font-size: 2.3rem;
        padding:5rem 2rem;
    }





    .past-house-container .past-house-image-wrapper .past-house{


        height:23rem;
        width:100%;

    }



    .past-house-container div h2{
        padding: .9rem;
        font-size: 1.7rem;

    }










    footer{

        padding:3rem 1rem;

    }

    .footer-container {

        width: 100%;

    }





    footer div h2{
        margin-bottom:1rem;

        font-size: 1.8rem;

    }

    footer div a, footer div p{

        font-size: .9rem;
    }

}


@media (max-width: 500px) {

    body::before {
        width: 420px;
        height: 420px;
    }

    .navbar ul {

        width: min(200px, 70vw);

    }

    .navbar ul li a {
        font-size: 0.85rem;
    }


    .main{


        gap:2rem;
    }






    .hero-section h1 {

        left: 2rem;
        bottom: 15rem;
    }



    .future-house-container{


        margin:0 .5rem;
        gap:.4rem;
    }


    .standard-info{

        margin:0 1rem;
        padding:.5rem;
        line-height: 1.3;

    }


    .standard-info h2{

        font-size: 2rem;
        padding:4rem 0;
    }




    .o-nas-section{

        margin:.5rem;

    }

    .o-nas-container{
        width: 100%;
        line-height: 1.6;
        font-size:1.2rem;
        padding:1rem;
    }

    .o-nas-container h2{

        font-size: 2.5rem;

    }


    .o-nas-container p{
        font-size: .9rem;
        padding:2rem 1rem;
    }


    .o-nas-image-wrapper{
        width:100%;
        height: auto;
    }

    .o-nas-image-wrapper div{
        height: auto;

        margin: 1rem 1rem;

    }

    .o-nas-image-wrapper img{
        width:100%;
        height:20rem;

    }



    .past-house-container{

        margin: 0 .5rem;
    }

    .past-house-container div h2{
        padding: .8rem;
        font-size: 1.4rem;

    }


    .past-house-container .past-house-image-wrapper{

        padding:0 .5rem .5rem .5rem;
    }

    .past-house-container .past-house-image-wrapper .past-house{
        height:20rem;
        width:100%;
    }



    .past-house-container .past-house-image-wrapper .past-info-container{
        height:20%;
        width:100%;
        padding:1.2rem 1.5rem;
    }



    .past-info-header{
        gap: 10rem;
    }


    .past-info-container h3{

        font-size: 1.1rem;

    }



    .past-arrow{
        font-size: 2rem;

        right: 2rem;
        top:1rem;
    }

    .past-info-container.open .past-arrow{
        top:.3rem;
    }

    /* szczegóły – początkowo lekko ukryte (fade-in) */
    .past-info-details{

        font-size: 0.95rem;
    }


    .past-info-details p{
        padding: .3rem;
        line-height: 12px;

        font-size: 0.7rem;

    }

    .past-info-details p span{

        font-size: .7rem;
    }





    footer{

        padding:2rem .6rem .6rem .6rem;

    }



    .footer-container{
        display:grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap:1rem;

    }




    footer div h2{
        margin-bottom:.6rem;

        font-size: 1.5rem;

    }

    footer div a, footer div p{

        font-size: .75rem;
    }

}



@media (max-width: 400px) {



    .hero-section h1 {
        font-size: 2.2rem;
        left: 1rem;
        right:auto;
        bottom: 13rem;
        padding:5px;
    }



    .future-info-wrapper div{
        padding:0 1rem;
        margin:.4rem;
    }

    .future-info-wrapper div h2{

        padding:.8rem;

        font-size: 1.6rem;


    }

    .future-info-wrapper div ul{
        font-size:.85rem;
        padding:.8rem;

    }

    .future-info-wrapper div ul li span{

        font-size: .85rem;
    }



    .future-info-wrapper div a{
        font-size: .9rem;
        padding-bottom: .9rem;

    }

    .future-info-wrapper div p{
        line-height: 1.25rem;
        font-size: .85rem;

        padding:.75rem;

    }


    .standard-info h2{

        font-size: 1.7rem;
        padding:5rem 0;
    }



    .o-nas-container{

        line-height: 1.5;
        font-size:1rem;
        padding:.5rem;
    }

    .o-nas-container h2{

        font-size: 2.5rem;

    }


    .o-nas-container p{
        font-size: .85rem;
        padding:1.2rem .6rem;
    }


    .o-nas-image-wrapper div{
        height: auto;

        margin: .5rem;
    }

    .o-nas-image-wrapper img{
        width:100%;
        height:20rem;
    }
}




