:root {
    --header-bg: rgba(5, 19, 27, 0.74);
    --header-border: rgba(166, 220, 243, 0.16);
    --footer-border: rgba(166, 220, 243, 0.14);
}

.wrap {
    width: min(1140px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    margin-bottom: 0.9rem;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    font-family: "Syne", sans-serif;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
}

.brand strong {
    display: block;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    line-height: 1.05;
}

.brand span {
    display: block;
    margin-top: 0.18rem;
    padding-bottom: 0.08rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    line-height: 1.45;
}

main.wrap {
    padding-top: 0.35rem;
}

.site-header nav,
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-header nav a,
.desktop-nav a {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.site-header nav a:hover,
.desktop-nav a:hover {
    color: var(--ink);
}

.site-header .btn {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.btn.ghost {
    background: rgba(166, 220, 243, 0.08);
    border: 1px solid var(--line);
    color: var(--ink);
}

.account-wrap {
    position: relative;
}

.account-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 170px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(5, 21, 30, 0.95);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    padding: 0.4rem;
    display: grid;
    gap: 0.3rem;
}

.account-menu a,
.account-menu button {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 0.9rem;
    padding: 0.52rem 0.6rem;
    cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover {
    background: rgba(166, 220, 243, 0.12);
}

.hidden {
    display: none !important;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(166, 220, 243, 0.09);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    padding: 0.58rem 0.95rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.86rem;
    padding: 2rem 1rem 2.4rem;
    border-top: 1px solid var(--footer-border);
    margin-top: 1.1rem;
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .mobile-menu {
        display: none;
        border-bottom: 1px solid rgba(166, 220, 243, 0.16);
        background: rgba(5, 19, 27, 0.9);
        backdrop-filter: blur(8px);
    }

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu .wrap {
        display: grid;
        gap: 0.45rem;
        padding: 0.72rem 0 0.9rem;
    }

    .mobile-menu a,
    .mobile-menu button {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(166, 220, 243, 0.08);
        color: var(--ink);
        text-decoration: none;
        font: inherit;
        font-size: 0.94rem;
        text-align: left;
        padding: 0.62rem 0.72rem;
        cursor: pointer;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(1140px, calc(100% - 1.2rem));
    }
}
