.site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    background: #fff4e7;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
    padding: 14px 28px;
    border-radius: 8px;
}

.site-header_logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.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: 24px;
}
.main-nav a,
.mobile-nav a {
    color: var(--textPrimary);
    font-family: 'Lora-Regular';
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    transition: .8s;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
    color: var(--hoverPrimaryLight);
}

.header-cta,
.button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 12px 28px;
    background: var(--textPrimaryBase);
    color: #FFF4E7;
    box-shadow: 0 12px 24px rgba(44, 74, 44, 0.16);
    cursor: pointer;
    border: none;
    font-family: 'Lora-Regular';
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    transition: .5s;
}
.header-cta:hover,
.button:hover {
    background: var(--hoverPrimaryLight);
}
.header-cta:active,
.button:active {
    background: var(--activePrimaryDark);
}
.ghost-button:hover {
    color: #516A46;
    border: 1px solid #516A46
}
.ghost-button:active {
    border: 1px solid #29421E;
    color: #29421E;
}
.button_white {
    color: #3D5632;
    border: 1px solid #3D5632;
    background: transparent;
}
.button_white:hover {
    color: #516A46;
    border: 1px solid #516A46;
    background: transparent;
}
.button_white:active {
    color: #29421E;
    border: 1px solid #29421E;
    background: transparent;
}
.linkCabinetNotifications {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.newCabinetNotifications {
    font-family: 'Lora-Medium';
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
    text-align: center;
    color: #FFFFFF;
    padding: 4px 7px;
    background: #D94D4D;
    border-radius: 50px;
    min-width: 20px;
    height: 20px;
}
.header-cta {
    padding: 10px 16px;
    font-size: 16px;
    line-height: 22px;
}
.header-cta--outline,
.ghost-button {
    background: transparent;
    color: #3D5632;
    border: 1px solid #3D5632;
    box-shadow: none;
}
.header-cta--outline:hover {
    background: transparent;
    color: var(--hoverPrimaryLight);
}

.header-user-menu {
    position: relative;
    display: inline-flex;
}

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

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

.header-user-menu__trigger {
    position: relative;
    display: inline-flex;
    padding: 0;
    background: transparent;
    border: none;
}

.header-user-menu__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--textPrimaryBase);
    color: #FFF4E7;
    font-family: 'Lora-Regular';
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    transition: background .5s;
    user-select: none;
}

.header-user-menu__trigger:hover .header-user-menu__avatar {
    background: var(--hoverPrimaryLight);
}

.header-user-menu__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--hoverPrimaryLight);
    color: #FFF4E7;
    font-size: 10px;
    line-height: 1;
}

.header-user-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 240px;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 21;
    background: #FFF4E7;
    border: 1px solid #8A522C66;
}

.header-user-menu__dropdown a,
.header-user-menu__dropdown button {
    width: 100%;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    background: transparent;
    text-align: left;
    font-family: 'Lora-Regular';
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    transition: .6s;
    cursor: pointer;
}

.header-user-menu__sub {
    margin-top: 6px;
    border-top: 1px solid #8A522C33;
    padding-top: 6px;
}
.header-user-menu__sub > summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 6px;
    font-family: 'Lora-Regular';
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    transition: background .6s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-user-menu__sub > summary::-webkit-details-marker {
    display: none;
}
.header-user-menu__sub > summary::after {
    content: '▾';
    font-size: 12px;
    margin-left: 8px;
    transition: transform .2s;
}
.header-user-menu__sub[open] > summary::after {
    transform: rotate(180deg);
}
.header-user-menu__sub > summary:hover {
    background: #E8DCD5;
}
.header-user-menu__sub-list {
    display: grid;
    gap: 4px;
    padding: 4px 0 4px 12px;
}

.header-user-menu__dropdown a:hover,
.header-user-menu__dropdown button:hover {
    background: #E8DCD5;
}
.header-user-menu__dropdown a:active,
.header-user-menu__dropdown button:active {
    background: #9D653F;
    color: #FFF4E7;
}
.mobile-user .header-user-menu__dropdown a:hover {
    color: #333333;
}
.mobile-user .header-user-menu__dropdown a:active {
    color: #FFF4E7;
}
.mobile_user-burger {
    display: flex;
    align-items: center;
    gap: 16px;
}
.burger {
    display: none;
    margin-left: auto;

    position: relative;
    width: 28px;
    height: 20px;

    cursor: pointer;
}

/* центральная линия */
.burger span,
.burger::before,
.burger::after {
    content: '';
    position: absolute;
    left: 0;

    width: 100%;
    height: 3px;
    background-color: #29421E;
    border-radius: 3px;

    transition: all 0.3s ease;
}

/* расположение линий */
.burger span {
    top: 50%;
    transform: translateY(-50%);
}

.burger::before {
    top: 0;
}

.burger::after {
    bottom: 0;
}

/* АКТИВНОЕ СОСТОЯНИЕ → крестик */
.burger.active span {
    opacity: 0;
}

.burger.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.active::after {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}
.burger--inside {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* сразу крестик */
.burger--inside span {
    opacity: 0;
}

.burger--inside::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger--inside::after {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    transition: .3s;
    z-index: 1000;
    flex-direction: column;
    padding: 55px 20px;
    background: #fff4e7f0;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.mobile-menu.active {
    display: flex;
    right: 0;
}
.mobile-user {
    display: none;
    justify-content: center;
}
@media (max-width: 1279.98px) {
    .main-nav {
        display: none;
    }

    .burger {
        display: block;
    }
}
@media screen and (max-width: 767.98px) {
    .site-header {
        padding-top: 0;
        background: #FFF4E7B2;
    }
    .site-header__inner {
        background: none;
        padding: 12px 0;
    }
}
@media (max-width: 474.98px) {
    .mobile-user {
        display: flex;
    }
    .desktop_user-menu {
        display: none !important;
    }
    .header-user-menu__dropdown {
        position: relative;
        max-height: 222px;
        overflow-y: auto;
        margin-top: 20px;
        width: 100%;
    }
    .header-cta--outline, .ghost-button {
        width: 100%;
    }
    .mobile-user .header-user-menu {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
}
