:root {
  --neon-blue: #00f3ff;
  --neon-pink: #ff00ff;
  --neon-purple: #9d00ff;
  --dark-bg: #0a0a14;
  --darker-bg: #050510;
  --text-glow: 0 0 10px currentColor;
  --green: #00ff00;
  --b: #00f3ff; 
  --p: #ff00ff; 
  --r: #00ff00; 
  --d: #0a0a14;
  --g: rgba(0,243,255,0.1); 
  --c: 0 0 2px currentColor, 0 0 5px currentColor; 
  --h: 44px;
}

/* СТИЛИ ПЕРЕКЛЮЧАТЕЛЯ ЯЗЫКА */

/* Десктопный переключатель языка */
.desktop-language-switcher {
    position: relative;
    margin-left: 20px;
}

.desktop-lang-btn {
    background: transparent;
    color: var(--b);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    line-height: 1.4;
    text-transform: uppercase;
}

.desktop-lang-btn::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 4px;
}

.desktop-lang-btn:hover,
.desktop-lang-btn:focus {
    box-shadow: 0 0 8px var(--b);
    background-color: rgba(0,243,255,0.1);
    outline: none;
}

.desktop-lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10,10,20,0.95);
    border: 1px solid var(--b);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--b);
    z-index: 1002;
    min-width: 60px;
    margin-top: 5px;
}

.desktop-lang-dropdown.active {
    display: block;
}

.desktop-lang-option {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--b);
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
}

.desktop-lang-option:hover,
.desktop-lang-option:focus {
    background: rgba(0,243,255,0.1);
    outline: none;
}

/* Мобильный переключатель языка */
.mobile-language-switcher {
    position: relative;
    margin-right: 10px;
}

.mobile-lang-btn {
    background: transparent;
    color: var(--b);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    min-width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    line-height: 1.4;
    text-transform: uppercase;
}

.mobile-lang-btn::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 3px;
}

.mobile-lang-btn:hover,
.mobile-lang-btn:focus {
    box-shadow: 0 0 8px var(--b);
    background-color: rgba(0,243,255,0.1);
    outline: none;
}

.mobile-lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10,10,20,0.95);
    border: 1px solid var(--b);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--b);
    z-index: 1002;
    min-width: 50px;
    margin-top: 5px;
}

.mobile-lang-dropdown.active {
    display: block;
}

.mobile-lang-option {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--b);
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.mobile-lang-option:hover,
.mobile-lang-option:focus {
    background: rgba(0,243,255,0.1);
    outline: none;
}

/* Навигация */
.main-nav { 
    background: rgba(10,10,20,0.9); 
    padding: 1rem; 
    border-bottom: 2px solid var(--b); 
    box-shadow: 0 0 10px var(--b); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    position: relative;
    width: 100%;
}

.nav-container {
    position: relative;
}

.nav-list { 
    display: flex; 
    list-style: none; 
    gap: 1.5rem; 
    margin: 0 auto; 
    justify-content: center; 
    position: relative;
    flex-wrap: wrap;
    align-items: center;
}

.nav-item { position: relative; }

.nav-link { 
    color: var(--b); 
    text-decoration: none; 
    padding: 0.5rem 1rem; 
    display: block; 
    transition: all 0.3s ease; 
    position: relative; 
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.4;
}

.nav-link::before { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--r); 
    transition: width 0.3s ease; 
}

.nav-link:hover, .nav-link:focus { 
    color: var(--r); 
    outline: none;
}

.nav-link:hover::before, .nav-link:focus::before { 
    width: 100%; 
}

/* Выпадающее меню */
.dropdown-menu { 
    display: none;
    position: absolute; 
    background: rgba(10,10,20,0.95); 
    list-style: none; 
    min-width: 220px; 
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--b); 
    box-shadow: 0 0 15px var(--b); 
    backdrop-filter: blur(10px); 
    z-index: 1100;
    border-radius: 0 0 8px 8px;
}

.nav-item:hover .dropdown-menu { display: block; }

.dropdown-menu .nav-link {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0,243,255,0.1);
}

.dropdown-menu .nav-link:last-child { border-bottom: none; }
.dropdown-menu .nav-link:hover { 
    background: rgba(0,243,255,0.1);
    color: var(--r);
}

/* Мобильная навигация */
.mobile-header {
    display: none;
    background: rgba(10,10,20,0.9);
    padding: 10px 15px;
    border-bottom: 2px solid var(--b);
    box-shadow: 0 0 10px var(--b);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
    width: 100%;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.page-title {
    color: var(--b);
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--b);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,20,0.98);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-nav.active { display: block; animation: fadeIn 0.3s ease; }

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-item { border-bottom: 1px solid rgba(0,243,255,0.2); }

.mobile-nav-link {
    display: block;
    color: var(--b);
    text-decoration: none;
    padding: 15px 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link:focus {
    color: var(--r);
    background: rgba(0,243,255,0.1);
}

.mobile-dropdown {
    display: none;
    background: rgba(20,20,30,0.8);
    border-left: 2px solid var(--b);
    margin-left: 15px;
}

.mobile-dropdown.active { display: block; }

.mobile-dropdown-link {
    display: block;
    color: var(--b);
    text-decoration: none;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,243,255,0.1);
}

.mobile-dropdown-link:last-child { border-bottom: none; }

.mobile-dropdown-link:hover, .mobile-dropdown-link:focus {
    color: var(--r);
    background: rgba(0,243,255,0.1);
}

.mobile-nav-toggle {
    background: none;
    border: none;
    color: var(--b);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: auto;
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Адаптация для мобильных устройств */
@media(max-width:576px){ 
  .main-nav { display: none; }
  .mobile-header { display: block; }
  
  .desktop-language-switcher {
      display: none;
  }
}

/* Для десктопов */
@media(min-width:577px){
  .mobile-header { display: none; }
  .main-nav { display: block; }
}