.mainMenu a {
    color: var(--textDark);
}

.mainMenuLevel1 {
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
}

a.mainMenuLevel1Link {
    color: #fff;
    font-size: 120%;
    padding: 8px 18px;
    cursor: pointer;
}

.mainMenuLevel2Img {
    margin: 0.3em 1em 0 0;
}

.mainMenuLevel2Link:hover {
    text-decoration: underline;
}

.mainMenuLevel2LinkSub {
    font-size: 95%;    
    display: inline-block;
    margin-right: 0.8em;
}

.mainMenuLevel2LinkSub:hover {
    text-decoration: underline;
}

.mainMenuLevel2LinkSub::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--textDark);
    display: block;    
    margin-right: 5px;
    display: inline-block;
    position: relative;
    top: -0.2em;
    border-radius: 5px;
}

.mainMenuLevel2LinkSubAll::before {    
    background: var(--orange1);    
}

.mainMenuLevel2LinkSubAll {
    color: var(--orange1) !important;
    white-space: nowrap;
}

.mainMenuLevel2LinkSubAll>span.glyphicon {
    font-size: 60%;    
}

.mainMenuLevel2LinkWrapper  {
    flex-grow: 1;
}

.mainMenuLevel2>li  {
    display: flex;
}

.mainMenuLevel2>li img {
    max-width: 80px;
    max-height: 80px;
}

.mainMenuWrapper {
    background-color: var(--blue1);
}

.mainMenuLevel2 {
    background-color: #fff;
}

.mazonLabelA {
    cursor: pointer;
}

@media (max-width: 767px) {
    .mainMenu   {
        padding: 0px;
    }
    
    .mainMenuWrapper    {
        position: fixed;
        bottom: 56px;
        z-index: 1032;
        width: 100vw;
        max-height: calc(100vh - 56px);
        overflow-y: scroll;
    }
    
    .mainMenuLevel1 {
        margin: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .mainMenuLevel1>li {
        width: 100%;
        /* border-top: 1px solid var(--grayBorder); */
        border-top: 1px solid rgba(0, 0, 0, .1);
    }

    .mainMenuLevel1 .glyphicon  {
        top: 6px;
    }

    .mainMenuLevel2 {
        position: relative;        
    }

    .mainMenuLevel2>li {
        border-top: 1px solid var(--grayBorder);
    }

    .mainMenuLevel2Link {
        padding: 8px 18px;
    }
}

@media (min-width: 768px) {
    .mainMenuLevel2 {
        z-index: 1036;
        position: absolute;
        left: 0;        
        border: 4px solid #555;
        width: 100%;
        display: grid;
        gap: 2em;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        padding: 1em;
    }

    .mainMenuLevel2Link {
        font-size: 115%;    
        font-weight: bolder;
    }

    .mainMenuWrapperInvoked {
        position: sticky;
        top: 66px;
        z-index: 1036;
    }
}

@media (min-width: 992px) {

}

/* ── Položka služby „Montáž dveří na klíč" (není kategorie zboží) ──
   Oranžové tlačítko hned za kategoriemi, oddělené svislou linkou; na mobilu oranžový
   první řádek menu. Text je tmavý: bílý má na --orange1 kontrast jen 2,98 : 1. */
.mainMenuService {
    display: flex;
    align-items: center;
}

.mainMenuService::before {
    content: "";
    flex: none;
    width: 1px;
    height: 21px;
    margin: 0 18px 0 8px;
    background: rgba(255, 255, 255, .4);
}

.mainMenu a.mainMenuServiceLink {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 31px;
    padding: 0 14px 0 11px;
    border-radius: 10.5px;
    background-color: var(--orange1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    color: #1d1d1d; /* --textDark má na oranžové 4,24 : 1, #1d1d1d 5,65 : 1 */
    font-size: 110%;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s;
}

.mainMenu a.mainMenuServiceLink:hover,
.mainMenu a.mainMenuServiceLink:focus {
    background-color: #f08a24; /* světlejší: tmavší oranžová by s textem spadla pod 4,5 : 1 */
    color: #1d1d1d;
    text-decoration: none;
}

.mainMenu a.mainMenuServiceLink:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mainMenuServiceIcon {
    flex: none;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mainMenuServiceArrow,
.mainMenuServiceChevron {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mainMenuServiceArrow {
    width: 15px;
    height: 11px;
    stroke-width: 2;
    transition: transform .15s;
}

.mainMenu a.mainMenuServiceLink:hover .mainMenuServiceArrow,
.mainMenu a.mainMenuServiceLink:focus .mainMenuServiceArrow {
    transform: translateX(2px);
}

.mainMenuServiceSub,
.mainMenuServiceChevron {
    display: none;
}

/* nepublikovaná stránka — položku vidí jen admin */
.mainMenuServiceDraft {
    padding: 1px 7px;
    line-height: 1.5;
    border-radius: 999px;
    background: rgba(0, 0, 0, .12);
    font-size: 60%;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    /* jsem na stránce služby — zesvětlá jako kategorie v drobečkové navigaci (activeLight) */
    .mainMenu .mainMenuService--active a.mainMenuServiceLink {
        background-color: #fff;
    }

    .mainMenuService--active .mainMenuServiceIcon {
        stroke: #b35f0d;
    }
}

@media (max-width: 767px) {
    .mainMenuLevel1>.mainMenuService {
        display: block;
        order: -1; /* v DOM je za kategoriemi kvůli pořadí tabulátorem na velkém displeji */
        border-top: 0;
    }

    .mainMenuService::before {
        display: none;
    }

    .mainMenuLevel1>li:first-child {
        border-top: 0; /* první kategorie hned pod oranžovým řádkem */
    }

    .mainMenu a.mainMenuServiceLink {
        gap: 12px;
        height: auto;
        min-height: 62px;
        padding: 10px 18px 10px 14px;
        border-radius: 0;
        box-shadow: none;
        font-size: 120%;
        line-height: 21px;
        white-space: normal;
    }

    .mainMenuServiceIcon {
        width: 38px;
        height: 38px;
        padding: 8.5px;
        border-radius: 50%;
        background: #fff;
        stroke: #b35f0d;
        stroke-width: 2.3;
    }

    .mainMenuServiceBody {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .mainMenuServiceSub {
        display: block;
        font-size: 13.5px;
        line-height: 18px;
        font-weight: 400;
    }

    .mainMenuServiceArrow {
        display: none;
    }

    .mainMenuServiceChevron {
        display: block;
        width: 8px;
        height: 14px;
        stroke-width: 2.2;
    }
}
