header {
    font-family: RMNeue;
    position: fixed;
    top: 0;
    width: 100%;
    color: #313134;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    z-index: 5;
    display: flex;
}

nav {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
    margin-right: 16px;
    margin-left: 16px;
    margin-top: 20px;
    background: #FFFFFF;
    border: 1px solid #F8F7F5;
    box-shadow: 0 4px 12px rgba(49, 49, 52, 0.02);
    border-radius: 200px;
    padding: 8px 16px;
    align-items: center;
}

.logo-wrapper {
    width: 35px;
    height: 40px;
    display: flex;
}

.logo-wrapper div {
    position: absolute;
}

.control-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    flex: none;
    order: 1;
    flex-grow: 0;
    cursor: pointer;
}

.rounded-button {
    border-radius: 100px;
    user-select: none;
}

.primary-button {
    background: #ffffff;
}

.primary-button:hover {
    background: #EFEEEB;
}

.secondary-button {
    color: #FFFFFF !important;
    background: #313134;
    border: 1px solid #313134;
}

.secondary-button:hover {
    color: #FFFFFF;
    background: #56565B;
}

.menu-items a {
    padding: 0 8px 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ted-icon-menu {
    margin-top: 8px;
}

.menu-items img, .menu-items svg {
    margin-left: 4px;
}

.header-controls {
    display: flex;
}

#login-button {
    border: 1px solid #C4C4CE;
    display: none;
    padding-top: 7px;
    padding-bottom: 7px;
}

#signup-button {
    margin-right: 8px;
    margin-left: 8px;
}

#hb-button {
    display: flex;
    border: 1px solid #C4C4CE;
    border-radius: 100%;
    width: 36px;
    height: 36px;
    padding: 0;
    position: relative;
}

#hb-button hr {
    width: 15px;
    position: absolute;
    background: #313134;
    transition: transform .2s, top .2s;
}

#hb-button hr:nth-child(1) {
    top: 3px
}

#hb-button hr:nth-child(2) {
   top: 10px
}

#hb-button hr:nth-child(3) {
    top: 17px
}

.header-links {
    display: none;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    align-content: stretch;
    list-style: none;
    margin: 0;
    flex-flow: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: fill-available;
    background: #FFFFFF;
    border: 1px solid #F8F7F5;
    box-shadow: 0 4px 12px rgba(49, 49, 52, 0.02);
    border-radius: 24px;
    padding: 10px 16px;
}

nav.opened .header-links {
    display: flex;
}

nav.opened hr:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

nav.opened hr:nth-child(2) {
    opacity: 0;
}

nav.opened hr:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
}

.header-links a {
    text-decoration: none;
    color: inherit;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    transition: max-height 0.3s;
}

.submenu-collapsed .submenu {
    max-height: 1000px;
}

.collapsible svg {
    transition: transform 0.3s;
}

.submenu-collapsed .collapsible svg {
    transform: rotate(180deg);
}

.submenu li {
    text-decoration: none;
    color: inherit;
}

.menu-items .submenu a p {
    display: none;
}

.list-space {
    display: flex;
    padding: 12px 0;
}

.lang-switcher-mobile {
    display: flex;
}

.lang-switcher-desktop {
    display: none;
    align-items: center;
    gap: 0.1rem;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 8px;
}

.lang-label {
    margin-right: 0.3rem;
}

a.text-small {
    font-size: 14px;
    line-height: 20px;
}

.lang-option {
    text-decoration: none;
    color: inherit;
    font-weight: normal;
}

.lang-option.lang-active {
    font-weight: 600;
    color: #000000;
}

.lang-option:hover {
    text-decoration: underline;
}

@media only screen and (min-width: 768px) {
    .hero-text {
        max-width: 700px;
    }
}

@media only screen and (min-width: 992px) {
    nav {
        margin-right: 40px;
        margin-left: 40px;
    }

    .logo-wrapper {
        width: 138px;
        height: 40px;
    }

    #hb-button {
        display: none;
    }

    #login-button {
        display: block;
    }

    #signup-button {
        margin-right: 0;
    }

    .header-links .list-space {
        cursor: pointer;
        padding: 0;
    }

    .header-links {
        flex-flow: row;
        display: flex;

        position: relative;
        top: unset;
        left: unset;
        width: auto;

        border: none;
        box-shadow: unset;
        border-radius: unset;
        padding: 0;
    }

    nav .submenu {
        display: none;
    }

    .submenu-collapsed .collapsible svg {
        transform: none;
    }

    .menu-items {
        position: relative;
    }

    .menu-items a.collapsible {
        pointer-events: none;
    }

    .menu-items:hover .submenu-container {
        position: absolute;
        max-height: 1000px;
        padding-top: 32px;
        top: 16px;
        left: -16px;
    }

    .menu-items:hover .submenu,
    .submenu:hover
    {
        display: flex;
        max-height: 1000px;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        top: 48px;
        left: -16px;
        background: #FFFFFF;
        border: 1px solid #F8F7F5;
        box-shadow: 0 4px 12px rgba(49, 49, 52, 0.02);
        border-radius: 32px;
        box-sizing: border-box;
        width: 300px;
    }

    .menu-items .submenu li:nth-child(2) {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .menu-items .submenu li .list-space {
        padding: 12px;
        border-radius: 12px;
        cursor: pointer;
    }

    .menu-items .submenu li .list-space:hover {
        background: #E8E9FF;
    }

    .menu-items .submenu a {
        font-style: normal;
        font-weight: 400;
        font-size: 20px;
        line-height: 24px;
        color: #313134;
        align-items: self-start;
        display: flex;
        flex-direction: column;
    }
    .menu-items .submenu a p {
        display: block;
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
    }

    .lang-switcher-desktop {
        display: flex;
    }

    .lang-switcher-mobile {
        display: none;
    }
}

@media only screen and (min-width: 1200px) {

}

