.header {
    display: block;
    padding-top: 30px;
    padding-bottom: 20px;
    top: 0;
    position: sticky;
    background-color: var(--header-bg);
    color: var(--text-secondary);
    z-index: 11;
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
}

.wrap-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
    left: calc(50% - 1920px / 2);
    top: 0px;
}

.logo {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    max-width: 155px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .logo {
        max-width: 100px;
    }
}

.menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;

    gap: 50px;
}
.menu a {
    font: var(--font-extended);
    font-size: 20px;
    line-height: 26px;
    letter-spacing: 0.04em;

    color: var(--text-secondary);
    border-bottom: 1px solid var(--text-primary);
}

.menu-item:hover {
    border-bottom: 1px solid var(--text-secondary);
}

@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s;
        z-index: 999;
        flex-direction: column;
        background-color: var(--text-primary);
        justify-content: center;
        color: white;
    }

    .menu a {
        margin: 15px 0;
        text-align: center;
        padding: 15px 0;
        font-size: 1.1rem;
    }
    .menu.open {
        right: 0;
    }
}

.menu-toggle {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

.menu-toggle:hover,
.menu-toggle:active {
    background: transparent;
}
.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--bg-primary);
    margin: 5px 0;
    transition: 0.3s;
}
.menu-toggle .bar:nth-child(2) {
    width: 70%;
}

.menu-toggle .bar:nth-child(3) {
    width: 50%;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 100%;
}
