.metabar {
    height: 78px;
    line-height: 78px;
    position: relative;
    padding-left: 80px;
    padding-right: 80px;

    transition: 0.5s;

    @media screen and (max-width: 1200px) {
        padding-left: 15px;
        padding-right: 15px;
    }

    &.is-active {
        position: fixed;
        --jaguar-background-opacity: 0.8;
        background: var(--jaguar-background-white-opacity);
        top: 0;
        left: 0;
        right: 0;
        animation: metabar--active 0.5s;
        z-index: 100;
        backdrop-filter: saturate(180%) blur(20px);
        box-shadow: 0 2px 5px rgba(136, 167, 225, 10%);
    }

    &--bordered {
        border-bottom: 2px solid var(--jaguar-background-white);
    }

    &--contered {
        position: absolute;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    &--block {
        pointer-events: auto;
        display: flex;
        align-items: center;
        position: relative;
        height: 78px;

        &__right {
            margin-left: auto;
            padding-right: 20px;
            a {
                margin-left: 15px;
                &:hover {
                    text-decoration: underline;
                    color: var(--main-hover-color);
                }
            }
        }
    }

    &--headline {
        margin-top: 0;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    &--logo {
        display: flex;
        font-size: 24px;
        font-weight: bold;
        margin-right: 20px;
    }

    .menu--icon {
        display: none;
        position: relative;
    }
}

.site--nav {
    display: flex;
    justify-content: center;
    margin-left: auto;
    align-items: center;
    margin-left: auto;

    .nav--list {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;

        .menu-item {
            margin: 0 15px;
            display: flex;
            align-items: center;
            position: relative;
            font-size: 14px;

            &:last-child {
                margin-right: 0;
            }

            .svgIcon {
                margin-left: 5px;
            }

            & > .text {
                display: flex;
                align-items: center;
            }

            &:hover {
                color: var(--jaguar-hover-color);
            }
        }
    }

    .nav--copyright {
        margin-top: auto;
        font-size: 14px;
        color: var(--jaguar-text-light);
    }
}

@media (max-width: 900px) {
    .menu--actived {
        overflow: hidden;

        .mask {
            position: fixed;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 500;
            left: 0;
            bottom: 0;
            right: 0;
            top: 0;
        }
    }

    .metabar {
        .menu--icon {
            display: block;
            margin-left: auto;
        }
    }

    .site--nav {
        z-index: 1000;
        display: flex;
        box-sizing: border-box;
        padding: 20px;
        border-left: 1px solid var(--jaguar-border-color);
        flex-direction: column;
        line-height: 1.3;
        justify-content: flex-start;
        align-items: flex-start;
        font-size: 16px;
        position: relative;
        transition: 0.5s;
        transform: translate3d(105%, 0, 0);
        position: fixed;
        top: 0;
        bottom: 0;
        width: 75%;
        right: 0;
        background-color: var(--jaguar-background-white);
        overflow-y: auto;

        &.is-active {
            transform: translate3d(0, 0, 0);
        }

        .nav--list {
            flex-direction: column;
            align-items: flex-start;

            .menu-item {
                margin: 0 0 10px;
            }
        }

        a {
            padding: 5px 0;
            margin: 0 0 10px;
            width: 100%;
            display: flex;
            align-items: center;

            .text {
                align-self: flex-start;
                display: flex;
                width: 100%;
                align-items: center;

                svg {
                    margin-left: auto;
                }
            }
        }
    }
}

@keyframes metabar--active {
    0% {
        transform: translate3d(0, -105%, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--jaguar-background-gray);
    border-radius: 999rem;
    padding: 0 10px;

    svg {
        fill: var(--jaguar-text-light);
    }

    .search-field {
        border: 0;
        background-color: rgba(0, 0, 0, 0);
        color: var(--jaguar-text-light);
        padding: 12px 5px;
        border-radius: 10px;
        width: 220px;
        font-size: 12px;
    }

    @media screen and (max-width: 600px) {
        display: none;
    }
}
