header{
	margin: 40px 160px 20px;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    z-index: 10;
}

.nav-elem{
    height: 30px;
    width: 30px;
}

.nav-icons{
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.nav-elem:hover path{
    fill: var(--colorRed);
    transition: 0.3s;
}

/*МЕНЮ В АДАПТИВЕ*/
.header-adaptiv{
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.header-line{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-inline{
    display: flex;
    gap: 20px;
}




.nav-header {
    position: relative;
}

.search-back{
    background-color: var(--colorDarkGray);
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 999;
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
}

.search-container {
    position: absolute;
    top: 138px; /* Позиция под хэдером */
    left: 160px; /* Начало от левого края */
    right: 160px; /* Конец до правого края */
    display: none; /* Скрыть по умолчанию */
    background-color: var(--colorWhite);
    z-index: 1000; /* Поверх других элементов */
    flex-direction: column;
}

.search-inline{
    display: flex;
    justify-content: start;
    width: 100%;
}

.search-icon {
    cursor: pointer; /* Указатель при наведении */
}

.search-icon:hover {
    opacity: 0.7; /* Эффект при наведении */
}

/* Показать блок поиска при активном состоянии */
.show {
    display: block;
}

.search-input {
    width: 100%;
}



.search-adaptive-block{
    display: flex;
}

.search-adaptive-block button{
    z-index: 1;
}

.search-adaptive-block button:active{
    transform: scale(1);
}

.search-adaptive-block button:hover svg path{
    fill: var(--colorRed);
}

.nav-elem-adaptiv{
    height: 16px;
    width: 16px;
}

.search-adaptive-input{
    border-right: none;
}

/*МЕДИА*/
@media screen and (max-width: 1600px) {
    header{
        margin: 40px 120px;
    }

    .logo-link img{
        height: 40px;
        width: auto;
    }

    .nav-elem{
        height: 24px;
        width: 24px;
    }
    
    .nav-icons{
        gap: 40px;
    }
}

@media screen and (max-width: 1300px) {
    header{
        margin: 30px 80px;
    }

    .logo-link img{
        height: 30px;
        width: auto;
    }

    .nav-elem{
        height: 24px;
        width: 24px;
    }
    
    .nav-icons{
        gap: 30px;
    }
}

@media screen and (max-width: 1000px) {
    header{
        margin: 20px 60px;
    }

    .nav-header {
        display: none;
    
    }

    .header-adaptiv{
        display: flex;
    }
}

@media screen and (max-width: 660px) {
    
}

@media screen and (max-width: 480px) {
    
}

.header-adaptiv {
    position: relative;
}

.sidebar {
    position: fixed;
    display: none;
    width: 250px;
    height: 100%;
    background-color: var(--colorWhite);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    top: 0;
}

.sidebar.open {
    left: 0;
    display: flex;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--colorDarkGray);
}

.close-sidebar:hover{
    border: none;
    color: var(--colorRed);
}



/* Модальное окно авторизации */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.auth-modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.auth-modal__content {
    position: relative;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    z-index: 1001;
}

.auth-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.auth-modal__title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
    color: #333;
}

/* Адаптация стандартной формы авторизации */
.bx-authform {
    padding: 0;
    background: none;
    box-shadow: none;
}