/* Шапка гостевых страниц (template/header.php): меню, панели входа и заявки. Перенесено из блока <style> шапки 03.11.2026 без изменений */

.newdiz-header {
    padding: 5px 30px;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 12;
    width: 100%;
    transition: transform 0.3s ease;
}

.newdiz-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 40px;
    font-family: 'Nunito', sans-serif;
}

.newdiz-header__inner {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.newdiz-logo {
    margin: 0;
}

.newdiz-logo a {
    text-decoration: none;
    display: inline-block;
}

.newdiz-login {
    display: flex;
    gap: 15px;
    margin: 0;
}

.newdiz-logo a img {
    max-width: 140px;
    width: 100%;
    display: block;
}

.newdiz-login a {
    background-color: transparent;
}

.newdiz-header-white {
    background: #2e3238 !important;
    color: white !important;
}

.newdiz-header-white .newdiz-menu ul.nav li a {
    color: white;
}

.newdiz-menu ul.nav li a:hover {
    color: #2e3238;
}

.newdiz-menu ul.nav li a {
    color: white;
    /* color: #2e3238; */
}

.newdiz-header-white .newdiz-menu ul.nav li a:hover {
    color: white;
    /* color: #2e3238; */
}

.newdiz-login a.newdiz-account:hover {
    background: transparent;
}

.newdiz-login a.newdiz-account {
    background: transparent;
    color: white;
    display: flex;
    gap: 10px;
    border: 1px solid white;
}

.newdiz-header-white .newdiz-login a.newdiz-account {
    color: white;
    border: 1px solid white;
}



.account-login {
    align-content: center;
}

.account-login {
    display: inline-block;
    /* Чтобы div не растягивался */
    margin-left: 25px;
    /* Если в header — выровняет по правому краю */
}

.newdiz-menu ul.nav {
    gap: 30px;
}

.newdiz-account {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #ffffff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    /* Плавный hover */

    /* Если header тёмный — белый текст */
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    /* Полупрозрачный белый фон для тёмного header'а */
    border-color: rgba(255, 255, 255, 0.2);
    /* Полупрозрачная рамка */
}



.login-arrow {
    /* Отступ стрелки от текста */
    width: 20px;
    height: 20px;
    fill: currentColor;
    /* Цвет наследует от текста (белый) */
    transition: transform 0.3s ease;
    /* Анимация на hover */
}

.newdiz-account:hover .login-arrow {
    transform: translateX(2px);
    /* Стрелка "выезжает" вправо на hover */
}

/* Для мобильной версии (если нужно) */
@media (max-width: 768px) {
    .newdiz-account {
        padding: 8px 12px;
        font-size: 13px;
    }

    .login-arrow {
        width: 16px;
        height: 16px;
    }

    .newdiz-header {
        padding: 8px 12px;
    }

    .newdiz-container {
        padding: 0 12px;
    }

    .newdiz-header__inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }

    .account-login {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .newdiz-header {
        padding: 8px 10px;
    }

    .newdiz-container {
        padding: 0 10px;
    }

    .newdiz-logo a img {
        max-width: 110px;
    }

    .newdiz-login {
        flex-direction: row !important;
        align-items: center;
        gap: 10px;
        width: auto !important;
    }

    .newdiz-menu {
        order: 0;
        gap: 0;
    }

    .newdiz-account {
        padding: 8px 10px;
        font-size: 12px;
        gap: 6px;
        white-space: nowrap;
    }

    .newdiz__header-btn-menu {
        display: block;
        position: relative;
        width: 26px;
        height: 18px;
        flex-shrink: 0;
    }

    .newdiz-menu ul.nav,
    .newdiz-header.newdiz-header-fixed .newdiz-menu ul.nav {
        top: calc(100% + 8px);
        left: -10px;
        right: -10px;
        width: auto;
        padding: 12px;
        border-radius: 0 0 10px 10px;
    }

    .hide__menu-inner {
        width: min(270px, calc(100vw - 24px));
        max-width: 270px;
    }
}

@media (max-width: 400px) {
    .newdiz-header {
        padding: 6px 8px;
    }

    .newdiz-container {
        padding: 0 8px;
    }

    .newdiz-logo a img {
        max-width: 90px;
    }

    .newdiz-account {
        padding: 7px 8px;
        font-size: 11px;
        gap: 4px;
    }

    .newdiz-account .login-arrow {
        width: 14px;
        height: 14px;
    }

    .newdiz-login {
        gap: 8px;
    }
}

.possibilities-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: white;
    /* Предполагаемый цвет текста, измените по необходимости */
}

.possibilities-link svg {
    width: 10px;
    height: 10px;
    margin-left: 8px;
    /* Отступ между стрелкой и текстом */
    transition: transform 0.3s ease;
    /* Плавный переход для поворота */
    fill: white;
    /* Белый цвет стрелки, измените по необходимости */
}

.possibilities-link:hover svg {
    transform: rotate(180deg);
    /* Переворот стрелки при ховере */
}

.hide__menu-item {
    width: 100%;
}

.newdiz-login a {
    text-transform: none;
}



.newdiz-menu ul.nav li .hide__menu-text a {
    color: #2e3238;

}

.hide__menu-inner {
    width: 270px;
    background: white;
    color: #163440;
    border: 2px solid #2e3238;
    top: 29px;
}

.newdiz-menu ul.nav li .hide__menu-text a:hover {
    color: #2e3238;
}

/* сенсорный экран: наведения нет - та же плашка, что при наведении мышью (.newdiz-login a:hover в fp_style.css), в момент нажатия */
.newdiz-menu ul.nav li .hide__menu-text a:active {
    background: #dacc99;
}

.newdiz-menu ul.nav li {
    padding: 0;
}



.newdiz-header.hidden {
    transform: translateY(-100%);
}

/* Сенсорные экраны: подменю «Возможности» по нажатию (js/fp_header.js) */
.newdiz-menu ul.nav li.menu-active.menu-open .hide__menu {
    display: block;
}

.newdiz-menu ul.nav li.menu-active.menu-open .possibilities-link svg {
    transform: rotate(180deg);
}

@media (hover: none) {
    /* после касания пункт «залипает» в :hover - открытием управляет только .menu-open */
    .newdiz-menu ul.nav li.menu-active:hover:not(.menu-open) .hide__menu {
        display: none;
    }

    .newdiz-menu ul.nav li.menu-active:not(.menu-open) .possibilities-link:hover svg {
        transform: none;
    }
}
