.header{
    position: fixed;
    top: 0;
    left: 20px;
    right: 20px;
    width: auto;
    height: auto;
    z-index: 999;
    box-sizing: border-box;
    max-width: 1340px;
    margin: 0px auto 0;
}

.header__mobile-menu {
    display: none;
}

.header__container{
    box-sizing: border-box;
    height: 80px;
    width: 100%;
    margin: 20px 0px;
    padding: 5px 20px;
    background:
    linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.808),
        rgba(17, 17, 17, 0.767),
        rgba(105, 105, 105, 0.322)
    ) padding-box,

    linear-gradient(
        180deg,
        #a70e13 0%,
        rgba(255, 255, 255, 0.3) 35%,
        rgba(0, 0, 0, 0.781) 100%
    ) border-box;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    border-radius: 100px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header__container img {
    display: block;
    max-height: 50px;
    width: auto;
    flex-shrink: 0;
}

.header__nav{
    width: 50%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
}
.header__nav-list{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header__nav-list li{
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header__nav-list li a {
    position: relative;

    text-decoration: none;
    color:#ce1a20;
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-body);
    line-height: 25px;

    transition: color 0.3s ease;
}

.header__nav-list li a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 2px;

    background-color: #fff;

    transform: scaleX(0);
    transform-origin: right center;

    transition: transform 0.35s ease;
}

.header__nav-list li a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.header__nav-list li a:hover{
    color: #fff;
}

.header__menu-button{
    display: none;
}




    
@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .header__menu-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        width: 44px;
        height: 44px;
        padding: 10px;

        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;

        background-color: transparent;

        cursor: pointer;

        transition:
            border-color 0.3s ease,
            background-color 0.3s ease;
    }

    .header__menu-button:hover {
        border-color: var(--red-accent-color);
        background-color: rgba(255, 255, 255, 0.05);
    }

    .header__menu-line {
        display: block;

        width: 20px;
        height: 2px;

        border-radius: 10px;
        background-color: #fff;

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

    .header__menu-button.is-open
    .header__menu-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header__menu-button.is-open
    .header__menu-line:nth-child(2) {
        opacity: 0;
    }

    .header__menu-button.is-open
    .header__menu-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header__mobile-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 1000;

        display: flex;
        flex-direction: column;
        gap: 20px;

        padding: 24px;

        background:
            linear-gradient(
                135deg,
                rgba(40, 40, 40, 0.96),
                rgba(8, 8, 8, 0.98)
            ) padding-box,
            linear-gradient(
                135deg,
                rgba(255, 25, 40, 0.8),
                rgba(255, 25, 40, 0.08) 55%,
                rgba(255, 255, 255, 0.12)
            ) border-box;

        border: 1px solid transparent;
        border-radius: 24px;

        box-shadow:
            0 25px 60px rgba(0, 0, 0, 0.65),
            0 0 25px rgba(255, 20, 35, 0.08);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        animation: headerMenuOpen 0.3s ease forwards;
    }

    .header__mobile-menu[hidden] {
        display: none;
    }

    .header__mobile-nav {
        display: flex;
        flex-direction: column;
    }

    .header__mobile-link {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 18px 4px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.12);

        color: #fff;
        text-decoration: none;

        font-family: var(--font-heading);
        font-size: 18px;
        font-weight: 700;

        transition:
            color 0.25s ease,
            padding-left 0.25s ease;
    }

    .header__mobile-link:hover {
        padding-left: 10px;
        color: var(--red-accent-color);
    }
}

@keyframes headerMenuOpen {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
