/* Основные стили хедера */
.header {
    position: absolute;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
}

.logo {
  margin-left: auto;
  order: 2;
  display: flex;
  align-items: center;
}
.logo img {
  height: 55px;
  width: 300px;
}

.header-right {
    display: flex;
    align-items: center;
}

.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    margin-right: 30px;
}

.nav ul li {
    margin: 0 20px;
}

.nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #cccccc;
}

.language-selector select {
    padding: 10px 15px;
    border: 2px solid #FFFFFF;
    background-color: transparent;
    font-size: 14px;
    width: 70px;
    color: #FFFFFF;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.language-selector option {
  background-color: #143c7c; 
  color: #FFFFFF;             
}



.language-selector select:hover {
    border-color: #cccccc;
}

.language-selector select:focus {
    outline: none;
}

/* Бургер-кнопка */
.burger-btn {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 90px;
    height: 100vh;
    background: #143c7c;
    z-index: 1000;
    transition: transform 0.3s ease;
    padding: 100px 30px 30px;
    overflow-y: auto;
    transform: translateX(-100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.mobile-nav-list li {
    margin-bottom: 25px;
}

.mobile-nav-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.mobile-language {
    margin-top: 30px;
}

.mobile-language select {
    padding: 10px 15px;
    border: 2px solid #FFFFFF;
    background-color: transparent;
    font-size: 14px;
    width: 70px;
    color: #FFFFFF;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

/* Анимация бургера в "крестик" */
.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Мобильные устройства */
@media (max-width: 991px) {
.header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 8px;
        z-index: 100;
    }

    .header-right .nav {
        display: none;
    }

    .header-mobile-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .burger-btn {
        display: block;
    }

    .header-right .language-selector {
        display: none;
    }
  }


    
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: #143c7c;
    z-index: 1000;
    transition: transform 0.3s ease;
    padding: 100px 30px 30px;
    overflow-y: auto;
    transform: translateX(-100%);
}    

.mobile-nav-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
}

.mobile-language select {
    padding: 10px 15px;
    border: 2px solid #FFFFFF;
    background-color: transparent;
    font-size: 20px;
    width: 70px;
    color: #FFFFFF;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 15px;
}

.mobile-language option {
    background-color: #143c7c; 
    color: #FFFFFF;             
}

/* Десктоп */
@media (min-width: 992px) {
    .mobile-menu,
    .mobile-menu-overlay,
    .header-mobile-right {
        display: none;
    }
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 8px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
  }
  .logo {
    margin: 0;
    padding: 0;
    order: 3;
  }
  .logo img {
    height: 48px;
    width: 270px;
    transition: height 0.2s, max-width 0.2s;
  }
  .header-right,
  .language-selector {
    display: none !important;
  }
  .header-mobile-right {
    display: flex;
    align-items: center;
    order: 2;
    margin: 0 0 0 8px;
  }
  .burger-btn {
    display: block;
    width: 38px;
    height: 38px;
    padding: 8px;
    background: none;
    border: none;
    z-index: 102;
  }
  .burger-line {
    width: 22px;
    height: 2.5px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
  }
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 90vw;
    max-width: 220px;
    height: 100vh;
    background: #143c7c;
    z-index: 101;
    padding: 92px 16px 16px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 2px 0 16px rgba(0,0,0,0.12);
  }
  .mobile-menu.active {
    transform: translateX(0);
  }
  .mobile-menu-overlay {
    background: rgba(0,0,0,0.45);
    z-index: 100;
  }
  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    align-items: flex-start;
    margin: 0;
    padding: 0;
  }
  .mobile-nav-list li {
    margin: 0;
    width: 100%;
  }
  .mobile-nav-list a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 10px 0 8px 4px;
    border-radius: 4px;
    display: block;
    width: 100%;
    text-align: left;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-nav-list a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffd700;
  }
  .mobile-language {
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: flex-start;
  }
  .mobile-language select {
        padding: 10px 15px;
    border: 2px solid #FFFFFF;
    background-color: transparent;
    font-size: 14px;
    width: 70px;
    color: #FFFFFF;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
  }

.mobile-language option {
    background-color: #143c7c; 
    color: #FFFFFF;             
}
}