header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    background: #fff;
    border-bottom: 2px solid #d8edff;
    box-shadow: 0px 4px 4px 0px #e3e3e340;
}

.header-section__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.header-section__left-content,
.header-section__right-content {
    display: flex;
    align-items: center;
}

.header-section__descktop-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-section__logo img {
    width: 100%;
    height: auto;
}

ul.primary-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
}

ul.primary-header-menu li {
    font-family: "Asap", sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 102%;
    letter-spacing: 0;
    color: #97bbea;
    padding: 0 20px;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

ul.primary-header-menu li.current-menu-item {
    background: linear-gradient(51.5deg, #0c0067 4.87%, #002b89 36.56%, #008bff 103.16%);
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0;
}

.header-section__mobile-wrap {
    display: none;
}

.header-section__burder-menu svg * {
    transition: all 0.3s;
    transform-origin: center;
}

body .header-section__burder-menu {
    display: none;
    border: none;
    background: none;
    font: inherit;
    padding: 0;
}

body.body--menu .header-section__burder-menu svg path:nth-child(1) {
    transform: translate(-4px, 5px) rotate(45deg);
}

body.body--menu .header-section__burder-menu svg path:nth-child(2) {
    transform: scaleX(0);
}

body.body--menu .header-section__burder-menu svg path:nth-child(3) {
    transform: translate(-4px, -4px) rotate(-45deg);
}

@media screen and (min-width: 1661px) {
    ul.primary-header-menu li:not(.current-menu-item):last-child {
        margin-right: -20px;
    }

    ul.primary-header-menu li.current-menu-item:last-child {
        margin-right: 0 !important;
    }

    ul.primary-header-menu li.current-menu-item {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media screen and (max-width: 1660px) {
    ul.primary-header-menu li {
        font-size: 18px;
    }
    ul.primary-header-menu li.current-menu-item {
        font-size: 20px;
    }
}

@media screen and (min-width: 1281px) {
    ul.primary-header-menu li:not(.current-menu-item):hover {
        color: #fe8836;
    }

    .header-section__logo {
        max-width: 115px;
        aspect-ratio: 114/40;
        margin-left: 17px;
    }
}

@media screen and (min-width: 1061px) and (max-width: 1660px) {
    ul.primary-header-menu li.current-menu-item {
        padding-left: 20px;
        padding-right: 20px;
    }

    ul.primary-header-menu li {
        padding: 0 15px;
    }

    ul.primary-header-menu li:not(.current-menu-item):last-child {
        margin-right: -15px;
    }
}

/* New header (widget): show mobile block and menu on small screens */
@media screen and (max-width: 1060px) {
    .header-section__descktop-menu {
        display: none;
    }
    .header-section__mobile-wrap {
        display: flex;
        position: relative;
        align-items: center;
    }

    ul.primary-header-menu {
        flex-direction: column;
    }
    ul.primary-header-menu li {
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
        justify-content: flex-start;
        width: 100%;
    }
    body .header-section__burder-menu {
        display: block;
        cursor: pointer;
    }
    .header-section__mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: calc(var(--cont-p) * -1);
        padding: 20px 0;
        border-radius: 20px 0 0 20px;
        background: #fff;
        width: 300px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    body.body--menu .header-section__mobile-menu {
        display: block;
    }
}

@media screen and (min-width: 769px) and (max-width: 1280px) {
    .header-section__logo {
        max-width: 105px;
        aspect-ratio: 105/35;
    }
}

@media screen and (min-width: 769px) {
    .header-section__wrapper {
        min-height: 70px;
    }

    .header-section__burder-menu svg {
        width: 36px;
        height: 36px;
    }
}

@media screen and (max-width: 768px) {
    .header-section__wrapper {
        min-height: 40px;
    }

    .header-section__logo {
        max-width: 60px;
        aspect-ratio: 60/20;
    }

    .header-section__burder-menu svg {
        width: 25px;
        height: 25px;
    }
}
