header {
    position: relative;
    height: 120px;
    background:
        radial-gradient(circle at top left, rgba(199, 31, 55, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(83, 34, 27, 0.12), transparent 28%),
        linear-gradient(135deg, #1a1514 0%, #281d1b 55%, #140f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.3;
    pointer-events: none;
}

header nav {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    padding: 0 1rem;
}

header nav ul {
    list-style: none;
    width: 100%;
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 auto;
    padding: 0;
}

header nav li {
    display: flex;
    align-items: center;
}

.nav-logo-item {
    margin-left: auto;
    margin-right: auto;
}

header nav a {
    color: #fff;
    text-decoration: none;
}

header nav img {
    width: 192px;
    height: 91px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-link,
.nav-toggle {
    display: none;
}

.nav-toggle {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 248, 243, 0.08);
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 7px));
}

.nav-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
}

.nav-toggle span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 7px));
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(255, 248, 243, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.fancy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 40px;
    margin: 20px 8px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color .5s;
    z-index: 0;
}

.fancy-button:before {
    content: "";
    position: absolute;
    z-index: -1;
    background: crimson;
    height: 150px;
    width: 200px;
    border-radius: 50%;
    top: 0;
    left: -200%;
    transition: all .7s;
}

.fancy-button:hover {
    color: #fff;
}

.fancy-button:hover:before {
    top: -30px;
    left: -30px;
}

@media (max-width: 860px) {
    header {
        height: auto;
        min-height: 96px;
        padding: 1rem 0;
    }

    .site-nav {
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .brand-link,
    .nav-toggle {
        display: inline-flex;
    }

    .brand-link img {
        width: 168px;
        height: auto;
    }

    .nav-logo-item {
        display: none;
    }

    header nav ul {
        display: none;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 1rem;
        border-radius: 24px;
        background: rgba(255, 248, 243, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
    }

    header nav ul.is-open {
        display: flex;
    }

    header nav li {
        width: 100%;
        justify-content: center;
    }

    .fancy-button {
        width: 100%;
        height: 48px;
        margin: 0;
        border-radius: 16px;
    }
}
