body{
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 16px;
    background-color: #f4f1ec;
    color: #222;
}

.head{
    background-color: #1b2129;
    display: flex;
    justify-content:space-between;
    align-items: center;
    padding: 0 50px;
}

.logo img{
    width: 130px;
    height: auto;
}

.logo{
    height: 130px;
}

.nav{

    height: 150px;
    text-align: center;
    
}

.nav ol{
    list-style-type: none;
    vertical-align: middle;
    padding: 0;
    margin: 0;
    height: 150px;
    display: flex;
    align-items: center; 

}

.nav li{
    margin: 20px;
}

.nav li ul{
    display: block;
    list-style-type: none;
    position: absolute;
    padding: 10px;
    background-color: #1b2129;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.nav li ul li{

    margin-left: 5px;
    text-align: left;
}

.nav li:hover ul{
    max-height: 500px; /* ustawić odpowiednią wartość większą niż najwyższe menu */
    opacity: 1;
}

.nav li a{
    text-decoration: none;
    color: #f4ebd0;
    font-size: 1.3em;
    transition: all .1s ease-in-out;
}

.active{
    color: #f39247 !important;
}

a:hover{
    opacity: 0.7;

}

.hero{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('kuznia.jpg');
    width: 100%;
    height: 100vh;
    background-size: cover;        /* dopasowuje do szerokości, przycina nadmiar */
    background-position: center center;   /* wycentrowane tło */
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items:center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 19px 38px 0px, rgba(0, 0, 0, 0.1) 0px 15px 12px 0px;
}

.hero h1{
    color: #f4ebd0;
    text-align: center;
    font-size: 3em;
    margin-bottom: 0;
    
}

.hero h2{
    color: #f4ebd0;
    text-align: center;
    font-size: 1.5em;
}

.hero button{
    font-family: "Cinzel", serif;
    border: none;
    display: flex;
    padding: 1.5rem 2rem;
    background-color: #1b2129;
    color: #f4ebd0;
    font-size: 1.5em;
    line-height: 1rem;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    align-items: center;
    border-radius: 0.5rem;
    user-select: none;
    gap: 0.75rem;
    transition: all 0.6s ease;
    margin-top: 10vh;
    
    background-color: transparent;
    color: #f4ebd0;
    border: 2px solid #f4ebd0;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.hero button:hover {
    transform: scale(1.05);
}


.hero div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.presentation{
    padding: 7.5vh 0;
    width: 100%;
}

.presentation h1{
    font-size: 2em;
    margin-bottom: 0;
    text-align: center;
}

.presentation p{
    font-size: 1.25em;
    text-align: center;
    margin-bottom: 7.5vh;

}

.presentation h1, .presentation p{
    padding: 0 20px;
}

.presentation .imgs {
    display: flex;
    justify-content: center;   /* wyśrodkowanie w poziomie */
    flex-wrap: wrap;           /* pozwala zawijać zdjęcia, jeśli za mało miejsca */
    gap: 20px;                 /* odstępy między zdjęciami */
}

.presentation .imgs img {
    width: 40%;
    height: auto;
    transition: transform 0.4s;
}

.presentation .imgs img:hover {
    transform: scale(1.025);
}

.productss{
    
    width: 100%;
    background-color: #1b2129;
    padding: 7.5vh 0;
    text-align: center;
    color: #f4ebd0;
    
}

.productss h1{
    font-size: 2em;
    margin-bottom: 0;
    text-align: center;
}

.products{
    display: flex;
    justify-content: center;   /* wyśrodkowanie w poziomie */
    flex-wrap: wrap;           /* pozwala zawijać zdjęcia, jeśli za mało miejsca */
    gap: 20px;
    margin-top: 7.5vh;  
}

.product{
    width: 30vw;
    margin: 20px;
    padding: 5px;
}

.product img{
    width: 30vw;
    transition: transform 0.4s;
}

.product img:hover{
    transform: scale(1.025);
}

.product h1{
    font-size: 1.4em;
}

.productss button{
    font-family: "Cinzel", serif;
    border: none;
    padding: 1.5rem 2rem;
    background-color: #1b2129;
    color: #f4ebd0;
    font-size: 1.5em;
    line-height: 1rem;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    align-items: center;
    border-radius: 0.5rem;
    user-select: none;
    gap: 0.75rem;
    transition: all 0.6s ease;
    margin-top: 2.5vh;
    
    background-color: transparent;
    color: #f4ebd0;
    border: 2px solid #f4ebd0;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.productss button:hover {
    transform: scale(1.05);
}

.testimonials {
    text-align: center;
    color: #222;          /* ciemny tekst dla kontrastu */
    padding: 7.5vh 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); /* delikatny cień */
    height: max-content;
}

.testimonials h1{
    font-size: 2em;
}

.slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.slide {
    display: none;
    transition: opacity 0.5s ease;
}

.slide.active {
    display: block;
}

.slide p {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 10px;
    color: #444;
}

.slide h4 {
    font-weight: normal;
    color: #666;
}

.controls {
    margin-top: 20px;
}

.controls button {
    background: #222;
    color: #fff;
    border: none;
    font-size: 2em;
    padding: 10px 20px;
    cursor: pointer;
    margin: 0 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.controls button:hover {
    background: #444;
}


.footer {
    background-color: #1b2129;
    color: #f4ebd0;
    padding: 40px 20px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding-bottom: 1vh;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h3, .footer-section h4 {
     margin-bottom: 15px;
    color: #ffffff;
}

.footer-section p, .footer-section li {
    font-size: 0.95em;
    line-height: 1.6;
}

.footer-section ul {
     list-style: none;
    padding: 0;
}

.footer-section a {
     text-decoration: none;
     color: #f4ebd0;
    transition: color 0.3s;
}

.footer-section a:hover {
     color: #d49f3c;
}

.footer-bottom {
     text-align: center;
     padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9em;
    color: #aaa;
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #d49f3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    transition: background-color 0.3s, transform 0.2s;
}

#scrollToTop:hover {
    background-color: #f39247;
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .product {
        width: 40vw;
    }

    .product img {
        width: 100%;
    }

    .products {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .head {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .logo {
        height: auto;
    }

    .nav {
        height: auto;
        width: 100%;
    }

    .nav ol {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    .nav li {
        margin: 10px 0;
    }

    .nav li ul {
        position: static;
        background-color: transparent;
        padding-left: 0;
        padding: 0;
    }
    .nav li ul li{
        margin-left: 0;
        text-align: center;
    }

    .nav li:hover ul {
        max-height: none;
        opacity: 1;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero h2 {
        font-size: 1.2em;
    }

    .product {
        width: 80vw;
    }

    .presentation .imgs img {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .presentation .imgs {
        flex-direction: column;
        align-items: center;
    }

    .products {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0px;
    }

    .footer-section {
        width: 100%;
        flex: 1 1;
    }

    .controls button {
        font-size: 1.5em;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hero{
        height: 80vh;
    }
    .hero h1 {
        font-size: 1.6em;
    }

    .hero h2 {
        font-size: 1em;
    }

    .hero button,
    .productss button {
        font-size: 1em;
        padding: 1rem 1.5rem;
    }
    .presentation h1{
        font-size: 1.6em;
    }
    .presentation p{
        font-size: 1em;
    }

    .slide p {
        font-size: 1em;
    }
    .productss h1{
        font-size: 1.6em;
    }
    .testimonials h1{
        font-size: 1.6em;
    }
    
    .product h1 {
        font-size: 1.2em;
    }

    .product img {
        width: 100%;
    }
}