/* Новое меню навигации */
.menu-container {
    width: 100%;
    margin: 0 auto;
    position: relative;

}

.menu-d {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    width: initial;
}

.logod {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logod a {
    display: flex;
    align-items: center;
}

.logod img {
    height: 50px;
    width: auto;
}

/* Скрываем nav-links на всех экранах */
.nav-links {
    position: fixed;
    top: 0;
    left: -200%;
    width: 320px;
    height: 100vh;
    background: #01101e;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 99999;
    margin: 0;
    list-style: none;
    overflow-y: auto;
}

.nav-links.active {
    left: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 16px;
}

.nav-links a:hover {
    color: #ca4212;
}

.nav-links::after {

}

/* Социальные иконки в десктопе - показываем */
.social-icons-d {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons-d a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
   
    transition: all 0.3s;
}

.social-icons-d a:hover {
    background: rgb(238, 83, 44);
}

.social-icons-d img {
    width: 18px;
    height: 18px;
    transition: filter 0.3s;
}

.social-icons-d a:hover img {
    filter: brightness(0) invert(1);
}

/* Мобильные социальные иконки - показываем всегда в меню */
.mobile-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mobile-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    transition: all 0.3s;
}

.mobile-social a:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: scale(1.1);
}

.mobile-social img {
    width: 20px;
    height: 20px;
}

/* Левая часть меню - логотип и бургер */
.menu-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* Бургер-меню показываем всегда */
.burger-menu {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}



.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: #000;
    border-radius: 3px;
}

.menu-close-btn {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.10);
}

.menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.20);
}

.menu-close-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
}

.language-selector-d {
    position: relative;
}

.language-current {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
    color: #000;
    font-family: sans-serif;
}

.language-current:hover {
    
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

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

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.20);
}

.language-option.selected {
    background: #ca4212;
    color: white;
}

.search-icon {

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;

    transition: background 0.3s;
}



.search-icon svg {
    width: 22px;
    height: 22px;
    stroke: #000;
}

.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #01101e;
    padding: 20px 30px;
    box-shadow: -10px 10px 10px -8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999;
}

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

.search-container {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 16px 60px 16px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    background: white;
    position: relative;
    z-index: 99;
}

.search-input:focus {
    border-color: #ca4212;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-submit {
    position: absolute;
    right: 60px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ca4212 0%, #ca4212 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
}

.search-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-submit svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.search-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
}

.search-close:hover {
    background: #f3f4f6;
}

.search-close svg {
    width: 24px;
    height: 24px;
    stroke: #666;
}

/* Overlay для бургер-меню на всех экранах */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .menu-d {
        padding: 2px 10px;
    }
    
    .search-panel {
        padding: 15px 20px;
    }

    .nav-links {
        width: 280px;
    }

    /* Скрываем социальные иконки на мобильных из основного меню */
    .social-icons-d {
        display: none;
    }
}

@media (max-width: 480px) {
    .logod img {
        height: 40px;
    }

    .language-current {
        padding: 6px 10px;
        font-size: 14px;
    }

    .nav-links {
        width: 100%;
        max-width: 280px;
    }
}