.site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    background-color: #F5F3F1;
    padding: clamp(1rem, 4vw, 22px) 0;

    a {
        transition: 0.3s;
        &:hover {
            opacity: 0.5;
        }
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(0.875rem, 2vw, 1.5rem);
    justify-content: space-between;
}

.site-header_logo {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 30px);

    a {
        min-width: 48px;
    }
}

.brand__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
}

.brand__title {
    font-family: "Book Antiqua", "Palatino Linotype", serif;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    gap: 0;
}
.main-nav a {
    color: var(--darkBlue);
    font-family: 'Jost-Regular', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 5%;
    transition: .8s;
    text-transform: uppercase;
    padding: 8px 12px;
}


.main-nav_mobile {
    position: fixed;
    background-color: var(--white);
    left: 0;
    right: 0;
    top: 100px;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
}

.button,
.ghost-button,
.header-cta {
    text-transform: uppercase;
    font-family: 'Jost-Regular', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: var(--darkBlue);
    border: 1px solid var(--darkBlue);
    border-radius: 0.5rem;
    padding: 0.5rem;
    width: fit-content;
    min-width: clamp(150px, 15vw, 211px);
    transition: 0.3s;
    cursor: pointer;

    &:hover {
        opacity: 0.5;
    }

    &:active {
        border-width: 2px;
    }
}

.header-cta_no-border {
    border: none;
}

.header-cta_w-fit {
    min-width: auto;
    width: fit-content;
}

.header-cta__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--white);
    color: var(--hoverPrimaryLight);
    font-size: 11px;
}

.header-user-menu {
    position: relative;

    svg {
        transition: 0.3s;
    }
}

.header-user-menu[open] svg {
    transform: rotate(180deg);
}

.header-user-menu summary {
    list-style: none;
    cursor: pointer;
}

.header-user-menu summary::-webkit-details-marker {
    display: none;
}

.header-user-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 240px;
    display: grid;
    gap: 8px;
    padding: 10px;
    background: rgba(251, 246, 238, 0.98);
    border: 1px solid rgba(64, 53, 40, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 21;
    transition: 0.3s;
}

.header-user-menu__dropdown a,
.header-user-menu__dropdown button {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    background: var(--surface);
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: inherit;
}

.header-user-menu__dropdown a:hover,
.header-user-menu__dropdown button:hover {
    background: var(--surface-strong);
}

/* Пункт «Уведомления» с подсветкой непрочитанных. */
.header-user-menu__notifications {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.header-user-menu__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d23232;
    flex-shrink: 0;
}

@media (width < 1024px) {
    .site-header {
        padding: 0.625rem 0;
    }
    .main-nav_mobile {
        top: 76px;
    }
}

@media (max-width: 720px) {
    /* .site-header {
        position: static;
    } */

    .brand__title {
        font-size: 22px;
    }
}
