.public-header {
    position: sticky;
    top: 0;
    z-index: 10;
    color: var(--header-color);
    background: var(--header-background);
    border-bottom: 1px solid rgba(58, 63, 111, .12);
    box-shadow: 0 2px 12px rgba(58, 63, 111, .08);
}

.public-header__inner {
    width: min(1720px, calc(100% - 2rem));
    min-height: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: .35rem;
    padding: 1.2rem 0 0;
}

.public-header__logo-link {
    display: block;
    width: 100%;
}

.public-header__logo {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.public-header__navigation {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    border-top: 1px solid rgba(58, 63, 111, .08);
}

.public-header__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem .95rem;
}

.public-header__link {
    position: relative;
    padding: .55rem .1rem;
    color: var(--header-color);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.public-header__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .1rem;
    height: 2px;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.public-header__link:hover::after,
.public-header__link.active::after {
    transform: scaleX(1);
}

.public-header__language {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.public-header__language select {
    border: 1px solid rgba(58, 63, 111, .25);
    border-radius: 4px;
    padding: .35rem .45rem;
    color: var(--brand-blue);
    background: #ffffff;
    font: inherit;
}

.public-header__toggle {
    display: none;
    width: 42px;
    height: 38px;
    border: 1px solid rgba(58, 63, 111, .25);
    border-radius: 4px;
    background: #ffffff;
    color: var(--brand-blue);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.public-header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
}

@media (max-width: 820px) {
    .public-header__inner {
        grid-template-columns: 1fr auto;
        justify-items: start;
        gap: .75rem;
        padding: .75rem 0;
    }

    .public-header__logo {
        max-height: 72px;
    }

    .public-header__toggle {
        display: flex;
    }

    .public-header__navigation {
        grid-column: 1 / -1;
        width: 100%;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
        padding: .75rem 0 .25rem;
        border-top: 1px solid rgba(58, 63, 111, .15);
    }

    .public-header__navigation--open {
        display: flex;
    }

    .public-header__menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .public-header__link {
        padding: .55rem 0;
    }
}
