@media only screen and (max-width: 1023px) {
    .main-header .main-box {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 10px 0;
    }

    .main-header .logo-box {
        flex: 0 1 auto;
        max-width: calc(100% - 70px);
    }

    .main-header .logo-box .logo {
        padding: 0;
    }

    .main-header .logo-box .logo img {
        max-height: 52px;
    }

    .main-header .nav-outer {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        width: auto;
        position: static;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }

    .main-header .main-menu {
        width: auto;
        float: none;
        display: flex !important;
        justify-content: flex-end;
    }

    .main-menu .navbar-header {
        display: flex !important;
        width: auto !important;
        padding: 0;
        justify-content: flex-end;
    }

    .main-header .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        color: #ffffff;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        position: relative;
        z-index: 20;
    }

    .main-header .navbar-toggler .navbar-toggler-icon {
        display: block;
        width: 22px;
        height: 16px;
        color: #ffffff;
        background:
            linear-gradient(currentColor, currentColor) center top/100% 2px no-repeat,
            linear-gradient(currentColor, currentColor) center center/100% 2px no-repeat,
            linear-gradient(currentColor, currentColor) center bottom/100% 2px no-repeat;
    }

    .main-header .main-menu .navbar-collapse {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1000;
    }

    .main-header .main-menu .navbar-collapse.show,
    .main-header .main-menu .navbar-collapse.collapsing {
        display: block !important;
    }

    .main-header .main-menu .navbar-collapse > .navigation {
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }

    .main-header .main-menu .navbar-collapse > .navigation > li {
        width: 100%;
        margin-left: 0 !important;
        float: none !important;
    }

    .main-header .main-menu .navbar-collapse > .navigation > li > a {
        width: 100%;
        display: block;
    }
}

@media only screen and (max-width: 767px) {
    .main-header .main-box {
        padding: 10px 0;
        min-height: 76px;
    }

    .main-header .logo-box {
        max-width: calc(100% - 70px);
    }

    .main-header .logo-box .logo img {
        max-height: 52px;
    }

    .main-header .navbar-toggler {
        width: 46px;
        height: 46px;
    }

    .main-header .navbar-toggler .navbar-toggler-icon {
        width: 22px;
        height: 16px;
    }

    .main-header .nav-outer {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        width: auto;
        position: static;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }

    .main-header .main-menu .navbar-collapse {
        width: 100vw;
        left: calc(50% - 50vw);
        right: auto;
    }
}