@media (max-width: 800px){
    .header__nav{
        display: none;
    }
    
    .mini_header__nav{
        display: flex;
    }

    
}

@media (min-width: 801px){
    .header__nav{
        display: flex;
    }
    
    .mini_header__nav {
        display: none;
    }
}


header{
    top: 0; 
    left: 0; 
    width: 100%;
    z-index: 100;
}

.header__nav{
    width: 90%;
    max-height: 45px;

    position: fixed;

    background-color: white;
    filter:drop-shadow(0px 3px 5px rgba(0,0,0,0.15000000596046448));
    border-radius:0px 0px 15px 15px;
    margin-left: 5%;
    margin-right: 5%;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;

    justify-content: left;
}

.header__nav img{
    width: 30px;
    height: 30px;
}

.header__nav ul{
    list-style: none;
    padding: 0;

    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 0;

    display: flex;
    align-items: center;
}

.header__nav ul li{
  display: inline-block;
  margin-right: 15px; 
}

/* Выпадающее меню */
.header__nav li:hover ul{
    display: block;
}

.header__nav > ul > li{
    position: relative;
}

ul.header_list li{
    display: block;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

ul.header_list > li:last-child {
    border-bottom: none;
}

ul.header_list{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    padding: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
    width: auto;
    
    border-radius: 10px;

    filter:drop-shadow(0px 4px 4px rgba(0,0,0,0.25));
    text-align: left;
    font-size: 20px;
    font-family: "Instrument Sans", sans-serif;
    font-weight: 600;
}

ul.header_list a{
    white-space: nowrap;
    width: 100%;
    display: block;
}

ul.header_list a:hover{
    color: #0396ff;
}

ul.header_list > li > a{
    color: black;
    font-size:20px;
    font-family: "Instrument Sans", sans-serif;
    font-weight: 600;
    border-style:hidden;
    outline:none;
    text-decoration: none;

    padding: 5px 15px;
    position: relative; z-index: 3;
}

ul.header_list > li:hover::before{
    content: ''; 
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: 0 5px 10px #666;
    position: absolute;
}

/* Конец выпадающего меню */

.header_btn {
    color: black;

    text-align:center;
    white-space: normal;
    display: inline-block;
    
    font-size: 20px;
    font-weight: 600;
    line-height:auto;
    border-style:hidden;
    outline:none;
    text-decoration: none;

    padding-left: 5px;
    padding-right: 5px;
}

.header_btn:hover{
    color: #0396ff;
}

a.header_btn.list {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: #000000 !important;
}

a.header_btn.list:hover {
    color: #000000;
}
/* Mini Header */
.mini_header__nav {
    width: 100%;
    max-height: 35px;

    position: fixed;
    top: 0;
    background-color: white;
    filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.15));
    padding: 5px 0;
    z-index: 1000;
}
        
.mini_header__nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin: 0;
}
        
.mini_header__nav img {
    width: 30px;
    height: 30px;
}

.menu-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Стили для выпадающего меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 28px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu li {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    display: block;
}

.mobile-menu a:hover {
    color: #0396ff;
}

/* Стили для подменю */
.submenu {
    display: none;
    padding-left: 20px;
    background-color: #f9f9f9;
}

.submenu.active {
    display: block;
}

.has-submenu > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
}

.has-submenu.active > a::after {
    content: "▲";
}

/* Анимация для плавного открытия/закрытия */
.submenu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.submenu.active {
    max-height: 500px;
}

.m-logo{
    font-size: 22px;
    font-weight: 600;
    color: black;
    text-decoration: none;
}