.menu-backdrop {
  z-index: 99;
  background: rgba(12, 9, 7, 0.64);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: menu-backdrop-in 300ms ease both;
}

.menu-panel {
  z-index: 100;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(670px, 48vw);
  min-width: 590px;
  height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  background: #f8f5ef;
  padding: 42px 54px 34px 70px;
  box-shadow: 34px 0 80px rgba(15, 11, 8, 0.2);
  animation: menu-drawer-in 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.menu-panel .menu-logo {
  width: min(300px, calc(100% - 72px));
  height: auto;
}

.menu-panel .panel-close {
  position: static;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  color: #af8650;
  background: transparent;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease;
}

.menu-panel .panel-close:hover {
  background: rgba(175, 134, 80, 0.09);
  transform: rotate(4deg);
}

.menu-panel .panel-close:focus-visible,
.menu-panel nav a:focus-visible,
.menu-panel nav button:focus-visible,
.menu-service:focus-visible {
  outline: 1px solid #a77b42;
  outline-offset: 4px;
}

.menu-panel .panel-close img {
  width: 27px;
  height: 27px;
  filter: invert(52%) sepia(33%) saturate(712%) hue-rotate(355deg) brightness(91%) contrast(87%);
}

.menu-panel nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  margin: 34px 0 26px;
}

.menu-panel nav a,
.menu-panel nav button {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  column-gap: 28px;
  align-items: center;
  width: 100%;
  min-height: 118px;
  padding: 20px 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(169, 129, 72, 0.32);
  cursor: pointer;
  transition: color 200ms ease, padding-left 250ms cubic-bezier(0.22, 1, 0.36, 1), background-color 200ms ease;
}

.menu-panel nav a:first-child {
  border-top: 1px solid rgba(169, 129, 72, 0.32);
}

.menu-panel nav a:hover,
.menu-panel nav button:hover {
  color: #8f672f;
  padding-left: 16px;
  background: rgba(178, 139, 83, 0.045);
}

.menu-panel nav .menu-number {
  align-self: start;
  display: block;
  padding-top: 6px;
  height: 52px;
  border-right: 0;
  color: #ae8248;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  width: auto;
}

.menu-panel nav .menu-item-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: auto;
  color: inherit;
  font-size: inherit;
}

.menu-item-copy strong {
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.menu-item-copy small {
  color: #9e7745;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.menu-service {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  padding: 22px 8px 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(169, 129, 72, 0.32);
  cursor: pointer;
}

.menu-service-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(167, 123, 66, 0.65);
  border-radius: 50%;
}

.menu-service-icon img {
  width: 21px;
  height: 24px;
  filter: invert(52%) sepia(33%) saturate(712%) hue-rotate(355deg) brightness(91%) contrast(87%);
}

.menu-service small {
  font-family: var(--serif);
  font-size: 15px;
}

.menu-service strong {
  color: #a77b42;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.menu-service > img {
  width: 25px;
  height: 25px;
  color: #a77b42;
  filter: invert(52%) sepia(33%) saturate(712%) hue-rotate(355deg) brightness(91%) contrast(87%);
  transition: transform 220ms ease;
}

.menu-service:hover > img {
  transform: translateX(6px);
}

@keyframes menu-drawer-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes menu-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .menu-backdrop {
    display: none;
  }

  .menu-panel {
    right: 0;
    width: 100%;
    min-width: 0;
    padding: 25px 28px 22px;
    box-shadow: none;
  }

  .menu-panel .menu-logo {
    width: min(210px, calc(100% - 56px));
  }

  .menu-panel .panel-close {
    width: 40px;
    height: 40px;
  }

  .menu-panel .panel-close img {
    width: 24px;
    height: 24px;
  }

  .menu-panel nav {
    justify-content: center;
    margin: 40px 0 20px;
  }

  .menu-panel nav a,
  .menu-panel nav button {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    min-height: 112px;
    padding: 18px 4px;
  }

  .menu-panel nav .menu-number {
    height: auto;
    padding-top: 0;
    border-right: 0;
    font-size: 23px;
  }

  .menu-item-copy {
    gap: 7px;
  }

  .menu-item-copy strong {
    font-size: clamp(31px, 9.2vw, 38px);
  }

  .menu-item-copy small {
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .menu-service {
    min-height: 76px;
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 13px;
    padding: 18px 4px 0;
  }

  .menu-service-icon {
    width: 40px;
    height: 40px;
  }

  .menu-service small {
    font-size: 14px;
  }

  .menu-service strong {
    font-size: 20px;
  }
}

@media (max-height: 760px) {
  .menu-panel {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .menu-panel .menu-logo {
    width: 240px;
  }

  .menu-panel nav {
    margin-top: 20px;
    margin-bottom: 12px;
  }

  .menu-panel nav a,
  .menu-panel nav button {
    min-height: 88px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .menu-item-copy strong {
    font-size: 32px;
  }

  .menu-service {
    min-height: 64px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel,
  .menu-backdrop {
    animation-duration: 0.01ms;
  }
}
