.site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    color: #1c1e21;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

.site-header__control {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1c1e21;
    cursor: pointer;
}

.site-header__control:hover,
.site-header__control:focus-visible {
    background: #eef3f8;
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}

.site-header__control img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
}

.site-header__control .site-header__translate-icon {
    width: 30px;
    height: 30px;
}

.site-header__hamburger {
    display: grid;
    gap: 5px;
}

.site-header__hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

.site-header__title {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    color: #1c1e21 !important;
    font-size: 1.55rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.site-translate-slot {
    position: relative;
    z-index: 1100;
}

.site-menu {
    position: fixed;
    z-index: 1001;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    color: #1c1e21;
    box-shadow: 5px 0 18px rgba(0, 0, 0, .22);
    transform: translateX(-105%);
    transition: transform .2s ease;
}

.site-menu.is-open {
    transform: translateX(0);
}

.site-menu__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.site-menu__heading button {
    padding: 4px 10px;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}

.site-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu a {
    display: block;
    padding: 10px 8px;
    border-radius: 6px;
    color: #1c1e21;
    text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus-visible {
    background: #eef3f8;
}

.site-menu-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

body.site-menu-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .site-header {
        gap: 5px;
        padding: 9px 8px;
    }

    .site-header__control {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .site-header__control img {
        width: 32px;
        height: 32px;
    }

    .site-header__control .site-header__translate-icon {
        width: 26px;
        height: 26px;
    }

    .site-header__title {
        font-size: 1.15rem;
    }
}
