.ff-header {
    width: 100%;
    position: fixed;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1111;
}

.ff-header__burgar-menu {
    background-color: var(--color-secondary);
}

.ff-header__menu-col--primary,
.ff-header__search-wrap:hover,
header .ff-dropdown__item.active {
    background-color: var(--color-primary);
}

.ff-header__navbar {
    padding: 20px 0;
}

.ff-header__link > a {
    font-size: var(--fs-text-medium);
    line-height: calc(var(--fs-text-medium) + 8px);
    color: var(--color-secondary);
    font-weight: 500;
    padding: calc(var(--spacing-card) / 2);
}

.ff-header__link:last-child > a {
    margin-right: 0;
}

.ff-header__link-icon {
    fill: var(--color-secondary);
}

.ff-header__link:last-child {
    margin: 0;
}

.ff-header__search-wrap {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-gray);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.ff-header__search-wrap:hover {
    color: #fff;
}

.ff-header__menu-content {
    padding: 24px 16px;
}

header .ff-dropdown__items {
    width: 200px;
    box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.15),
        0 1px 2px 0 rgba(0, 0, 0, 0.3);
    border: none;
    overflow: hidden;
}

header .ff-dropdown__item {
    --pading-val: 18px;
    font-size: 16px;
    padding: var(--pading-val);
    cursor: pointer;
}

.ff-header__burgar-menu,
.ff-header__menu-col--secondary {
    background-color: var(--color-secondary);
}

.ff-header__menu-title--lightgray {
    color: #d9d9d9;
}

.ff-header__course-title,
.ff-header__link > a {
    transition: color 0.3s;
}

.ff-header__course-item:hover,
.ff-header__link-wrap:hover .ff-header__link > a {
    color: var(--color-primary);
}

.ff-header__course-count {
    color: var(--color-body);
    transition: 0.3s;
}

.ff-header__course-item {
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 6px;
    position: relative;
    transition: 0.3s;
}

.ff-header__course-item:hover {
    background-color: #efefef;
}

.ff-header__course-item-inwrap,
.ff-header__search-active .ff-header__last-col {
    width: 100%;
}

.ff-header__course-item .ff-header__course-item-inwrap::after {
    content: "";
    width: 7px;
    height: 11px;
    flex-shrink: 0;
    position: absolute;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../images/icons/arrow-right-gray.svg");
    top: 7px;
    right: 10px;
    transition: 0.3s;
}

.ff-header__course-item:hover .ff-header__course-item-inwrap::after {
    transform: translateX(10px);
}

.ff-header__burgar-menu {
    width: 30px;
    height: 2px;
    border-radius: 10px;
    position: relative;
    margin: 6px 0;
}

.ff-header__search-close {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 6px;
    cursor: pointer;
}

.ff-header__search-input .ff-header__search-trigger-inwrap::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5px;
    margin: auto;
    background-image: url("../images/icons/search.svg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.ff-header__dropdown {
    --container-val: 100%;
    width: 100vw !important;
    left: calc(var(--container-val) - 100vw / 2) !important;
    border: none;
}

@media (min-width: 992px) {
    .ff-header__link > a {
        font-size: var(--fs-base);
        line-height: calc(var(--fs-base) + 10px);
        text-align: center;
    }
    .ff-header__dropdown {
        --container-val: 465px;
    }
    .ff-header__course-items {
        --gutter-space-menu: 20px;
        margin: 0 calc(-1 * var(--gutter-space-menu));
        max-height: 544px;
        overflow-y: auto;
    }
    .ff-header__course-item {
        padding-left: var(--gutter-space-menu) !important;
        padding-right: var(--gutter-space-menu) !important;
    }
    .ff-header__menu-content {
        height: 100%;
        padding: 32px 40px;
    }
    .ff-header__search-active .ff-header__menu-list,
    .ff-header__search-active .header_search_button,
    .ff-header__search-input {
        display: none;
    }
    .ff-header__course-items::-webkit-scrollbar {
        width: 6px;
        background-color: var(--color-secondary-light);
    }
    .ff-header__course-items::-webkit-scrollbar-thumb {
        background-color: var(--color-secondary);
        border-radius: 10px;
    }
    .ff-header__menu-video {
        height: 170px;
    }
    .ff-header__menu-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .ff-header__dropdown-link + .ff-header__dropdown {
        position: absolute;
        padding-top: 22px !important;
        background: #fff;
        display: none;
        visibility: hidden;
        opacity: 0;
        z-index: 111;
    }
    .ff-header__dropdown.show {
        display: block !important;
    }
    .ff-header__dropdown.remove-visibility {
        display: none;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    .ff-header__link-wrap:hover .ff-header__dropdown {
        display: block;
        visibility: visible;
        opacity: 1;
    }
    .ff-header__dropdown-inwrap {
        max-height: calc(100vh - 83px);
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    }
    .ff-header__search-result-list {
        padding-bottom: 56px;
    }
    .ff-header__search-result-list + .ff-header__search-result-btn {
        position: absolute;
        bottom: 0;
        background: #fff;
        width: calc(100% - 18px);
        left: 0;
    }
}

@media (min-width: 1200px) {
    .ff-header__link > a {
        font-size: var(--fs-text-medium);
        line-height: calc(var(--fs-text-medium) + 10px);
    }
    .ff-header__dropdown {
        --container-val: 554px;
    }
}

.ff-header__dropdown-close {
    width: 36px;
    height: 36px;
    border-radius: 100px;
}

.ff-header__dropdown-close:hover {
    background-color: #efefef;
}

.ff-header__menu-row {
    background-color: #fff;
}

.ff-header__link .dropdown-menu[data-bs-popper] {
    top: unset;
    margin-top: 0 !important;
}

.ff-header__search-input input {
    border: none;
    border-bottom: 1px solid var(--color-primary);
    padding: 5px 30px;
    outline: 0;
    font-size: var(--fs-text-medium);
}

.ff-header__search-active .ff-header__search-input {
    width: 100%;
    display: block;
}

@media (min-width: 320px) and (max-width: 991px) {
    .ff-header__dropdown > .container {
        padding: 0 !important;
    }
    .ff-header__dropdown {
        position: fixed;
        height: 100vh;
        overflow-y: auto !important;
        max-height: unset !important;
        top: 0;
        left: 0 !important;
        transform: translateX(100%);
        transition: 0.3s;
    }
    .ff-header__dropdown.collapse.show {
        transform: translateX(0);
    }
    .ff-header__mobile-trigger {
        width: 24px;
        height: 24px;
        padding: 0 !important;
    }
    .ff-header__inwrap::before {
        content: "";
        width: 100%;
        height: 100%;
        background-color: #fff;
        position: absolute;
        left: 0;
    }
    .ff-header__navbar-wrap,
    .ff-header__search-input {
        width: 100%;
        height: 100vh;
        position: fixed !important;
        left: 0;
        top: 0;
        background: #fff;
    }
    .header_search_button {
        margin-left: auto;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.9);
        transition: 0.1s;
    }
    .ff-header__search-input {
        height: auto !important;
        display: block;
        transform: translateY(-101%);
        transition: 0.3s;
        z-index: -111 !important;
        padding: 20px 0 !important;
    }
    .ff-header.ff-header__search-active {
        position: fixed;
        z-index: 9997;
        background: #fff;
        width: 100%;
    }
    .ff-header__search-active .ff-header__search-input,
    .ff-header__search-visible .ff-header__search-input,
    .ff-search__onChange .ff-header__search-input,
    .sticky .ff-header__search-input {
        transform: translateY(0);
        top: 82px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    .ff-search__onChange .ff-header__search-input {
        height: calc(100vh - 82px) !important;
    }
    .ff-search__onChange .ff-header__search-results-wrap {
        position: relative;
        box-shadow: none;
        height: calc(100% - 44px);
        flex-grow: 1;
    }
    .ff-header__scroll-active .ff-header__search-input {
        box-shadow: 0 10px 10px #6f6f6f30;
    }
    .ff-header__search-input .ff-header__search-close {
        display: none;
    }
    .ff-header__scroll-active .ff-header__search-input .ff-header__search-close,
    .ff-search__onChange .ff-header__search-input .ff-header__search-close {
        display: flex;
    }
    .ff-header__scroll-active .header_search_button {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        transition: 0.3s;
    }
    .ff-search__onChange .header_search_button,
    .sticky .header_search_button {
        opacity: 0;
        visibility: hidden;
    }
    .ff-header__link > a {
        font-size: calc(var(--fs-text-medium) + 2px);
        line-height: calc(var(--fs-text-medium) + 10px);
        font-weight: 400;
        padding: 12px 16px;
    }
    .ff-header__dropdown-link--lang {
        border-top: 1px solid #dbe1e9;
    }
    .ff-header__search-trigger-inwrap {
        position: relative;
    }
    .ff-header__search-input .ff-header__search-trigger-inwrap::before {
        left: 10px;
    }
    .ff-header__search-close {
        right: 8px;
    }
    .ff-header__search-input input {
        border: 1px solid #909090;
        border-radius: 16px;
        padding: 10px 35px;
    }
    .ff-header__navbar-wrap {
        transform: translateX(100%);
        transition: transform 0.3s;
        z-index: 11111;
    }
    .show.ff-header__navbar-wrap {
        transform: translateX(0);
    }
    .ff-header__dropdown {
        display: block !important;
        overflow: hidden;
    }
    .ff-header__dropdown-item {
        padding: 18px;
    }
    .ff-header__search-wrap {
        margin-right: 8px;
    }
    .ff-header__mobile-navbar-top {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 20px 16px;
    }
    .ff-header__navbar-close-mobile {
        text-align: right;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ff-header__search-trigger {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .ff-header__search-results {
        height: 100% !important;
    }
}

.ff-header__search-results-wrap {
    width: 100%;
    position: absolute;
    z-index: 111111;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 10px #00000029;
}

li.ff-header__search-result a {
    color: var(--color-body);
}

li.ff-header__search-result:last-child {
    border: none;
}

.ff-header__search-result-button {
    width: 100%;
    background-color: #fff;
}

@media (min-width: 1400px) {
    li.ff-header__link-wrap:nth-child(4) {
        margin: 0;
    }
    li.ff-header__link-wrap {
        margin-right: 20px;
    }
}

@keyframes navbarSlide {
    0% {
        transform: translatex(100%);
    }
    100% {
        transform: translatex(0);
    }
}

@keyframes navbarSlideOut {
    0% {
        transform: translatex(0);
    }
    100% {
        transform: translatex(100%);
    }
}

.ff-header__col-logo {
    max-width: 170px;
}

.ff-header__search-results {
    height: 60vh;
    overflow-y: auto;
}

header .ff-header__dropdown-select {
    width: 20px;
    height: 20px;
    border-radius: 100px;
    border: 2px solid;
    position: relative;
    color: var(--color-gray);
}

header .ff-dropdown__item.active {
    background: 0 0;
    border-color: var(--color-primary) !important;
}

header .ff-dropdown__item.active span.ff-header__dropdown-select {
    border-color: var(--color-primary);
}

header .ff-dropdown__item.active span.ff-header__dropdown-select::before {
    content: "";
    width: 60%;
    height: 60%;
    position: absolute;
    background: currentColor;
    border-radius: 100px;
    color: var(--color-primary) !important;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

@media (min-width: 320px) and (max-width: 992px) {
    header .ff-dropdown__lang-items {
        width: 100%;
        height: 100vh;
        position: fixed;
        background: #fff;
        top: 0 !important;
        margin: 0 !important;
        border-radius: 0;
        border: none;
        display: block !important;
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    header .show.ff-dropdown__lang-items {
        transform: translateX(0);
    }
    header .ff-header__dropdown-subtitle {
        padding: 8px 16px;
    }
    .ff-header__dropdown-title {
        font-size: var(--fs-block);
        line-height: calc(var(--fs-block) + 8px);
    }
    header .ff-dropdown {
        background-image: url("../images/icons/arrow-right-gray.svg");
    }
}

@media (min-width: 992px) {
    .ff-header__search-results {
        height: 405px;
        overflow-y: auto;
    }
    .ff-header__search-results-wrap {
        overflow: hidden;
    }
}

.ff-search__noresult-card-inwrap {
    height: 100%;
    background: var(--color-primary-light);
    border-radius: 8px;
    padding: 22px var(--spacing-card);
}

.ff-search__noresult-cards {
    margin: 0 -4px;
}

.ff-search__noresult-card {
    height: auto !important;
    padding: 0 4px;
    margin-bottom: 8px;
}

.ff-search__noresult-title {
    font-size: 16px;
}

.ff-search__noresult-card-title {
    font-size: var(--fs-base);
    line-height: calc(var(--fs-base) + 6px);
}

.ff-icon__circle {
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 100px;
}

.ff-search__animation-wrap {
    left: 36px;
    overflow: hidden;
    color: var(--color-gray);
}

.ff-search__animation-text-list {
    transform: translateY(0);
    animation: 10s 2s infinite forwards textSlide;
}

.ff-header__search-input input:focus + .ff-search__animation-wrap {
    display: none !important;
}

.ff-search__noresult-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .ff-header__search-result-button {
        width: calc(100% - 18px);
    }
    .ff-header__search-lang > :last-child > * {
        margin: 0 !important;
    }
    .ff-search__noresult {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .ff-search__noresult {
        padding: 0 80px;
    }
}

@keyframes textSlide {
    0% {
        transform: translateY(0);
    }
    33%,
    4% {
        transform: translateY(-100%);
    }
    37%,
    66% {
        transform: translateY(-200%);
    }
    100%,
    70% {
        transform: translateY(-300%);
    }
}

.ff-header__menu-video {
    padding-top: 56.3%;
}

.ff-header__menu-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
}
