/* ==================== НАВИГАЦИЯ ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.navbar.scrolled {
  /* background-color: rgba(40, 40, 40, 0.4); */
  /* backdrop-filter: blur(50px); */
}

.navbar-content {
  width: 100%;
  max-width: var(--container-max-width);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(40, 40, 40, 0.2);
  backdrop-filter: blur(50px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: var(--font-text-l-size);
  font-weight: 500;
  color: var(--color-white);
  height: 24px;
}

.logo img {
  height: 24px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.logo svg {
  flex-shrink: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-menu a {
  font-size: var(--font-text-m-size);
  font-weight: 500;
  color: #DDDDDD;
  line-height: 20px;
  letter-spacing: -0.28px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.navbar-menu a:hover {
  opacity: 0.7;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Бургер-меню - скрыт на десктопе */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #DDDDDD;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-icon img,
.lang-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.lang-text {
  display: flex;
  align-items: center;
}

.lang-text span {
  font-size: var(--font-text-m-size);
  font-weight: 400;
  color: #DDDDDD;
  line-height: 20px;
  letter-spacing: -0.28px;
}

.lang-dropdown-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-dropdown-arrow svg {
  width: 24px;
  height: 24px;
}

.lang-selector.active .lang-dropdown-arrow {
  transform: rotate(180deg);
}

/* Lang dropdown styles */
.lang-selector {
  position: relative;
  cursor: pointer;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 120px;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lang-selector.active .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-menu .lang-option,
.mobile-lang-dropdown .lang-option,
.footer-lang-dropdown .lang-option {
  display: block;
  padding: 10px 16px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #DDDDDD !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
  border: none !important;
  border-bottom: none !important;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none !important;
}

.lang-dropdown-menu .lang-option:hover,
.mobile-lang-dropdown .lang-option:hover,
.footer-lang-dropdown .lang-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
  color: #FFFFFF !important;
}

.lang-dropdown-menu .lang-option.active,
.mobile-lang-dropdown .lang-option.active,
.footer-lang-dropdown .lang-option.active {
  color: #FFFFFF !important;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile lang dropdown */
.mobile-menu-lang {
  position: relative;
}

.mobile-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 120px;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu-lang.active .mobile-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Footer lang dropdown */
.footer-lang-selector {
  position: relative;
  cursor: pointer;
}

.footer-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 120px;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.footer-lang-selector.active .footer-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-lang-selector.active .footer-lang-arrow {
  transform: rotate(180deg);
}

.footer-lang-arrow {
  transition: transform 0.2s ease;
}

.btn-login {
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: 'Onest', sans-serif;
  font-size: var(--font-text-m-size);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: var(--color-white);
  background: transparent;
  border: 1px solid #7E7E7E;
  border-radius: 32px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.btn-login:hover {
  opacity: 0.7;
}

.btn-signup {
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: 'Onest', sans-serif;
  font-size: var(--font-text-m-size);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.28px;
  border-radius: 32px;
  white-space: nowrap;
  background-color: var(--color-white);
  color: #101010;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.btn-signup:hover {
  /* opacity: 0.8; */
}

/* ==================== МОБИЛЬНОЕ МЕНЮ ==================== */
.mobile-menu {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 2000;
  display: none;
  flex-direction: column;
  background: rgba(40, 40, 40, 0.2);
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 20px 24px;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  height: 24px;
}

.mobile-menu-logo img {
  height: 24px;
  width: auto;
}

.mobile-menu-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-actions .auth-buttons-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-link {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.32px;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-menu-link:hover {
  opacity: 0.7;
}

.mobile-menu-footer {
  display: flex;
}

.mobile-menu-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-lang span {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: #DDDDDD;
}

/* Запрет скролла body когда меню открыто */
body.mobile-menu-open {
  overflow: hidden;
}

/* Overlay для закрытия меню при клике вне */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== RESPONSIVE: TABLET (768px - 1024px) ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .mobile-menu {
    display: flex;
  }

  .mobile-menu-signup {
    display: inline-flex;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 12px 16px;
  }

  .navbar-content {
    width: 100%;
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    box-sizing: border-box;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-left {
    gap: 16px;
  }

  .navbar-actions {
    gap: 8px;
  }

  .lang-selector {
    display: none;
  }

  .burger-menu {
    display: flex;
  }
}

/* ==================== RESPONSIVE: MOBILE (<768px) ==================== */
@media (max-width: 767px) {
  .mobile-menu {
    display: flex;
    top: 20px;
    left: 20px;
    right: 20px;
    border-radius: 24px;
    padding: 12px 20px 40px;
    gap: 24px;
  }

  .mobile-menu-logo img {
    height: 16px;
  }

  .mobile-menu-actions {
    gap: 12px;
  }

  .mobile-menu-actions .btn-login {
    height: 32px;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: -0.24px;
  }

  .mobile-menu-signup {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px;
  }

  .navbar-content {
    padding: 12px 20px;
    width: calc(100% - 0px);
    max-width: 100%;
  }

  .logo img {
    height: 16px;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-actions {
    gap: var(--spacing-s);
  }

  .btn-text {
    display: none;
  }

  .lang-selector {
    display: none;
  }

  .btn-signup {
    display: none;
  }

  .burger-menu {
    display: flex;
  }
}
