.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 10, 15, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    transition: all 0.25s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(179, 18, 23, 0.08), transparent 25%, transparent 75%, rgba(179, 18, 23, 0.05));
    pointer-events: none;
}

.header__wrapper {
    position: relative;
    z-index: 1;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo__image {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(179, 18, 23, 0.22));
}

.logo__text {
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: #f5f7fa;
    text-transform: uppercase;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.nav-list li {
    display: flex;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: #b6c0cf;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
}

.nav-list a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-list a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(179, 18, 23, 0.22) 0%, rgba(179, 18, 23, 0.12) 100%);
    border: 1px solid rgba(179, 18, 23, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(176, 18, 24, 0.92) 0%, rgba(208, 30, 38, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow:
        0 10px 24px rgba(179, 18, 23, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.header-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
    transform: translateX(-140%);
    transition: transform 0.55s ease;
}

.header-btn::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 45%);
    pointer-events: none;
}

.header-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(192, 24, 31, 0.96) 0%, rgba(226, 45, 53, 1) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 14px 30px rgba(179, 18, 23, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.header-btn:hover::before {
    transform: translateX(140%);
}

.header-btn:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(179, 18, 23, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

@media (max-width: 1100px) {
    .header__wrapper {
        min-height: 80px;
        gap: 16px;
    }

    .logo__image {
        width: 48px;
        height: 48px;
    }

    .logo__text {
        font-size: 1rem;
        letter-spacing: 0.12em;
    }

    .nav-list a {
        padding: 0 14px;
        font-size: 0.88rem;
    }

    .header-btn {
        min-height: 42px;
        padding: 0 16px;
        font-size: 0.8rem;
        border-radius: 11px;
    }

    .header-btn::after {
        border-radius: 10px;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
    }

    .header__wrapper {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .navbar {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
    }

    .nav-list {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 24px;
        padding: 10px;
    }

    .header-btn {
        min-height: 42px;
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .header__wrapper {
        min-height: auto;
        align-items: stretch;
    }

    .logo {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .logo__image {
        width: 44px;
        height: 44px;
    }

    .logo__text {
        font-size: 0.96rem;
        letter-spacing: 0.12em;
    }

    .nav-list {
        gap: 6px;
        padding: 8px;
    }

    .nav-list li {
        flex: 1 1 calc(50% - 6px);
    }

    .nav-list a {
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.85rem;
    }

    .header-btn {
        width: 100%;
        min-height: 44px;
        padding: 0 16px;
        font-size: 0.82rem;
        border-radius: 12px;
    }

    .header-btn::after {
        border-radius: 11px;
    }
}