/* ===== HEADER ===== */

/* ===== HEADER ===== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 40px;
  z-index: 1000;

  transition: transform 0.3s ease;
  background: transparent;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.5);
}


header.hidden {
  transform: translateY(-100%);
}

/* левая часть */
.left-header {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--main-color);
  white-space: nowrap;
}

/* NAV */
.main-nav {
  margin-left: 40px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--main-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #cccccc;
}

/* LANGUAGE */
.lang-buttons-desktop {
  display: flex;
  width: 140px;
  margin-left: auto;
  font-weight: bold;
   font-family: 'Jost', sans-serif;
}

.lang-buttons-desktop button {
  flex: 1;
  background: none !important;
  border: none;
  color: var(--main-color) !important;
  cursor: pointer;
  font-weight: bold;
}

/* MOBILE */
.lang-buttons-mobile {
  display: none;
}

/* HAMBURGER */
.hamburger {
  display: none;
}
/* ===== 📱 MOBILE ===== */

@media (max-width: 768px) {

  header {
    height: 70px;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;


  .site-name,
  .lang-buttons-desktop {
    display: none;
  }

  .lang-buttons-mobile {
    display: flex;
    gap: 10px;
    margin-left: 20px;
  }

  .lang-buttons-mobile button {
    background: none;
    border: none;
    color: var(--main-color);
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    white-space: nowrap;
  }

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  header {
    height: 70px;
    padding: 0;

    /* тоже без прозрачности */
    background: #080f19;

    box-shadow: none;
  }

  .site-name,
  .lang-buttons-desktop {
    display: none;
  }

  .lang-buttons-mobile {
    display: flex;
    gap: 10px;
    margin-left: 20px;
  }

  .hamburger {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 75px;
  height: 15px;
  margin-left: auto;
  margin-right: 20px;
  cursor: pointer;
}

  .hamburger span {
    height: 2px;
    background: var(--main-color);
  }

.main-nav {
  position: fixed;
  top: 0;
  right: 0;

  width: 50vw;
  height: 100vh;

  background: linear-gradient(
  to left,
  #080f19 0%,
  rgba(8, 15, 25, 0.95) 40%,
  rgba(8, 15, 25, 0.5) 70%,
  transparent 100%
);

  padding: 60px 20px 20px;

  transform: translateX(100%);
  transition: transform 0.4s ease;
}

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav.active {
    transform: translateX(0);
  }
}