#header {
    display: flex;
    align-items: stretch;
    height: var(--headerHeight);
    position: sticky;
    inset-block-start: 0;
    z-index: 10;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    #header {
        position: relative;
        box-shadow: none;
    }
}

#header > .inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: var(--innerWideWidth);
    padding-block: 10px;
    background: var(--color-bg);
    z-index: 5;
}

@media (min-width: 1200px) {
    #header > .inner {
        gap: 32px;
    }
}

#header .logo {
    display: block;
    width: 90px;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    #header .logo {
        width: 142px;
    }
}

#header .logo .img {
    display: block;
    max-width: 100%;
}

#header .mobileMenu {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    position: fixed;
    z-index: 15;
    inset-inline-start: 0;
    inset-block-start: var(--headerHeight);
    max-height: calc(100dvh - var(--headerHeight));
    height: 100%;
    translate: 100% 0%;
    transition: translate 0.5s ease;
    width: 100%;
    padding-block: 24px;
    padding-inline: var(--innerWidePx);
}

#header .mobileMenu .headerAuthButton {
    margin-block-start: auto;
}

#header .mobileMenu .headerNavItem {
    padding-block: 12px;
}

#header:has(.mobileButton.active) .mobileMenu {
    translate: unset;
}

@media (min-width: 1200px) {
    #header .mobileMenu {
        display: contents;
    }
}

#header .mobileButton {
    position: relative;
    width: 32px;
    height: 32px;
}

#header .mobileButton.active p:nth-child(2) {
    rotate: 45deg;
}

#header .mobileButton.active p:nth-child(1) {
    rotate: -45deg;
}

#header .mobileButton.active p:nth-child(3) {
    opacity: 0;
}

#header .mobileButton p {
    height: 2px;
    background: currentColor;
    width: 66%;
    flex-shrink: 0;
    border-radius: 24px;
    inset-inline-start: 50%;
    position: absolute;
    transform-origin: 50% 50%;
    transition:
        translate 0.25s ease,
        inset-block-start 0.25s ease,
        opacity 0.25s ease,
        rotate 0.25s ease;
}

#header .mobileButton p:nth-child(1) {
    inset-block-start: 22%;
    translate: -50% 0%;
}

#header .mobileButton.active p:nth-child(1),
#header .mobileButton p:nth-child(2) {
    inset-block-start: 50%;
    translate: -50% -50%;
}

#header .mobileButton p:nth-child(3) {
    inset-block-end: 22%;
    translate: -50% 0%;
}

@media (min-width: 1200px) {
    #header .mobileButton {
        display: none;
    }
}

@media (max-width: 1199px) {
    #header .supportButton {
        display: none;
    }
}

#header .mobileSupportButton {
    padding-block: 10px;
    margin-inline-start: auto;
}

#header .mobileSupportButton .icon {
    width: 24px;
}

@media (min-width: 1200px) {
    #header .mobileSupportButton {
        display: none;
    }
}

#header .headerNav {
    display: contents;
    align-self: stretch;
    align-items: stretch;
    gap: 32px;
}

@media (min-width: 1200px) {
    #header .headerNav {
        display: flex;
    }
}

#header .headerActionsNav {
    display: contents;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;
}

@media (min-width: 1200px) {
    #header .headerActionsNav {
        display: flex;
    }
}

#header .headerNavItem {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-gray-11);
    font-size: 14px;
    font-weight: 500;
    line-height: 114%;
}

#header .headerNavItem.dropdown-button {
    cursor: pointer;
}

#header .headerNavItem.active,
#header .headerNavItem.dropdown-button:has(.dropdown),
#header
    .headerNavItem:not(.dropdown-button):is(:hover, :active, :focus-visible) {
    color: var(--color-font);
}

#header .headerNavItem.dropdown-button:not(:has(.dropdown)) {
    cursor: not-allowed;
}

#header .headerNavItem.dropdown-button:not(:has(.dropdown)) > .chevron {
    display: none;
}

#header .headerNavItem.dropdown-button > .chevron {
    transition: rotate 0.25s ease;
}

#header
    .headerNavItem.dropdown-button:is(:hover, :active, :focus-visible)
    > .chevron {
    rotate: 0.5turn;
}

#header .headerAuthButton {
    min-width: 170px;
}

@media (min-width: 768px) {
    #header > .inner {
        padding-inline: var(--innerWidePx);
    }
}
