.template-header__top-contacts-item+.template-header__top-contacts-item,
.template-header__top-contacts-phone+.template-header__top-contacts-phone {
    margin-top: 8px;
}

.template-header__nav-item:hover>.template-header__nav-sublist,
.template-header__top-contacts:hover>.template-header__top-contacts-inner {
    opacity: 1;
    visibility: visible;
    transform: rotateX(0);
    transition: 0.5s;
}

.template-header p,
.template-header ul {
    margin-bottom: 0;
    padding-left: 0;
}

.template-header a,
.template-header a:hover {
    text-decoration: none;
}

.template-header__nav-link,
.template-header__nav-sublink,
.template-header__top-contacts-item-link,
.template-header__top-contacts-phone-value,
.template-header__top-menu-link,
.template-header__top-social-link {
    color: #000;
}

.nav-opened-state {
    overflow: hidden;
}

.template-header {
    --bg: #fff;
    --template-header-main-color: #000;
    --template-header-mobile-bg: var(--bg);
    --template-header-mobile-menu-bg: #fff;
    --template-header-mobile-menu-color: var(--template-header-main-color);
    --template-header-bg-on-scroll: var(--bg);
    --template-header-menu-color-on-scroll: var(--template-header-main-color);
    color: #000;
    background-color: var(--bg);
}

body.landing-editor .template-header {
    background:
        linear-gradient(var(--bg), var(--bg)),
        url(https://b24.viasite.ru/header-app/img/transparent-bg.png) !important;
}

.template-header__buttons {
    display: flex;
    align-items: center;
}

.template-header .template-header__button {
    display: inline-block;
    white-space: nowrap;
    border: none;
    background-color: #2d2d36;
    color: #fff;
    padding: 12px 16px;
    margin-left: 24px;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    text-align: center;
}

.template-header__increasing-button {
    display: inline-block;
    font-size: 20px;
    color: #000;
}

.template-header-dropdown-item {
    position: absolute !important;
    top: 100%;
    left: 0;
    min-width: 230px;
    background-color: #fff;
    box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.5);
    z-index: 9999;
    transform-origin: 0 0;
    transform: rotateX(-90deg);
    visibility: hidden;
    opacity: 0;
}

.template-header__button.g-button-color,
.template-header__button.g-button-color.g-btn-type-solid {
    color: var(--color) !important;
    background-color: var(--button-color) !important;
}

.template-header__button.g-button-color.active,
.template-header__button.g-button-color.g-btn-type-solid.active,
.template-header__button.g-button-color.g-btn-type-solid:hover,
.template-header__button.g-button-color:hover {
    border-color: var(--button-color-hover) !important;
    background-color: var(--button-color-hover) !important;
    color: var(--color-hover) !important;
}

.template-header--absolute {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9997;
}

.template-header__bottom.template-header__bottom--fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    animation: 1s showElement;
    z-index: 9997;
    background-color: var(--template-header-bg-on-scroll);
}

@keyframes showElement {
    0% {
        top: -70px;
    }

    100% {
        top: 0;
    }
}

.template-header__top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.template-header__line {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgba(199, 199, 199, 0.4);
}

.template-header__top-menu {
    list-style-type: none;
    display: flex;
}

.template-header__top-menu-item+.template-header__top-menu-item {
    margin-left: 16px;
}

.template-header__top-menu-link {
    font-size: 14px;
}

.template-header__top-phone {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.template-header__top-phone-text {
    font-size: 12px;
    font-weight: 700;
    margin: 0 8px;
}

.template-header__links,
.template-header__top-info {
    display: flex;
    align-items: center;
}

.template-header__icon {
    font-size: 16px;
}

.template-header__top-social-link+.template-header__top-social-link {
    margin-left: 12px;
}

.template-header__top-phone-icon-chevrone {
    font-size: 8px;
}

.template-header__top-contacts {
    position: relative;
}

.template-header__top-contacts-inner {
    padding: 12px 16px;
    left: auto;
    right: 0;
}

.template-header__top-contacts-phone-value {
    font-weight: 700;
    font-size: 16px;
}

.template-header__top-contacts-phone-owner {
    font-size: 14px;
    margin-top: 4px;
}

.template-header__top-contacts-items {
    margin-top: 16px;
}

.template-header__top-contacts-item {
    display: flex;
}

.template-header__top-contacts-item-link,
.template-header__top-contacts-item-text {
    font-size: 14px;
    margin-left: 8px;
}

.template-header__top-contacts-item .template-header__icon {
    min-width: 20px;
}

.template-header__top-contacts-item-icon,
.template-header__top-social-icon {
    font-size: inherit;
}

.template-header__contacts-social {
    margin-top: 16px;
    display: flex;
    align-items: center;
}

.template-header__bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.template-header__logo {
    display: flex;
    align-items: center;
    max-width: 180px;
    height: 60px;
}

.template-header-logo-img--hidden,
.template-header__links-additional,
.template-header__nav-head {
    display: none;
}

.template-header-logo-img {
    max-width: 100%;
    max-height: 100%;
}

.template-header__nav {
    width: 100%;
}

.template-header__nav-list-container {
    flex-grow: 1;
}

.template-header .template-header__nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 15px 0 31px;
    row-gap: 8px;
    margin-bottom: 0;
}

.template-header__nav-item {
    list-style-type: none;
    position: relative;
}

.template-header__nav-item+.template-header__nav-item {
    margin-left: 20px;
}

.template-header__nav-link {
    font-weight: 700;
    text-transform: uppercase;
}

.template-header__bottom--fixed .template-header__increasing-button-icon,
.template-header__bottom--fixed .template-header__nav-link {
    color: var(--template-header-menu-color-on-scroll) !important;
}

.template-header__bottom--fixed .template-header__nav-link.g-color--hover:hover {
    color: var(--theme-color-main) !important;
    color: var(--color-hover) !important;
}

.template-header__nav-sublist {
    padding: 15px 0;
}

.template-header__nav-sublist .template-header__nav-item+.template-header__nav-item {
    margin-left: 0;
}

.template-header__nav-sublist .template-header__nav-item {
    padding: 6px 24px;
}

.template-header__nav-sublist .template-header__nav-sublist {
    left: 100%;
    top: 0;
}

.template-header__nav-list>.template-header__nav-item:last-child .template-header__nav-sublist .template-header__nav-sublist {
    left: -100%;
}

.template-header__button:hover {
    background-color: #42424a;
}

.template-header__burger span,
.template-header__burger::after,
.template-header__burger::before {
    background-color: var(--template-header-main-color);
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    transition: 0.3s;
}

.template-header__burger {
    display: none;
    position: relative;
    width: 25px;
    height: 18px;
}

.template-header__burger span {
    top: 8px;
}

.template-header__burger::after,
.template-header__burger::before {
    content: "";
}

.template-header__burger::before {
    top: 0;
}

.template-header__burger::after {
    bottom: 0;
}

@media (max-width: 991.98px) {

    .template-header .template-header__button,
    .template-header__top-menu-item+.template-header__top-menu-item {
        margin-top: 8px;
        margin-left: 0;
    }

    .template-header__bottom {
        background-color: var(--template-header-mobile-bg);
    }

    .template-header__burger span,
    .template-header__burger::after,
    .template-header__burger::before {
        background-color: var(--template-header-mobile-menu-color);
    }

    .template-header__top-content {
        display: none;
    }

    .template-header__contacts,
    .template-header__top-menu {
        flex-direction: column;
    }

    .template-header .template-header__top-menu {
        margin-bottom: 24px;
    }

    .template-header__links {
        flex-direction: column;
        align-items: normal;
        padding: 0 30px 15px;
    }

    .template-header__nav {
        position: fixed;
        right: 0;
        top: 0;
        width: 320px;
        height: 100%;
        overflow-y: auto;
        z-index: 9998;
        transform: translateX(100%);
        background-color: var(--template-header-mobile-menu-bg);
    }

    .template-header__nav--opened {
        transform: none;
    }

    .nav-opened-state .template-header::before {
        content: "";
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        z-index: 9997;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .template-header__nav-head {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 25px;
        padding: 15px 24px 0 0;
    }

    .template-header__btn-close {
        width: 35px;
        height: 35px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        cursor: pointer;
        border: none;
    }

    .template-header__btn-close::after,
    .template-header__btn-close::before {
        content: "";
        position: absolute;
        width: 80%;
        height: 2px;
        background-color: var(--template-header-mobile-menu-color);
    }

    .template-header__btn-close::before {
        transform: rotate(45deg);
    }

    .template-header__btn-close::after {
        transform: rotate(-45deg);
    }

    .template-header .template-header__nav-list {
        padding: 0;
        flex-direction: column;
        row-gap: 0;
    }

    .template-header__nav-item+.template-header__nav-item {
        margin-left: 0;
    }

    .template-header__nav-item {
        border-bottom: 1px solid var(--template-header-mobile-menu-color);
    }

    .template-header__nav-item:first-child {
        border-top: 1px solid var(--template-header-mobile-menu-color);
    }

    .template-header__nav-link,
    .template-header__nav-sublink {
        padding: 12px 0;
        display: inline-block;
    }

    .template-header__bottom--fixed .template-header__nav-link,
    .template-header .template-header__increasing-button-icon,
    .template-header__nav-link,
    .template-header__nav-sublink,
    .template-header__top-menu-link {
        color: var(--template-header-mobile-menu-color) !important;
    }

    .template-header-dropdown-item {
        position: static !important;
        opacity: 1;
        transform: none;
        visibility: visible;
        padding: 0;
        transition: none;
        box-shadow: none;
    }

    .template-header__nav-sublist {
        background-color: transparent !important;
        width: 100%;
        display: none;
    }

    .template-header__burger,
    .template-header__nav-sublist--opened {
        display: block;
    }

    .template-header__nav-sublist .template-header__nav-item:last-child {
        border: none;
    }

    .template-header__nav-sublist .template-header__nav-item:first-child {
        border-top: 1px solid var(--template-header-mobile-menu-color) !important;
    }

    .template-header__nav-sublist .template-header__nav-item {
        padding: 0 0 0 20px;
    }

    .template-header__buttons {
        margin-top: 12px;
        flex-direction: column;
        align-items: start;
    }

    .template-header__links-additional {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
    }

    .template-header__contact+.template-header__contact {
        margin-left: 0;
        margin-top: 16px;
    }
}