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;

}

.contact-section {
  padding: 7.5vh 20px;
  max-width: 1000px;
  margin: 0 auto;
  font-family: 'Cinzel', serif;
  color: #2c2c2c;
}

.contact-section h1 {
  text-align: center;
  font-size: 2.4em;
  margin-bottom: 10px;
}

.contact-section p {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555;
}

.contact-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1 1 500px;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
  font-size: 1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  font-size: 1em;
  border: 1px solid #bbb; /* ciemniejszy kolor dla widoczności */
  border-radius: 6px;
  background: #fffaf5;
  font-family: 'Cinzel', serif;
  box-sizing: border-box; /* ← kluczowe! */
}

.contact-form label {
  display: block;
  margin-bottom: 10px; /* mniejsze odstępy */
  font-size: 1em;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 20px;
  padding: 14px;
  width: 100%;
  font-size: 1.1em;
  background-color: #f39247;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Cinzel', serif;
}

.contact-form button:hover {
  background-color: #d49f3c;
}


.contact-info {
  flex: 1 1 300px;
  padding: 20px;
    background-color: #fffdfa;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-info h2 {
  margin-top: 0;
  font-size: 1.4em;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1em;
  line-height: 1.4;
}

.contact-info h3 {
  margin-top: 20px;
  font-size: 1.2em;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }
  .contact-section h1{
    font-size: 1.8em;
  }

}

.error{
    color: red;
}

.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: 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%;
    }
}