@media screen and (max-width: 679px) {
    .sgwmms-toggle {
        align-items: center;
        display: flex !important;
        width: 100%;
    }

    .sgwmms-toggle.sgwmms-align-left {
        justify-content: flex-start;
    }

    .sgwmms-toggle.sgwmms-align-center {
        justify-content: center;
    }

    .sgwmms-toggle.sgwmms-align-right {
        justify-content: flex-end;
    }

    .horisontal-navigation.sgwmms-menu-align-left > div {
        float: left !important;
    }

    .horisontal-navigation.sgwmms-menu-align-center > div {
        display: inline-block;
        float: none !important;
    }

    .horisontal-navigation.sgwmms-menu-align-right > div {
        float: right !important;
    }

    .horisontal-navigation.sgwmms-menu-align-left > ul.nav-horizontal {
        margin-left: 20px;
        margin-right: auto;
    }

    .horisontal-navigation.sgwmms-menu-align-center > ul.nav-horizontal {
        margin-left: auto;
        margin-right: auto;
    }

    .horisontal-navigation.sgwmms-menu-align-right > ul.nav-horizontal {
        margin-left: auto;
        margin-right: 20px;
    }

    .menu-toggle.sgwmms-button {
        align-items: center;
        border-style: solid;
        border-width: var(--sgwmms-border-width, 1px);
        border-radius: var(--sgwmms-radius, 6px);
        box-sizing: border-box;
        cursor: pointer;
        display: inline-flex !important;
        flex-direction: column;
        justify-content: center;
        line-height: 1;
        margin: var(--sgwmms-margin-v, 10px) var(--sgwmms-margin-h, 20px);
        min-height: var(--sgwmms-button-min-size, 44px);
        min-width: var(--sgwmms-button-min-size, 44px);
        padding: var(--sgwmms-padding-v, 8px) var(--sgwmms-padding-h, 12px);
        position: relative;
        text-align: center;
        touch-action: manipulation;
        transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle.sgwmms-button:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 3px;
    }

    .menu-toggle.sgwmms-button:not(.sgwmms-style-theme)::before {
        content: none !important;
        display: none !important;
    }

    .menu-toggle.sgwmms-button.sgwmms-style-theme::before {
        font-size: var(--sgwmms-icon-size, 28px) !important;
        line-height: 1 !important;
        order: 2;
        padding: 0 !important;
        transform-origin: center;
        transition: transform 180ms ease;
    }

    .sgwmms-label {
        display: block;
        font-family: inherit;
        font-size: var(--sgwmms-label-size, 13px);
        font-weight: var(--sgwmms-label-weight, 600);
        line-height: 1.2;
        margin: 0 0 var(--sgwmms-label-gap, 5px);
        max-width: min(70vw, 220px);
        order: 1;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .sgwmms-icon {
        align-items: center;
        color: inherit;
        display: flex;
        flex: 0 0 auto;
        height: var(--sgwmms-icon-size, 28px);
        justify-content: center;
        order: 2;
        transform-origin: center;
        transition: transform 180ms ease;
        width: var(--sgwmms-line-width, 28px);
    }

    .sgwmms-bars {
        flex-direction: column;
        justify-content: space-around;
    }

    .sgwmms-bar {
        background: currentColor;
        border-radius: 999px;
        display: block;
        height: var(--sgwmms-line-thickness, 3px);
        max-height: 8px;
        min-height: 1px;
        width: 100%;
    }

    .sgwmms-dots {
        gap: max(1px, var(--sgwmms-line-thickness, 3px));
    }

    .sgwmms-style-dots-vertical .sgwmms-dots {
        flex-direction: column;
    }

    .sgwmms-dot {
        background: currentColor;
        border-radius: 50%;
        display: block;
        height: max(2px, calc(var(--sgwmms-line-thickness, 3px) * 2));
        width: max(2px, calc(var(--sgwmms-line-thickness, 3px) * 2));
    }

    .sgwmms-grid-icon {
        display: grid;
        gap: max(1px, var(--sgwmms-line-thickness, 3px));
        grid-template-columns: repeat(2, auto);
        place-content: center;
    }

    .sgwmms-grid-icon .sgwmms-dot {
        border-radius: 2px;
    }

    .sgwmms-plus {
        position: relative;
    }

    .sgwmms-plus-line {
        background: currentColor;
        border-radius: 999px;
        display: block;
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .sgwmms-plus-line--horizontal {
        height: var(--sgwmms-line-thickness, 3px);
        width: 100%;
    }

    .sgwmms-plus-line--vertical {
        height: 100%;
        width: var(--sgwmms-line-thickness, 3px);
    }

    .sgwmms-custom {
        font-family: inherit;
        font-size: var(--sgwmms-icon-size, 28px);
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        width: auto;
    }

    .sgwmms-button.sgwmms-animate.sgwmms-open .sgwmms-icon,
    .sgwmms-button.sgwmms-animate.sgwmms-open.sgwmms-style-theme::before {
        transform: rotate(90deg);
    }

    /* Объединяются только два nav; контейнер заголовка темы не перестраивается. */
    .sgwmms-combined-top-row {
        align-items: flex-start;
        box-sizing: border-box;
        display: flex !important;
        justify-content: flex-end;
        position: relative;
        width: 100%;
        z-index: 30;
    }

    .logo-is-on .sgwmms-combined-top-row {
        padding-left: 120px;
    }

    .sgwmms-combined-top-row .menu-1,
    .sgwmms-combined-top-row .menu-2 {
        clear: none !important;
        flex: 0 0 auto;
        padding-left: 0 !important;
        position: static !important;
        width: auto !important;
    }

    .sgwmms-combined-top-row .sgwmms-toggle {
        width: auto;
    }

    .sgwmms-combined-top-row .menu-2 .small-logo {
        display: none !important;
    }

    .top-navigation.sgwmms-combined-secondary {
        display: none !important;
    }

    .sgwmms-combined-top-row .menu-1 ul.nav-horizontal.visible,
    .sgwmms-combined-top-row .menu-1 > div.nav-horizontal > ul.visible {
        left: auto;
        position: absolute;
        right: var(--sgwmms-combined-second-width, 80px);
        top: 100%;
        z-index: 31;
    }

    .sgwmms-combined-top-row .menu-2 ul.nav-horizontal.visible,
    .sgwmms-combined-top-row .menu-2 > div.nav-horizontal > ul.visible {
        left: auto;
        position: absolute;
        right: 0;
        top: 100%;
        z-index: 31;
    }

    @media (prefers-reduced-motion: reduce) {
        .menu-toggle.sgwmms-button,
        .menu-toggle.sgwmms-button::before,
        .menu-toggle.sgwmms-button .sgwmms-icon {
            transition: none !important;
        }
    }
}
