.logo {
    color: orange;
    font-size: 40px;
}

.select-lang {
    background-color: initial;
    color: #a29e9b;
    border: 2px solid #a29e9b;
    border-radius: 16px;
    padding: 12px 12px;
    cursor: pointer;
    transition-duration: 500ms;
}

.select-lang:hover {
    background-color: rgb(122, 122, 122);
}

.select-lang:focus {
    background-color: rgb(227, 203, 182);
}

.select-lang option {
    color: #fff;
    background-color: #a29e9b;
    padding: 5px;
    font-size: 18px;
}

.admin__button {
    font-size: 16px;
    font-weight: 600;
    color: rgb(60, 58, 57);
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 10px;
    background-color: #ff8c00;
    transition: all 0.5s ease;
}

.admin__button:hover {
    background-color: rgb(227, 154, 91);
    border-color: rgb(227, 154, 91);
}

.view {
    display: none;
}

.header-adaptive {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(0);
    overflow-y: auto;
}

.header-adaptive.closed {
    transform: translateX(-100%);
}

.toggle-menu-search {
    display: flex;
    flex-direction: column;
}

.menu {
    position: absolute;
    top: 0;
    right: 10px;
    display: flex;
}

.categories-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu {
    margin-top: 15vh;
}

.main-menu li {
    position: relative;
    font-size: 24px;
    border-bottom: 1px solid white;
    padding-bottom: 15px;
}

.main-menu li img {
    position: absolute;
    right: 0px;
    top: -4px;
    width: 40px;
    height: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: #555;
}

.menu-item img {
    width: 30px;
    height: auto;
}

.additional-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 30px 0px;
}

.additional-links span {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid wheat;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
}

.additional-links span:hover {
    background-color: #555;
}

.close-button {
    position: absolute;
    top: -5px;
    left: 0px;
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
}

.close-button:hover {
    color: #ccc;
}

/***======================================================================================================****/

.search {
    position: relative;
}

.search-btn {
    position: absolute;
    top: 9px;
    right: 12px;
}

.search input {
    width: 250px;
    height: 50px;
    padding: 14px 16px;
    color: #a29e9b;
    background-color: inherit;
    border: 2px solid #a29e9b;
    border-radius: 16px;
    font-size: 90%;
    transition-duration: 500ms;
}

.search input:hover {
    background-color: rgb(122, 122, 122);
}

.search input:focus {
    background-color: rgb(227, 203, 182);
}

/* Когда текст введен в поле */
.search input:not(:placeholder-shown) {
    background-color: white;
}

/***======================================================================================================****/

/* adaptive menu */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: black;
    position: fixed;
    width: 100%;
    z-index: 999;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 100;
}

.burger-menu span {
    height: 4px;
    width: 28px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.4s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/*===========================================================================================================*/
.categories {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* кнопка каталог */

.categories > li:first-child {
    cursor: pointer;
    color: white;
    border-radius: 8px;
    width: max-content;
    font-size: 16px;
}

.categories li:not(:first-child),
.categories > li:first-child,
.menu {
    font-size: 20px;
}

/* выпадающее меню */

.categories li:not(:first-child) {
    display: none;
    margin-left: 10px;
}

.categories li a:hover {
    background: #333;
}

/* открытое меню */

.categories.active li {
    display: block;
}

.categories.active li:first-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.categories.active li:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
/*==========================================================================================================*/

.search-block {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    padding: 0px 10px;
    z-index: 999;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Центрирование относительно .search-block */
}

.search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    min-width: 0;
    color: white;
}

.search-button {
    padding: 10px 20px;
    background-color: #ff8c00; /* Оранжевый */
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-button:hover {
    background-color: #e67e00; /* Темнее при наведении */
}

/* MOBILE */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 0;
        flex-direction: column;
        background: black;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
    }

    .nav-links.active {
        max-height: 100vh;
        padding: 20px 0;
    }

    .nav-links li {
        margin: 12px 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .select-lang {
        padding: 10px 10px;
    }
}

@media (max-width: 576px) {
    .search-block {
        padding: 0 5px; /* Уменьшаем отступы на мобильных */
    }

    .search-form {
        max-width: 100%;
    }
}

@media (max-width: 425px) {
    .search-input {
        font-size: 14px; /* Меньший шрифт */
        padding: 8px; /* Меньшие отступы */
    }

    .search-button {
        padding: 8px 15px;
        font-size: 14px;
        white-space: nowrap; /* Запрещаем перенос текста */
    }
}
