.ap-topbar-mobile-only {
  display: none;
}

/* jen mobil */
@media (max-width: 767px) {
  .ap-topbar-mobile-only {
    display: block;
    position: sticky;
    top: 0; /* pokud máš fixed header s logem, změň třeba na 64px */
    z-index: 9998;
    width: 100%;
    background: transparent;
  }

  .ap-topbar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  .ap-topbar-call {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 12px;
    background: #d62828;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 6px 16px rgba(214, 40, 40, 0.22);
  }

  .ap-topbar-call:hover {
    background: #bf2020;
  }

  .ap-topbar-call:active {
    transform: scale(0.985);
  }

  .ap-topbar-call-icon {
    font-size: 17px;
    line-height: 1;
  }

  .ap-topbar-toggle {
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #0f172a;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
  }

  .ap-topbar-toggle:hover {
    background: #182338;
  }

  .ap-topbar-toggle:active {
    transform: scale(0.96);
  }

  .ap-topbar-toggle-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.28s ease, opacity 0.22s ease;
  }

  .ap-topbar-toggle-line-1 {
    transform: translate(-50%, -50%);
  }

  .ap-topbar-toggle-line-2 {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .ap-topbar-toggle.is-open .ap-topbar-toggle-line-1 {
    transform: translate(-50%, -50%) rotate(135deg);
  }

  .ap-topbar-toggle.is-open .ap-topbar-toggle-line-2 {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .ap-topbar-menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      max-height 0.34s ease,
      opacity 0.22s ease,
      transform 0.28s ease;
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  }

  .ap-topbar-menu.is-open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
  }

  .ap-topbar-menu-inner {
    padding: 8px 12px 12px;
  }

  .ap-topbar-item {
    display: block;
    margin-top: 8px;
    padding: 14px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      transform 0.16s ease,
      box-shadow 0.18s ease;
  }

  .ap-topbar-item:first-child {
    margin-top: 0;
  }

  .ap-topbar-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  }

  .ap-topbar-item:active {
    transform: translateY(0);
  }
}