/* The theme switches from the burger to desktop navigation at 768px. */
@media (min-width: 768px) {
    #menu-main-menu .uk11d-nav-articles,
    #menu-main-menu .uk11d-nav-production {
        display: none !important;
    }
}

/* Give the top menu its natural width instead of a four-column Bootstrap cell. */
@media (min-width: 768px) {
    body header.header1 .logo-infos {
        width: 100%;
        max-width: 1600px;
        padding: 0 clamp(20px, 2.8vw, 44px);
    }
    body header.header1 .logo-infos > .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 24px;
        margin: 0;
    }
    body header.header1 .logo-infos > .row::before,
    body header.header1 .logo-infos > .row::after {
        display: none;
    }
    body header.header1 .logo-infos > .row > .col-md-8 {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        padding: 0;
    }
    body header.header1 .header-infos {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 26px;
        padding: 8px 0;
    }
    body header.header1 .header-infos .header-info-group {
        display: flex;
        align-items: center;
        float: none;
        width: auto;
        height: auto;
        margin: 0;
    }
    body header.header1 .header-infos .header-info-labels {
        padding-left: 9px !important;
    }
    body header.header1 .header-infos p {
        margin: 0 !important;
        padding: 0;
        font-size: clamp(12px, 1.05vw, 16px);
        line-height: 1.5;
        white-space: nowrap;
    }
    body header.header1 .header_top_menu {
        flex: 0 0 auto;
        width: auto !important;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    body header.header1 #menu-verhnee-menyu {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(12px, 1.3vw, 20px);
        margin: 0;
        padding: 0;
        list-style: none;
    }
    body header.header1 #menu-verhnee-menyu > li {
        display: block;
        float: none;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }
    body header.header1 #menu-verhnee-menyu > li > a {
        display: block;
        margin: 0;
        padding: 10px 0;
        font-size: clamp(12px, 1.05vw, 16px);
        line-height: 1.5;
        white-space: nowrap;
    }
}

/* The theme fixes both mobile header boxes at 78px although they contain two rows. */
@media (max-width: 767px) {
    #navbar #menu-main-menu .uk11d-nav-production > a {
        white-space: normal;
        overflow-wrap: break-word;
    }
    body header.header1 {
        position: relative !important;
        height: auto !important;
        min-height: 0;
        margin-bottom: 0;
    }
    body header.header1 #modeltheme-main-head-sticky-wrapper {
        position: relative !important;
        height: auto !important;
        min-height: 0;
        width: 100%;
    }
    body header.header1 #modeltheme-main-head {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }
}
