.top-bar {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-800);
    gap: 16px;
    padding: 0 16px;
    text-decoration: none;
}

.top-bar__marquee-text {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 24px;
}

.top-bar__marquee-text p {
    display: inline-block;
    white-space: nowrap;
    margin: 0;
}

.top-bar__marquee-text p.start-marquee {
    animation: marquee-text 20s linear infinite;
}

@keyframes marquee-text {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

.top-bar > svg {
    animation: notification 2s infinite;
    flex-shrink: 0;
}

@keyframes notification {
    5%{
        transform:rotate(10deg);
    }

    10%{
        transform:rotate(-10deg);
    }

    15%{
        transform:rotate(10deg);
    }

    20%{
        transform:rotate(0deg);
    }
}

.top-bar a,
.top-bar p {
    color: var(--secondary-400);
}

.top-bar p span {
    font-weight: 700;
}

@media(hover: hover) and (pointer: fine) {
    .top-bar .suffix:after,
    .top-bar .suffix:hover:after {
        content: '';
        width: 16px;
        height: 16px;
        display: inline-block;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        background-color: var(--action-disabledBackground);
        -webkit-mask-image: var(--chevron-link);
        mask-image: var(--chevron-link);
        transform: scaleX(-1);
    }
}

header {
    border-bottom: 1px solid var(--divider);
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 calc((100vw - 1280px) / 2);
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo svg {
    width: 100%;
}

.header__nav-menu,
.header__menu-items {
    display: flex;
    align-items: center;
}

.header__nav-menu {
    gap: 8px;
}

#header-home-link {
    display: none;
}

.header__menu-items {
    gap: 24px;
    padding: 0 16px;
}

.header__submenu-items {
    display: none;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow--medium);
    z-index: 999;
}

.header__menu-item,
.header__submenu-item {
    font-size: 14px;
    line-height: 24px;
}

.header__menu-item {
    color: var(--text-primary);
    font-weight: 600;
}

.header__menu-item svg path {
    -webkit-transition: fill 0.3s ease-out;
    -moz-transition: fill 0.3s ease-out;
    -o-transition: fill 0.3s ease-out;
    transition: fill 0.3s ease-in-out;
}

.header__submenu-item {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 16px;
    line-height: 32px;
}

.header__menu-item a,
.header__submenu-item a {
    text-decoration: none;
    white-space: normal;
}

.header__submenu-item a {
    margin: 4px 0;
}

.header__nav-menu .header__submenu-items.second_depth_menu {
    position: static;
    width: 100%;
    padding: 8px 0 0 16px;
    background-color: unset;
    box-shadow: unset;
}

.header__submenu-items.second_depth_menu .header__submenu-item a {
    font-size: 14px;
    line-height: 24px;
    color: var(--text-secondary);
    margin: 8px 0;
}

@media(hover: hover) and (pointer: fine) {
    .header__menu-item a:hover,
    .header__submenu-item a:hover {
        color: var(--action-hover);
    }

    .header__menu-item:hover svg path {
        fill: var(--action-hover);
    }

    .dropdown-menu > a:hover:after {
        background-color: var(--action-hover);
    }

    .header__submenu-items.second_depth_menu a:hover {
        color: var(--action-hover);
    }
}

.header__burger-menu {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    -webkit-tap-highlight-color: transparent;
}

.header__sidebar {
    display: none;
    height: 100%;
    width: 290px;
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--background-paper);
    overflow-x: hidden;
    z-index: 1000;
    flex-direction: column;
    justify-content: space-between;
    visibility: hidden;
    transform: translateX(100%);
    transition: all .3s ease-in-out;
}

.header__sidebar-header {
    display: flex;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
}

.header__sidebar-close-btn {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#header__sidebar .header__menu-items {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

#header__sidebar .header__menu-items .header__menu-item,
.header__submenu-item {
    width: 100%;
}

#header__sidebar .header__menu-items .header__menu-item.dropdown-menu {
    padding: 0;
}

.header__sidebar div:last-child {
    display: flex;
    padding: 16px;
    gap: 8px;
    flex-direction: column;
    align-items: center;
}

.header__sidebar div:last-child .button-fill,
.header__sidebar div:last-child .button-outline {
    width: 100%;
    justify-content: center;
}

.dropdown-menu > a {
    justify-content: space-between;
    padding: 8px 0;
    gap: 8px;
}

.dropdown-menu > a:after {
    content: '';
    display: inline-block;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--action-secondary);
    -webkit-mask-image: var(--plus-icon-small);
    mask-image: var(--plus-icon-small);
    width: 24px;
    height: 24px;
    -webkit-transition: background-color 0.3s ease-out;
    -moz-transition: background-color 0.3s ease-out;
    -o-transition: background-color 0.3s ease-out;
    transition: background-color 0.3s ease-in-out;
}

.header__nav-menu .header__submenu-items {
    position: absolute;
    background-color: var(--background-paper);
}

.dropdown-menu.open .header__submenu-items {
    display: flex;
    flex-direction: column;
    width: 240px;
}

.dropdown-menu.open > a {
    color: var(--action-active);
}

.dropdown-menu.open > a:after {
    content: '';
    display: inline-block;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--action-active);
    -webkit-mask-image: var(--minus-icon-small);
    mask-image: var(--minus-icon-small);
}

/* Layout Desktop */
@media (max-width: 1440px) {
    header {
        padding: 0 80px;
    }
}

/* Layout Web */
@media (max-width: 991px) {
    header {
        padding: 0 32px;
    }
}

/* Layout Tablet */
@media (max-width: 904px) {
    header {
        height: 70px;
    }

    .header__sidebar {
        display: flex;
    }

    .top-bar {
        justify-content: flex-start;
        overflow: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .top-bar::-webkit-scrollbar {
        display: none;
    }

    .top-bar > svg {
        flex-shrink: 0;
    }

    .top-bar p {
        white-space: nowrap;
        overflow: hidden;
    }

    .header__nav-menu {
        display: none;
    }

    .header__burger-menu {
        display: block;
    }

    .dropdown-menu.open > a {
        color: var(--text-primary);
    }

    .dropdown-menu.open > a:after {
        background-color: var(--text-primary);
    }

    .dropdown-menu.open .header__submenu-items {
        display: block;
        padding: unset;
        box-shadow: unset;
        width: auto;
    }

    #header__sidebar .header__menu-items {
        padding: 16px;
    }

    #header-home-link {
        display: list-item;
    }

    .header__submenu-item a,
    .header__submenu-items.second_depth_menu .header__submenu-item a {
        margin: 8px 0;
    }

    .header__submenu-items.second_depth_menu .header__submenu-item {
        line-height: 24px;
    }

    .header__submenu-items .header__submenu-item {
        padding: 0;
    }

    .dropdown-menu.open .header__submenu-items.second_depth_menu {
        padding-left: 16px;
    }

    .dropdown-menu.header__submenu-item.second_depth_parent_menu {
        padding-bottom: 0;
    }

    #header__sidebar .header__menu-items .header__menu-item,
    .header__submenu-item {
        padding: 8px 0;
        width: 100%;
    }

    .header__menu-item > a > svg {
        display: none;
    }

    .header__menu-item > a > span {
        display: inline-block;
    }

    .header__sidebar div:last-child .button-fill,
    .header__sidebar div:last-child .button-outline {
        padding: 4px 16px;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 500;
    }

    @media(hover: hover) and (pointer: fine) {
        .header__menu-item a:hover,
        .header__submenu-item a:hover {
            color: var(--text-primary);
        }

        .header__menu-item:hover svg path {
            fill: var(--text-primary);
        }

        .dropdown-menu > a:hover:after {
            background-color: var(--text-primary);
        }

        .header__submenu-items.second_depth_menu a:hover {
            color: var(--text-secondary);
        }
    }
}

/* Layout Phone */
@media (max-width: 599px) {
    header {
        padding: 0 16px;
    }
}
