.pr-mobile-header,
.pr-mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  #root nav:first-of-type {
    display: none !important;
  }

  .pr-mobile-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(79, 91, 70, 0.16);
    background: rgba(250, 249, 246, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .pr-mobile-logo {
    display: inline-flex;
    min-width: 0;
    align-items: center;
  }

  .pr-mobile-logo img {
    display: block;
    width: 158px;
    max-width: 60vw;
    height: auto;
  }

  .pr-mobile-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 91, 70, 0.28);
    border-radius: 8px;
    background: #fdfcf9;
    color: #35372b;
    cursor: pointer;
  }

  .pr-mobile-toggle:focus-visible,
  .pr-mobile-menu a:focus-visible,
  .pr-mobile-menu summary:focus-visible {
    outline: 2px solid #4f5b46;
    outline-offset: 3px;
  }

  .pr-mobile-toggle-lines,
  .pr-mobile-toggle-lines::before,
  .pr-mobile-toggle-lines::after {
    display: block;
    width: 22px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .pr-mobile-toggle-lines {
    position: relative;
  }

  .pr-mobile-toggle-lines::before,
  .pr-mobile-toggle-lines::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .pr-mobile-toggle-lines::before { top: -7px; }
  .pr-mobile-toggle-lines::after { top: 7px; }

  .pr-mobile-toggle[aria-expanded="true"] .pr-mobile-toggle-lines {
    background: transparent;
  }

  .pr-mobile-toggle[aria-expanded="true"] .pr-mobile-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .pr-mobile-toggle[aria-expanded="true"] .pr-mobile-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .pr-mobile-menu {
    position: fixed;
    inset: 76px 0 0;
    z-index: 999;
    display: none;
    overflow-y: auto;
    padding: 20px 20px max(28px, env(safe-area-inset-bottom));
    background: #faf9f6;
    overscroll-behavior: contain;
  }

  .pr-mobile-menu[data-open="true"] {
    display: block;
  }

  .pr-mobile-menu-inner {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .pr-mobile-menu a,
  .pr-mobile-menu summary {
    box-sizing: border-box;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid rgba(79, 91, 70, 0.16);
    color: #35372b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    letter-spacing: 0.13em;
    line-height: 1.35;
    text-decoration: none;
    text-transform: uppercase;
  }

  .pr-mobile-menu details summary {
    cursor: pointer;
    list-style: none;
  }

  .pr-mobile-menu details summary::-webkit-details-marker { display: none; }

  .pr-mobile-menu details summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0;
  }

  .pr-mobile-menu details[open] summary::after { content: "−"; }

  .pr-mobile-submenu {
    padding: 6px 0 10px 16px;
    border-bottom: 1px solid rgba(79, 91, 70, 0.16);
  }

  .pr-mobile-submenu a {
    min-height: 48px;
    border: 0;
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
  }

  .pr-mobile-consultation {
    justify-content: center !important;
    min-height: 56px !important;
    margin-top: 22px;
    border: 0 !important;
    border-radius: 7px;
    background: #4f5b46;
    color: #faf9f6 !important;
    font-size: 12px !important;
    text-align: center;
  }

  body.pr-mobile-menu-open {
    overflow: hidden;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  #root img,
  #root svg {
    max-width: 100%;
  }

  #root a.rounded-md,
  #root button.rounded-md {
    min-height: 44px;
  }

  #root footer > div {
    text-align: center;
  }

  #root footer > div > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-mobile-toggle-lines,
  .pr-mobile-toggle-lines::before,
  .pr-mobile-toggle-lines::after {
    transition: none;
  }
}
