
/* v51q – oprava mobilního hamburgeru a mobilního menu.
   Dělá pouze:
   - zobrazí tři čárky v kulatém tlačítku
   - po otevření menu zobrazí čistý panel
   - opraví CTA v mobilním menu
*/

/* Hamburger tlačítko – na mobilu nesmí být prázdné kolečko */
@media (max-width: 920px){
  html body .site-header .nav-toggle,
  html body .nav-toggle{
    display:flex!important;
    position:relative!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    padding:0!important;
    margin-left:8px!important;
    border-radius:50%!important;
    align-items:center!important;
    justify-content:center!important;
    flex-direction:column!important;
    gap:5px!important;
    background:rgba(255,253,246,.88)!important;
    border:1px solid rgba(45,50,40,.18)!important;
    box-shadow:0 10px 22px rgba(35,38,30,.10)!important;
    cursor:pointer!important;
    z-index:7002!important;
    appearance:none!important;
    -webkit-appearance:none!important;
  }

  html body .site-header .nav-toggle span,
  html body .nav-toggle span{
    display:block!important;
    width:23px!important;
    height:3px!important;
    min-height:3px!important;
    border-radius:999px!important;
    background:#1d221c!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    margin:0!important;
    box-shadow:none!important;
    transition:transform .18s ease, opacity .18s ease!important;
  }

  html body .site-header .nav-toggle::before,
  html body .site-header .nav-toggle::after,
  html body .nav-toggle::before,
  html body .nav-toggle::after{
    content:none!important;
    display:none!important;
  }

  html body .site-header .nav-toggle.is-active span:nth-child(1),
  html body .nav-toggle.is-active span:nth-child(1){
    transform:translateY(8px) rotate(45deg)!important;
  }
  html body .site-header .nav-toggle.is-active span:nth-child(2),
  html body .nav-toggle.is-active span:nth-child(2){
    opacity:0!important;
  }
  html body .site-header .nav-toggle.is-active span:nth-child(3),
  html body .nav-toggle.is-active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg)!important;
  }

  /* Mobilní menu panel – default zavřené */
  html body .site-header .main-nav,
  html body .site-header .main-nav--portal,
  html body .main-nav{
    position:absolute!important;
    top:calc(100% + 10px)!important;
    left:12px!important;
    right:12px!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:calc(100vh - 120px)!important;
    overflow:auto!important;

    display:none!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:6px!important;

    padding:16px!important;
    border-radius:26px!important;
    background:rgba(255,253,246,.97)!important;
    border:1px solid rgba(45,50,40,.16)!important;
    box-shadow:0 26px 70px rgba(30,32,24,.24)!important;
    z-index:7000!important;
  }

  /* Otevřené stavy – pokryje různé původní JS třídy */
  html body .site-header .main-nav.is-open,
  html body .site-header .main-nav.open,
  html body .site-header .main-nav.active,
  html body .site-header .main-nav.show,
  html body .site-header.nav-open .main-nav,
  html body .site-header.menu-open .main-nav,
  html body .nav-wrap.is-open .main-nav,
  html body .nav-wrap.menu-open .main-nav,
  html body body.nav-open .site-header .main-nav,
  html body body.menu-open .site-header .main-nav,
  html body .main-nav.is-open,
  html body .main-nav.open,
  html body .main-nav.active,
  html body .main-nav.show{
    display:flex!important;
  }

  html body .site-header .main-nav > a,
  html body .site-header .nav-dropdown > a,
  html body .main-nav > a,
  html body .nav-dropdown > a{
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:nowrap!important;
    font-size:16px!important;
    font-weight:900!important;
    line-height:1!important;
    padding:0 14px!important;
    border-radius:16px!important;
    color:#1d221c!important;
    background:transparent!important;
    text-decoration:none!important;
  }

  html body .site-header .main-nav > a:hover,
  html body .site-header .nav-dropdown > a:hover,
  html body .site-header .main-nav .is-active{
    background:#e3ead8!important;
    color:#1d221c!important;
  }

  html body .site-header .main-nav > .nav-cta,
  html body .site-header .nav-cta,
  html body .main-nav > .nav-cta{
    width:100%!important;
    max-width:none!important;
    height:52px!important;
    min-height:52px!important;
    margin-top:6px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    background:linear-gradient(180deg,#ffeaa1 0%,#dbbd5d 52%,#c9a84b 100%)!important;
    color:#17140c!important;
  }

  /* Dropdown v mobilním menu jako vnořený panel */
  html body .site-header .nav-dropdown,
  html body .nav-dropdown{
    width:100%!important;
  }

  html body .site-header .mega-menu,
  html body .mega-menu{
    position:static!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:100%!important;
    max-height:none!important;
    overflow:visible!important;
    display:none!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding:8px!important;
    margin-top:6px!important;
    border-radius:18px!important;
    background:#fff8e8!important;
    border:1px solid rgba(45,50,40,.10)!important;
    box-shadow:none!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  html body .site-header .nav-dropdown.is-open .mega-menu,
  html body .site-header .nav-dropdown.open .mega-menu,
  html body .site-header .nav-dropdown.active .mega-menu,
  html body .site-header .nav-dropdown:hover .mega-menu,
  html body .site-header .nav-dropdown:focus-within .mega-menu{
    display:grid!important;
    transform:none!important;
  }

  html body .site-header .mega-menu a,
  html body .mega-menu a{
    width:100%!important;
    padding:12px!important;
    border-radius:14px!important;
    background:#fffdf6!important;
    border:1px solid rgba(45,50,40,.10)!important;
  }
}

/* Na extrémně úzkém mobilu CTA nahoře netlačí hamburger */
@media (max-width: 430px){
  html body .site-header .nav-wrap > .nav-cta,
  html body .site-header .nav-wrap--portal > .nav-cta{
    display:none!important;
  }

  html body .site-header .brand{
    max-width:220px!important;
  }

  html body .site-header .brand img{
    max-width:210px!important;
  }
}
