@media (max-width: 991.98px) {
  .header--mobile-only {
    display: none;
  }

  #wrapper {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .mobile-sheet-open {
    overflow: hidden;
  }

  .mobile-shell {
    --mobile-ink: #1a3052;
    --mobile-accent: #bd4946;
    --mobile-line: #e2e7ea;
    display: block;
    height: 106px;
    color: var(--mobile-ink);
    font-family: Jost, sans-serif;
  }

  .mobile-shell--no-project {
    height: 64px;
  }

  .mobile-shell__symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .mobile-shell__icon,
  .mobile-shell__arrow {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(26, 48, 82, 0.08);
  }

  .mobile-top__row {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    height: 64px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 30px);
  }

  .mobile-top__logo {
    display: flex;
    align-items: center;
    width: 64px;
    height: 56px;
  }

  .mobile-top__logo img {
    display: block;
    width: 62px;
    height: 50px;
    object-fit: contain;
  }

  .mobile-top__controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-top__callback,
  .mobile-top__search-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--mobile-ink);
    background: #ffffff;
    border: 1px solid var(--mobile-line);
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  }

  .mobile-top__callback:hover,
  .mobile-top__search-toggle:hover,
  .mobile-top__search-toggle[aria-expanded="true"] {
    color: var(--mobile-accent);
    background: #fff7f6;
    border-color: #e9b1ae;
  }

  .mobile-top__project {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 0 clamp(16px, 3vw, 30px);
    color: #ffffff;
    background: var(--mobile-accent);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-top__project:hover {
    color: #ffffff;
    background: #a93a38;
  }

  .mobile-top__project .mobile-shell__icon {
    width: 18px;
    height: 18px;
  }

  .mobile-top__search {
    position: absolute;
    top: 100%;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    padding: 14px clamp(16px, 3vw, 30px);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(26, 48, 82, 0.14);
  }

  .mobile-top__search-form {
    display: flex;
    width: 100%;
    max-width: 680px;
    height: 48px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #c8d0d8;
    border-radius: 8px;
  }

  .mobile-top__search-form:focus-within {
    border-color: var(--mobile-accent);
  }

  .mobile-top__search-form input[type="search"] {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    color: var(--mobile-ink);
    background: #ffffff;
    border: 0;
    outline: 0;
    font: 16px Jost, sans-serif;
  }

  .mobile-top__search-form input[type="search"]::placeholder {
    color: #59687a;
  }

  .mobile-top__search-form button {
    display: grid;
    place-items: center;
    width: 48px;
    padding: 0;
    color: #ffffff;
    background: var(--mobile-accent);
    border: 0;
    cursor: pointer;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 220;
    box-sizing: border-box;
    display: flex;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: #ffffff;
    border-top: 1px solid var(--mobile-line);
    box-shadow: 0 -5px 20px rgba(26, 48, 82, 0.08);
  }

  .mobile-dock__item {
    box-sizing: border-box;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 72px;
    padding: 6px 2px;
    color: var(--mobile-ink);
    background: transparent;
    border: 0;
    border-top: 2px solid transparent;
    cursor: pointer;
    font: 600 11px Jost, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-dock__item:hover,
  .mobile-dock__item[aria-expanded="true"] {
    color: var(--mobile-accent);
    border-top-color: var(--mobile-accent);
  }

  .mobile-dock__item .mobile-shell__icon {
    width: 23px;
    height: 23px;
  }

  #ohub-chat-widget {
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 180;
  }

  .mobile-sheet__backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(18, 31, 48, 0.5);
  }

  .mobile-sheet {
    position: fixed;
    right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 210;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(520px, calc(100% - 24px));
    max-height: calc(100dvh - 100px - env(safe-area-inset-bottom));
    margin: 0 auto;
    overflow: hidden;
    color: var(--mobile-ink);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 42px rgba(18, 31, 48, 0.24);
    transition: transform 0.2s ease;
  }

  .mobile-sheet__handle {
    display: grid;
    place-items: center;
    align-self: center;
    width: 80px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: grab;
  }

  .mobile-sheet__handle span {
    display: block;
    width: 48px;
    height: 5px;
    background: var(--mobile-accent);
    border-radius: 5px;
  }

  .mobile-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 20px;
  }

  .mobile-sheet__head h2 {
    margin: 0;
    color: var(--mobile-ink);
    font: 700 22px/1.2 Jost, sans-serif;
  }

  .mobile-sheet__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--mobile-ink);
    background: #f2f4f6;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
  }

  .mobile-sheet__hint {
    margin: 0;
    padding: 0 20px 12px;
    color: #59687a;
    font-size: 12px;
    line-height: 1.4;
  }

  .mobile-sheet__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #c9d0d6 #ffffff;
  }

  .mobile-sheet__category {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    margin: 0 20px;
    color: var(--mobile-ink);
    border-top: 1px solid var(--mobile-line);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-sheet__category:hover {
    color: var(--mobile-accent);
  }

  .mobile-sheet__category .mobile-shell__icon {
    color: var(--mobile-accent);
  }

  .mobile-sheet__category .mobile-shell__arrow {
    width: 16px;
    height: 16px;
    color: #84909b;
  }

  .mobile-sheet__category:last-child {
    margin-bottom: 12px;
  }

  .mobile-sheet__socials {
    margin: 4px 20px 18px;
    padding-top: 14px;
    border-top: 1px solid var(--mobile-line);
  }

  .mobile-sheet__socials-title {
    display: block;
    margin-bottom: 10px;
    color: var(--mobile-ink);
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-sheet__socials-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-sheet__social-link {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 64px;
    padding: 8px 4px;
    color: var(--mobile-ink);
    background: #fff7f6;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .mobile-sheet__social-link img,
  .mobile-sheet__social-link svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
  }

  .mobile-sheet__social-link img {
    filter: invert(36%) sepia(23%) saturate(1400%) hue-rotate(314deg) brightness(93%) contrast(91%);
  }

  .mobile-sheet__social-link svg {
    color: var(--mobile-accent);
  }

  .mobile-sheet__social-link:hover {
    color: var(--mobile-accent);
    background: #fcebe9;
  }

  .mobile-top__callback:focus-visible,
  .mobile-top__search-toggle:focus-visible,
  .mobile-top__project:focus-visible,
  .mobile-top__logo:focus-visible,
  .mobile-dock__item:focus-visible,
  .mobile-sheet__handle:focus-visible,
  .mobile-sheet__close:focus-visible,
  .mobile-sheet__category:focus-visible,
  .mobile-sheet__social-link:focus-visible {
    outline: 2px solid var(--mobile-accent);
    outline-offset: 2px;
  }

  [hidden] {
    display: none;
  }
}

@media (min-width: 992px) {
  .mobile-shell {
    display: none;
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .mobile-top__callback,
  .mobile-top__search-toggle,
  .mobile-sheet {
    transition: none;
  }
}
