header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 26px 0;
}
header .logo {
    margin-right: 30px;
    text-decoration: unset;
}
header .menu {
    display: flex;
    margin: 0 auto;
    padding: 0 15px;
}
header .menu .mobile-button {
    display: none;
}
header .menu .menu-box {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style-type: none;
}
header .menu .item {
    margin-right: 5px;
}
header .menu .item.locale-panel {
    display: none;
}
header .menu .item:last-child {
    margin-right: 0;
}
header .menu .item > a {
    text-decoration: unset;
    padding: 8px 15px;
    color: var(--color-text);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
header .menu .item.active a {
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
}
header .panel {
    display: flex;
    align-items: center;
    margin-left: 30px;
}
header .panel a {
    text-decoration: unset;
}
header .panel .auth {
    margin-right: 30px;
    display: flex;
    align-items: center;
}
header .panel .auth .reg {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    display: flex;
    padding: 8px 15px;
}
header .panel .auth .login {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 8px;
    background: var(--color-bg-fifth);
    margin-left: 5px;
}
header .locale {
    display: flex;
    align-items: center;
}
header .locale .lang {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: var(--color-text);
    text-decoration: unset;
}
header .locale .lang.active {
    color: var(--color-text-link);
}
header .locale .lang::after {
    content: "/";
    display: block;
    color: var(--color-text);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    padding: 0 2px;
}
header .locale .lang:last-child::after {
    display: none;
}

@media (max-width: calc(991px + 30px)) {

    header .row {
        justify-content: flex-start;
    }
    header .logo {
        order: 1;
    }
    header .panel {
        order: 2;
        margin-left: auto;
    }
    header .panel .auth {
        margin-right: 0;
    }
    header .panel .locale {
        display: none;
    }
    header .menu {
        order: 3;
        margin-left: 25px;
        margin-right: 0;
        padding: 0;
        position: relative;
    }
    header .menu .mobile-button {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    header .menu .mobile-button .icon {
        font-size: 30px;
    }
    header .menu .menu-box:not(.active) {
        display: none;
    }
    header .menu .menu-box {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        flex-direction: column;
        border-radius: 12px 0 12px 12px;
        border: 1px solid var(--color-border);
        background-color: var(--color-bg-alt);
        padding: 15px 25px 15px calc(25px - 10px);
        z-index: 3;
    }
    header .menu .item {
        width: 100%;
        margin-right: 0;
    }
    header .menu .item > a,
    header .menu .item > .locale {
        display: inline-flex;
        padding: 12px 50px 12px 10px;
        width: 100%;
    }
    header .menu .item > a:hover {
        font-weight: 800;
    }
    header .menu .item.active a {
        border: unset;
        font-weight: 600;
    }
    header .menu .item.locale-panel {
        display: flex;
    }
    header .menu .item.locale-panel .locale {
        border-top: 1px solid var(--color-border);
        padding-bottom: 0;
    }
}

@media (max-width: 576px) {

    header .menu {
        margin-left: 20px;
    }
    header .panel .auth .reg,
    header .panel .auth .login {
        padding: 8px 15px;
    }
    header .menu .item > a,
    header .menu .item > .locale {
        padding: 10px 40px 10px 10px;
    }
}
