
/* ============================================================
   DZ MOBILE NAVIGATION
   ============================================================ */


/* ------------------------------------------------------------
   HAMBURGER
   ------------------------------------------------------------ */

.dz-mobile-toggle {
    display: none;

    width: 46px;
    height: 46px;

    margin-left: auto;
    padding: 0;

    border: 1px solid rgba(20, 86, 160, .12);
    border-radius: 14px;

    background:
        rgba(255, 255, 255, .78);

    box-shadow:
        0 8px 22px rgba(12, 46, 90, .07);

    align-items: center;
    justify-content: center;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}


.dz-mobile-toggle__lines {
    display: flex;

    width: 22px;
    height: 18px;

    flex-direction: column;
    justify-content: space-between;
}


.dz-mobile-toggle__lines span {
    display: block;

    width: 100%;
    height: 2.5px;

    border-radius: 999px;

    background: #17375d;

    transition:
        transform .22s ease,
        opacity .22s ease;
}


body.dz-menu-open .dz-mobile-toggle__lines span:nth-child(1) {
    transform:
        translateY(7.75px)
        rotate(45deg);
}


body.dz-menu-open .dz-mobile-toggle__lines span:nth-child(2) {
    opacity: 0;
}


body.dz-menu-open .dz-mobile-toggle__lines span:nth-child(3) {
    transform:
        translateY(-7.75px)
        rotate(-45deg);
}


/* ------------------------------------------------------------
   OVERLAY
   ------------------------------------------------------------ */

.dz-mobile-drawer {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;
    justify-content: flex-end;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}


.dz-mobile-drawer.is-open {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


.dz-mobile-drawer__backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(6, 24, 45, .52);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


/* ------------------------------------------------------------
   PANEL
   ------------------------------------------------------------ */

.dz-mobile-drawer__panel {
    position: relative;

    z-index: 1;

    display: flex;
    flex-direction: column;

    width:
        min(86vw, 350px);

    height: 100%;

    padding:
        22px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 45%,
            #f4f8fd 100%
        );

    box-shadow:
        -18px 0 60px rgba(5, 28, 58, .18);

    transform:
        translateX(105%);

    transition:
        transform .27s cubic-bezier(.2,.8,.2,1);
}


.dz-mobile-drawer.is-open
.dz-mobile-drawer__panel {
    transform:
        translateX(0);
}


/* ------------------------------------------------------------
   HLAVIČKA PANELU
   ------------------------------------------------------------ */

.dz-mobile-drawer__head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(20, 86, 160, .10);
}


.dz-mobile-drawer__brand {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.dz-mobile-drawer__brand strong {
    color:
        #162c47;

    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size:
        1.08rem;

    font-weight:
        800;

    letter-spacing:
        -.025em;
}


.dz-mobile-drawer__brand span {
    color:
        #60758c;

    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size:
        .72rem;

    font-weight:
        600;
}


.dz-mobile-drawer__close {
    display: grid;

    place-items: center;

    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    padding: 0;

    border:
        1px solid rgba(20, 86, 160, .10);

    border-radius:
        13px;

    background:
        white;

    color:
        #183857;

    font-size:
        1.7rem;

    font-weight:
        400;

    line-height:
        1;

    cursor:
        pointer;
}


/* ------------------------------------------------------------
   NAVIGACE
   ------------------------------------------------------------ */

.dz-mobile-drawer__nav {
    margin-top:
        26px;
}


.dz-mobile-drawer__nav .dz-nav {
    display: flex !important;

    flex-direction: column;

    width: 100%;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.dz-mobile-drawer__nav .dz-nav li {
    display: block;

    width: 100%;

    margin: 0;
}


.dz-mobile-drawer__nav .dz-nav a {
    position: relative;

    display: flex;

    width: 100%;

    align-items: center;

    padding:
        15px
        17px;

    border-radius:
        15px;

    color:
        #213d5c !important;

    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif !important;

    font-size:
        1.04rem;

    font-weight:
        700 !important;

    text-decoration:
        none !important;

    transition:
        background-color .15s ease,
        color .15s ease;
}


.dz-mobile-drawer__nav .dz-nav a::after {
    content: "›";

    margin-left:
        auto;

    color:
        #7a94af;

    font-size:
        1.5rem;

    font-weight:
        400;
}


.dz-mobile-drawer__nav .dz-nav li.active a {
    background:
        #eaf4ff;

    color:
        #1456a0 !important;
}


.dz-mobile-drawer__nav .dz-nav li.active a::before {
    content: "";

    position: absolute;

    left: 0;

    top: 12px;
    bottom: 12px;

    width: 3px;

    border-radius:
        999px;

    background:
        #1684e8;
}


/* ------------------------------------------------------------
   FOOTER PANELU
   ------------------------------------------------------------ */

.dz-mobile-drawer__footer {
    margin-top:
        auto;

    padding-top:
        24px;

    border-top:
        1px solid rgba(20, 86, 160, .10);
}


.dz-mobile-drawer__footer p {
    margin:
        0 !important;

    color:
        #718397 !important;

    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size:
        .74rem;

    line-height:
        1.5;
}


/* ------------------------------------------------------------
   OTEVŘENÉ MENU
   ------------------------------------------------------------ */

body.dz-menu-open {
    overflow:
        hidden !important;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 860px) {

    /*
     * Desktopová navigace zmizí.
     */

    .dz-navbar__menu {
        display:
            none !important;
    }


    .dz-navbar__actions {
        display:
            none !important;
    }


    /*
     * Hamburger se naopak zobrazí.
     */

    .dz-mobile-toggle {
        display:
            inline-flex !important;
    }


    /*
     * Navbar musí mít prostor pro tlačítko vpravo.
     */

    .dz-navbar {
        display:
            flex !important;

        align-items:
            center !important;

        width:
            100%;
    }


    .dz-brand {
        min-width:
            0;
    }

}


/* ------------------------------------------------------------
   VELMI MALÝ MOBIL
   ------------------------------------------------------------ */

@media (max-width: 430px) {

    .dz-mobile-toggle {
        width:
            43px;

        height:
            43px;

        border-radius:
            13px;
    }


    .dz-mobile-toggle__lines {
        width:
            20px;

        height:
            16px;
    }


    .dz-mobile-drawer__panel {
        width:
            min(89vw, 340px);

        padding:
            19px;
    }

}
