.compact-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: 68px;
    background: #fff;
    border-bottom: 1px solid #d7d7d7;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .18s ease, visibility .18s ease;
}

.compact-header.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.compact-header-inner {
    width: 100%;
    max-width: 1300px;
    height: 68px;
    margin: 0 auto;
    padding: 0 38px 0 50px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    box-sizing: border-box;
}

.compact-logo {
    display: flex;
    align-items: center;
    width: 130px;
    min-width: 150px;
    line-height: 0;
}

.compact-logo img {
    display: block;
    width: 130px !important;
    max-width: 130px !important;
    height: auto !important;
}

.compact-nav {
    width: 100%;
    min-width: 0;
    height: 68px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.compact-nav > ul {
    list-style: none;
    width: 100%;
    max-width: 1050px;
    height: 68px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
}

.compact-nav > ul > li {
    min-width: 0;
    height: 68px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.compact-nav > ul > li > a {
    width: 100%;
    height: 68px;
    margin: 0;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-family: "Open Sans Condensed", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    border: 0;
    border-bottom: 4px solid transparent;
    box-sizing: border-box;
}

.compact-nav > ul > li > a span {
    display: block;
    white-space: nowrap;
    text-align: center;
}

    .compact-nav > ul > li > a:hover,
    .compact-nav > ul > li > a:focus {
        color: #9fa618;
        border-bottom-color: #9fa618;
    }

.compact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.compact-action {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*
    border: 1px solid #b8b8b8;
    background: #fff;
    color: #8f9600;
    */
    border: 1px solid #9fa618;
    background: #9fa618;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

    .compact-action:hover,
    .compact-action:focus {
        background: #f3f3f3;
        color: #9fa618;
    }

.compact-account {
    width: auto;
    padding: 0 11px;
    font-family: "Open Sans Condensed", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.compact-search-panel {
    display: none;
    position: fixed;
    z-index: 1999;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .10);
}

.compact-search-panel.is-open {
    display: block;
}

.compact-search-inner {
    width: 100%;
    margin: 0 auto;
    padding: 12px 38px 12px 50px;
    box-sizing: border-box;
}

.compact-search-inner form {
    display: flex;
    margin: 0;
}

.compact-search-inner input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #999;
    box-sizing: border-box;
}

.compact-search-inner button {
    width: 56px;
    height: 38px;
    border: 0;
    background: #9fa60f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.compact-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 1400px) {
    .compact-header-inner {
        padding-left: 24px;
        padding-right: 20px;
        gap: 16px;
    }

    .compact-nav > ul {
        max-width: 900px;
    }

    .compact-nav > ul > li > a {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 15px;
    }

    .compact-search-inner {
        padding-left: 24px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 1180px) {
    .compact-header-inner {
        padding-left: 16px;
        padding-right: 16px;
        gap: 10px;
    }

    .compact-nav > ul {
        max-width: 760px;
    }

    .compact-nav > ul > li > a {
        padding-left: 2px;
        padding-right: 2px;
        font-size: 14px;
    }

    .compact-account {
        display: none;
    }

    .compact-search-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media screen and (max-width: 980px) {
    .compact-header,
    .compact-search-panel {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .compact-header {
        transition: none !important;
    }
}
