#menu{
    height: 125px;
    background-color: white;
    width: 100%;
    position: static;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
   justify-content: space-between;
   z-index: 10;
   box-shadow: 0 2px 8px 0 rgba(50, 50, 50, 0.301);
   padding: 0px 20px;
   font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
#img{
    height: 100%;
    width: fit-content;
}
#img img{
    height: 100%;
    width: auto;
}
a{
    color: unset;
    text-decoration: none;
}
#nav{
    display: flex;
    gap: 25px;
    list-style: none;
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    position: relative;
}
li{
    color: black;
    display: block;
    position: relative;
    font-weight: 400;
}
li::before, li::after {
    width: 0%;
    height: 3px;
    content: "";
    position: absolute;
    top: 100%;
    display: block;
    background: transparent;
    transition: all 0.5s ease-in-out;
}
li::before{
    left: -1.5px;
}

li::after {
    left: 1.5px;
}

li:hover::before{
    background: #4c6d59;
    width: 100%;
}
#expand{
    animation: expand  .5s ease-in-out forwards;
}
#shrink{
    animation: shrink .5s ease-in-out forwards;
}
li:hover::after {
    width: 100%;
    transition: 0s;
}
@keyframes expand {
    from {
      font-weight: 400;
    }
    to {
      font-weight: 700;
    }
  }
@keyframes shrink{
    from {
        font-weight: 700;
    }
    to {
        font-weight: 400;
    }
}
#drop {
    position: relative;
    display: inline-block;
}
#drop:hover #dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#dropdown {
    opacity: 0;
    visibility: hidden;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    height: 200px;/* zmieniono z width: 100% */
    width: min-content;
    position: absolute;
    top: 100%; /* Ustawiamy dropdown poniżej elementu */
    left: 0;
    transform: translateY(30px); /* Startowe przesunięcie niżej */
    transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10;
}
#drop:hover #dropdown {
    transform: translateY(10px); /* Końcowa pozycja lekko obniżona */
}
#dropdown ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}
#dropdown li {
    position: relative;
    padding: 10px 20px;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}
#dropdown li::before, 
#dropdown li::after {
    width: 0%;
    height: 3px;
    content: "";
    position: absolute;
    top: 100%;
    background: transparent;
    transition: width 0.4s ease-in-out, background 0.4s ease-in-out;
}
#dropdown li::before {
    left: 0;
    background: #4c6d59;
}

#dropdown li:hover::before {
    width: 100%;
}

#drop:hover #dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
    pointer-events: auto; /* Dzięki temu elementy wewnętrzne nie resetują hovera */
}
@media screen and (max-width: 1024px) {
    #menu{
        height: 100px;
    }
    #nav{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
        flex-basis: 100%;
    }
    li{
        text-align: center;
    }
}
#menu.active{
    height: fit-content;
    flex-wrap: wrap;
}
#menu.active #img{
    height: 100px;
}
#menu.active #nav{
    height: 100%;
    padding: 10px 0;
    display: flex;
    justify-content: flex-start;
}
#menu.unactive #nav{
    display: none;
}
/* cross */
.cross {
    display: inline-block;
    cursor: pointer;
  }
  
  .bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
  }
  
  .change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }
  
  .change .bar2 {opacity: 0;}
  
  .change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }
  #menu.fixed{
    position: fixed;
  }