:root {
    --nav-bg: #fdfcf9;
    --nav-border: #e3dec3;
    --nav-text: #2c2c2c;
    --nav-text-hover: #962f2f;
    --nav-active-bg: rgba(150, 47, 47, 0.08);
    --dropdown-bg: #fdfcf9;
    --dropdown-shadow: 0 10px 25px -5px rgba(42, 33, 18, 0.08), 0 8px 10px -6px rgba(42, 33, 18, 0.04);
    --vermilion: #962f2f;
    --jade-green: #2c4c38;
}

header.site-header {
    display: block;
    width: 100%;
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.site-header .header-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    position: static;
}

.header-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.45em;
    font-weight: 700;
    letter-spacing: 2px;
    color: #962f2f;
    line-height: 1.1;
}

.brand-tagline {
    font-family: 'Lora', serif;
    font-size: 0.72em;
    color: #2c4c38;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 500;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
}

.header-nav {
    display: none;
}

@media (min-width: 1024px) and (max-width: 1599px) {
    .site-header .header-container {
        justify-content: flex-start;
        gap: 35px;
    }
    .header-brand {
        position: static;
        transform: none;
    }
    .header-nav {
        display: flex;
        align-items: center;
    }
    .header-right-group {
        width: auto;
        flex: 1;
        justify-content: space-between;
    }
}
@media (min-width: 1600px) {
    .site-header .header-brand {
        position: absolute;
        left: 28px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    .header-nav {
        display: flex;
        align-items: center;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-family: 'Cinzel', serif;
    font-size: 0.92em;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    border-radius: 9999px;
    transition: background-color 0.2s, color 0.2s;
    letter-spacing: 0.5px;
    white-space: nowrap;
    outline: none;
}

.nav-link:hover,
.nav-link.active {
    color: #962f2f;
    background-color: rgba(150, 47, 47, 0.08);
}

.nav-link-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
    opacity: 0.7;
}

.nav-item:hover .nav-link-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fdfcf9;
    border: 1px solid #e3dec3;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(42, 33, 18, 0.08);
    padding: 6px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    margin: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-family: 'Lora', serif;
    font-size: 0.92em;
    color: #2c2c2c;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    outline: none;
}

.dropdown-link:hover,
.dropdown-link.active {
    background: rgba(150, 47, 47, 0.08);
    color: #962f2f;
    font-weight: 600;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.lang-switcher-wrapper {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    color: #2c2c2c;
    background: transparent;
    border: 1px solid #e3dec3;
    border-radius: 9999px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.lang-switcher-btn:hover {
    border-color: #962f2f;
    background: rgba(150, 47, 47, 0.08);
}

.lang-icon { 
    font-size: 13px; 
}

.lang-arrow { 
    width: 12px; 
    height: 12px; 
    transition: transform 0.2s; 
}

.lang-switcher-wrapper:hover .lang-arrow { 
    transform: rotate(180deg); 
}

.lang-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    width: 150px;
    background: #fdfcf9;
    border: 1px solid #e3dec3;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(42, 33, 18, 0.08);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1100;
}

.lang-switcher-wrapper:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 2px;
}

.lang-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-family: 'Lora', serif;
    font-size: 0.88em;
    color: #2c2c2c;
    text-decoration: none;
    transition: background-color 0.2s;
}

.lang-dropdown-item:hover,
.lang-dropdown-item.active {
    background: rgba(150, 47, 47, 0.08);
    color: #962f2f;
    font-weight: 600;
}

.lang-check {
    color: #962f2f;
    font-weight: bold;
    font-size: 11px;
}

.btn-mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: transparent;
    border: 1px solid #e3dec3;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .btn-mobile-menu {
        display: none;
    }
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #2c2c2c;
    transition: transform 0.3s;
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.open {
    opacity: 1;
    visibility: visible;
}

.drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.drawer-content {
    position: relative;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: #fdfcf9;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-drawer.open .drawer-content { 
    transform: translateX(0); 
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3dec3;
}

.drawer-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.25em;
    color: #962f2f;
    letter-spacing: 1px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #2c2c2c;
    line-height: 1;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link-mobile {
    padding: 12px 16px;
    font-family: 'Cinzel', serif;
    font-size: 0.98em;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link-mobile.active, 
.nav-link-mobile:hover {
    background: rgba(150, 47, 47, 0.08);
    color: #962f2f;
}

.mobile-sub-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 18px;
    margin-top: 4px;
}

.mobile-sub-link {
    padding: 8px 14px;
    font-family: 'Lora', serif;
    font-size: 0.9em;
    color: #2c2c2c;
    text-decoration: none;
    border-radius: 6px;
}

.mobile-sub-link:hover, 
.mobile-sub-link.active {
    color: #962f2f;
    background: rgba(150, 47, 47, 0.08);
}

.drawer-settings {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e3dec3;
}

.settings-title {
    font-family: 'Cinzel', serif;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 700;
}

.mobile-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(150, 47, 47, 0.08);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    color: #2c2c2c;
}

.mobile-lang-select {
    background: transparent;
    border: none;
    color: #962f2f;
    font-weight: 700;
    outline: none;
    font-family: 'Cinzel', serif;
}

@media (max-width: 1023px) {
    header.site-header { 
        height: 64px; 
    }
    .site-header .header-container { 
        padding: 0 16px;
        justify-content: space-between;
    }
    .header-brand {
        position: static;
        transform: none;
    }
    .brand-logo { 
        font-size: 1.22em; 
    }
    .brand-tagline { 
        font-size: 0.65em; 
    }
}