/* Шапка сайта */
header {
    width: 100%;
    max-width: 1440px;
    height: 102px;
    flex-shrink: 0;
    margin: 0 auto;
    background-color: var(--white);
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--gray-1);
    text-decoration: none;
}
.logo > a {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--gray-1);
    text-decoration: none;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: 344px;
}

.header-menu-item {
    position: relative;
}

.header-menu-item a {
    color: var(--gray-1);
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.header-menu-item a::before,
.header-menu-item a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.971px;
    background: var(--gray-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-menu-item a::before {
    top: 0;
    left: 0;
    transform-origin: left;
}

.header-menu-item a::after {
    bottom: 0;
    left: 0;
    transform-origin: right;
}

.header-menu-item a:hover {
    color: #000;
}

.header-menu-item a:hover::before,
.header-menu-item a:hover::after {
    transform: scaleX(1);
}
/* Добавьте в конец файла header.css */
.header-menu-item a.active {
    color: #000;
    font-weight: 500;
}

.header-menu-item a.active::before,
.header-menu-item a.active::after {
    transform: scaleX(1);
}
/* Адаптивность шапки */
@media (max-width: 1200px) {
    .header-menu {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }
    
    .header-menu {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
}