.mobile-menu-toggle{
    width:48px;
    height:48px;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    cursor:pointer;
    border:none;
    background:transparent;
    transition:.3s;
}

.mobile-menu-toggle:hover{
    background:#f5f5f5;
    border-radius:10px;
}

.mobile-menu-toggle span{
    position:absolute;
    width:26px;
    height:3px;
    border-radius:50px;
    background:var(--theme-orange-hover);
    transition:
        transform .35s cubic-bezier(.68,-0.6,.32,1.6),
        opacity .25s ease,
        width .25s ease;
}

/* horní */

.mobile-menu-toggle span:nth-child(1){
    transform:translateY(-8px);
}

/* prostřední */

.mobile-menu-toggle span:nth-child(2){
    opacity:1;
}

/* dolní */

.mobile-menu-toggle span:nth-child(3){
    transform:translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(1){
    transform:rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2){
    opacity:0;
    transform:scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3){
    transform:rotate(-45deg);
}

.mobile-menu-toggle.active{
    transform:rotate(180deg);
}

@media(max-width:991px) {
    .mobile-menu-toggle{
        display:FLEX;
    }
}


/* ==========================================
   OVERLAY
========================================== */

.mobile-menu-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        opacity .35s ease,
        visibility .35s ease;
    z-index:998;
}


/* ==========================================
   PANEL
========================================== */

.mobile-menu {
    position:fixed;
    top:0;
    right:-360px;
    width:340px;
    max-width:90%;
    height:100vh;
    background:#ffffff;
    box-shadow:-10px 0 40px rgba(0,0,0,.18);
    transition:right .35s ease;
    z-index:999;
    display:flex;
    flex-direction:column;
    overflow: hidden;
    pointer-events:none;
}


/* ==========================================
   OTEVŘENÉ MENU
========================================== */

.mobile-menu.active {
    right:0;
    pointer-events:auto;
}

.mobile-menu-overlay.active {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}


/* ==========================================
   MENU HEADER
========================================== */

.mobile-menu-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
    border-bottom:1px solid #ececec;
}

.mobile-menu-header img {
    height:42px;
    width:auto;
}

.mobile-close {
    border:none;
    background:none;
    font-size:34px;
    cursor:pointer;
}


/* ==========================================
   DESKTOP / MOBILE HEADER
========================================== */

.desktop-header{
    display:block;
}

.mobile-menu-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    padding: 20px;
}
.mobile-header {
    display:none;
    position:relative;
    z-index:9999;
}

.mobile-header .mobile-logo {
    width:80px;
    height:auto;
}

.mobile-header-right {
    display:flex;
    align-items:center;
    gap:20px;
}


/* ==========================================
   MOBILE HEADER
========================================== */

@media (max-width:991px) {
  
  .desktop-header {
    display:none;
  }
  .mobile-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    padding-top:18px;
    height:72px !important;
    background:#fff;
    transition: none !important;
  }
  .site-header.is-sticky .mobile-header {
    background:#fff;
  }
  .site-header.is-sticky{
    height: 72px !important;
    background:none !important;
  }
  .mobile-header .mobile-logo img {
    width:60px;
    height:auto;
  }
  .site-header,
  .site-header.is-sticky,
  .mobile-header,
  .mobile-menu-body {
    transition: none !important;
  }
  .mobile-menu {
    top: 126px !important;
    bottom: 0 !important;
    height: auto !important;
    overflow: hidden;  
  }
  
  .mobile-menu-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    padding: 20px;
  }
  .mobile-menu-overlay {
    top: 126px;
    bottom: 0;
    left: 0;
    right: 0;
    touch-action: none;
  }
  
  .mobile-menu-body::before {
    content:"MENU";
    display:block;
    margin-bottom:10px;
    padding-bottom:10px;
    font-size:18px;
    font-weight:800;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:#198754;
    border-bottom:1px solid #e8e8e8;
  }
}


/* ==========================================
   MOBILE – MENU LABEL
========================================== */

@media (max-width:767px) {

    .mobile-menu-body::before {
        content:"MENU";
        display:block;
        margin-bottom:10px;
        padding-bottom:10px;
        font-size:18px;
        font-weight:800;
        letter-spacing:1.5px;
        text-transform:uppercase;
        color:#198754;
        border-bottom:1px solid #e8e8e8;
    }
 }


/* ==================================================
   MOBILE NAVIGATION
   Hlavní položky
================================================== */

.mobile-nav-menu {
    list-style:none;
    margin:0;
    padding:0;
}

.mobile-nav-item {
    list-style:none;
    margin:0;
    padding:0;

    border-bottom:1px solid #edf1f3;
}


/* ------------------------------------------
   Hlavní odkazy / tlačítka
------------------------------------------ */

.mobile-nav-link {
    width:100%;
    min-height:58px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 6px;

    border:none;
    background:transparent;

    color:#173d37;
    font-family:inherit;
    font-size:16px;
    font-weight:600;
    line-height:1.3;

    text-decoration:none;
    text-align:left;

    cursor:pointer;

    transition:
        color .25s ease,
        background-color .25s ease;
}


/* Hover / aktivní stav */

.mobile-nav-link:hover {
    color:var(--theme-orange-hover);
    background:#f8faf9;
}


/* ------------------------------------------
   Odkazy bez dropdownu
------------------------------------------ */

.mobile-nav-item > a.mobile-nav-link {
    justify-content:flex-start;
}


/* ------------------------------------------
   Šipka dropdownu
------------------------------------------ */

.mobile-nav-arrow {
    width:9px;
    height:9px;

    flex-shrink:0;

    margin-right:6px;

    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;

    transform:
        rotate(45deg)
        translateY(-2px);

    transition:
        transform .3s cubic-bezier(.4,0,.2,1),
        color .25s ease;
}


/* ------------------------------------------
   Podmenu – zatím zavřené
------------------------------------------ */

.mobile-submenu {
    list-style:none;
    margin:0;
    padding:0;

    display:none;
}


/* ------------------------------------------
   Podmenu odkazy – základ
------------------------------------------ */

.mobile-submenu a {
    display:flex;
    align-items:center;
    gap:10px;

    min-height:48px;

    padding:10px 12px 10px 20px;

    color:#173d37;

    font-size:15px;
    font-weight:500;

    text-decoration:none;

    transition:
        color .25s ease,
        background-color .25s ease,
        padding-left .25s ease;
}

.mobile-submenu a:hover {
    color:var(--theme-orange-hover);
    background:#f8faf9;
    padding-left:24px;
}


/* ------------------------------------------
   Ikony v podmenu
------------------------------------------ */

.mobile-submenu a i {
    width:20px;

    flex-shrink:0;

    text-align:center;

    color:#8d9997;

    font-size:15px;

    transition:
        color .25s ease,
        transform .25s ease;
}

.mobile-submenu a:hover i {
    color:var(--theme-orange-hover);
    transform:scale(1.08);
}


/* ==================================================
   MOBILE DROPDOWN
   Animace otevření / zavření
================================================== */

.mobile-submenu {
    display:block;
    max-height:0;
    overflow:hidden;

    padding:0;
    margin:0;

    opacity:0;

    transition:
        max-height .35s ease,
        opacity .25s ease;
}


/* Otevřené podmenu */

.mobile-nav-item.open > .mobile-submenu {
    max-height:500px;
    opacity:1;
}


/* Aktivní hlavní položka */

.mobile-nav-item.open > .mobile-nav-link {
    color:var(--theme-orange-hover);
    background:#f8faf9;
}


/* Otočení šipky */

.mobile-nav-item.open > .mobile-nav-link .mobile-nav-arrow {
    transform:
        rotate(225deg)
        translateY(-2px);
}


/* Jemné odsazení prvního podmenu odkazu */

.mobile-nav-item.open > .mobile-submenu a {
    background:#fbfcfc;
}


/* ==================================================
   AKTIVNÍ STRÁNKA
   Automatické označení podle URL
================================================== */

/* Aktivní hlavní položka */

.mobile-nav-item.active > .mobile-nav-link {
    color:var(--theme-orange-hover);
    background:#f8faf9;
}


/* Aktivní dropdown – zobrazit podmenu */

.mobile-nav-item.active > .mobile-submenu {
    max-height:500px;
    opacity:1;
}


/* Aktivní dropdown – otočit šipku */

.mobile-nav-item.active > .mobile-nav-link .mobile-nav-arrow {
    transform:
        rotate(225deg)
        translateY(-2px);
}


/* Aktivní položka v podmenu */

.mobile-submenu li.active > a,
.mobile-submenu a.active {
    color:var(--theme-orange-hover);
    background:#f8faf9;
}


/* Aktivní ikona */

.mobile-submenu li.active > a i,
.mobile-submenu a.active i {
    color:var(--theme-orange-hover);
}


/* Aktivní odkaz – lehké odsazení */

.mobile-submenu li.active > a,
.mobile-submenu a.active {
    padding-left:24px;
}

/* ==========================================
   MOBILE MENU – SCROLL INDICATOR
========================================== */

.mobile-menu {
    position: fixed;
}

.mobile-menu::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 35px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,.95)
    );

    opacity: 0;
    transition: opacity .2s ease;

    z-index: 10;
}

.mobile-menu.can-scroll-down::after {
    opacity: 1;
}