.mobile-menu-toggle,
.mobile-menu-panel,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 84px;
  }

  #uvod,
  #sluzby,
  #onas,
  #rezervacia,
  #galeria,
  #kontakt {
    scroll-margin-top: 84px;
  }

  body.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    padding-top: 72px;
  }

  .topbar {
    position: fixed !important;
    top: 0;
    z-index: 1001;
    width: 100% !important;
    max-width: none;
    min-height: 72px !important;
    height: 72px !important;
    padding: 0 15px;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    column-gap: 12px !important;
    background: rgba(255, 252, 249, .96);
    border-bottom: 1px solid rgba(185, 133, 79, .18);
    box-shadow: 0 8px 30px rgba(70, 48, 30, .07);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
  }

  .topbar > .logo-image {
    position: relative;
    z-index: 2;
    width: 145px;
    height: 58px;
  }

  .topbar > nav,
  .topbar > .reserve {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: grid;
    position: fixed;
    top: 12px;
    right: 15px;
    z-index: 1003;
    place-content: center;
    justify-self: end;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(185, 133, 79, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .76);
    color: #2d241e;
    box-shadow: 0 7px 20px rgba(83, 56, 34, .06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    margin: 3px 0;
    border-radius: 99px;
    background: currentColor;
    transform-origin: center;
    transition: transform .28s ease, opacity .2s ease, width .28s ease, background-color .2s ease;
  }

  .mobile-menu-toggle span:nth-child(2) {
    width: 16px;
    justify-self: end;
    background: #b9854f;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    width: 0;
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .mobile-menu-toggle:focus-visible,
  .mobile-menu-panel a:focus-visible {
    outline: 2px solid #b9854f;
    outline-offset: 3px;
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(31, 24, 19, .28);
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: opacity .3s ease, visibility .3s ease;
  }

  .mobile-menu-panel {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1002;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: 96px 30px 34px;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(150deg, #fffdfa 0%, #faf3eb 100%);
    border-left: 1px solid rgba(185, 133, 79, .2);
    box-shadow: -22px 0 65px rgba(61, 42, 28, .16);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .36s cubic-bezier(.22, .7, .28, 1), visibility .36s ease;
  }

  .mobile-menu-panel::before {
    content: "MENU";
    display: block;
    margin-bottom: 18px;
    color: #a87543;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .22em;
  }

  .mobile-menu-panel nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-panel nav a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(185, 133, 79, .2);
    color: #211b17;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
  }

  .mobile-menu-panel nav a::after {
    content: "";
    width: 20px;
    height: 1px;
    background: #c18a52;
    transform: scaleX(.45);
    transform-origin: right;
    transition: transform .22s ease;
  }

  .mobile-menu-panel nav a:active::after,
  .mobile-menu-panel nav a:hover::after {
    transform: scaleX(1);
  }

  .mobile-menu-panel nav a.mobile-menu-reservation {
    min-height: 48px;
    margin-top: 24px;
    padding: 0 18px;
    justify-content: center;
    border: 1px solid #b9854f;
    border-radius: 4px;
    background: #b9854f;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(155, 105, 57, .17);
  }

  .mobile-menu-panel nav a.mobile-menu-reservation::after {
    display: none;
  }

  .mobile-menu-panel > p {
    margin: auto 0 0;
    padding-top: 28px;
    color: #76695e;
    font-size: 9px;
    line-height: 1.75;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
  }

  body.mobile-menu-open .mobile-menu-panel {
    transform: translateX(0);
    visibility: visible;
  }
}

@media (min-width: 821px) {
  .mobile-menu-toggle,
  .mobile-menu-panel,
  .mobile-menu-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle span,
  .mobile-menu-backdrop,
  .mobile-menu-panel {
    transition-duration: .01ms !important;
  }
}
