
.header-main {
    padding: 0 0 14px;
}

.header-main.active {
    padding: 0;
}

.header-main.active .preheader {
    margin-bottom: 15px;
}

.header-main .header-bottom__right {
    display: none;
}

.header-main .header-logo {
    position: relative;
    bottom: -2px;
    margin-right: 25px;
}

.header-main .header-support {
    float: none;
    position: static;
}

.header-main .ebala {
    text-align: center;
    line-height: 1;
    padding: 0 0 1em;
    margin-top: -10px;
}

header.red-header {
    background-color: #e64249 !important;
}

.preheader {
    padding: 9px 0 10px;
    margin-bottom: 25px;
    background-color: #ECECEC;
    color: #757575;
    font-size: 16px;
    font-weight: 500;
}

.preheader a {
    color: #636363;
}

.preheader__content {
    display: flex;
    justify-content: space-between;
}

.preheader__content .footer-socials {
    display: inline-block;
    padding-bottom: 0;
    width: auto;
}

.preheader__content .footer-socials > a {
    margin-right: 12px;
}

.preheader__content .footer-socials > a:last-child {
    margin-right: 0;
}

.preheader__content .footer-socials > a svg {
    width: 14px;
}

.preheader__address {
    display: flex;
}

.preheader__address * + * {
    margin-left: 12px;
}

.preheader__address a {
    text-decoration: underline;
}

.preheader__address a:hover {
    text-decoration: none;
}

.preheader__contact {
    display: flex;
}

.preheader__contact > * + * {
    margin-left: 28px;
}

/* HEADER */
.header-top-items {
    display: flex;
    justify-content: space-between;
}

.header-top-items__left {
    display: flex;
    align-items: center;
}

.header-top-items__right {
    display: flex;
    display: flex;
    align-items: center;
}

.header-top-items .header-search {
    margin-right: 20px;
}

.header-search {
    position: relative;
}

.header-main ~ .main-wrapper > .padding-from-header,
.header-main ~ .site-main > .padding-from-header {
    padding-top: 255px;
}

.header-bottom__contacts-main {
    color: #636363;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
}

.header-bottom__contacts-main a {
    color: #636363;
}

.header-bottom__right .footer-socials {
    margin-top: 12px;
    text-align: center;
}

.header-bottom__right .header-search {
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .header-main ~ .main-wrapper > .padding-from-header,
    .header-main ~ .site-main > .padding-from-header {
        padding-top: 495px;
    }

    .header-main .ebala {
        padding: 5px 0 10px;
        margin-top: 0;
    }

    .preheader {
        display: none;
    }

    .header-main .header-bottom__right {
        display: block;
    }

    .header-top-items {
        justify-content: flex-end;
    }

    .header-top-items__left {
        display: none;
    }

    .header-top-items__right .nasiliepedia__root-link {
        display: none;
    }

    .red-header .header-support__link-mobile {
        color: #000;
        background: #fff;
    }

    .red-header a.header-support__link-mobile {
        color: #000;
    }

    .red-header .header-top {
        margin-bottom: 5px;
    }

    .red-header .header-logo-red {
        bottom: 4px;
        left: -7px;
    }

    .red-header .header-bottom__contacts-main {
        color: #000;
    }

    .red-header .header-bottom__contacts-main a {
        color: #000;
    }

    .red-header .header-bottom__right .footer-socials path {
        fill: #000;
    }
}