header {
    margin: 98px 0 24px;
}

header .header-logo {
    display: flex;
    width: 242px;
    height: 66px;
    background-image: url("../img/logo.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

header nav {
    display: flex;
    flex: 1;
}

header ul {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 82px;
    padding: 0;
    list-style: none;
}

header ul li {
    position: relative;
    padding: 0 10px;
}

header ul li a {
    font-family: "Source Sans 3";
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    color: #085DA9;
    display: inline-block;
    width: 100%;
    text-align: center;
    transition: font-weight 0.2s ease;
}

header ul li a::after {
    content: attr(data-text);
    font-weight: 700;
    display: block;
    visibility: hidden;
    overflow: hidden;
    height: 0;
    pointer-events: none;
}

header ul li a:hover {
    font-weight: 600;
    transform: translateZ(0);
}

/* Бургер */
header a.menu-burger {
    position: relative;
    top: -6px;
    display: none;
    width: 54px;
    height: 38px;
    background-image: url("data:image/svg+xml,%3Csvg width='54' height='38' viewBox='0 0 54 38' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H52' stroke='%23005CA9' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M2 36H52' stroke='%23005CA9' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M2 19H52' stroke='%23005CA9' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* -------- Media -------- */
@media (min-width: 768px) and (max-width: 1200px) {
    header nav{
        flex: 0;
    }
    header ul {
        display: none;
    }

    header a.menu-burger {
        top: -15px;
        display: flex;
        order: 1;
    }

    header .header-logo {
        order: 2;
        margin-left: 33px;
    }
}

@media (max-width: 767px) {
    header {
        margin-top: 40px;
    }

    header ul {
        display: none;
    }

    header a.menu-burger {
        display: flex;
        margin-left: auto;
    }
}

@media (max-width: 575px) {
    header a.header-logo {
        width: 165px;
        height: 45px;
    }
}

/* -------- Modal Menu -------- */
.modal-menu .modal-body {
    display: flex;
    padding: 0;
    background-image: url("../img/gradient_menu.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
}

.modal-body .mobile-menu-header {
    display: flex;
    align-items: flex-end;
    padding-top: 22px;
    background-color: #fff;
}

.modal-menu .close {
    display: flex;
    width: 74px;
    height: 74px;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3Csvg width='74' height='74' viewBox='0 0 74 74' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 18.5L55.5 55.5' stroke='%2351B04E' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M18.5 55.5L55.5 18.5' stroke='%2351B04E' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.modal-menu .logo-mobile-menu {
    width: 164px;
    height: 45px;
    margin-bottom: 6px;
}

.modal-menu .mobile-menu-main-image {
    width: calc(100% + var(--bs-gutter-x));
    margin: 0 calc(var(--bs-gutter-x) * -.5);
}

.modal-menu ul {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    padding: 0;
    list-style: none;
}

.modal-menu ul li:not(:last-child) {
    margin-bottom: 25px;
}

.modal-menu ul li:before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 38px;
    margin-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='38' viewBox='0 0 22 38' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5305 35.1886L19 18.7191L2.28097 2.00002' stroke='%23F23E58' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.modal-menu ul li,
.modal-menu ul li a {
    font-family: "Source Sans 3";
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    color: #085DA9;
    display: flex;
    text-decoration: none;
    text-align: left;
}

@media (min-width: 576px) {
    .modal-menu .modal-dialog {
        width: 392px;
    }

    .modal-menu .modal-content,
    .modal-menu .modal-body,
    .modal-menu .container {
        height: fit-content;
    }

    .modal-menu .modal-body {
        background: #f5f5f5;
    }

    .modal-menu ul {
        padding: 0 0 55px;
    }

    .modal-menu .close {
        margin-left: 0;
    }

    .modal-menu .logo-mobile-menu {
        margin-left: 20px;
    }
}
