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

/* =========================
   BURGER BASE (hidden on desktop)
========================= */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.burger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.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);
}

.language-selection{
  z-index: 99;
}

.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;
}


/* Responsive Adjustments */

@media (max-width: 1024px) {
    .nav-item-container {
      z-index: 9;
    }
  
    .nav-item {
        font-size: 17px !important;
    }
}

@media (max-width: 768px) {

    .nav {
        position: relative;
        width: 95%;
        justify-content: space-between;
        padding: 10px 15px;
    }

    /* SHOW BURGER */
    .burger {
        display: flex;
    }

    /* HIDE NAV ITEMS INITIALLY */
    .nav-item-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        flex-direction: column;
        align-items: center;

        background: #111;
        border-radius: 15px;

        padding: 20px;
        gap: 20px;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: 0.3s;
    }

    /* ACTIVE STATE */
    .nav-item-container.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .nav.gradient-border {
        background: none;
        padding: 0;
    }

    .nav-item {
        font-size: 18px;
    }
}

@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 */
    }
}

/* =========================
   BURGER ANIMATION
========================= */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
