.site-header {
    height: var(--header-height);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
    width: min(88%, 1640px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-logo {
    flex: 0 0 auto;
    width: 232px;
}

.site-nav {
    flex: 1 1 auto;
    height: 100%;
}

.site-nav ul {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
}

.site-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    color: #303030;
    font-size: 15px;
    white-space: nowrap;
    transition: color var(--transition);
    z-index: 1;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.site-nav a.active::after {
    content: "";
    width: 64px;
    height: 28px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    background: linear-gradient(0deg, #d60012 0%, rgba(214, 0, 18, 0.72) 25%, rgba(214, 0, 18, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

.header-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    color: #303030;
    font-size: 14px;
    white-space: nowrap;
}

.header-tools b {
    color: var(--primary);
    font-weight: 600;
}

.search-btn,
.nav-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-btn {
    width: 28px;
    height: 28px;
    position: relative;
}

.search-btn::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 3px solid #333333;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
}

.search-btn::after {
    content: "";
    width: 11px;
    height: 3px;
    background: #333333;
    position: absolute;
    right: 2px;
    bottom: 5px;
    transform: rotate(45deg);
    transform-origin: center;
}

.search-box {
    width: 220px;
    padding: 10px;
    display: none;
    position: absolute;
    top: 54px;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.search-box.open {
    display: block;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    padding: 9px 10px;
    font-size: 14px;
    outline: none;
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 28px;
    border-top: 3px solid #333333;
    border-bottom: 3px solid #333333;
    position: relative;
}

.nav-toggle::before {
    content: "";
    height: 3px;
    background: #333333;
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
}
