/* =========================================================
   LINGO DESKTOP HEADER
   ========================================================= */

.header-bar {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.child-header-menu {
    flex: 1 1 auto;
    min-width: 0;
}

.child-header-menu__inner {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Кнопка меню */

.child-header-menu .child-nav-link {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #5f6475 !important;
    background: transparent;
    text-decoration: none !important;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.child-header-menu .child-nav-link:hover {
    color: #6d28d9 !important;
    background: #f3efff;
    transform: translateY(-1px);
}

.child-header-menu .child-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 7px 18px rgba(109, 40, 217, 0.24);
}

.child-header-menu .child-nav-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
}

.child-header-menu .child-nav-link__label {
    display: inline-block;
    color: inherit !important;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

/* =========================================================
   SEARCH
   ========================================================= */

.header-center .search-form {
    position: relative;

    flex: 0 0 210px;
    width: 210px;
    margin: 0;
}

.header-center .search-input {
    width: 100%;
    height: 42px;

    padding: 8px 40px 8px 14px;

    border: 1px solid #ddd6fe;
    border-radius: 14px;

    background: #ffffff;
    color: #25223a;

    font-size: 13px;
}

.header-center .search-input:focus {
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.header-center .search-btn {
    position: absolute;
    top: 50%;
    right: 10px;

    width: 30px;
    height: 30px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6d28d9;

    cursor: pointer;
}

.header-center .search-btn:hover {
    background: #f3efff;
}

/* На более узких десктопах оставляем только иконки */

@media (max-width: 1280px) {
    .child-header-menu .child-nav-link {
        width: 42px;
        min-width: 42px;
        padding: 8px;
    }

    .child-header-menu .child-nav-link__label {
        display: none;
    }

    .header-center .search-form {
        flex-basis: 180px;
        width: 180px;
    }
}

.child-nav-link {
    position: relative;
}

.child-nav-link__badge {
    position: absolute;
    top: -6px;
    right: -7px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #ef4444;
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    border: 2px solid #ffffff;
}