.site-header {
    width: 100%;
    border-bottom: 1px solid #d9cfc2;
    background: #f6f1e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.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-block;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3a2f28;
    text-decoration: none;
}

.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;
}

.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;
    justify-content: space-between;
    gap: 8px;
    min-width: 74px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d9cfc2;
    background: #fffaf3;
    color: #3a2f28;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.lang-switch-btn:hover,
.lang-switch:focus-within .lang-switch-btn {
    background: #f1e7da;
}

.lang-switch-current {
    display: inline-block;
    line-height: 1;
}

.lang-switch-caret {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    transform: translateY(1px);
}

.lang-switch::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 10px;
}

.lang-switch-menu {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    min-width: 74px;
    display: none;
    flex-direction: column;
    border: 1px solid #d9cfc2;
    background: #fffaf3;
    box-shadow: 0 10px 24px rgba(58, 47, 40, 0.10);
    z-index: 200;
    overflow: hidden;
}

.lang-switch:hover .lang-switch-menu,
.lang-switch:focus-within .lang-switch-menu {
    display: flex;
}

.lang-switch-menu a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: #3a2f28;
    text-decoration: none;
    white-space: nowrap;
    background: #fffaf3;
}

.lang-switch-menu a:hover,
.lang-switch-menu a[aria-current="page"] {
    background: #efe4d4;
}

@media (max-width: 900px) {
    .header-inner {
        padding: 14px 20px;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .header-left,
    .header-right,
    .header-center {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    .lang-switch-menu {
        right: 50%;
        transform: translateX(50%);
    }

    .lang-switch::after {
        right: 50%;
        transform: translateX(50%);
    }
}

.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(255, 255, 255, 0.9))
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.7))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.category-icon-link:hover .category-icon {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
}

.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;
}

@media (max-width: 900px) {
    .brand-logo {
        max-height: 60px;
        max-width: 280px;
    }
}