.header {
  margin-top: 70px;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.nav {
  display: flex;
  background-color: #1819197e;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
}

.nav-item {
  font-size: 18px;
  font-family: 'Satoshi-Medium', sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
}

.gradient-border{
  position: relative;
  border-radius: 20px;
  padding: .9px;
  /* толщина бордера */
  background: linear-gradient(90deg,
      #5762656e,
      #9ea1a159,
      #848b8a6c,
      #57626565,
      #5762655b,
      #757a7b57,
      #5762655b);
}

.nav-item-container {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
  background: #111;
  /* внутренний фон */
  border-radius: 20px;
  padding: 18px 26px;
}

.custom-select,
.custom-select * {
  font-family: 'Satoshi-Medium', sans-serif;
}

.custom-select {
  margin-left: 20px;
  position: relative;
  width: 80px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  background: transparent;
  color: #797A7A;
}

.select-selected {
  padding: 8px 20px 8px 10px;
  position: relative;
  background: transparent;
  color: #797A7A;
}

.color-white {
  color: white !important;
}

.select-selected::after {
  content: "▼";
  margin-left: 5px;
  font-size: 10px;
  color: #797A7A;
}

.select-options {
  display: inline-block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  background: transparent;
}

.select-option {
  padding: 8px 10px;
  background: transparent;
  color: #797A7A;
}

.select-option:hover {
  background: transparent;
}

/* Responsive Adjustments */

@media (max-width: 1024px) {
    .nav-item-container {
        gap: 15px; /* Reduce gap on tablets */
        padding: 14px 20px;
    }
    
    .nav-item {
        font-size: 16px; /* Slightly smaller text */
    }
}

@media (max-width: 768px) {
    .header {
        margin-top: 30px; /* Reduce top margin on mobile */
        flex-direction: column; /* Stack nav and language selector */
        gap: 20px;
    }

    .nav-item-container {
        flex-wrap: wrap; /* Allow items to drop to next line if needed */
        justify-content: center;
        gap: 10px 20px; /* Vertical gap 10px, Horizontal 20px */
        padding: 15px;
    }

    .custom-select {
        margin-left: 0; /* Remove the left margin since it's now centered below */
    }
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 14px; /* Smaller text for small phones */
    }
    
    .nav-item-container {
        gap: 10px;
    }

    .nav {
        width: 95%; /* Ensure it doesn't touch screen edges */
    }
}