@charset "utf-8";
/* CEPS – mobilní menu, verze 1.0 */

.hm-toggle,
.hm-brand,
.hm-icon,
.hm-cta,
.hm-label-mobile {
    display: none;
}
.hm-row {
    display: contents;
}

@media (max-width: 767px) {

    html.hm-ready {
        scroll-padding-top: 76px;
    }

    /* lišta */
    html.hm-ready #nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: auto;
        height: 64px;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 10px;
        line-height: 1.4;
        background: transparent none;
        box-shadow: none;
        pointer-events: none;
        transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
    }
    html.hm-ready #nav.scrolled {
        background-color: #003878;
        background-image: none;
        box-shadow: 0 2px 12px rgba(0, 30, 70, .18);
        pointer-events: auto;
    }
    html.hm-ready #nav.hm-hidden {
        transform: translateY(-110%);
        box-shadow: none;
        transition: none;
    }
    html.hm-ready #nav .hlavni_menu,
    html.hm-ready #nav #langs,
    html.hm-ready #nav div.slogan {
        display: none;
    }

    /* logo v liště */
    html.hm-ready .hm-brand {
        position: absolute;
        top: 0;
        left: 16px;
        height: 64px;
        max-width: calc(100% - 80px);
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        text-decoration: none;
        visibility: hidden;
        opacity: 0;
        pointer-events: auto;
        transition: opacity .25s ease, visibility .25s;
    }
    html.hm-ready #nav.scrolled .hm-brand,
    html.hm-ready #nav.hm-open .hm-brand {
        visibility: visible;
        opacity: 1;
    }
    html.hm-ready #nav .hm-brand,
    html.hm-ready #nav .hm-brand:hover {
        border: 0 !important;
    }
    html.hm-ready .hm-brand img {
        display: block;
        flex: none;
        width: auto;
        height: 42px;
    }
    html.hm-ready .hm-brand img.hm-brand__script {
        height: 39px;
    }
    html.hm-ready .hm-brand__text {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 16px;
        font-weight: 300;
        line-height: 1.1;
    }

    /* tlačítko */
    html.hm-ready .hm-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 22px;
        background: rgba(255, 255, 255, .92);
        color: #003878;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .02em;
        line-height: 1;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
        transition: background-color .25s ease, color .25s ease;
    }
    html.hm-ready .hm-toggle__label {
        display: none;
    }
    html.hm-ready.hm-label .hm-toggle {
        width: auto;
        padding: 0 12px 0 14px;
    }
    html.hm-ready.hm-label .hm-toggle__label {
        display: inline;
    }
    html.hm-ready #nav.scrolled .hm-toggle,
    html.hm-ready #nav.hm-open .hm-toggle {
        background: transparent;
        color: #fff;
    }
    html.hm-ready .hm-toggle:focus {
        outline: none;
    }
    html.hm-ready #nav a:focus-visible,
    html.hm-ready .hm-toggle:focus-visible {
        outline: 2px solid #feaa00;
        outline-offset: 2px;
    }

    html.hm-ready .hm-toggle__icon,
    html.hm-ready .hm-toggle__icon::before,
    html.hm-ready .hm-toggle__icon::after {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
    }
    html.hm-ready .hm-toggle__icon {
        position: relative;
        transition: background-color .2s ease;
    }
    html.hm-ready .hm-toggle__icon::before,
    html.hm-ready .hm-toggle__icon::after {
        content: "";
        position: absolute;
        left: 0;
        transition: transform .25s ease, top .25s ease;
    }
    html.hm-ready .hm-toggle__icon::before { top: -7px; }
    html.hm-ready .hm-toggle__icon::after  { top: 7px; }
    html.hm-ready #nav.hm-open .hm-toggle__icon { background-color: transparent; }
    html.hm-ready #nav.hm-open .hm-toggle__icon::before { top: 0; transform: rotate(45deg); }
    html.hm-ready #nav.hm-open .hm-toggle__icon::after  { top: 0; transform: rotate(-45deg); }

    /* otevřený panel */
    html.hm-ready #nav.hm-open {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        padding: 76px 0 40px !important;
        background-color: #003878;
        background-image: none;
        box-shadow: none;
        color: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
        animation: hm-panel-in .25s ease both;
    }

    /* položky; lomítka mezi odkazy skryje font-size: 0 */
    html.hm-ready #nav.hm-open .hlavni_menu {
        display: flex;
        flex-direction: column;
        padding: 0 24px !important;
        font-size: 0;
        line-height: 0;
    }
    html.hm-ready #nav.hm-open .hlavni_menu a {
        display: block;
        padding: 13px 0;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .16) !important;
        color: #fff;
        font-size: 28px;
        font-weight: 300;
        line-height: 1.2;
        text-decoration: none;
    }
    html.hm-ready #nav.hm-open .hlavni_menu > * {
        animation: hm-item-in .35s ease both;
    }
    html.hm-ready #nav.hm-open .hlavni_menu a:active {
        opacity: .7;
    }
    html.hm-ready #nav.hm-open .hlavni_menu a[aria-current="page"] {
        font-weight: 500;
        padding-left: 16px;
        box-shadow: inset 5px 0 0 #fff;
    }
    /* barvy sekcí; tmavé zesvětlené kvůli kontrastu na panelu */
    html.hm-ready #nav.hm-open .hlavni_menu a.produkty[aria-current]     { box-shadow: inset 5px 0 0 #598fc1; }
    html.hm-ready #nav.hm-open .hlavni_menu a.projekty[aria-current]     { box-shadow: inset 5px 0 0 #feaa00; }
    html.hm-ready #nav.hm-open .hlavni_menu a.ceps[aria-current]         { box-shadow: inset 5px 0 0 #e45220; }
    html.hm-ready #nav.hm-open .hlavni_menu a.clanky[aria-current]       { box-shadow: inset 5px 0 0 #a1c611; }
    html.hm-ready #nav.hm-open .hlavni_menu a.esg_pomahame[aria-current] { box-shadow: inset 5px 0 0 #00968a; }
    html.hm-ready #nav.hm-open .hlavni_menu a.kontakty[aria-current]     { box-shadow: inset 5px 0 0 #6688ae; }
    html.hm-ready #nav.hm-open .hlavni_menu a.kariera[aria-current]      { box-shadow: inset 5px 0 0 #86a600; }

    html.hm-ready #nav.hm-open .hm-label-desktop { display: none; }
    html.hm-ready #nav.hm-open .hm-label-mobile  { display: inline; }

    html.hm-ready #nav.hm-open .hlavni_menu > :nth-child(2) { animation-delay: .03s; }
    html.hm-ready #nav.hm-open .hlavni_menu > :nth-child(3) { animation-delay: .06s; }
    html.hm-ready #nav.hm-open .hlavni_menu > :nth-child(4) { animation-delay: .09s; }
    html.hm-ready #nav.hm-open .hlavni_menu > :nth-child(5) { animation-delay: .12s; }
    html.hm-ready #nav.hm-open .hlavni_menu > :nth-child(6) { animation-delay: .15s; }
    html.hm-ready #nav.hm-open .hlavni_menu > :nth-child(7) { animation-delay: .18s; }
    html.hm-ready #nav.hm-open .hlavni_menu > :nth-child(8) { animation-delay: .21s; }

    /* řádek „kontakty“ s ikonami */
    html.hm-ready #nav.hm-open .hm-row {
        display: flex;
        align-items: center;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }
    html.hm-ready #nav.hm-open .hm-row a.kontakty {
        flex: 1 1 auto;
        border-bottom: 0 !important;
    }
    html.hm-ready #nav.hm-open .hlavni_menu a.hm-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0 !important;
        border-radius: 50%;
        background: #fff;
        color: #003878;
    }
    html.hm-ready #nav.hm-open .hm-icon svg {
        width: 22px;
        height: 22px;
    }

    /* jazyky – volné místo v řádku se rozdělí rovným dílem */
    html.hm-ready #nav.hm-open #langs {
        display: flex;
        flex-wrap: wrap;
        gap: 2.5px; /* skrytá lomítka mezi odkazy mezeru zdvojí na 5 px */
        margin: 0 !important;
        padding: 28px 24px 0 !important;
        font-size: 0 !important;
        line-height: 0;
        animation: hm-item-in .35s ease .24s both;
    }
    html.hm-ready #nav.hm-open #langs strong {
        display: contents;
    }
    html.hm-ready #nav.hm-open #langs a {
        flex: 1 1 auto;
        padding: .64em .66em;
        border: 1px solid rgba(255, 255, 255, .38) !important;
        border-radius: 999px;
        color: #fff;
        font-size: 15px;
        font-weight: 300;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
    }
    html.hm-ready #nav.hm-open #langs a.hm-lang-current {
        background: #fff;
        border-color: #fff !important;
        color: #003878;
        font-weight: 500;
    }
    html.hm-ready #nav.hm-open #langs a strong {
        font-weight: inherit;
        color: inherit;
    }

    /* Kontaktujte nás */
    html.hm-ready #nav.hm-open .hm-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        margin: 26px 24px 0;
        padding: 0 18px;
        border: 0 !important;
        border-radius: 8px;
        background: #fff;
        color: #003878;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        animation: hm-item-in .35s ease .24s both;
    }
    html.hm-ready #nav.hm-open .hm-cta:active,
    html.hm-ready #nav.hm-open .hm-icon:active {
        opacity: .8;
    }

    /* široký obsah nesmí rozšířit stránku, jinak tlačítko menu zmizí za pravý okraj
       (dočasně, viz MOBIL-SIROKY-OBSAH.md) */
    html.hm-ready #page {
        overflow-x: hidden;
        overflow-x: clip;
    }
    html.hm-ready #page .mapa {
        width: 100% !important;
    }
    html.hm-ready #page iframe,
    html.hm-ready #page img,
    html.hm-ready #page svg,
    html.hm-ready #page video {
        max-width: 100%;
    }
    /* clear: both – posuvný blok by se jinak vedle plovoucího záhlaví sekce smrskl na nulovou šířku */
    html.hm-ready #page table {
        display: block;
        clear: both;
        max-width: 100%;
        overflow-x: auto;
    }
    html.hm-ready #page .figure,
    html.hm-ready #page [id^="chart"],
    html.hm-ready #page #visualization {
        clear: both;
        max-width: 100%;
        overflow-x: auto;
    }
    html.hm-ready #page h1 {
        min-width: 0 !important;
    }
    html.hm-ready #page .rows .item {
        height: auto;
    }
    html.hm-ready #page .rows .item .itemText {
        width: auto !important;
        margin-left: 0;
        padding: 8px 10px 12px;
    }

    html.hm-locked,
    html.hm-locked body {
        overflow: hidden;
    }

    @keyframes hm-panel-in {
        from { background-color: transparent; }
        to   { background-color: #003878; }
    }
    @keyframes hm-item-in {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: none; }
    }

    @media (prefers-reduced-motion: reduce) {
        html.hm-ready #nav,
        html.hm-ready #nav *,
        html.hm-ready #nav *::before,
        html.hm-ready #nav *::after {
            animation: none !important;
            transition: none !important;
        }
    }
}
