* {
    --header-height: 56px;
}

.header {
    position: fixed;
    top: 0;
    z-index: 2;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 0;
    min-height: var(--header-height);
    box-shadow: 0 1px 2px #0000000f;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0 -12px;
    max-width: calc(var(--content-width) + 24px);
    width: calc(100% + 24px);
}

.header__item {
    display: flex;
    align-items: center;
    margin: 0 12px;
}

.logotype img {
    height: 26px;
}

.logotype span {
    display: block;
    font-weight: 500;
    font-size: 20px;
    line-height: 27px;
    color: var(--theme-color);
    margin-left: 6px;
}

.menu__item {
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: var(--link-color);
    display: block;
    margin: 0 12px;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.menu__item--active {
    color: var(--theme-color);
}

.menu__item:hover {
    color: var(--theme-color);
}

.lang {
    line-height: 0;
    position: relative;
}

.lang__checked {
    display: inline-block;
    width: 32px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #0000001c;
    background-color: transparent;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 100%;
    transition: opacity 0.2s ease;
    cursor: pointer;
}
.lang__checked:hover {
    opacity: 0.8;
}

.lang__list {
    margin-top: 6px;
    position: absolute;
    right: 0;
    box-shadow: 1px 1px 4px 2px var(--theme-color-opacity-10);
    background-color: #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20%);
    z-index: 100;
    transition: opacity 0.3s, visibility 0.3s ease, transform 0.3s ease;
}

.lang__list--visible {
    pointer-events: auto;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.lang__image {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    border-radius: 2px;
    border: 1px solid #0000001c;
    background-color: transparent;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 100%;
    max-width: inherit;
}

.lang__item {
    padding: 0 10px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.lang__item:hover {
    background-color: var(--theme-color-opacity-10);
}

.lang__country {
    display: inline-block;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--link-color);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.lang__country:hover {
    color: var(--link-color);
}

.lang-changer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.lang-changer.enabled {
    opacity: 1;
}

.lang-changer svg {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.lang-changer span {
    font-size: 18px;
    line-height: 21px;
    color: #727272;
}

.header__btn {
    justify-content: center;
    border: 2px solid transparent;
    box-sizing: border-box;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    height: 38px;
    max-width: 100%;
    min-width: 80px;
    padding: 0 16px;
    vertical-align: middle;
    align-items: center;
    outline: none;
    transition: background-color .1s linear,border-color .1s linear,color .1s linear;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--theme-color);
    background-color: var(--theme-color-opacity-10);
}

.header__btn + .header__btn {
    margin-left: 10px;
}

.header__btn:hover {
    color: #fff;
    background-color: var(--theme-color);
}

.header__btn--theme {
    color: #fff;
    background-color: var(--theme-color);
}

.header__btn--theme:hover {
    color: #fff;
    background-color: var(--theme-color-opacity-80);
}

@media (max-width: 1250px) {
    .hide-middle {
        display: none;
    }
}

@media (max-width: 1000px) {
    .logotype img {
        height: 20px;
    }

    .logotype span {
        font-size: 17px;
        line-height: 26px;
        margin-left: 8px;
    }

    .header__item {
        margin: 0 8px;
    }

    .menu__item {
        font-size: 14px;
    }

    .header__btn {
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }

    .header__btn + .header__btn {
        margin-left: 8px;
    }

    .lang__checked {
        width: 28px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    * {
        --header-height: 48px;
    }

    .hidden-mobile {
        display: none;
    }

    .header {
        padding: 4px 4px;
    }
}