nav {
  padding: 30px 40px;
  font-family: 'Montserrat', sans-serif;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #594a47;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 16px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #a1866f;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #a1866f;
}

nav ul li a:hover::after {
  width: 100%;
}

.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a,
.nav-list .current-menu-ancestor > a {
  color: #a1866f;
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #73876e; /* Twój kolor */
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
  z-index: 2000;
  border: 1px solid #fdf6ef;
  border-radius: 6px;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 770px) {
  .back-to-top {
    display: none; /* ukryj na desktopie */
  }
}



@media (min-width: 770px) {
  nav {
    position: fixed;   
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;      
    background-color: #f2ecec;
  }
}
