.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(217, 207, 194, 0.72);
    background: rgba(246, 241, 232, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    min-height: 78px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    text-align: center;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    max-height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.header-left a,
.header-right a {
    font-size: 14px;
    color: #3a2f28;
    text-decoration: none;
    transition: opacity 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.header-left a:hover,
.header-right a:hover {
    opacity: 0.72;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(58, 47, 40, 0.14);
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.58);
    color: rgba(58, 47, 40, 0.92);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.lang-switch-btn:hover,
.lang-switch:focus-within .lang-switch-btn {
    background: rgba(255, 250, 243, 0.82);
    border-color: rgba(58, 47, 40, 0.22);
}

.lang-switch-caret {
    font-size: 9px;
    opacity: 0.7;
    transform: translateY(-1px);
}

.lang-switch::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 8px;
}

.lang-switch-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 62px;
    display: none;
    flex-direction: column;
    padding: 6px;
    border: 1px solid rgba(58, 47, 40, 0.12);
    border-radius: 18px;
    background: rgba(246, 241, 232, 0.92);
    box-shadow: 0 12px 40px rgba(58, 47, 40, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 200;
}

.lang-switch:hover .lang-switch-menu,
.lang-switch:focus-within .lang-switch-menu {
    display: flex;
}

.lang-switch-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(58, 47, 40, 0.88);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.lang-switch-menu a:hover,
.lang-switch-menu a[aria-current="page"] {
    background: rgba(58, 47, 40, 0.08);
    color: #3a2f28;
}

.mobile-menu-toggle,
.mobile-menu-btn {
    display: none;
}

.mobile-menu-panel {
    display: contents;
}

.category-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 6px;
    border: none;
    background: transparent;
    text-decoration: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.category-icon-link:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.category-icon-link.is-active {
    background: transparent;
}

.category-icon {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.category-icon-link.is-active .category-icon {
    filter:
        drop-shadow(0 0 2px rgba(58, 47, 40, 0.28))
        drop-shadow(0 0 6px rgba(58, 47, 40, 0.18))
        drop-shadow(0 0 10px rgba(58, 47, 40, 0.10));
}

.category-icon-link:hover .category-icon {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
}

@media (max-width: 900px) {
    .header-inner {
        padding: 12px 20px;
        margin-bottom: -10px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo burger"
            "menu menu";
        align-items: center;
        gap: 12px;
    }

    .header-center {
        grid-area: logo;
        justify-self: start;
        text-align: left;
    }

    .mobile-menu-btn {
        grid-area: burger;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 38px;
        height: 38px;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        display: block;
        width: 30px;
        height: 3px;
        background: #3a2f28;
    }

    .mobile-menu-panel {
        grid-area: menu;
        display: none;
        width: 100%;
        padding: 14px 0 10px;
        border-top: 1px solid rgba(58, 47, 40, 0.14);
    }

    .mobile-menu-toggle:checked ~ .mobile-menu-panel {
        display: block;
    }

 .header-left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 0 35px 14px;
    position: relative;
}



    .header-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .header-right a {
        width: 100%;
        max-width: 220px;
        padding: 10px 0;
        text-align: center;
        border-top: 1px solid rgba(58, 47, 40, 0.08);
    }

    .lang-switch {
        margin-top: 4px;
    }

    .lang-switch-menu {
        right: 50%;
        transform: translateX(50%);
    }

    .lang-switch::after {
        right: 50%;
        transform: translateX(50%);
    }

    .brand-logo {
        max-height: 60px;
        max-width: 280px;
    }
}

@media (min-width:901px){

    .header-inner{
        max-width: none;
        margin: 0;
        padding: 0 40px 0 10px;
        grid-template-columns: 280px 1fr 280px;
    }

    .header-center{
        position: static;
        transform: none;
        justify-self: start;
        text-align: left;
        z-index: auto;
    }

    .header-left{
        justify-self: center;
    }

    .header-right{
        justify-self: end;
    }

}