#blog-header {
    min-width: 320px;
}

.tv-skip-header-navigation-container {
    position: fixed;
    top: 52px;
    left: 40px;
    height: 56px;
    width: fit-content;
    padding: 14px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: var(--white);
    user-select: none;
    z-index: 100;
}

.tv-skip-header-navigation-btn {
    border: none;
    border-radius: 6px;
    padding: 2px 14px;
    background-color: var(--white);
    color: var(--cold-gray-900);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}


.tv-skip-header-navigation-btn:focus-visible {
    outline-offset: 2px;
    outline: 2px solid var(--tv-blue-500);
}

.tv-blog-header {
    grid-template-columns: min-content max-content min-content;
    display: grid;
    padding: 12px 100px;
    width: 100%;
    color: var(--cold-gray-900);
    column-gap: 32px;
    font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
    justify-content: space-between;
}

@media (max-width: 1919px) {
    .tv-blog-header {
        padding-inline: 40px;
    }
}

@media (max-width: 1439px) {
    .tv-blog-header {
        padding-inline: 32px;
    }
}

@media (max-width: 1023px) {
    .tv-blog-header {
        padding-inline: 20px;
    }
}

.tv-blog-header--mobile {
    display: none;
    padding: 12px 20px 12px 9px;
}

[dir="rtl"] .tv-blog-header--mobile {
    padding: 12px 9px 12px 20px;
}

@media (max-width: 767px) {
    .tv-blog-header--mobile {
        display: grid;
    }

    .tv-blog-header {
        display: none;
    }
}

.tv-header-button {
    width: 40px;
    padding: 6px;
    height: 40px;
    border: 0;
    border-radius: 25px;
    background-color: var(--white);
    transition: none;
}

.tv-header-button:focus-visible,
.tv-blog-header__lang-selector-container:focus-visible {
    border-radius: 40px;
    outline: 2px solid var(--tv-blue-500);
    outline-offset: 2px;
}

@media (any-hover: hover) {
    .tv-header-button:hover {
        background-color: var(--cold-gray-100);
        cursor: default;
        border-radius: 25px;
    }
}

.tv-blog-header__burger-menu-button {
    display: none;
    margin-right: 8px;
}

@media (max-width: 1279px) {
    .tv-blog-header__burger-menu-button {
        display: flex;
    }
}

[dir="rtl"] .tv-blog-header__burger-menu-button {
    margin-right: 0;
    margin-left: 8px;
}


.tv-blog-header__burger-menu-header,
.tv-blog-header__burger-menu-list-block.tv-blog-header__burger-menu-list-block-lang {
    display: none;
}

.tv-blog-header__burger-menu-list-block.tv-blog-header__burger-menu-list-block-lang {
    padding-inline: 7px;
}

.tv-blog-header__burger-menu-container {
    display: flex;
    flex-direction: column;
    opacity: 0;
    height: 0;
    position: absolute;
    width: 320px;
    max-height: 70vh;
    background-color: var(--white);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 20;
    overflow: hidden;
}

#blog-header.burger-menu-opened {
    position: static;
}

#blog-header.burger-menu-opened .tv-blog-header__burger-menu-container {
    opacity: 1;
    height: min-content;
    z-index: 100;
}

/* burger menu on mobile */
@media (max-width: 767px) {
    #blog-header.burger-menu-opened .tv-blog-header--mobile {
        height: 0;
        padding: 0;
        opacity: 0;
    }

    #blog-header.burger-menu-opened .tv-blog-header__burger-menu-container {
        max-height: 100%;
        height: 100%;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    #blog-header.burger-menu-opened .tv-blog-header--mobile__content_wrapper {
        opacity: 0;
    }

    .tv-blog-header__burger-menu-header {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: flex-end;
        padding: 14px 14px 15px 14px;
        border-bottom: solid 1px var(--cold-gray-150);
    }

    .tv-blog-header__burger-menu-list-block.tv-blog-header__burger-menu-list-block-lang {
        display: flex;
    }
}

.tv-blog-header__burger-menu-header-close-btn {
    display: flex;
    border: none;
    background: none;
    padding: 6px;
    border-radius: 20px;
}

.tv-blog-header__burger-menu-header-close-btn:focus-visible {
    outline-offset: 2px;
    outline: 2px solid var(--tv-blue-500);
}

.tv-blog-header__burger-menu-header-close-btn:hover {
    background-color: var(--cold-gray-100);
}

.tv-blog-header__burger-menu-header-close-btn > svg {
    color: var(--cold-gray-900);
}

.tv-blog-header__burger-menu-list {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

.tv-blog-header__burger-menu-list-block {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: solid 1px var(--cold-gray-150);
}

.tv-blog-header__burger-menu-list-block:last-child {
    border-bottom: none;
}

.tv-blog-header__nav-item-wrapper {
    padding: 5px 7px;
}

.tv-blog-header__burger-menu-list-item {
    padding: 3px 13px;
    display: block;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
    font-feature-settings: 'tnum' on, 'lnum' on;
    line-height: 24px;
    font-size: 16px;
    font-weight: 400;
    color: var(--cold-gray-900);
    cursor: pointer;
    text-wrap: nowrap;
}

.tv-blog-header__burger-menu-list-item:hover {
    text-decoration: none;
    color: var(--cold-gray-900);
}

.tv-blog-header__burger-menu-list-block-lang:hover,
.tv-blog-header__nav-item-wrapper:hover {
    background-color: var(--cold-gray-100);
}

.tv-blog-header__burger-menu-list-item:visited,
.tv-blog-header__burger-menu-list-item:active {
    background-color: var(--cold-gray-100);
    color: var(--cold-gray-900);
    text-decoration: none;
}

a.tv-blog-header__burger-menu-list-item:focus,
div.tv-blog-header__burger-menu-list-item:focus {
    color: var(--cold-gray-900);
    text-decoration: none;
}

div.tv-blog-header__burger-menu-list-item:focus-visible,
a.tv-blog-header__burger-menu-list-item:focus-visible {
    outline-offset: 2px;
    outline: 2px solid var(--tv-blue-500);
    color: var(--cold-gray-900);
    border-radius: 6px;
}

.tv-blog-header__burger-menu-lang-selector.tv-blog-header__burger-menu-list-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
}

.tv-blog-header__burger-menu-current-lang-wrapper {
    display: flex;
    flex-direction: row;
    color: var(--cold-gray-550);
}

[dir="rtl"] .tv-blog-header__burger-menu-current-lang-wrapper svg {
    transform: rotate(180deg);
}

.tv-blog-header__burger-menu-current-lang-title {
    padding: 2px 0;
}

.tv-blog-header__burger-menu-current-lang-text {
    padding: 2px 4px 2px 0;
}

.tv-blog-header__burger-menu-nav-link {
    color: var(--tv-blue-500);
    text-decoration: none;
}

a.tv-blog-header__burger-menu-nav-link:visited,
a.tv-blog-header__burger-menu-nav-link:hover {
    color: var(--tv-blue-500);
    text-decoration: none;
}

.tv-blog-header__title {
    display: flex;
    align-items: center;
}

a.tv-blog-header__site-link {
    display: inline-flex;
    color: var(--cold-gray-900);
}

a.tv-blog-header__site-link:focus,
.tv-blog-header__title__blog:focus {
    color: var(--cold-gray-900);
}

@media (any-hover: hover) {
    a.tv-blog-header__site-link:hover,
    .tv-blog-header__title__blog:hover {
        color: var(--tv-blue-500);
    }
}

a.tv-blog-header__site-link:active,
.tv-blog-header__title__blog:active {
    color: #1848CC;
}

.tv-blog-header__title__logotype {
    padding: 4px 2px;
    height: 40px;
}

.tv-blog-header__title__tradingview {
    margin-left: 7px;
    padding: 4px 0;
    height: 40px;
}

[dir="rtl"] .tv-blog-header__title__tradingview {
    margin-left: 0;
    margin-right: 7px;
}

@media (max-width: 1439px) {
    .tv-blog-header__title__logotype {
        display: inline-flex;
    }

    .tv-blog-header__title__tradingview {
        display: none;
    }
}

.tv-blog-header__title__delimiter {
    color: var(--cold-gray-900);
    display: inline-flex;
    margin-left: 5px;
}

[dir="rtl"] .tv-blog-header__title__delimiter {
    margin-left: 0;
    margin-right: 6px;
}

.tv-blog-header__title__blog {
    display: inline-flex;
    margin-left: 6px;
    color: var(--cold-gray-900);
    padding-inline: 2px;
}

[dir="rtl"] .tv-blog-header__title__blog {
    margin-left: 0;
    margin-right: 6px;
}

a.tv-blog-header__site-link:focus-visible,
a.tv-blog-header__title__blog:focus-visible {
    outline-offset: 2px;
    outline: 2px solid var(--tv-blue-500);
    border-radius: 10px;
}

.tv-blog-header__replaceable-container {
    display: grid;
}

/* navigation menu */
.tv-blog-header__menu {
    display: flex;
    grid-row: 1;
    grid-column: 1;
    align-items: center;
    justify-self: center;
    gap: 16px;
}

@media (max-width: 1919px) {
    .tv-blog-header__menu {
        gap: 0;
    }
}

@media (max-width: 1279px) {
    .tv-blog-header {
        justify-content: initial;
        grid-template-columns: min-content auto min-content;
    }

    .tv-blog-header__menu {
        display: none;
    }
}

.tv-blog-header__nav-item {
    display: block;
    padding: 8px 16px;
    line-height: 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--cold-gray-900);
    cursor: pointer;
    border-radius: 36px;
    text-wrap: nowrap;
}

/* intended incresing of selector weight */
.tv-blog-header__nav-item.tv-blog-header__nav-item--active:hover,
.tv-blog-header__nav-item.tv-blog-header__nav-item--active:focus,
.tv-blog-header__nav-item--active {
    color: var(--tv-blue-500);
}

a.tv-blog-header__nav-item:focus,
a.tv-blog-header__nav-item:active {
    background-color: transparent;
    color: var(--cold-gray-900);
    text-decoration: none;
    border-radius: 36px;
}

a.tv-blog-header__nav-item:hover {
    color: var(--cold-gray-900);
    text-decoration: none;
    background-color: var(--cold-gray-100);
}

a.tv-blog-header__nav-item:focus-visible {
    outline-offset: 2px;
    outline: 2px solid var(--tv-blue-500);
    border-radius: 36px;
}

.tv-blog-header__search-panel {
    display: flex;
    line-height: 1;
    align-items: center;
}

.tv-blog-header__lang-button {
    background-color: inherit;
    transition: none;
    cursor: default;
    width: 40px;
    padding: 6px;
    height: 40px;
    border: 0;
    border-radius: 25px;
}

#blog-header.search-opened .tv-blog-header__search-button,
#blog-header.burger-menu-opened .tv-blog-header__burger-menu-button {
    background-color: var(--cold-gray-100);
    cursor: default;
    border-radius: 25px;
}

.tv-blog-header__search-input-container {
    position: relative;
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    /* initial state -> hidden */
    opacity: 0;
    z-index: -1;
    transition: opacity 200ms;
}

.tv-blog-header__search-form {
    font-size: 16px;
    line-height: 20px;
    width: 100%;
    color: var(--cold-gray-900);
    background-color: var(--cold-gray-100);
    border: none;
    border-radius: 40px;
    box-sizing: border-box;
}

.tv-blog-header__search-wrapper {
    height: 40px;
    position: relative;
    display: flex;
}

.tv-blog-header__search-input-button {
    position: relative;
    background-color: var(--cold-gray-100);
    margin: auto 0 auto 6px;
    padding: 2px;
    border-radius: 16px;
    border: 0;
}

[dir="rtl"] .tv-blog-header__search-input-button {
    margin-right: 5px;
    padding-left: 0;
    width: 34px;
}

.tv-blog-header__search-input {
    border: 0;
    display: flex;
    flex: 1 1 auto;
    width: 0;
    background-color: var(--cold-gray-100);
    font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
    font-feature-settings: 'tnum' on, 'lnum' on;
    line-height: 24px;
    font-size: 16px;
    font-weight: 400;
    color: var(--cold-gray-900);
}

[dir="rtl"] .tv-blog-header__search-input {
    padding-right: 4px;
}

.tv-blog-header__search-input-button > svg {
    display: flex;
    color: var(--cold-gray-550);
}

.tv-blog-header__search-close {
    padding: 7px;
    border: 0;
    margin: auto 4px auto 5px;
    color: var(--cold-gray-900);
    border-radius: 40px;
}

.tv-blog-header__search-clear,
.tv-blog-header__search-close {
    display: flex;
    position: relative;
    cursor: default;
    background-color: var(--cold-gray-100);
}

.tv-blog-header__search-clear:focus-visible {
    outline-offset: 2px;
    outline: 2px solid var(--tv-blue-500);
    border-radius: 8px;
}

.tv-blog-header__search-input-button:hover,
.tv-blog-header__search-input-button:active,
.tv-blog-header__search-close:hover,
.tv-blog-header__search-close:active {
    background-color: var(--cold-gray-150);
}

.tv-blog-header__search-close:focus-visible,
button.tv-blog-header__search-input-button:focus-visible {
    outline: 2px solid var(--tv-blue-500);
}

.tv-blog-header__search-clear {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    border: 0;
    margin: auto 12px auto 0;
    color: var(--cold-gray-550);
}

.tv-blog-header__search-clear:after {
    content: '';
    position: absolute;
    right: -12px;
    bottom: 0;
    width: 1px;
    height: 18px;
    background: var(--cold-gray-150);
}

@media (any-hover: hover) {
    .tv-blog-header__search-clear:hover {
        color: var(--cold-gray-900);
    }
}

[dir="rtl"] .tv-blog-header__search-clear {
    margin-right: 0;
    padding-right: 8px;
    padding-left: 12px;
}

[dir="rtl"] .tv-blog-header__search-clear:after {
    right: initial;
    left: 0;
}

.tv-blog-header__lang-selector-container {
    display: flex;
    cursor: default;
    margin-left: 12px;
    padding: 0 16px 0 6px;
}

[dir="rtl"] .tv-blog-header__lang-selector-container {
    margin-left: 0;
    margin-right: 12px;
    padding: 0 10px 0 12px;
}

#blog-header.lang-dropdown-opened .tv-blog-header__lang-selector-container {
    background-color: var(--cold-gray-100);
    border-radius: 25px;
}

@media (any-hover: hover) {
    .tv-blog-header__lang-selector-container:hover {
        background-color: var(--cold-gray-100);
        border-radius: 25px;
    }
}

#blog-header.lang-dropdown-opened .tv-header__lang-dropdown {
    visibility: visible;
    opacity: 1;
    height: auto;
}

@media (max-width: 767px) {
    #blog-header.lang-dropdown-opened .tv-header__lang-dropdown {
        position: fixed;
        width: 100%;
        z-index: 110;
        max-height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}

.tv-blog-header__lang {
    padding: 8px 0;
    cursor: default;
    font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
    font-feature-settings: 'tnum' on, 'lnum' on;
    line-height: 24px;
    font-size: 16px;
    font-weight: 400;
    color: var(--cold-gray-900);
    text-transform: uppercase;
}

.tv-header__lang-dropdown {
    display: block;
}

.tv-header__lang-dropdown-header {
    display: none;
    padding: 14px;
    height: 70px;
    flex-wrap: wrap;
    align-content: center;
    width: 100%;
    border-bottom: solid 1px var(--cold-gray-150);
    color: var(--cold-gray-900);
}

@media (max-width: 767px) {
    .tv-header__lang-dropdown-header {
        display: inline-flex;
    }
}

.tv-header__lang-dropdown-header-title {
    margin-left: 14px;
    flex: 1 1 auto;
    padding: 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
    font-feature-settings: 'tnum' on, 'lnum' on;
    font-size: 20px;
    font-weight: 590;
    line-height: 24px;
}

[dir="rtl"] .tv-header__lang-dropdown-back-btn svg {
    transform: rotate(180deg);
}

/* check */
.main-header__lang-short {
    margin-right: 6px;
    width: 28px;
    flex-shrink: 0;
    text-transform: uppercase;
    font-weight: 500;
}

.tv-header__lang-dropdown {
    visibility: hidden;
    opacity: 0;
    height: 0;
    -webkit-transform-origin: top right;
    -ms-transform-origin: top right;
    transform-origin: top right;
}

.tv-header-animation {
    transition: opacity 200ms;
}

.tv-blog-header--mobile__content_wrapper {
    display: flex;
    justify-content: space-between;
    grid-row: 1;
    grid-column: 1;
}

.tv-blog-header--mobile .tv-blog-header__search-input-container {
    padding-left: 11px;
}

[dir="rtl"] .tv-blog-header--mobile .tv-blog-header__search-input-container {
    padding-left: 0;
    padding-right: 11px
}

#blog-header.search-opened .tv-blog-header__menu,
#blog-header.search-opened .tv-blog-header--mobile__content_wrapper {
    opacity: 0;
    z-index: -1;
    transition: opacity 200ms;
}

#blog-header.search-opened .tv-blog-header__search-input-container {
    opacity: 1;
    z-index: 10;
    transition: opacity 200ms;
}
